58 |
Gtk::ScrolledWindow m_scrolledWindow; |
Gtk::ScrolledWindow m_scrolledWindow; |
59 |
//Gtk::Label m_labelIntro; |
//Gtk::Label m_labelIntro; |
60 |
|
|
61 |
|
class ComboOptionsModel : public Gtk::TreeModel::ColumnRecord { |
62 |
|
public: |
63 |
|
ComboOptionsModel() { |
64 |
|
add(m_col_choice); |
65 |
|
} |
66 |
|
|
67 |
|
Gtk::TreeModelColumn<Glib::ustring> m_col_choice; |
68 |
|
} m_comboOptionsModel; |
69 |
|
|
70 |
class MacroModel : public Gtk::TreeModel::ColumnRecord { |
class MacroModel : public Gtk::TreeModel::ColumnRecord { |
71 |
public: |
public: |
72 |
MacroModel() { |
MacroModel() { |
74 |
add(m_col_type); |
add(m_col_type); |
75 |
add(m_col_value); |
add(m_col_value); |
76 |
add(m_col_uid); |
add(m_col_uid); |
77 |
|
add(m_col_allowTextEntry); |
78 |
|
add(m_col_editable); |
79 |
|
add(m_col_options); |
80 |
} |
} |
81 |
|
|
82 |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
83 |
Gtk::TreeModelColumn<Glib::ustring> m_col_type; |
Gtk::TreeModelColumn<Glib::ustring> m_col_type; |
84 |
Gtk::TreeModelColumn<Glib::ustring> m_col_value; |
Gtk::TreeModelColumn<Glib::ustring> m_col_value; |
85 |
Gtk::TreeModelColumn<Serialization::UID> m_col_uid; |
Gtk::TreeModelColumn<Serialization::UID> m_col_uid; |
86 |
|
Gtk::TreeModelColumn<bool> m_col_allowTextEntry; |
87 |
|
Gtk::TreeModelColumn<bool> m_col_editable; |
88 |
|
Gtk::TreeModelColumn<Glib::RefPtr<Gtk::ListStore> > m_col_options; |
89 |
} m_treeModelMacro; |
} m_treeModelMacro; |
90 |
|
|
91 |
class MacroTreeStore : public Gtk::TreeStore { |
class MacroTreeStore : public Gtk::TreeStore { |
99 |
|
|
100 |
Gtk::TreeView m_treeViewMacro; |
Gtk::TreeView m_treeViewMacro; |
101 |
Glib::RefPtr<MacroTreeStore> m_treeStoreMacro; |
Glib::RefPtr<MacroTreeStore> m_treeStoreMacro; |
102 |
|
Gtk::CellRendererCombo m_valueCellRenderer; |
103 |
|
Glib::RefPtr<Gtk::ListStore> m_comboBoxModel; |
104 |
bool m_ignoreTreeViewValueChange; |
bool m_ignoreTreeViewValueChange; |
105 |
|
|
106 |
Gtk::Label m_statusLabel; |
Gtk::Label m_statusLabel; |
110 |
Gtk::Button m_cancelButton; |
Gtk::Button m_cancelButton; |
111 |
|
|
112 |
bool m_altKeyDown; |
bool m_altKeyDown; |
113 |
|
bool m_primaryKeyDown; // on Mac: Cmd key, on all other OSs: Ctrl key |
114 |
|
|
115 |
bool isModified() const; |
bool isModified() const; |
116 |
void onButtonCancel(); |
void onButtonCancel(); |
125 |
void onMacroTreeViewKeyRelease(GdkEventKey* button); |
void onMacroTreeViewKeyRelease(GdkEventKey* button); |
126 |
void onMacroTreeViewRowValueChanged(const Gtk::TreeModel::Path& path, |
void onMacroTreeViewRowValueChanged(const Gtk::TreeModel::Path& path, |
127 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
128 |
|
void onMacroTreeViewRowValueChangedImpl(const Gtk::TreeModel::Path& path, |
129 |
|
const Gtk::TreeModel::iterator& iter, |
130 |
|
const Glib::ustring& value); |
131 |
|
void onValueCellEdited(const Glib::ustring& sPath, const Glib::ustring& text); |
132 |
void deleteSelectedRows(); |
void deleteSelectedRows(); |
133 |
void inverseDeleteSelectedRows(); |
void inverseDeleteSelectedRows(); |
134 |
void deleteRows(const std::vector<Gtk::TreeModel::Path>& rows); |
void deleteRows(const std::vector<Gtk::TreeModel::Path>& rows); |
135 |
bool onKeyPressed(GdkEventKey* key); |
bool onKeyPressed(GdkEventKey* key); |
136 |
bool onKeyReleased(GdkEventKey* key); |
bool onKeyReleased(GdkEventKey* key); |
137 |
|
Glib::RefPtr<Gtk::ListStore> createComboOptions(const char** options); |
138 |
}; |
}; |
139 |
|
|
140 |
#endif // GIGEDIT_MACROEDITOR_H |
#endif // GIGEDIT_MACROEDITOR_H |