Mercurial > trustbridge
annotate ui/management.cpp @ 331:455d6d00e896
Break long line of nsstest sources
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 08 Apr 2014 15:09:13 +0000 |
parents | 3261b2a9cab7 |
children |
rev | line source |
---|---|
327
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
1 #include "managementwindow.h" |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
2 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
3 #include <QApplication> |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
4 #include <QtPlugin> |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
5 #include <QMessageBox> |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
6 #include <QSettings> |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
7 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
8 #ifndef VERSION |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
9 #define VERSION "0.0.1" |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
10 #endif |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
11 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
12 #ifndef APPNAME |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
13 #define APPNAME "management" |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
14 #endif |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
15 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
16 #ifndef ORGANIZATION |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
17 #define ORGANIZATION "m13org" |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
18 #endif |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
19 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
20 #ifdef Q_OS_WIN |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
21 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
22 #else |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
23 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
24 #endif |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
25 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
26 int main(int argc, char **argv) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
27 { |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
28 QApplication app (argc, argv); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
29 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
30 QStringList arguments = QApplication::arguments(); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
31 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
32 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
33 QApplication::setApplicationName(QString::fromLatin1(APPNAME)); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
34 QApplication::setApplicationVersion(QString::fromLatin1(VERSION)); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
35 QSettings::setDefaultFormat(QSettings::IniFormat); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
36 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
37 ManagementWindow mgntWin; |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
38 mgntWin.show(); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
39 |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
40 return app.exec(); |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
41 } |