diff options
author | neoraider <devnull@localhost> | 2008-04-11 00:47:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-11 00:47:04 +0200 |
commit | 7db6adf7e9e178c83f0278124a3d6c786134b014 (patch) | |
tree | 26f975f9391def4b2a14289699fb9d245b65ac52 /src/Data/Info.h | |
parent | 84780a8c1d9801e6a2c9f14dd0c17f362ccf7a57 (diff) | |
download | zoomedit-7db6adf7e9e178c83f0278124a3d6c786134b014.tar zoomedit-7db6adf7e9e178c83f0278124a3d6c786134b014.zip |
zoomedit:
* TexCoords saves number of used coordinates now.
* All data classes save changes in the XML tree now.
Diffstat (limited to 'src/Data/Info.h')
-rw-r--r-- | src/Data/Info.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Data/Info.h b/src/Data/Info.h index bc51855..1678b81 100644 --- a/src/Data/Info.h +++ b/src/Data/Info.h @@ -21,6 +21,7 @@ #define ZOOMEDIT_DATA_INFO_H_ #include <libxml++/nodes/element.h> +#include <libxml++/nodes/textnode.h> namespace ZoomEdit { namespace Data { @@ -35,6 +36,24 @@ class Info { public: Info(xmlpp::Element *node); + + const Glib::ustring& getName() const { + return name; + } + + void setName(const Glib::ustring &n) { + name = n; + nameNode->get_child_text()->set_content(n); + } + + const Glib::ustring& getDescription() const { + return desc; + } + + void setDescription(const Glib::ustring &d) { + desc = d; + descNode->get_child_text()->set_content(d); + } }; } |