Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
17 | |
---|
18 | #include "qt_gui.h" |
---|
19 | |
---|
20 | #include <qapplication.h> |
---|
21 | #include <qgroupbox.h> |
---|
22 | #include <qlayout.h> |
---|
23 | #include <qtoolbox.h> |
---|
24 | |
---|
25 | #include <qpushbutton.h> |
---|
26 | |
---|
27 | #include "gui_video.h" |
---|
28 | |
---|
29 | namespace OrxGui |
---|
30 | { |
---|
31 | QtGui::QtGui(int argc, char** argv) |
---|
32 | : QApplication(argc, argv) |
---|
33 | { |
---|
34 | |
---|
35 | this->mainWindow = new QMainWindow(); |
---|
36 | |
---|
37 | |
---|
38 | QGroupBox* groupBox = new QGroupBox(this->mainWindow); |
---|
39 | QGridLayout* mainLayout = new QGridLayout(groupBox); |
---|
40 | { |
---|
41 | QToolBox* toolBox = new QToolBox(groupBox); |
---|
42 | { |
---|
43 | |
---|
44 | toolBox->addItem(new GuiVideo(toolBox), "Video"); |
---|
45 | } |
---|
46 | mainLayout->addWidget(toolBox,1,1); |
---|
47 | } |
---|
48 | |
---|
49 | this->mainWindow->setCentralWidget(groupBox); |
---|
50 | this->mainWindow->show(); |
---|
51 | |
---|
52 | this->exec(); |
---|
53 | |
---|
54 | |
---|
55 | } |
---|
56 | |
---|
57 | QtGui::~QtGui() |
---|
58 | { |
---|
59 | delete this->mainWindow; |
---|
60 | } |
---|
61 | |
---|
62 | void QtGui::startGui() |
---|
63 | {} |
---|
64 | |
---|
65 | void QtGui::stopGui() |
---|
66 | {} |
---|
67 | |
---|
68 | void QtGui::suspend() |
---|
69 | {} |
---|
70 | |
---|
71 | //! Update the Gui. |
---|
72 | void QtGui::update() |
---|
73 | { |
---|
74 | this->processEvents(); |
---|
75 | } |
---|
76 | |
---|
77 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.