diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-16 17:03:24 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-16 17:03:24 +0000 |
commit | ac7c404804691fcf7f9b36f038025ac486ffea6a (patch) | |
tree | 7d3e6276115487f5e5dcab229401402691f0b74e /muse2/muse/liste | |
parent | 6b5e69ff5def2c8469657e33413bec84d815df9d (diff) |
half-way working version
toolbar state can be saved and restored, though this is still a bit buggy
Diffstat (limited to 'muse2/muse/liste')
-rw-r--r-- | muse2/muse/liste/listedit.cpp | 39 | ||||
-rw-r--r-- | muse2/muse/liste/listedit.h | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/muse2/muse/liste/listedit.cpp b/muse2/muse/liste/listedit.cpp index cd3d165e..d0a7d83c 100644 --- a/muse2/muse/liste/listedit.cpp +++ b/muse2/muse/liste/listedit.cpp @@ -827,6 +827,45 @@ void ListEdit::writeStatus(int level, Xml& xml) const } //--------------------------------------------------------- +// readConfiguration +//--------------------------------------------------------- + +void ListEdit::readConfiguration(Xml& xml) + { + for (;;) { + Xml::Token token = xml.parse(); + const QString& tag = xml.s1(); + switch (token) { + case Xml::Error: + case Xml::End: + return; + case Xml::TagStart: + if (tag == "topwin") + TopWin::readConfiguration(LISTE, xml); + else + xml.unknown("ListEdit"); + break; + case Xml::TagEnd: + if (tag == "listedit") + return; + default: + break; + } + } + } + +//--------------------------------------------------------- +// writeConfiguration +//--------------------------------------------------------- + +void ListEdit::writeConfiguration(int level, Xml& xml) + { + xml.tag(level++, "listedit"); + TopWin::writeConfiguration(LISTE, level, xml); + xml.tag(level, "/listedit"); + } + +//--------------------------------------------------------- // selectionChanged //--------------------------------------------------------- diff --git a/muse2/muse/liste/listedit.h b/muse2/muse/liste/listedit.h index 9e29035e..1b1a8ece 100644 --- a/muse2/muse/liste/listedit.h +++ b/muse2/muse/liste/listedit.h @@ -75,6 +75,8 @@ class ListEdit : public MidiEditor { ~ListEdit(); virtual void readStatus(Xml&); virtual void writeStatus(int, Xml&) const; + static void readConfiguration(Xml&); + static void writeConfiguration(int, Xml&); }; #endif |