blob: d114e313a1fce7151f713e39d44aae0bebee8bad (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef MAIN_WINDOW_HPP
#define MAIN_WINDOW_HPP
#include "archive.hpp"
#include "bookmouse.hpp"
#include <QtWidgets>
namespace bookmouse {
constexpr const char* AppName = "Bookmouse";
constexpr const char* AppVersionString = "1.0.0";
class BookmouseApp : public QMainWindow {
Q_OBJECT
public:
BookmouseApp();
private:
void setup();
void createActions();
void createMenus();
void createToolBar();
Bookmouse* m_bookmouse;
QAction* m_openFile;
QAction* m_openDirectory;
QAction* m_quitAction;
QAction* m_nextAction;
QAction* m_backAction;
QMenu* m_menuBar;
QToolBar* m_toolBar;
private slots:
void openFile();
void openDirectory();
void quit();
void next();
void back();
};
} // namespace bookmouse
#endif
|