Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7480 in orxonox.OLD


Ignore:
Timestamp:
May 2, 2006, 10:23:52 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: renaming

Location:
branches/qt_gui/src/lib/gui
Files:
5 edited

Legend:

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

    r7478 r7480  
    2828   */
    2929  GuiElement::GuiElement (const std::string& name)
    30   : GuiSaveableGroup(name)
     30  : SaveableGroup(name)
    3131  {
    3232    //this->mainWidget = NULL;
  • branches/qt_gui/src/lib/gui/gui_element.h

    r7478 r7480  
    1515
    1616  //! A SuperClass for all the Different GuiElements
    17   class GuiElement : public GuiSaveableGroup
     17  class GuiElement : public SaveableGroup
    1818  {
    1919
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7479 r7480  
    2424   * standard constructor
    2525  */
    26   GuiSaveable::GuiSaveable (const std::string& optionName)
     26  Saveable::Saveable (const std::string& optionName)
    2727  : BaseObject(optionName)
    2828  {
     
    3535   * standard deconstructor
    3636  */
    37   GuiSaveable::~GuiSaveable ()
     37  Saveable::~Saveable ()
    3838  {
    3939    // delete what has to be deleted here
     
    4141
    4242
    43   void GuiSaveable::makeSaveable()
     43  void Saveable::makeSaveable()
    4444  {
    4545    this->bSaveable = true;
     
    4848
    4949
    50   GuiSaveableGroup::GuiSaveableGroup(const std::string& groupName)
    51       : GuiSaveable(groupName)
     50  SaveableGroup::SaveableGroup(const std::string& groupName)
     51      : Saveable(groupName)
    5252  {
    5353  }
     
    5656
    5757
    58   GuiSaveableGroup::~GuiSaveableGroup()
     58  SaveableGroup::~SaveableGroup()
    5959  {
    60     std::vector<GuiSaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this);
     60    std::vector<SaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this);
    6161
    6262    if (delGroup != saveableGroups.end() )
     
    6464  }
    6565
    66   std::vector<GuiSaveableGroup*>  GuiSaveableGroup::saveableGroups;
     66  std::vector<SaveableGroup*>  SaveableGroup::saveableGroups;
    6767
    68   void GuiSaveableGroup::makingElementSaveable()
     68  void SaveableGroup::makingElementSaveable()
    6969  {
    70     GuiSaveableGroup::saveableGroups.push_back(this);
     70    SaveableGroup::saveableGroups.push_back(this);
    7171  }
    7272
  • branches/qt_gui/src/lib/gui/gui_saveable.h

    r7479 r7480  
    1515{
    1616  //! A class for ...
    17   class GuiSaveable : public BaseObject
     17  class Saveable : public BaseObject
    1818  {
    1919  public:
    20     virtual ~GuiSaveable();
     20    virtual ~Saveable();
    2121
    2222    void makeSaveable();
     
    3030
    3131  protected:
    32     GuiSaveable(const std::string& optionName);
     32    Saveable(const std::string& optionName);
    3333    virtual void makingElementSaveable() {};
    3434
     
    4040
    4141
    42   class GuiSaveableGroup : public GuiSaveable
     42  class SaveableGroup : public Saveable
    4343  {
    4444  public:
    45     virtual ~GuiSaveableGroup();
     45    virtual ~SaveableGroup();
    4646
    47     void addSaveable(GuiSaveable* saveable);
    48     void removeSaveable(GuiSaveable* saveable);
     47    void addSaveable(Saveable* saveable);
     48    void removeSaveable(Saveable* saveable);
    4949
    5050  protected:
    51     GuiSaveableGroup(const std::string& name);
     51    SaveableGroup(const std::string& name);
    5252    virtual void makingElementSaveable();
    5353
    5454  private:
    55     std::vector<GuiSaveable*>              saveables;
    56     static std::vector<GuiSaveableGroup*>  saveableGroups;
     55    std::vector<Saveable*>              saveables;
     56    static std::vector<SaveableGroup*>  saveableGroups;
    5757  };
    5858
  • branches/qt_gui/src/lib/gui/qt_gui/qt_gui.cc

    r7479 r7480  
    1919
    2020#include <qapplication.h>
    21 
     21#include <qgroupbox.h>
     22#include <qlayout.h>
    2223
    2324namespace OrxGui
     
    2829
    2930    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);
    3040    this->mainWindow->show();
    3141
     
    3747  QtGui::~QtGui()
    3848  {
    39 
     49    delete this->mainWindow;
    4050  }
    4151
Note: See TracChangeset for help on using the changeset viewer.