aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-12-13 05:48:00 (GMT)
committermarkt <markt>2007-12-13 05:48:00 (GMT)
commit8b7464046cea5e521ac46811591b0fce0c45aca1 (patch)
tree09df752f426a249ae15375a626a98436c8727593 /src/FbCommands.hh
parentdaca07edafc2e75eb9ee04d35fe80759308a8583 (diff)
downloadfluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.zip
fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r--src/FbCommands.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index c130050..566b17a 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -57,6 +57,8 @@ class ExportCmd : public FbTk::Command {
57public: 57public:
58 ExportCmd(const std::string& name, const std::string& value); 58 ExportCmd(const std::string& name, const std::string& value);
59 void execute(); 59 void execute();
60 static FbTk::Command *parse(const std::string &command,
61 const std::string &args, bool trusted);
60private: 62private:
61 std::string m_name; 63 std::string m_name;
62 std::string m_value; 64 std::string m_value;
@@ -121,6 +123,8 @@ public:
121 ShowClientMenuCmd(int option, std::string &pat): 123 ShowClientMenuCmd(int option, std::string &pat):
122 m_option(option|FocusableList::LIST_GROUPS), m_pat(pat.c_str()) { } 124 m_option(option|FocusableList::LIST_GROUPS), m_pat(pat.c_str()) { }
123 void execute(); 125 void execute();
126 static FbTk::Command *parse(const std::string &command,
127 const std::string &args, bool trusted);
124private: 128private:
125 const int m_option; 129 const int m_option;
126 const ClientPattern m_pat; 130 const ClientPattern m_pat;
@@ -208,6 +212,8 @@ public:
208 DeiconifyCmd(Mode mode= LASTWORKSPACE, 212 DeiconifyCmd(Mode mode= LASTWORKSPACE,
209 Destination dest= CURRENT); 213 Destination dest= CURRENT);
210 void execute(); 214 void execute();
215 static FbTk::Command *parse(const std::string &command,
216 const std::string &args, bool trusted);
211private: 217private:
212 Mode m_mode; 218 Mode m_mode;
213 Destination m_dest; 219 Destination m_dest;