]> Shamusworld >> Repos - schematic/blob - src/mainwin.h
0f4cb2442a5df3c93dc70223b5cd437ecf42cebd
[schematic] / src / mainwin.h
1 //
2 // mainwin.h: Header file
3 //
4 // by James Hammons
5 // (C) 2012 Underground Software
6 //
7
8 #ifndef __MAINWINDOW_H__
9 #define __MAINWINDOW_H__
10
11 #include <QtGui>
12
13 class AboutWindow;
14
15 class MainWindow: public QMainWindow
16 {
17         // All Qt apps require this macro
18         Q_OBJECT
19
20         public:
21                 MainWindow();
22
23         protected:
24                 void closeEvent(QCloseEvent * event);
25
26         private slots:
27                 void Open();
28                 void ShowAboutWin(void);
29
30         private:
31                 void ReadSettings(void);
32                 void WriteSettings(void);
33
34                 AboutWindow * aboutWin;
35
36                 QAction * quitAppAct;
37                 QAction * aboutAct;
38
39         public:
40                 int loggedInUID;
41 };
42
43 #endif  // __MAINWINDOW_H__