32 |
|
|
33 |
class DimensionManager : public Gtk::Window { |
class DimensionManager : public Gtk::Window { |
34 |
public: |
public: |
35 |
|
// triggered on all changes (i.e. dimension added or removed) |
36 |
|
sigc::signal<void> articulation_changed_signal; |
37 |
|
|
38 |
DimensionManager(); |
DimensionManager(); |
39 |
void show(gig::Region* region); |
void show(gig::Region* region); |
40 |
protected: |
protected: |
53 |
add(m_bits); |
add(m_bits); |
54 |
add(m_zones); |
add(m_zones); |
55 |
add(m_description); |
add(m_description); |
56 |
|
add(m_definition); |
57 |
} |
} |
58 |
|
|
59 |
Gtk::TreeModelColumn<Glib::ustring> m_dim_type; |
Gtk::TreeModelColumn<Glib::ustring> m_dim_type; |
60 |
Gtk::TreeModelColumn<int> m_bits; |
Gtk::TreeModelColumn<int> m_bits; |
61 |
Gtk::TreeModelColumn<int> m_zones; |
Gtk::TreeModelColumn<int> m_zones; |
62 |
Gtk::TreeModelColumn<Glib::ustring> m_description; |
Gtk::TreeModelColumn<Glib::ustring> m_description; |
63 |
|
Gtk::TreeModelColumn<gig::dimension_def_t*> m_definition; |
64 |
} tableModel; |
} tableModel; |
65 |
|
|
66 |
|
class ComboModelColumns : public Gtk::TreeModel::ColumnRecord { |
67 |
|
public: |
68 |
|
ComboModelColumns() { |
69 |
|
add(m_type_id); |
70 |
|
add(m_type_name); |
71 |
|
} |
72 |
|
|
73 |
|
Gtk::TreeModelColumn<int> m_type_id; |
74 |
|
Gtk::TreeModelColumn<Glib::ustring> m_type_name; |
75 |
|
} comboModel; |
76 |
|
|
77 |
Glib::RefPtr<Gtk::ListStore> refTableModel; |
Glib::RefPtr<Gtk::ListStore> refTableModel; |
78 |
|
|
79 |
void addDimension(); |
void addDimension(); |