diff options
author | markt <markt> | 2007-11-22 04:07:57 (GMT) |
---|---|---|
committer | markt <markt> | 2007-11-22 04:07:57 (GMT) |
commit | 675bc5d66aa08311e99cb00cf836d16a910a73df (patch) | |
tree | 9118f77bcc38631f944cdf4a07d2173011a29a9b /src/FbTk/Command.hh | |
parent | 08ebff4b319f51b4263cded0bb9c04103bcd9c3a (diff) | |
download | fluxbox_pavel-675bc5d66aa08311e99cb00cf836d16a910a73df.zip fluxbox_pavel-675bc5d66aa08311e99cb00cf836d16a910a73df.tar.bz2 |
added conditional statements to keys file
Diffstat (limited to 'src/FbTk/Command.hh')
-rw-r--r-- | src/FbTk/Command.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FbTk/Command.hh b/src/FbTk/Command.hh index 391aa78..5d38cb8 100644 --- a/src/FbTk/Command.hh +++ b/src/FbTk/Command.hh | |||
@@ -31,6 +31,14 @@ public: | |||
31 | virtual void execute() = 0; | 31 | virtual void execute() = 0; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | /// Interface class for boolean commands | ||
35 | class BoolCommand: public Command { | ||
36 | public: | ||
37 | virtual ~BoolCommand() { } | ||
38 | virtual void execute() { bool_execute(); } | ||
39 | virtual bool bool_execute() = 0; | ||
40 | }; | ||
41 | |||
34 | } // end namespace FbTk | 42 | } // end namespace FbTk |
35 | 43 | ||
36 | #endif // FBTK_COMMAND_HH | 44 | #endif // FBTK_COMMAND_HH |