blob: 09000ac4995b98c35978aee1714bec9aff89cc90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_*/
|