diff options
author | unknown <unknown> | 2002-01-11 11:59:54 (GMT) |
---|---|---|
committer | unknown <unknown> | 2002-01-11 11:59:54 (GMT) |
commit | 61661d638e34b3ce6c986d5a53b8c08c1051d422 (patch) | |
tree | f0b87676e95070afee163f76902efd0c4d5b5fe6 /src/IconBar.hh | |
parent | f98c3c9045397bd9497621deb55b310366f8a5de (diff) | |
parent | a3d2a1cf0a5ab724e19a91915fe97842f52260d5 (diff) | |
download | fluxbox-c325ffaa4e094163340f957e87463c8a526b4d5b.zip fluxbox-c325ffaa4e094163340f957e87463c8a526b4d5b.tar.bz2 |
This commit was manufactured by cvs2svn to create tagRelease-0_1_6
'Release-0_1_6'.
Diffstat (limited to 'src/IconBar.hh')
-rw-r--r-- | src/IconBar.hh | 27 |
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 | ||
28 | class Fluxbox; | ||
29 | |||
30 | class IconBarObj | 31 | class IconBarObj |
31 | { | 32 | { |
32 | public: | 33 | public: |
@@ -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); | ||
37 | private: | 39 | private: |
38 | Window m_iconwin; | ||
39 | FluxboxWindow *m_fluxboxwin; | 40 | FluxboxWindow *m_fluxboxwin; |
41 | Window m_iconwin; | ||
40 | }; | 42 | }; |
41 | 43 | ||
42 | typedef LinkedList<IconBarObj> IconList; | ||
43 | typedef LinkedListIterator<IconBarObj> IconListIterator; | ||
44 | |||
45 | class IconBar | 44 | class IconBar |
46 | { | 45 | { |
47 | public: | 46 | public: |
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); |
57 | private: | 57 | |
58 | void draw(IconBarObj *obj, int width); | 58 | void draw(IconBarObj *obj, int width); |
59 | private: | ||
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; |