2002-07-19 13:11:27 +00:00
|
|
|
#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,
|
2002-07-19 22:37:11 +00:00
|
|
|
|
|
|
|
NUM_ACTIONS
|
2002-07-19 13:11:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
2002-07-19 22:37:52 +00:00
|
|
|
enum ActionType _type;
|
2002-07-19 13:11:27 +00:00
|
|
|
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);
|
2002-07-12 03:03:55 +00:00
|
|
|
};
|
2002-07-19 13:11:27 +00:00
|
|
|
|
|
|
|
typedef list<Action> ActionList;
|
2002-07-12 03:03:55 +00:00
|
|
|
|
2002-07-19 13:11:27 +00:00
|
|
|
#endif
|