Make code more C++.
[ttfautohint.git] / frontend / maingui.h
blob65fdc3371c59cfa4b3f294a0ebbefee3f98b7083
1 // maingui.h
3 // Copyright (C) 2012 by Werner Lemberg.
4 //
5 // This file is part of the ttfautohint library, and may only be used,
6 // modified, and distributed under the terms given in `COPYING'. By
7 // continuing to use, modify, or distribute this file you indicate that you
8 // have read `COPYING' and understand and accept it fully.
9 //
10 // The file `COPYING' mentioned in the previous paragraph is distributed
11 // with the ttfautohint library.
14 #ifndef __MAINGUI_H__
15 #define __MAINGUI_H__
17 #include <QMainWindow>
19 class QAction;
20 class QMenu;
21 class QPlainTextEdit;
23 class Main_GUI
24 : public QMainWindow
26 Q_OBJECT
28 public:
29 Main_GUI(int, int, bool, bool, int);
31 protected:
32 void closeEvent(QCloseEvent *event);
34 private slots:
35 void about();
37 private:
38 int hinting_range_min;
39 int hinting_range_max;
40 int ignore_permissions;
41 int pre_hinting;
42 int latin_fallback;
44 void createActions();
45 void createMenus();
46 void readSettings();
47 void writeSettings();
48 void setCurrentFile(const QString &fileName);
50 QMenu *helpMenu;
51 QAction *exitAct;
52 QAction *aboutAct;
53 QAction *aboutQtAct;
56 #endif /* __MAINGUI_H__ */
58 // end of maingui.h