news download themes documentation links










AtomHandler.hh

00001 // AtomHandler for fluxbox
00002 // Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
00003 //                    2003 Simon Bowden    (rathnor at users.sourceforge.net)
00004 // Permission is hereby granted, free of charge, to any person obtaining a
00005 // copy of this software and associated documentation files (the "Software"),
00006 // to deal in the Software without restriction, including without limitation
00007 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00008 // and/or sell copies of the Software, and to permit persons to whom the
00009 // Software is furnished to do so, subject to the following conditions:
00010 //
00011 // The above copyright notice and this permission notice shall be included in
00012 // all copies or substantial portions of the Software.
00013 //
00014 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00015 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00016 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00017 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00018 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00019 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00020 // DEALINGS IN THE SOFTWARE.
00021 
00022 // $Id: AtomHandler.hh,v 1.13 2004/01/09 02:06:55 fluxgen Exp $
00023 
00024 #ifndef ATOMHANDLER_HH
00025 #define ATOMHANDLER_HH
00026 
00027 #include <X11/Xlib.h>
00028 
00029 class FluxboxWindow;
00030 class WinClient;
00031 class BScreen;
00032 
00033 class AtomHandler {
00034 public:
00035 
00036     virtual ~AtomHandler() { }
00037 
00038     virtual void initForScreen(BScreen &screen) = 0;
00039     virtual void setupFrame(FluxboxWindow &win) = 0;
00040     virtual void setupClient(WinClient &winclient) = 0;
00041 
00042     virtual void updateClientList(BScreen &screen) = 0;
00043     virtual void updateWorkspaceNames(BScreen &screen) = 0;
00044     virtual void updateCurrentWorkspace(BScreen &screen) = 0;
00045     virtual void updateWorkspaceCount(BScreen &screen) = 0;
00046 
00047     virtual void updateFrameClose(FluxboxWindow &win) = 0;
00048     virtual void updateClientClose(WinClient &winclient) = 0;
00049     virtual void updateWorkspace(FluxboxWindow &win) = 0;
00050     virtual void updateState(FluxboxWindow &win) = 0;
00051     virtual void updateHints(FluxboxWindow &win) = 0;
00052     virtual void updateLayer(FluxboxWindow &win) = 0;
00053 
00054     virtual bool checkClientMessage(const XClientMessageEvent &ce, 
00055                                     BScreen * screen, WinClient * const winclient) = 0;
00056 
00057     virtual bool propertyNotify(WinClient &winclient, Atom the_property) = 0;
00058 
00060     bool update() const { return m_update; }
00061 protected:
00062     AtomHandler():m_update(true) { }
00063 
00064     void disableUpdate() { m_update = false; }
00065     void enableUpdate() { m_update = true; }    
00066 private:
00067     bool m_update; 
00068 };
00069 
00070 #endif // ATOMHANDLER_HH

Fluxbox CVS-Jan-2003




      



Got comments about the page? Send them to webmaster.
If you have general Fluxbox related questions ask them on our irc channel or mailing lists.

Show Source








Designed by aLEczapKA