aboutsummaryrefslogtreecommitdiff
path: root/src/IconBar.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconBar.hh')
-rw-r--r--src/IconBar.hh27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/IconBar.hh b/src/IconBar.hh
index f6b7509..7a8792b 100644
--- a/src/IconBar.hh
+++ b/src/IconBar.hh
@@ -1,5 +1,5 @@
1// IconBar.hh 1// IconBar.hh for Fluxbox Window Manager
2// Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org) 2// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
3// 3//
4// Permission is hereby granted, free of charge, to any person obtaining a 4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"), 5// copy of this software and associated documentation files (the "Software"),
@@ -18,6 +18,9 @@
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21
22// $Id: IconBar.hh,v 1.4 2002/01/09 14:11:20 fluxgen Exp $
23
21#ifndef _ICONBAR_HH_ 24#ifndef _ICONBAR_HH_
22#define _ICONBAR_HH_ 25#define _ICONBAR_HH_
23 26
@@ -25,8 +28,6 @@
25#include "Window.hh" 28#include "Window.hh"
26#include "LinkedList.hh" 29#include "LinkedList.hh"
27 30
28class Fluxbox;
29
30class IconBarObj 31class IconBarObj
31{ 32{
32public: 33public:
@@ -34,31 +35,35 @@ public:
34 ~IconBarObj(); 35 ~IconBarObj();
35 inline Window getIconWin(void) { return m_iconwin; } 36 inline Window getIconWin(void) { return m_iconwin; }
36 inline FluxboxWindow *getFluxboxWin(void) { return m_fluxboxwin; } 37 inline FluxboxWindow *getFluxboxWin(void) { return m_fluxboxwin; }
38 unsigned int getWidth(void);
37private: 39private:
38 Window m_iconwin;
39 FluxboxWindow *m_fluxboxwin; 40 FluxboxWindow *m_fluxboxwin;
41 Window m_iconwin;
40}; 42};
41 43
42typedef LinkedList<IconBarObj> IconList;
43typedef LinkedListIterator<IconBarObj> IconListIterator;
44
45class IconBar 44class IconBar
46{ 45{
47public: 46public:
48 IconBar(BScreen *scrn, Window parent); 47 IconBar(BScreen *scrn, Window parent);
49 ~IconBar(); 48 ~IconBar();
50 void draw(); 49 void draw(); //TODO
51 void reconfigure(); 50 void reconfigure();
52 Window addIcon(FluxboxWindow *fluxboxwin); 51 Window addIcon(FluxboxWindow *fluxboxwin);
53 Window delIcon(FluxboxWindow *fluxboxwin); 52 Window delIcon(FluxboxWindow *fluxboxwin);
54 void buttonPressEvent(XButtonEvent *be); 53 void buttonPressEvent(XButtonEvent *be);
55 FluxboxWindow *findWindow(Window w); 54 FluxboxWindow *findWindow(Window w);
55 IconBarObj *findIcon(FluxboxWindow *fluxboxwin);
56 void exposeEvent(XExposeEvent *ee); 56 void exposeEvent(XExposeEvent *ee);
57private: 57
58 void draw(IconBarObj *obj, int width); 58 void draw(IconBarObj *obj, int width);
59private:
60 typedef LinkedList<IconBarObj> IconList;
61 typedef LinkedListIterator<IconBarObj> IconListIterator;
62
63// void draw(IconBarObj *obj, int width);
59 void loadTheme(unsigned int width, unsigned int height); 64 void loadTheme(unsigned int width, unsigned int height);
60 void decorate(Window win); 65 void decorate(Window win);
61 IconBarObj *findIcon(FluxboxWindow *fluxboxwin); 66// IconBarObj *findIcon(FluxboxWindow *fluxboxwin);
62 void repositionIcons(void); 67 void repositionIcons(void);
63 Window createIconWindow(FluxboxWindow *fluxboxwin, Window parent); 68 Window createIconWindow(FluxboxWindow *fluxboxwin, Window parent);
64 BScreen *m_screen; 69 BScreen *m_screen;