1 #ifndef WMACTION_H
2 #define WMACTION_H
3 
4 class YAction;
5 
6 enum WMAction {
7     ICEWM_ACTION_LOGOUT = 2,
8     ICEWM_ACTION_CANCEL_LOGOUT = 3,
9     ICEWM_ACTION_REBOOT = 4,
10     ICEWM_ACTION_SHUTDOWN = 5,
11     ICEWM_ACTION_ABOUT = 6,
12     ICEWM_ACTION_WINDOWLIST = 7,
13     ICEWM_ACTION_RESTARTWM = 8,
14     ICEWM_ACTION_SUSPEND = 9,
15     ICEWM_ACTION_WINOPTIONS = 10,
16     ICEWM_ACTION_RELOADKEYS = 11,
17 };
18 
19 enum RebootShutdown {
20     Logout = 0,
21     Reboot = 1,
22     Shutdown = 2,
23 };
24 
25 enum EAction {
26     actionNull               = 0,
27 
28     actionCascade            = 101,
29     actionArrange            = 103,
30     actionTileVertical       = 105,
31     actionTileHorizontal     = 107,
32     actionUndoArrange        = 109,
33     actionArrangeIcons       = 111,
34     actionMinimizeAll        = 113,
35     actionHideAll            = 115,
36     actionShowDesktop        = 117,
37 
38     actionHide               = 119,
39     actionShow               = 121,
40     actionRaise              = 123,
41     actionLower              = 125,
42     actionDepth              = 127,
43     actionMove               = 129,
44     actionSize               = 131,
45     actionMaximize           = 133,
46     actionMaximizeVert       = 135,
47     actionMinimize           = 137,
48     actionRestore            = 139,
49     actionRollup             = 141,
50     actionClose              = 143,
51     actionKill               = 145,
52     actionOccupyAllOrCurrent = 147,
53 #if DO_NOT_COVER_OLD
54     actionDoNotCover         = 149,
55 #endif
56     actionFullscreen         = 151,
57     actionToggleTray         = 153,
58     actionCollapseTaskbar    = 155,
59 
60     actionWindowList         = 157,
61     actionLogout             = 159,
62     actionCancelLogout       = 161,
63     actionLock               = 163,
64     actionReboot             = 165,
65     actionRestart            = 167,
66     actionRestartXterm       = 169,
67     actionShutdown           = 171,
68     actionSuspend            = 173,
69     actionRefresh            = 175,
70     actionAbout              = 177,
71     actionRun                = 179,
72     actionExit               = 181,
73 
74     actionFocusClickToFocus  = 183,
75     actionFocusExplicit      = 185,
76     actionFocusMouseSloppy   = 187,
77     actionFocusMouseStrict   = 189,
78     actionFocusQuietSloppy   = 191,
79     actionFocusCustom        = 193,
80 
81     actionMaximizeHoriz      = 195,
82     actionWinOptions         = 197,
83     actionReloadKeys         = 199,
84     actionCut                = 201,
85     actionCopy               = 203,
86     actionPaste              = 205,
87     actionSelectAll          = 207,
88     actionPasteSelection     = 209,
89 
90     actionLayerDesktop       = 211,
91     actionLayerOne           = 213,
92     actionLayerBelow         = 215,
93     actionLayerThree         = 217,
94     actionLayerNormal        = 219,
95     actionLayerFive          = 221,
96     actionLayerOnTop         = 223,
97     actionLayerSeven         = 225,
98     actionLayerDock          = 227,
99     actionLayerNine          = 229,
100     actionLayerAboveDock     = 231,
101     actionLayerEleven        = 233,
102     actionLayerMenu          = 235,
103     actionLayerThirteen      = 237,
104     actionLayerFullscreen    = 239,
105     actionLayerAboveAll      = 241,
106 
107     actionAboutClose         = 243,
108     actionTileLeft           = 245,
109     actionTileRight          = 246,
110     actionTileTop            = 247,
111     actionTileBottom         = 248,
112     actionTileTopLeft        = 249,
113     actionTileTopRight       = 250,
114     actionTileBottomLeft     = 251,
115     actionTileBottomRight    = 252,
116     actionTileCenter         = 253,
117 };
118 
119 bool canShutdown(RebootShutdown reboot);
120 bool canLock();
121 /**
122  * Basic check whether a shell command could possibly be run.
123  */
124 bool couldRunCommand(const char *cmd);
125 
126 #endif
127 
128 // vim: set sw=4 ts=4 et:
129