aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-03-03 21:51:13 (GMT)
committerrathnor <rathnor>2003-03-03 21:51:13 (GMT)
commit19875e5a5ba474387971ede597cdc4aa7454d4c0 (patch)
tree99d672abcffa86d74734deacbd888eccde02ffd2 /src/Toolbar.hh
parent824fd0db7a4b8117fecba9bb46053bdd38691803 (diff)
downloadfluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.zip
fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.tar.bz2
Add code for toolbar modes
Diffstat (limited to 'src/Toolbar.hh')
-rw-r--r--src/Toolbar.hh14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Toolbar.hh b/src/Toolbar.hh
index 2b9668d..9ed481b 100644
--- a/src/Toolbar.hh
+++ b/src/Toolbar.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Toolbar.hh,v 1.25 2003/02/23 00:50:02 fluxgen Exp $ 25// $Id: Toolbar.hh,v 1.26 2003/03/03 21:51:08 rathnor Exp $
26 26
27#ifndef TOOLBAR_HH 27#ifndef TOOLBAR_HH
28#define TOOLBAR_HH 28#define TOOLBAR_HH
@@ -63,7 +63,7 @@ public:
63 }; 63 };
64 64
65 /// create a toolbar on the screen with specific width 65 /// create a toolbar on the screen with specific width
66 explicit Toolbar(BScreen &screen, FbTk::XLayer &layer, size_t width = 200); 66 explicit Toolbar(BScreen &screen, FbTk::XLayer &layer, FbTk::Menu &menu, size_t width = 200);
67 /// destructor 67 /// destructor
68 virtual ~Toolbar(); 68 virtual ~Toolbar();
69 69
@@ -71,7 +71,13 @@ public:
71 void addIcon(FluxboxWindow *w); 71 void addIcon(FluxboxWindow *w);
72 /// remove icon from iconbar 72 /// remove icon from iconbar
73 void delIcon(FluxboxWindow *w); 73 void delIcon(FluxboxWindow *w);
74 74 /// remove all icons
75 void delAllIcons();
76 bool containsIcon(FluxboxWindow &win);
77
78 void enableIconBar();
79 void disableIconBar();
80
75 inline const FbTk::Menu &menu() const { return m_toolbarmenu; } 81 inline const FbTk::Menu &menu() const { return m_toolbarmenu; }
76 inline FbTk::Menu &menu() { return m_toolbarmenu; } 82 inline FbTk::Menu &menu() { return m_toolbarmenu; }
77 inline FbTk::Menu &placementMenu() { return m_placementmenu; } 83 inline FbTk::Menu &placementMenu() { return m_placementmenu; }
@@ -160,7 +166,7 @@ private:
160 FbTk::ImageControl &image_ctrl; 166 FbTk::ImageControl &image_ctrl;
161 FbTk::Timer clock_timer; ///< timer to update clock 167 FbTk::Timer clock_timer; ///< timer to update clock
162 FbTk::Timer hide_timer; ///< timer to for auto hide toolbar 168 FbTk::Timer hide_timer; ///< timer to for auto hide toolbar
163 FbTk::Menu m_toolbarmenu; 169 FbTk::Menu &m_toolbarmenu;
164 FbTk::Menu m_placementmenu; 170 FbTk::Menu m_placementmenu;
165 LayerMenu<Toolbar> m_layermenu; 171 LayerMenu<Toolbar> m_layermenu;
166 std::auto_ptr<IconBar> m_iconbar; 172 std::auto_ptr<IconBar> m_iconbar;