Don't use camel case but underscores where possible.
[ttfautohint.git] / frontend / maingui.h
blob87d420b1da6a8ae936bdcab4a6c91fc7ac8e9b73
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 close_event(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 create_actions();
45 void create_menus();
46 void read_settings();
47 void write_settings();
49 QMenu *help_menu;
50 QAction *exit_act;
51 QAction *about_act;
52 QAction *about_Qt_act;
55 #endif /* __MAINGUI_H__ */
57 // end of maingui.h