X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Factions.hh;h=5d57e0db7aedf6f33a31cee59b129980cd75a4f9;hb=a16ae8733983b7e4c7733512cf1c5b9f2cb0b2db;hp=f95f007b3c65cb77ee71d56e9fec49c75ca1b31c;hpb=6a8f5f44e123c9ade7964e2051dd0d6a9858961c;p=chaz%2Fopenbox diff --git a/util/epist/actions.hh b/util/epist/actions.hh index f95f007b..5d57e0db 100644 --- a/util/epist/actions.hh +++ b/util/epist/actions.hh @@ -28,13 +28,14 @@ extern "C" { } #include +#include class Action { public: // xOr: this is crap. enum ActionType { noaction = 0, - execute, + execute, //done iconify, //done raise, //done lower, //done @@ -46,7 +47,11 @@ public: moveWindowLeft, moveWindowRight, - sendTo, //done + toggleMaximizeFull, + toggleMaximizeVertical, + toggleMaximizeHorizontal, + + sendToWorkspace, //done nextWindow, //done for now prevWindow, //done for now @@ -81,14 +86,18 @@ private: const unsigned int _modifierMask; const int _numberParam; + const std::string _stringParam; public: inline enum ActionType type() const { return _type;} inline const KeyCode keycode() const { return _keycode; } inline const unsigned int modifierMask() const { return _modifierMask; } inline const int number() const { return _numberParam; } + inline const std::string &string() const { return _stringParam; } Action(enum ActionType type, KeyCode keycode, unsigned int modifierMask, int number = 0); + Action(enum ActionType type, KeyCode keycode, unsigned int modifierMask, + const std::string &str); }; typedef std::list ActionList;