Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/qt_gui: more stuff

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