-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
62 lines (54 loc) · 1.4 KB
/
MainWindow.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
52
53
54
55
56
57
58
59
60
61
62
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <gtkmm.h>
#include "MenuBar.h"
#include "Toolbar.h"
#include "TextPanel.h"
#include "HelperPanel.h"
#include "PoReader.h"
#include "TranslatedTextPanel.h"
#include "StatusBar.h"
class MainWindow : public Gtk::Window {
public:
MainWindow(guint width, guint hieght);
void onFileOpened(const Glib::ustring &file_path);
private:
void onPanedChaged(Gtk::Requisition *r);
void onSizeChanged(Gtk::Requisition *r);
bool on_delete_event(GdkEventAny *event);
Gtk::HPaned m_hpan;
Gtk::VPaned m_vpan;
Gtk::VBox m_box;
Toolbar m_toolbar;
MenuBar m_menu_bar;
TextPanel m_text_panel;
HelperPanel m_helper_panel;
TranslatedTextPanel m_tr_panel;
StatusBar m_status_bar;
PoReader *m_po_reader;
/* Search options : */
Glib::ustring m_last_search;
Glib::ustring m_last_replace;
bool m_search_ignore_case;
bool m_search_msgstr;
bool m_search_msgid;
size_t m_msg_count;
void fromGui2Po();
void fromPo2Gui();
void onLanguageChanged();
void onNextMessage();
void onPreviousMessage();
void onJumpNextMessage();
void onJumpPreviousMessage();
void onJumpTo();
void onOpenFile();
void onSaveFile();
void onHeaderEdit();
void onCopyMsgid();
void onSwitchFuzzy();
bool searchExec();
void onSearch();
void onReplace();
bool doReplace(const Glib::ustring &str1, const Glib::ustring &str2);
};
#endif /* MAIN_WINDOW_H */