X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Factions.hh;h=5d57e0db7aedf6f33a31cee59b129980cd75a4f9;hb=a16ae8733983b7e4c7733512cf1c5b9f2cb0b2db;hp=22b11370ef66e237281fe818e71db99482e5ed51;hpb=5cb52056efcac25dd4b0d3035f860e5b1870bca1;p=chaz%2Fopenbox diff --git a/util/epist/actions.hh b/util/epist/actions.hh index 22b11370..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,6 +47,12 @@ public: moveWindowLeft, moveWindowRight, + toggleMaximizeFull, + toggleMaximizeVertical, + toggleMaximizeHorizontal, + + sendToWorkspace, //done + nextWindow, //done for now prevWindow, //done for now nextWindowOnAllWorkspaces, //done @@ -79,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;