diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-11 16:07:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-11 16:07:26 +0300 |
commit | c38e43cee40cfd7cad2a92ea704aa26c23523b67 (patch) | |
tree | a063389e5c7ddbaa448d495f3573bedf02e983b5 /src/gui/shortcutwindow.cpp | |
parent | 56807a19c2414934b405658da99b67fb53a129a3 (diff) | |
download | manaplus-c38e43cee40cfd7cad2a92ea704aa26c23523b67.tar.gz manaplus-c38e43cee40cfd7cad2a92ea704aa26c23523b67.tar.bz2 manaplus-c38e43cee40cfd7cad2a92ea704aa26c23523b67.tar.xz manaplus-c38e43cee40cfd7cad2a92ea704aa26c23523b67.zip |
Add own theme xml configuration for each shortcuts based window.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index cf491c9f0..df21488a5 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -52,8 +52,9 @@ class ShortcutTab : public Tab ShortcutWindow::ShortcutWindow(const std::string &title, ShortcutContainer *content, + std::string skinFile, int width, int height) : - Window("Window", false, 0, "shortcuts.xml") + Window("Window", false, 0, skinFile) { setWindowName(title); // no title presented, title bar is padding so window can be moved. @@ -97,7 +98,9 @@ ShortcutWindow::ShortcutWindow(const std::string &title, loadWindowState(); } -ShortcutWindow::ShortcutWindow(const std::string &title, int width, int height) +ShortcutWindow::ShortcutWindow(const std::string &title, std::string skinFile, + int width, int height) : + Window("Window", false, 0, skinFile) { setWindowName(title); // no title presented, title bar is padding so window can be moved. |