diff options
author | rathnor <rathnor> | 2004-08-25 17:16:40 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-08-25 17:16:40 (GMT) |
commit | 5337fc6640efbe911682568b6281850fd322e4bb (patch) | |
tree | b2a722b45550cee7dc612b113ddebd9395841ab7 /src/ToolbarItem.hh | |
parent | f32969d4e5a18bddd426b481824eb50902cba5de (diff) | |
download | fluxbox_pavel-5337fc6640efbe911682568b6281850fd322e4bb.zip fluxbox_pavel-5337fc6640efbe911682568b6281850fd322e4bb.tar.bz2 |
fix up theming of the toolbar
Diffstat (limited to 'src/ToolbarItem.hh')
-rw-r--r-- | src/ToolbarItem.hh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh index 78f1f12..20cfd0c 100644 --- a/src/ToolbarItem.hh +++ b/src/ToolbarItem.hh | |||
@@ -20,20 +20,21 @@ | |||
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: ToolbarItem.hh,v 1.4 2004/06/20 10:29:51 rathnor Exp $ | 23 | // $Id: ToolbarItem.hh,v 1.5 2004/08/25 17:16:40 rathnor Exp $ |
24 | 24 | ||
25 | #ifndef TOOLBARITEM_HH | 25 | #ifndef TOOLBARITEM_HH |
26 | #define TOOLBARITEM_HH | 26 | #define TOOLBARITEM_HH |
27 | 27 | ||
28 | #include "FbTk/Subject.hh" | 28 | #include "FbTk/Subject.hh" |
29 | 29 | ||
30 | /// An item in the toolbar that has either fixed or realive size to the toolbar | 30 | /// An item in the toolbar that has either fixed or relative size to the toolbar |
31 | class ToolbarItem { | 31 | class ToolbarItem { |
32 | public: | 32 | public: |
33 | /// size type in the toolbar | 33 | /// size type in the toolbar |
34 | enum Type { | 34 | enum Type { |
35 | FIXED, ///< the size can not be changed | 35 | FIXED, ///< the size can not be changed |
36 | RELATIVE ///< the size can be changed | 36 | RELATIVE, ///< the size can be changed |
37 | SQUARE ///< the size is fixed relative to the parent, and in both dimensions | ||
37 | }; | 38 | }; |
38 | 39 | ||
39 | explicit ToolbarItem(Type type); | 40 | explicit ToolbarItem(Type type); |
@@ -52,6 +53,10 @@ public: | |||
52 | // some items might be there, but effectively empty, so shouldn't appear | 53 | // some items might be there, but effectively empty, so shouldn't appear |
53 | virtual bool active() { return true; } | 54 | virtual bool active() { return true; } |
54 | 55 | ||
56 | // Tools should NOT listen to theme changes - they'll get notified by | ||
57 | // the toolbar instead. Otherwise there are ordering problems. | ||
58 | virtual void renderTheme() = 0; | ||
59 | |||
55 | FbTk::Subject &resizeSig() { return m_resize_sig; } | 60 | FbTk::Subject &resizeSig() { return m_resize_sig; } |
56 | 61 | ||
57 | void setType(Type type) { m_type = type; } | 62 | void setType(Type type) { m_type = type; } |