Changeset 7595 in orxonox.OLD for branches/qt_gui/src
- Timestamp:
- May 11, 2006, 2:02:37 PM (19 years ago)
- Location:
- branches/qt_gui/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/gui_saveable.cc
r7555 r7595 18 18 #include "gui_saveable.h" 19 19 #include "gui.h" 20 #include "preferences.h" 20 21 21 22 namespace OrxGui … … 30 31 this->bSaveable = false; 31 32 33 assert(group != NULL); 32 34 this->group = group; 33 35 this->group->addSaveable(this); … … 51 53 52 54 } 55 56 57 void Saveable::load(const MultiType& value) 58 { 59 Preferences::getInstance()->setMultiType(this->group->getName(), this->getName(), value); 60 } 61 62 const MultiType& Saveable::save() 63 { 64 Preferences::getInstance()->getMultiType(this->group->getName(), this->getName(), 0); 65 } 66 67 53 68 54 69 … … 98 113 */ 99 114 void SaveableGroup::load(const MultiType& value) 100 {} 115 { 116 } 101 117 102 118 /** -
branches/qt_gui/src/lib/gui/gui_saveable.h
r7555 r7595 25 25 void makeSaveable(); 26 26 27 virtual void load(const MultiType& value) {};28 virtual const MultiType& save() {};27 virtual void load(const MultiType& value); 28 virtual const MultiType& save(); 29 29 30 30 MultiType& value() { return this->_value; }; -
branches/qt_gui/src/lib/gui/qt_gui/gui_audio.cc
r7555 r7595 28 28 29 29 #include <QtGui/QLayout> 30 #include <QtGui/QLCDNumber> 30 31 #include "debug.h" 31 32 … … 52 53 layout->addWidget(soundCard, 2, 1); 53 54 55 54 56 QtGuiSlider* channels = new QtGuiSlider("Channels", this, Qt::Vertical); 55 layout->addWidget(channels, 0, 0, 3, 1);57 layout->addWidget(channels, 0, 0, 2, 1); 56 58 QLabel* channelsLabel = new QLabel("Channels"); 57 59 layout->addWidget(channelsLabel, 3,0); 60 QLCDNumber* channelNumber = new QLCDNumber(); 61 connect(channels, SIGNAL(valueChanged(int)), channelNumber, SLOT(display(int))); 62 layout->addWidget(channelNumber, 2,0); 58 63 59 64 -
branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc
r7593 r7595 43 43 { 44 44 QGridLayout* layout = new QGridLayout(this); 45 46 45 { 47 46 QLabel* dataDirLabel = new QLabel("DataDirectory"); … … 67 66 debug->addItem("5 - extremely debug"); 68 67 } 69 70 71 68 } 72 69 … … 83 80 QString s = QFileDialog::getOpenFileName( 84 81 this, 85 "Choose a file",86 " /home",87 " Images (*.png *.xpm *.jpg)");82 "Choose the ORXONOX DATA DIRECTORY", 83 ".", 84 "ORXONOX DATA INDEX (data.oxd)"); 88 85 } 89 86 -
branches/qt_gui/src/lib/particles/dot_emitter.cc
r7302 r7595 23 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 #include "stdlibincl.h"26 25 27 26 using namespace std; -
branches/qt_gui/src/orxonox.cc
r7547 r7595 274 274 PRINT(3)("> Initializing input\n"); 275 275 276 EventHandler::getInstance()-> 276 277 EventHandler::getInstance()->init(); 277 278 EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE);
Note: See TracChangeset
for help on using the changeset viewer.