Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 29, 2006, 7:49:19 PM (18 years ago)
Author:
bensch
Message:

qt_gui: some more stuff

File:
1 edited

Legend:

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

    r7442 r7447  
    1818#include "gui_saveable.h"
    1919
    20 using namespace std;
     20namespace OrxGui
     21{
     22
     23  /**
     24   * standard constructor
     25  */
     26  GuiSaveable::GuiSaveable (const std::string& optionName)
     27  {
     28    this->bSaveable = false;
     29  }
    2130
    2231
    23 /**
    24  * standard constructor
    25 */
    26 GuiSaveable::GuiSaveable ()
    27 {
    28    this->setClassID(CL_GUI_SAVEABLE, "GuiSaveable");
    29 
    30 }
     32  /**
     33   * standard deconstructor
     34  */
     35  GuiSaveable::~GuiSaveable ()
     36  {
     37    // delete what has to be deleted here
     38  }
    3139
    3240
    33 /**
    34  * standard deconstructor
    35 */
    36 GuiSaveable::~GuiSaveable ()
    37 {
    38   // delete what has to be deleted here
    39 }
     41  void GuiSaveable::makeSaveable()
     42  {
     43    this->bSaveable = true;
     44
     45  }
    4046
    4147
    42 GuiGroup::GuiGroup(const char* groupName)
    43 {
    44   this->setName(groupName);
    45 }
     48  GuiSaveableGroup::GuiSaveableGroup(const std::string& groupName)
     49      : GuiSaveable(groupName)
     50  {
     51//    this->setName(groupName);
     52  }
    4653
    4754
    48 GuiGroup::~GuiGroup()
    49 {
     55
     56
     57  GuiSaveableGroup::~GuiSaveableGroup()
     58  {
     59    std::vector<GuiSaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this);
     60
     61    if (delGroup != saveableGroups.end() )
     62      saveableGroups.erase(delGroup);
     63  }
     64
     65  std::vector<GuiSaveableGroup*>  GuiSaveableGroup::saveableGroups;
     66
     67  void GuiSaveableGroup::makingElementSaveable()
     68  {
     69    GuiSaveableGroup::saveableGroups.push_back(this);
     70  }
    5071
    5172
Note: See TracChangeset for help on using the changeset viewer.