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

namespace getsuyobi {

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

class Getsuyobi;

class GetsuyobiApp : public QMainWindow {
    Q_OBJECT

  public:
    GetsuyobiApp();

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

    Getsuyobi* m_getsuyobi;

    QAction* m_openAction;
    QAction* m_quitAction;

    QMenu* m_fileMenu;

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

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

  private:
    QLayout* m_layout{nullptr};
};

} // namespace getsuyobi