- changing MaxInstructions to 100 for cthulhain (crazy nut) =:)
[bbkeys.git] / src / wminterface.hh
blob33c613784da26af631bfd5d2cfe55aaab16cf7cc
1 // wminterface.hh for bbtools.
2 //
3 // Copyright (c) 1998-1999 by John Kennis, jkennis@chello.nl
4 // Copyright (c) 2001 by Ben Jansens <xor@orodu.net>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 // (See the included file COPYING / GPL-2.0)
22 // $Id$
24 #ifndef __WMINTERFACE_HH
25 #define __WMINTERFACE_HH
27 #include "NETInterface.hh"
29 class ToolWindow;
30 struct WindowList;
32 class WMInterface : public NETInterface {
34 public:
35 WMInterface(ToolWindow *);
36 ~WMInterface(void);
37 void sendWindowToDesktop(Window,int);
38 void shadeWindow(Window);
39 void maximizeWindow(Window,bool,bool);
40 void decorateToggleWindow(Window);
41 void stickWindow(Window);
42 void setWindowFocus(Window);
43 int isIconicState(Window);
44 int getAttributes(Window);
45 void sendClientMessage(Atom, XID);
46 void changeDesktop(int,bool focusWin=True);
48 /* Atom getKWMModuleDesktopChange(void) { return kwm_module_desktop_change; }
49 Atom getKWMModuleDesktopNumberChange(void) {
50 return kwm_module_desktop_number_change; }
51 Atom getKWMModuleInit(void) { return kwm_module_init; }
52 Atom getKWMModuleWinAdd(void) { return kwm_module_win_add; }
53 Atom getKWMModuleWinRemove(void) { return kwm_module_win_remove; }
54 Atom getKWMModuleWinChange(void) { return kwm_module_win_change; }
55 Atom getKWMModuleWinActivate(void) { return kwm_module_win_activate; }
56 Atom getKWMModuleWinRaise(void) { return kwm_module_win_raise; }
57 Atom getKWMModuleWinLower(void) { return kwm_module_win_lower; }*/
58 protected:
59 virtual void NETNotifyStartup(void);
60 virtual void NETNotifyWindowAdd(Window,int);
61 virtual void NETNotifyDel(Window);
62 virtual void NETNotifyAttributes(Window);
63 virtual void NETNotifyFocus(Window);
64 virtual void NETNotifyCurrentWorkspace(int);
65 virtual void NETNotifyWorkspaceCount(int);
67 private:
68 ToolWindow *bbtool;
69 bool focusWindow;
70 /* Atom kwm_module_init;
71 Atom kwm_module_win_add;
72 Atom kwm_module_win_remove;
73 Atom kwm_module_win_change;
74 Atom kwm_module_win_activate;
75 Atom kwm_module_win_iconfied;
76 Atom kwm_module_win_raise;
77 Atom kwm_module_win_lower;
78 Atom kwm_module_desktop_change;
79 Atom kwm_module_desktop_number_change;*/
83 #endif /* __WMINTERFACE_HH */