Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Modules
Classes
Files
File List
src
core
application.h
1
//------------------------------------------------------------------------------
2
// application.h
3
//------------------------------------------------------------------------------
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
// 02110-1301, USA.
19
//
20
//------------------------------------------------------------------------------
21
// Copyright (C) 2014 "Zalewa" <zalewapl@gmail.com>
22
//------------------------------------------------------------------------------
23
#ifndef id5E252D92_36B9_40C2_964DBFD7D0E99622
24
#define id5E252D92_36B9_40C2_964DBFD7D0E99622
25
26
#include "global.h"
27
#include "dptr.h"
28
29
#include <QApplication>
30
31
#define gApp (Application::instance())
32
33
class
MainWindow
;
34
44
class
MAIN_EXPORT
Application
:
public
QApplication
45
{
46
public
:
58
static
void
deinit();
59
static
bool
isInit();
60
static
void
init(
int
&argc,
char
**argv);
61
static
Application
*instance();
62
63
virtual
~
Application
();
64
71
bool
isRunning()
const
;
72
78
MainWindow
*mainWindow()
const
;
87
QWidget *mainWindowAsQWidget()
const
;
88
89
void
setMainWindow(
MainWindow
* mainWindow);
95
void
stopRunning();
96
97
private
:
98
DPtr<Application>
d;
99
100
static
Application
*staticInstance;
101
102
Application
(
int
&argc,
char
**argv);
103
void
destroy();
104
};
105
106
107
#endif
Application
Program central hub of information.
Definition:
application.h:44
MainWindow
Definition:
mainwindow.h:45
DPtr< Application >
Doomseeker © 2009-2024 The Doomseeker Team