16 |
# include <Serialization.h> |
# include <Serialization.h> |
17 |
#endif |
#endif |
18 |
|
|
19 |
#include <gtkmm.h> |
#ifdef GTKMM_HEADER_FILE |
20 |
|
# include GTKMM_HEADER_FILE(gtkmm.h) |
21 |
|
#else |
22 |
|
# include <gtkmm.h> |
23 |
|
#endif |
24 |
|
|
25 |
#if HAVE_CONFIG_H |
#if HAVE_CONFIG_H |
26 |
# include <config.h> |
# include <config.h> |
27 |
#endif |
#endif |
28 |
#include "compat.h" |
#include "compat.h" |
29 |
#include <gtkmm/uimanager.h> |
#if USE_GTKMM_BUILDER |
30 |
#include <gtkmm/actiongroup.h> |
# include <gtkmm/builder.h> |
31 |
|
#else |
32 |
|
# include <gtkmm/uimanager.h> // deprecated in gtkmm >= 3.21.4 |
33 |
|
#endif |
34 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
35 |
#include "ManagedWindow.h" |
#include "ManagedWindow.h" |
36 |
|
|
59 |
|
|
60 |
sigc::signal<void> m_changes_applied; |
sigc::signal<void> m_changes_applied; |
61 |
|
|
62 |
Gtk::VBox m_vbox; |
VBox m_vbox; |
63 |
Gtk::HBox m_footerHBox; |
HBox m_footerHBox; |
64 |
Gtk::HBox m_statusHBox; |
HBox m_statusHBox; |
65 |
Gtk::HButtonBox m_buttonBoxL; |
HButtonBox m_buttonBoxL; |
66 |
Gtk::HButtonBox m_buttonBox; |
HButtonBox m_buttonBox; |
67 |
Gtk::ScrolledWindow m_scrolledWindow; |
Gtk::ScrolledWindow m_scrolledWindow; |
68 |
#if GTKMM_MAJOR_VERSION < 3 |
#if GTKMM_MAJOR_VERSION < 3 |
69 |
view::WrapLabel m_labelIntro; |
view::WrapLabel m_labelIntro; |
129 |
void onButtonCancel(); |
void onButtonCancel(); |
130 |
void onButtonApply(); |
void onButtonApply(); |
131 |
void onWindowHide(); |
void onWindowHide(); |
132 |
bool onWindowDelete(GdkEventAny* e); |
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2 |
133 |
|
bool onWindowDelete(Gdk::Event& e); |
134 |
|
#endif |
135 |
|
bool onWindowDeleteP(GdkEventAny* e); |
136 |
void updateStatus(); |
void updateStatus(); |
137 |
void updateStatusBar(); |
void updateStatusBar(); |
138 |
void reloadTreeView(); |
void reloadTreeView(); |
139 |
void buildTreeView(const Gtk::TreeModel::Row& parentRow, const Serialization::Object& parentObject); |
void buildTreeView(const Gtk::TreeModel::Row& parentRow, const Serialization::Object& parentObject); |
140 |
void onTreeViewSelectionChanged(); |
void onTreeViewSelectionChanged(); |
141 |
|
|
142 |
|
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2 |
143 |
|
bool onMacroTreeViewKeyRelease(Gdk::EventKey& key); |
144 |
|
#else |
145 |
void onMacroTreeViewKeyRelease(GdkEventKey* button); |
void onMacroTreeViewKeyRelease(GdkEventKey* button); |
146 |
|
#endif |
147 |
void onMacroTreeViewRowValueChanged(const Gtk::TreeModel::Path& path, |
void onMacroTreeViewRowValueChanged(const Gtk::TreeModel::Path& path, |
148 |
const Gtk::TreeModel::iterator& iter); |
const Gtk::TreeModel::iterator& iter); |
149 |
void onMacroTreeViewRowValueChangedImpl(const Gtk::TreeModel::Path& path, |
void onMacroTreeViewRowValueChangedImpl(const Gtk::TreeModel::Path& path, |
153 |
void deleteSelectedRows(); |
void deleteSelectedRows(); |
154 |
void inverseDeleteSelectedRows(); |
void inverseDeleteSelectedRows(); |
155 |
void deleteRows(const std::vector<Gtk::TreeModel::Path>& rows); |
void deleteRows(const std::vector<Gtk::TreeModel::Path>& rows); |
156 |
|
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && (GTKMM_MINOR_VERSION > 91 || (GTKMM_MINOR_VERSION == 91 && GTKMM_MICRO_VERSION >= 2))) // GTKMM >= 3.91.2 |
157 |
|
bool onKeyPressed(Gdk::EventKey& key); |
158 |
|
bool onKeyReleased(Gdk::EventKey& key); |
159 |
|
#else |
160 |
bool onKeyPressed(GdkEventKey* key); |
bool onKeyPressed(GdkEventKey* key); |
161 |
bool onKeyReleased(GdkEventKey* key); |
bool onKeyReleased(GdkEventKey* key); |
162 |
|
#endif |
163 |
Glib::RefPtr<Gtk::ListStore> createComboOptions(const char** options); |
Glib::RefPtr<Gtk::ListStore> createComboOptions(const char** options); |
164 |
}; |
}; |
165 |
|
|