diff options
Diffstat (limited to 'src/IconbarTool.hh')
-rw-r--r-- | src/IconbarTool.hh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh index 6711324..31c6f24 100644 --- a/src/IconbarTool.hh +++ b/src/IconbarTool.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: IconbarTool.hh,v 1.1 2003/08/11 15:42:29 fluxgen Exp $ | 23 | // $Id: IconbarTool.hh,v 1.2 2003/08/12 00:18:43 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef ICONBARTOOL_HH | 25 | #ifndef ICONBARTOOL_HH |
26 | #define ICONBARTOOL_HH | 26 | #define ICONBARTOOL_HH |
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #include "FbTk/Observer.hh" | 31 | #include "FbTk/Observer.hh" |
32 | 32 | ||
33 | #include <map> | 33 | #include <list> |
34 | 34 | ||
35 | #include <X11/Xlib.h> | 35 | #include <X11/Xlib.h> |
36 | 36 | ||
@@ -42,6 +42,8 @@ class FluxboxWindow; | |||
42 | class IconbarTool: public ToolbarItem, public FbTk::Observer { | 42 | class IconbarTool: public ToolbarItem, public FbTk::Observer { |
43 | public: | 43 | public: |
44 | IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScreen &screen); | 44 | IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScreen &screen); |
45 | ~IconbarTool(); | ||
46 | |||
45 | void move(int x, int y); | 47 | void move(int x, int y); |
46 | void resize(unsigned int width, unsigned int height); | 48 | void resize(unsigned int width, unsigned int height); |
47 | void moveResize(int x, int y, | 49 | void moveResize(int x, int y, |
@@ -59,10 +61,12 @@ private: | |||
59 | BScreen &m_screen; | 61 | BScreen &m_screen; |
60 | Container m_icon_container; | 62 | Container m_icon_container; |
61 | const IconbarTheme &m_theme; | 63 | const IconbarTheme &m_theme; |
64 | // cached pixmaps | ||
62 | Pixmap m_focused_pm, m_unfocused_pm; | 65 | Pixmap m_focused_pm, m_unfocused_pm; |
66 | Pixmap m_empty_pm; ///< pixmap for empty container | ||
63 | 67 | ||
64 | typedef std::map<FluxboxWindow *, IconButton *> Icon2WinMap; | 68 | typedef std::list<IconButton *> IconList; |
65 | Icon2WinMap m_icon2winmap; | 69 | IconList m_icon_list; |
66 | }; | 70 | }; |
67 | 71 | ||
68 | #endif // ICONBARTOOL_HH | 72 | #endif // ICONBARTOOL_HH |