Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/src/lib/gui/gui_saveable.cc @ 7470

Last change on this file since 7470 was 7470, checked in by bensch, 18 years ago

compile again

File size: 1.4 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Benjamin Grauer
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "gui_saveable.h"
19
20namespace OrxGui
21{
22
23  /**
24   * standard constructor
25  */
26  GuiSaveable::GuiSaveable (const std::string& optionName)
27  {
28    this->bSaveable = false;
29  }
30
31
32  /**
33   * standard deconstructor
34  */
35  GuiSaveable::~GuiSaveable ()
36  {
37    // delete what has to be deleted here
38  }
39
40
41  void GuiSaveable::makeSaveable()
42  {
43    this->bSaveable = true;
44
45  }
46
47
48  GuiSaveableGroup::GuiSaveableGroup(const std::string& groupName)
49      : GuiSaveable(groupName)
50  {
51//    this->setName(groupName);
52  }
53
54
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  }
71
72
73}
Note: See TracBrowser for help on using the repository browser.