aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2008-08-14 05:53:38 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2008-08-14 05:53:38 (GMT)
commit31b47e78147ca20803b123f392bfd2002b70e052 (patch)
treef7beb9baa9daf86d66358fd834cafae14de7c782 /src/Keys.cc
parente169d33552c8e7070aa6e13da0187f2013b4cfc3 (diff)
downloadfluxbox_pavel-31b47e78147ca20803b123f392bfd2002b70e052.zip
fluxbox_pavel-31b47e78147ca20803b123f392bfd2002b70e052.tar.bz2
cleanup of some files
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc13
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
98using std::cerr; 98using 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
173Keys::Keys(): next_key(0) { 173Keys::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
177Keys::~Keys() { 177Keys::~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*/
571void Keys::reconfigure() { 572void 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
577void Keys::keyMode(const string& keyMode) { 578void Keys::keyMode(const string& keyMode) {