summaryrefslogtreecommitdiffstats
path: root/UIManager.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-10-19 00:07:02 +0200
committerneoraider <devnull@localhost>2007-10-19 00:07:02 +0200
commitddebc59336b71accc9887004b0f5c9a4bb17eb6b (patch)
treef6fec8577a50e536167c1352e8148a18c2e2f0b7 /UIManager.h
parent2bc9bb15dcc9691f6946eaa7a03370814bad0b8e (diff)
downloadzoomedit-ddebc59336b71accc9887004b0f5c9a4bb17eb6b.tar
zoomedit-ddebc59336b71accc9887004b0f5c9a4bb17eb6b.zip
zoomedit: UIManager gekapselt + einige kleine Fixes.
Diffstat (limited to 'UIManager.h')
-rw-r--r--UIManager.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/UIManager.h b/UIManager.h
new file mode 100644
index 0000000..09000ac
--- /dev/null
+++ b/UIManager.h
@@ -0,0 +1,34 @@
+#ifndef UIMANAGER_H_
+#define UIMANAGER_H_
+
+#include <gtk/gtk.h>
+
+
+class UIManager {
+ private:
+ static const gchar* const uiData;
+
+ GtkUIManager *uiManager;
+
+ static void handleAction(GtkAction *action, UIManager *uiManager);
+
+ GtkActionGroup* createActions();
+
+ public:
+ UIManager();
+ virtual ~UIManager();
+
+ GtkWidget* getMenu() {
+ return gtk_ui_manager_get_widget(uiManager, "/ui/menubar");
+ }
+
+ GtkWidget* getToolbar() {
+ return gtk_ui_manager_get_widget(uiManager, "/ui/toolbar1");
+ }
+
+ GtkAccelGroup* getAccels() {
+ return gtk_ui_manager_get_accel_group(uiManager);
+ }
+};
+
+#endif /*UIMANAGER_H_*/