Changeset 7493 in orxonox.OLD for branches/qt_gui/src/lib
- Timestamp:
- May 3, 2006, 12:45:13 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui_saveable.cc
r7480 r7493 64 64 } 65 65 66 void SaveableGroup::load(const MultiType& value) 67 {} 68 69 const MultiType& SaveableGroup::save() 70 {} 71 72 73 66 74 std::vector<SaveableGroup*> SaveableGroup::saveableGroups; 67 75 … … 72 80 73 81 82 74 83 } -
branches/qt_gui/src/lib/gui/gui_saveable.h
r7489 r7493 48 48 void removeSaveable(Saveable* saveable); 49 49 50 virtual void load(const MultiType& value); 51 virtual const MultiType& save(); 52 50 53 protected: 51 54 SaveableGroup(const std::string& name); -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.cc
r7484 r7493 40 40 * Creates the Video-Option-Frame 41 41 */ 42 GuiVideo::GuiVideo( )43 : Element("Video") 42 GuiVideo::GuiVideo(QWidget* parent) 43 : Element("Video"), QGroupBox(parent) 44 44 { 45 45 QGridLayout* layout = new QGridLayout(this); 46 46 47 { 47 QCheckBox* fullscreen = new QCheckBox(QString("FullScreen"), NULL);48 QCheckBox* fullscreen = new QCheckBox(QString("FullScreen"), this); 48 49 //fullscreen->setName(); 49 layout->addWidget(fullscreen, 1, 1); 50 layout->addWidget(fullscreen, 0, 0); 51 52 QCheckBox* wireframe = new QCheckBox("Wireframe mode", this); 53 layout->addWidget(wireframe, 1, 0); 54 55 QComboBox* resolution = new QComboBox("Resolution", this); 56 layout->addWidget(resolution, 2, 0); 57 50 58 51 59 } -
branches/qt_gui/src/lib/gui/qt_gui/gui_video.h
r7484 r7493 17 17 { 18 18 public: 19 GuiVideo( );19 GuiVideo(QWidget* parent = NULL); 20 20 virtual ~GuiVideo(); 21 21 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc
r7484 r7493 23 23 #include <qtoolbox.h> 24 24 25 #include <qpushbutton.h> 25 26 26 27 #include "gui_video.h" … … 35 36 36 37 37 QGroupBox* groupBox = new QGroupBox ;38 QGroupBox* groupBox = new QGroupBox(this->mainWindow); 38 39 QGridLayout* mainLayout = new QGridLayout(groupBox); 39 40 { 40 QToolBox* toolBox = new QToolBox( );41 QToolBox* toolBox = new QToolBox(groupBox); 41 42 { 42 // toolBox->addItem(new GuiVideo(), "Video"); 43 44 toolBox->addItem(new GuiVideo(toolBox), "Video"); 43 45 } 46 mainLayout->addWidget(toolBox,1,1); 44 47 } 45 48 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7489 r7493 32 32 private: 33 33 QMainWindow* mainWindow; 34 std::list<Element*> elements; //!< A List of Elements within the QTGui34 std::list<Element*> elements; //!< A List of Elements within the QTGui 35 35 }; 36 36 }
Note: See TracChangeset
for help on using the changeset viewer.