util/epist/actions.hh (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
#ifndef __actions_hh #define __actions_hh #include <list> extern "C" { #include <X11/X.h> } class Action { public: // xOr: this is crap. enum ActionType { noaction = 0, execute, iconify, raiseWindow, lowerWindow, closeWindow, shade, moveWindowUp, moveWindowDown, moveWindowLeft, moveWindowRight, nextWindow, prevWindow, nextWindowOnAllDesktops, prevWindowOnAllDesktops, nextWindowOfClass, prevWindowOfClass, changeDesktop, nextDesktop, prevDesktop, // these are openbox extensions showRootMenu, showWorkspaceMenu, stringChain, keyChain, numberChain, cancel, }; private: enum Action::ActionType _type; const KeyCode _keycode; const int _modifierMask; public: inline enum ActionType type() const { return _type;} inline const KeyCode keycode() const { return _keycode; } inline const int modifierMask() const { return _modifierMask; } Action::Action(enum ActionType type, KeyCode keycode, int modifierMask); }; typedef list<Action> ActionList; #endif |