diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:53:38 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:53:38 (GMT) |
commit | 31b47e78147ca20803b123f392bfd2002b70e052 (patch) | |
tree | f7beb9baa9daf86d66358fd834cafae14de7c782 /src/Keys.cc | |
parent | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (diff) | |
download | fluxbox_pavel-31b47e78147ca20803b123f392bfd2002b70e052.zip fluxbox_pavel-31b47e78147ca20803b123f392bfd2002b70e052.tar.bz2 |
cleanup of some files
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index ec1fde0..3b0c206 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "FbTk/KeyUtil.hh" | 34 | #include "FbTk/KeyUtil.hh" |
35 | #include "FbTk/CommandParser.hh" | 35 | #include "FbTk/CommandParser.hh" |
36 | #include "FbTk/I18n.hh" | 36 | #include "FbTk/I18n.hh" |
37 | #include "FbTk/AutoReloadHelper.hh" | ||
37 | 38 | ||
38 | #ifdef HAVE_CONFIG_H | 39 | #ifdef HAVE_CONFIG_H |
39 | #include "config.h" | 40 | #include "config.h" |
@@ -92,7 +93,6 @@ | |||
92 | #include <fstream> | 93 | #include <fstream> |
93 | #include <list> | 94 | #include <list> |
94 | #include <vector> | 95 | #include <vector> |
95 | #include <map> | ||
96 | #include <memory> | 96 | #include <memory> |
97 | 97 | ||
98 | using std::cerr; | 98 | using std::cerr; |
@@ -131,7 +131,7 @@ public: | |||
131 | } | 131 | } |
132 | 132 | ||
133 | // member variables | 133 | // member variables |
134 | 134 | ||
135 | int type; // KeyPress or ButtonPress | 135 | int type; // KeyPress or ButtonPress |
136 | unsigned int mod; | 136 | unsigned int mod; |
137 | unsigned int key; // key code or button number | 137 | unsigned int key; // key code or button number |
@@ -170,14 +170,15 @@ Keys::t_key::~t_key() { | |||
170 | 170 | ||
171 | 171 | ||
172 | 172 | ||
173 | Keys::Keys(): next_key(0) { | 173 | Keys::Keys(): next_key(0), m_reloader(new FbTk::AutoReloadHelper()) { |
174 | m_reloader.setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload))); | 174 | m_reloader->setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload))); |
175 | } | 175 | } |
176 | 176 | ||
177 | Keys::~Keys() { | 177 | Keys::~Keys() { |
178 | ungrabKeys(); | 178 | ungrabKeys(); |
179 | ungrabButtons(); | 179 | ungrabButtons(); |
180 | deleteTree(); | 180 | deleteTree(); |
181 | delete m_reloader; | ||
181 | } | 182 | } |
182 | 183 | ||
183 | /// Destroys the keytree | 184 | /// Destroys the keytree |
@@ -570,8 +571,8 @@ void Keys::unregisterWindow(Window win) { | |||
570 | */ | 571 | */ |
571 | void Keys::reconfigure() { | 572 | void Keys::reconfigure() { |
572 | m_filename = FbTk::StringUtil::expandFilename(Fluxbox::instance()->getKeysFilename()); | 573 | m_filename = FbTk::StringUtil::expandFilename(Fluxbox::instance()->getKeysFilename()); |
573 | m_reloader.setMainFile(m_filename); | 574 | m_reloader->setMainFile(m_filename); |
574 | m_reloader.checkReload(); | 575 | m_reloader->checkReload(); |
575 | } | 576 | } |
576 | 577 | ||
577 | void Keys::keyMode(const string& keyMode) { | 578 | void Keys::keyMode(const string& keyMode) { |