25 |
#include <gtkmm/actiongroup.h> |
#include <gtkmm/actiongroup.h> |
26 |
#include "ManagedWindow.h" |
#include "ManagedWindow.h" |
27 |
|
|
28 |
|
/** @brief Editor for gigedit macros. |
29 |
|
* |
30 |
|
* Implements a window which allows to edit the abstract tree of one macro |
31 |
|
* that may be applied with gigedit. |
32 |
|
*/ |
33 |
class MacroEditor : public ManagedWindow { |
class MacroEditor : public ManagedWindow { |
34 |
public: |
public: |
35 |
MacroEditor(); |
MacroEditor(); |
87 |
Gtk::Button m_applyButton; |
Gtk::Button m_applyButton; |
88 |
Gtk::Button m_cancelButton; |
Gtk::Button m_cancelButton; |
89 |
|
|
90 |
|
bool m_altKeyDown; |
91 |
|
|
92 |
bool isModified() const; |
bool isModified() const; |
93 |
void onButtonCancel(); |
void onButtonCancel(); |
94 |
void onButtonApply(); |
void onButtonApply(); |
104 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
105 |
void deleteSelectedRows(); |
void deleteSelectedRows(); |
106 |
void inverseDeleteSelectedRows(); |
void inverseDeleteSelectedRows(); |
107 |
|
void deleteRows(const std::vector<Gtk::TreeModel::Path>& rows); |
108 |
|
bool onKeyPressed(GdkEventKey* key); |
109 |
|
bool onKeyReleased(GdkEventKey* key); |
110 |
}; |
}; |
111 |
|
|
112 |
#endif // GIGEDIT_MACROEDITOR_H |
#endif // GIGEDIT_MACROEDITOR_H |