-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuBar.h
52 lines (46 loc) · 1.6 KB
/
MenuBar.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef MENU_BAR_H
#define MENU_BAR_H
#include <gtkmm.h>
using namespace Gtk::Menu_Helpers;
class MenuBar : public Gtk::MenuBar {
public:
MenuBar();
sigc::signal<void> &signal_jump_to();
sigc::signal<void> &signal_open_file();
sigc::signal<void> &signal_header_edit();
sigc::signal<void> &signal_switch_fuzzy();
sigc::signal<void> &signal_next_msg();
sigc::signal<void> &signal_prev_msg();
sigc::signal<void> &signal_jump_next_msg();
sigc::signal<void> &signal_jump_prev_msg();
sigc::signal<void> &signal_copy_msgid();
sigc::signal<void> &signal_save();
sigc::signal<void> &signal_save_as();
sigc::signal<void> &signal_search();
sigc::signal<void> &signal_search_next();
sigc::signal<void> &signal_search_and_replace();
void disable_elements();
void enable_elements();
private:
Gtk::Menu *createFileMenu();
Gtk::Menu *createEditMenu();
Gtk::Menu *createToolsMenu();
void onQuitMenuitem();
sigc::signal<void> m_signal_jump_to;
sigc::signal<void> m_signal_open_file;
sigc::signal<void> m_signal_header_edit;
sigc::signal<void> m_signal_switch_fuzzy;
sigc::signal<void> m_signal_next_msg;
sigc::signal<void> m_signal_prev_msg;
sigc::signal<void> m_signal_jump_next_msg;
sigc::signal<void> m_signal_jump_prev_msg;
sigc::signal<void> m_signal_copy_msgid;
sigc::signal<void> m_signal_save;
sigc::signal<void> m_signal_save_as;
sigc::signal<void> m_signal_search;
sigc::signal<void> m_signal_search_next;
sigc::signal<void> m_signal_search_and_replace;
typedef std::vector<Element*> ElementsList;
ElementsList m_disable_list;
};
#endif /* MENU_BAR_H */