summaryrefslogtreecommitdiffstats
path: root/src/Data/Texture.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-11 00:47:04 +0200
committerneoraider <devnull@localhost>2008-04-11 00:47:04 +0200
commit7db6adf7e9e178c83f0278124a3d6c786134b014 (patch)
tree26f975f9391def4b2a14289699fb9d245b65ac52 /src/Data/Texture.h
parent84780a8c1d9801e6a2c9f14dd0c17f362ccf7a57 (diff)
downloadzoomedit-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/Texture.h')
-rw-r--r--src/Data/Texture.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Data/Texture.h b/src/Data/Texture.h
index b6a605a..e0cea59 100644
--- a/src/Data/Texture.h
+++ b/src/Data/Texture.h
@@ -33,6 +33,24 @@ class Texture {
public:
Texture(xmlpp::Element *node);
+
+ const Glib::ustring& getId() const {
+ return id;
+ }
+
+ void setId(const Glib::ustring &nid) {
+ id = nid;
+ texNode->set_attribute("id", nid);
+ }
+
+ const Glib::ustring& getName() const {
+ return name;
+ }
+
+ void setName(const Glib::ustring &nname) {
+ name = nname;
+ texNode->set_attribute("name", nname);
+ }
};
}