diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-10-07 02:20:29 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-10-07 02:20:29 +0000 |
commit | f16b2037025918e32c5fd90527f76e1102e5ecb9 (patch) | |
tree | 0da3b7a29d13b5b826b291ccb2f2676d2e227b40 /muse2/muse/shortcuts.cpp | |
parent | 42039e7f7f215f6008829d8c6be591c998f1228c (diff) |
(hopefully) final huge namespace update.
Diffstat (limited to 'muse2/muse/shortcuts.cpp')
-rw-r--r-- | muse2/muse/shortcuts.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/muse2/muse/shortcuts.cpp b/muse2/muse/shortcuts.cpp index 2270befa..e6260749 100644 --- a/muse2/muse/shortcuts.cpp +++ b/muse2/muse/shortcuts.cpp @@ -36,6 +36,7 @@ #include <QTranslator> #include <QKeySequence> +namespace MusEGui { ShortCut shortcuts[SHRT_NUM_OF_ELEMENTS]; void defShrt(int shrt, int key, const char* descr, int type, const char* xml) @@ -348,7 +349,7 @@ int getShrtByTag(const char* xml) return -1; } -void writeShortCuts(int level, Xml& xml) +void writeShortCuts(int level, MusECore::Xml& xml) { xml.tag(level++, "shortcuts"); for (int i=0; i < SHRT_NUM_OF_ELEMENTS; i++) { @@ -358,16 +359,16 @@ void writeShortCuts(int level, Xml& xml) xml.etag(level, "shortcuts"); } -void readShortCuts(Xml& xml) +void readShortCuts(MusECore::Xml& xml) { for (;;) { - Xml::Token token = xml.parse(); - if (token == Xml::Error || token == Xml::End) + MusECore::Xml::Token token = xml.parse(); + if (token == MusECore::Xml::Error || token == MusECore::Xml::End) break; const QString& tag = xml.s1(); switch (token) { - case Xml::TagStart: { + case MusECore::Xml::TagStart: { if (tag.length()) { int index = getShrtByTag(tag.toAscii().constData()); if (index == -1) //No such tag found @@ -379,7 +380,7 @@ void readShortCuts(Xml& xml) } } } - case Xml::TagEnd: + case MusECore::Xml::TagEnd: if (tag == "shortcuts") return; default: @@ -387,3 +388,5 @@ void readShortCuts(Xml& xml) } } } + +} // namespace MusEGui |