source:
orxonox.OLD/branches/qt_gui/src/lib/gui/gui_saveable.cc
@
7539
Last change on this file since 7539 was 7493, checked in by bensch, 18 years ago | |
---|---|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[4744] | 1 | /* |
[1853] | 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. | |
[1855] | 10 | |
11 | ### File Specific: | |
[7140] | 12 | main-programmer: Benjamin Grauer |
[1855] | 13 | co-programmer: ... |
[1853] | 14 | */ |
15 | ||
[3955] | 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
[1853] | 17 | |
[7140] | 18 | #include "gui_saveable.h" |
[1853] | 19 | |
[7447] | 20 | namespace OrxGui |
21 | { | |
[1853] | 22 | |
[7447] | 23 | /** |
24 | * standard constructor | |
25 | */ | |
[7480] | 26 | Saveable::Saveable (const std::string& optionName) |
[7479] | 27 | : BaseObject(optionName) |
[7447] | 28 | { |
29 | this->bSaveable = false; | |
[7479] | 30 | |
[7447] | 31 | } |
[1856] | 32 | |
[4320] | 33 | |
[7447] | 34 | /** |
35 | * standard deconstructor | |
36 | */ | |
[7480] | 37 | Saveable::~Saveable () |
[7447] | 38 | { |
39 | // delete what has to be deleted here | |
40 | } | |
[1853] | 41 | |
42 | ||
[7480] | 43 | void Saveable::makeSaveable() |
[7447] | 44 | { |
45 | this->bSaveable = true; | |
[7143] | 46 | |
[7447] | 47 | } |
[7143] | 48 | |
49 | ||
[7480] | 50 | SaveableGroup::SaveableGroup(const std::string& groupName) |
51 | : Saveable(groupName) | |
[7447] | 52 | { |
53 | } | |
[7143] | 54 | |
55 | ||
56 | ||
[7447] | 57 | |
[7480] | 58 | SaveableGroup::~SaveableGroup() |
[7447] | 59 | { |
[7480] | 60 | std::vector<SaveableGroup*>::iterator delGroup = std::find(saveableGroups.begin(), saveableGroups.end(), this); |
[7447] | 61 | |
62 | if (delGroup != saveableGroups.end() ) | |
63 | saveableGroups.erase(delGroup); | |
64 | } | |
65 | ||
[7493] | 66 | void SaveableGroup::load(const MultiType& value) |
67 | {} | |
68 | ||
69 | const MultiType& SaveableGroup::save() | |
70 | {} | |
71 | ||
72 | ||
73 | ||
[7480] | 74 | std::vector<SaveableGroup*> SaveableGroup::saveableGroups; |
[7447] | 75 | |
[7480] | 76 | void SaveableGroup::makingElementSaveable() |
[7447] | 77 | { |
[7480] | 78 | SaveableGroup::saveableGroups.push_back(this); |
[7447] | 79 | } |
80 | ||
81 | ||
[7493] | 82 | |
[7143] | 83 | } |
Note: See TracBrowser
for help on using the repository browser.