-
Notifications
You must be signed in to change notification settings - Fork 1
/
hashcalcapplication.h
50 lines (37 loc) · 1022 Bytes
/
hashcalcapplication.h
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
45
46
47
48
49
50
/**
* Manages the instances of class MainWindow.
*
* All instances of MainWindow has this as their parent object, and all windows' menu
* bars contain links to all the other instances.
*
* Inherits QApplication and adds some convenient application specifc functions.
* Will be destroyed (and the application process exited) when the
* last visible MainWindow is closed.
*
* Johan Lindqvist ([email protected])
*/
#ifndef HASHCALCALCAPPLICATION_H
#define HASHCALCALCAPPLICATION_H
#include <QApplication>
#include <QVector>
class QMenu;
class MainWindow;
class HashCalcApplication : public QApplication
{
Q_OBJECT
public:
HashCalcApplication(int argc, char * argv[]);
~HashCalcApplication() {}
void windowUpdated(MainWindow*);
signals:
void windowsChanged();
public slots:
MainWindow* addWindow();
void removeWindow(MainWindow*);
void quit();
protected:
bool event(QEvent * event);
public:
QVector<MainWindow*> mainwindows;
};
#endif // HASHCALCALCAPPLICATION_H