2
* Copyright © 2009 Danny Baumann
4
* Permission to use, copy, modify, distribute, and sell this software
5
* and its documentation for any purpose is hereby granted without
6
* fee, provided that the above copyright notice appear in all copies
7
* and that both that copyright notice and this permission notice
8
* appear in supporting documentation, and that the name of
9
* Danny Baumann not be used in advertising or publicity pertaining to
10
* distribution of the software without specific, written prior permission.
11
* Danny Baumann makes no representations about the suitability of this
12
* software for any purpose. It is provided "as is" without express or
15
* DANNY BAUMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17
* NO EVENT SHALL DENNIS KASPRZYK BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
* Author: Danny Baumann <dannybaumann@web.de>
26
#include <core/core.h>
27
#include <core/privatehandler.h>
29
#define GNOME_OPTION_MAIN_MENU_KEY 0
30
#define GNOME_OPTION_RUN_DIALOG_KEY 1
31
#define GNOME_OPTION_SCREENSHOT_CMD 2
32
#define GNOME_OPTION_RUN_SCREENSHOT_KEY 3
33
#define GNOME_OPTION_WINDOW_SCREENSHOT_CMD 4
34
#define GNOME_OPTION_RUN_WINDOW_SCREENSHOT_KEY 5
35
#define GNOME_OPTION_TERMINAL_CMD 6
36
#define GNOME_OPTION_RUN_TERMINAL_KEY 7
37
#define GNOME_OPTION_NUM 8
39
class GnomeCompatScreen :
40
public PrivateHandler<GnomeCompatScreen, CompScreen>
43
GnomeCompatScreen (CompScreen *s);
45
CompOption::Vector & getOptions ();
46
bool setOption (const char *name, CompOption::Value& value);
48
void panelAction (CompOption::Vector& options, Atom action);
51
Atom panelMainMenuAtom;
52
Atom panelRunDialogAtom;
54
CompOption::Vector opt;
57
#define GNOME_SCREEN(s) \
58
GnomeCompatScreen *gs = GnomeCompatScreen::get (s)
60
class GnomeCompatPluginVTable :
61
public CompPlugin::VTableForScreen<GnomeCompatScreen>
66
PLUGIN_OPTION_HELPER (GnomeCompatScreen);