Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc @ 7481

Last change on this file since 7481 was 7480, checked in by bensch, 18 years ago

orxonox/trunk: renaming

File size: 1.1 KB
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
24namespace OrxGui
25{
26  QtGui::QtGui(int argc, char** argv)
27  : QApplication(argc, argv)
28  {
29
30    this->mainWindow = new QMainWindow();
31
32
33    QGroupBox* groupBox = new QGroupBox;
34    QGridLayout* mainLayout = new QGridLayout(groupBox);
35
36
37
38
39    this->mainWindow->setCentralWidget(groupBox);
40    this->mainWindow->show();
41
42    this->exec();
43
44
45  }
46
47  QtGui::~QtGui()
48  {
49    delete this->mainWindow;
50  }
51
52  void QtGui::startGui()
53  {}
54
55  void QtGui::stopGui()
56  {}
57
58  void QtGui::suspend()
59  {}
60
61    //! Update the Gui.
62  void QtGui::update()
63  {
64    this->processEvents();
65  }
66
67}
Note: See TracBrowser for help on using the repository browser.