diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-27 21:55:24 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-27 21:55:24 (GMT) |
commit | b5c354b994bc06667abe35e2d528c0f025703c4e (patch) | |
tree | 081fd3207053a06cb50931ccec3237bc614f10eb /src/Toolbar.cc | |
parent | 1f5cd12facc662de240b36bf3c5c14f40adf391b (diff) | |
download | fluxbox-b5c354b994bc06667abe35e2d528c0f025703c4e.zip fluxbox-b5c354b994bc06667abe35e2d528c0f025703c4e.tar.bz2 |
architecture astronomy
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 2e3afd5..0b52702 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -36,8 +36,6 @@ | |||
36 | #include "Keys.hh" | 36 | #include "Keys.hh" |
37 | #include "Screen.hh" | 37 | #include "Screen.hh" |
38 | #include "WindowCmd.hh" | 38 | #include "WindowCmd.hh" |
39 | #include "IntResMenuItem.hh" | ||
40 | #include "BoolMenuItem.hh" | ||
41 | 39 | ||
42 | #ifdef XINERAMA | 40 | #ifdef XINERAMA |
43 | #include "Xinerama.hh" | 41 | #include "Xinerama.hh" |
@@ -54,6 +52,8 @@ | |||
54 | #include "FbTk/SimpleCommand.hh" | 52 | #include "FbTk/SimpleCommand.hh" |
55 | #include "FbTk/StringUtil.hh" | 53 | #include "FbTk/StringUtil.hh" |
56 | #include "FbTk/Transparent.hh" | 54 | #include "FbTk/Transparent.hh" |
55 | #include "FbTk/BoolMenuItem.hh" | ||
56 | #include "FbTk/IntMenuItem.hh" | ||
57 | 57 | ||
58 | 58 | ||
59 | // use GNU extensions | 59 | // use GNU extensions |
@@ -835,17 +835,17 @@ void Toolbar::setupMenus(bool skip_new_placement) { | |||
835 | visible_macro->add(reconfig_toolbar); | 835 | visible_macro->add(reconfig_toolbar); |
836 | visible_macro->add(save_resources); | 836 | visible_macro->add(save_resources); |
837 | RefCommand toggle_visible_cmd(visible_macro); | 837 | RefCommand toggle_visible_cmd(visible_macro); |
838 | menu().insert(new BoolMenuItem(_FB_XTEXT(Common, Visible, | 838 | menu().insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, Visible, |
839 | "Visible", "Whether this item is visible"), | 839 | "Visible", "Whether this item is visible"), |
840 | *m_rc_visible, toggle_visible_cmd)); | 840 | m_rc_visible, toggle_visible_cmd)); |
841 | 841 | ||
842 | menu().insert(new BoolMenuItem(_FB_XTEXT(Common, AutoHide, | 842 | menu().insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, AutoHide, |
843 | "Auto hide", "Toggle auto hide of toolbar"), | 843 | "Auto hide", "Toggle auto hide of toolbar"), |
844 | *m_rc_auto_hide, | 844 | m_rc_auto_hide, |
845 | reconfig_toolbar_and_save_resource)); | 845 | reconfig_toolbar_and_save_resource)); |
846 | 846 | ||
847 | MenuItem *toolbar_menuitem = | 847 | MenuItem *toolbar_menuitem = |
848 | new IntResMenuItem< FbTk::Resource<int> >(_FB_XTEXT(Toolbar, WidthPercent, | 848 | new FbTk::IntMenuItem(_FB_XTEXT(Toolbar, WidthPercent, |
849 | "Toolbar width percent", | 849 | "Toolbar width percent", |
850 | "Percentage of screen width taken by toolbar"), | 850 | "Percentage of screen width taken by toolbar"), |
851 | m_rc_width_percent, | 851 | m_rc_width_percent, |
@@ -855,10 +855,10 @@ void Toolbar::setupMenus(bool skip_new_placement) { | |||
855 | toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); | 855 | toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource); |
856 | menu().insert(toolbar_menuitem); | 856 | menu().insert(toolbar_menuitem); |
857 | 857 | ||
858 | menu().insert(new BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, | 858 | menu().insert(new FbTk::BoolMenuItem(_FB_XTEXT(Common, MaximizeOver, |
859 | "Maximize Over", | 859 | "Maximize Over", |
860 | "Maximize over this thing when maximizing"), | 860 | "Maximize over this thing when maximizing"), |
861 | *m_rc_maximize_over, | 861 | m_rc_maximize_over, |
862 | reconfig_toolbar_and_save_resource)); | 862 | reconfig_toolbar_and_save_resource)); |
863 | menu().insert(_FB_XTEXT(Menu, Layer, "Layer...", "Title of Layer menu"), &layerMenu()); | 863 | menu().insert(_FB_XTEXT(Menu, Layer, "Layer...", "Title of Layer menu"), &layerMenu()); |
864 | #ifdef XINERAMA | 864 | #ifdef XINERAMA |
@@ -922,7 +922,7 @@ void Toolbar::setupMenus(bool skip_new_placement) { | |||
922 | 922 | ||
923 | // this saves resources and clears the slit window to update alpha value | 923 | // this saves resources and clears the slit window to update alpha value |
924 | FbTk::MenuItem *alpha_menuitem = | 924 | FbTk::MenuItem *alpha_menuitem = |
925 | new IntResMenuItem< FbTk::Resource<int> >(_FB_XTEXT(Common, Alpha, "Alpha", "Transparency level"), | 925 | new FbTk::IntMenuItem(_FB_XTEXT(Common, Alpha, "Alpha", "Transparency level"), |
926 | m_rc_alpha, | 926 | m_rc_alpha, |
927 | 0, 255, menu()); | 927 | 0, 255, menu()); |
928 | // setup command for alpha value | 928 | // setup command for alpha value |