From ac7c404804691fcf7f9b36f038025ac486ffea6a Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 16 Aug 2011 17:03:24 +0000 Subject: half-way working version toolbar state can be saved and restored, though this is still a bit buggy --- muse2/muse/liste/listedit.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'muse2/muse/liste/listedit.cpp') 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 @@ -826,6 +826,45 @@ void ListEdit::writeStatus(int level, Xml& xml) const xml.tag(level, "/listeditor"); } +//--------------------------------------------------------- +// 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 //--------------------------------------------------------- -- cgit v1.2.3