summaryrefslogtreecommitdiff
path: root/src/main_window.hpp
blob: 886ba428d14fd20aa2706cc936c13e734bdf5939 (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
#include <QtWidgets>

namespace getsuyomi {

constexpr const char* AppName = "GetsuYomi";
constexpr const char* AppVersionString = "1.0.0";

class Getsuyomi;

class GetsuyomiApp : public QMainWindow {
    Q_OBJECT

  public:
    GetsuyomiApp();

  private:
    void setup();
    void createActions();
    void createMenus();

    Getsuyomi* m_getsuyomi;

    QAction* m_openFile;
    QAction* m_openDirectory;
    QAction* m_quitAction;

    QMenu* m_fileMenu;

  private slots:
    void openFile();
    void openDirectory();
    void quit();
};

class Getsuyomi : public QWidget {
    Q_OBJECT
  public:
    Getsuyomi();

  private:
    QLayout* m_layout{nullptr};
};

} // namespace getsuyomi