[go: up one dir, main page]

Menu

[12172e]: / src / wmapp.h  Maximize  Restore  History

Download this file

89 lines (73 with data), 2.1 kB

 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef __WMAPP_H
#define __WMAPP_H
#include "yapp.h"
#include "ymenu.h"
#include "ymsgbox.h"
#ifdef CONFIG_GUIEVENTS
#include "guievent.h"
#endif
enum PhaseType {
phaseStartup,
phaseShutdown,
phaseRunning,
phaseRestart
};
class YWindowManager;
class YWMApp: public YApplication, public YActionListener, public YMsgBoxListener {
public:
YWMApp(int *argc, char ***argv, const char *displayName = 0);
~YWMApp();
#ifdef CONFIG_GUIEVENTS
void signalGuiEvent(GUIEvent ge);
#endif
virtual void afterWindowEvent(XEvent &xev);
virtual void handleSignal(int sig);
virtual void handleIdle();
virtual void actionPerformed(YAction *action, unsigned int modifiers);
virtual void handleMsgBox(YMsgBox *msgbox, int operation);
void logout();
void cancelLogout();
#ifdef SM
virtual void smSaveYourself(bool shutdown, bool fast);
virtual void smSaveYourselfPhase2();
virtual void smShutdownCancelled();
virtual void smDie();
#endif
void restartClient(const char *str, const char **args);
void runOnce(const char *resource, const char *str, const char **args);
void runCommandOnce(const char *resource, const char *cmdline);
static YCursor sizeRightPointer;
static YCursor sizeTopRightPointer;
static YCursor sizeTopPointer;
static YCursor sizeTopLeftPointer;
static YCursor sizeLeftPointer;
static YCursor sizeBottomLeftPointer;
static YCursor sizeBottomPointer;
static YCursor sizeBottomRightPointer;
private:
YWindowManager *fWindowManager;
YMsgBox *fLogoutMsgBox;
};
extern YWMApp * wmapp;
extern PhaseType phase;
extern YMenu *windowMenu;
extern YMenu *occupyMenu;
extern YMenu *layerMenu;
extern YMenu *moveMenu;
#ifdef CONFIG_WINMENU
extern YMenu *windowListMenu;
#endif
#ifdef CONFIG_WINLIST
extern YMenu *windowListPopup;
extern YMenu *windowListAllPopup;
#endif
extern YMenu *maximizeMenu;
extern YMenu *logoutMenu;
#ifndef NO_CONFIGURE_MENUS
class ObjectMenu;
extern ObjectMenu *rootMenu;
#endif
class CtrlAltDelete;
extern CtrlAltDelete *ctrlAltDelete;
extern int rebootOrShutdown;
#endif