-
Notifications
You must be signed in to change notification settings - Fork 4
/
texgenapplication.h
55 lines (42 loc) · 1.2 KB
/
texgenapplication.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
51
52
53
54
55
/**
* Part of the ProceduralTextureMaker project.
* http://github.com/johanokl/ProceduralTextureMaker
* Released under GPLv3.
* Johan Lindqvist (johan.lindqvist@gmail.com)
*/
#ifndef TEXGENAPPLICATION_H
#define TEXGENAPPLICATION_H
#include <QApplication>
#include <QVector>
class QMenu;
class MainWindow;
/**
* @brief The TexGenApplication class
* 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.
*/
class TexGenApplication : public QApplication
{
Q_OBJECT
public:
TexGenApplication(int &argc, char* argv[]);
virtual ~TexGenApplication() {}
signals:
void windowsChanged();
public slots:
MainWindow* addWindow();
void removeWindow(QObject*);
void quit();
void windowUpdated(QString);
protected:
bool event(QEvent* event);
public:
QVector<MainWindow*> mainwindows;
};
#endif // TEXGENAPPLICATION_H