Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7595 in orxonox.OLD for branches/qt_gui/src


Ignore:
Timestamp:
May 11, 2006, 2:02:37 PM (19 years ago)
Author:
bensch
Message:

qt_gui: better stuff and so on

Location:
branches/qt_gui/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7555 r7595  
    1818#include "gui_saveable.h"
    1919#include "gui.h"
     20#include "preferences.h"
    2021
    2122namespace OrxGui
     
    3031    this->bSaveable = false;
    3132
     33    assert(group != NULL);
    3234    this->group = group;
    3335    this->group->addSaveable(this);
     
    5153
    5254  }
     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
    5368
    5469
     
    98113   */
    99114  void SaveableGroup::load(const MultiType& value)
    100   {}
     115  {
     116  }
    101117
    102118  /**
  • branches/qt_gui/src/lib/gui/gui_saveable.h

    r7555 r7595  
    2525    void makeSaveable();
    2626
    27     virtual void load(const MultiType& value) {};
    28     virtual const MultiType& save() {};
     27    virtual void load(const MultiType& value);
     28    virtual const MultiType& save();
    2929
    3030    MultiType&       value() { return this->_value; };
  • branches/qt_gui/src/lib/gui/qt_gui/gui_audio.cc

    r7555 r7595  
    2828
    2929#include <QtGui/QLayout>
     30#include <QtGui/QLCDNumber>
    3031#include "debug.h"
    3132
     
    5253      layout->addWidget(soundCard, 2, 1);
    5354
     55
    5456      QtGuiSlider* channels = new QtGuiSlider("Channels", this, Qt::Vertical);
    55       layout->addWidget(channels, 0, 0, 3, 1);
     57      layout->addWidget(channels, 0, 0, 2, 1);
    5658      QLabel* channelsLabel = new QLabel("Channels");
    5759      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);
    5863
    5964
  • branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc

    r7593 r7595  
    4343  {
    4444    QGridLayout* layout = new QGridLayout(this);
    45 
    4645    {
    4746      QLabel* dataDirLabel = new QLabel("DataDirectory");
     
    6766      debug->addItem("5 - extremely debug");
    6867    }
    69 
    70 
    7168  }
    7269
     
    8380    QString s = QFileDialog::getOpenFileName(
    8481        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)");
    8885  }
    8986
  • branches/qt_gui/src/lib/particles/dot_emitter.cc

    r7302 r7595  
    2323#include "util/loading/factory.h"
    2424#include "debug.h"
    25 #include "stdlibincl.h"
    2625
    2726using namespace std;
  • branches/qt_gui/src/orxonox.cc

    r7547 r7595  
    274274  PRINT(3)("> Initializing input\n");
    275275
     276  EventHandler::getInstance()->
    276277  EventHandler::getInstance()->init();
    277278  EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE);
Note: See TracChangeset for help on using the changeset viewer.