added auto hide menu item for toolbar
This commit is contained in:
parent
87215715ef
commit
689d435c0f
1 changed files with 6 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Screen.cc,v 1.115 2003/02/23 00:56:09 fluxgen Exp $
|
// $Id: Screen.cc,v 1.116 2003/02/23 12:02:30 fluxgen Exp $
|
||||||
|
|
||||||
|
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
|
@ -528,8 +528,8 @@ BScreen::BScreen(ResourceManager &rm,
|
||||||
m_toolbar->setPlacement(*resource.toolbar_placement);
|
m_toolbar->setPlacement(*resource.toolbar_placement);
|
||||||
// setup toolbar width menu item
|
// setup toolbar width menu item
|
||||||
FbTk::MenuItem *toolbar_menuitem = new IntResMenuItem("Toolbar width percent",
|
FbTk::MenuItem *toolbar_menuitem = new IntResMenuItem("Toolbar width percent",
|
||||||
resource.toolbar_width_percent,
|
resource.toolbar_width_percent,
|
||||||
0, 100); // min/max value
|
0, 100); // min/max value
|
||||||
FbTk::RefCount<FbTk::Command> reconfig_toolbar(new FbTk::
|
FbTk::RefCount<FbTk::Command> reconfig_toolbar(new FbTk::
|
||||||
SimpleCommand<Toolbar>
|
SimpleCommand<Toolbar>
|
||||||
(*(m_toolbar.get()), &Toolbar::reconfigure));
|
(*(m_toolbar.get()), &Toolbar::reconfigure));
|
||||||
|
@ -545,6 +545,9 @@ BScreen::BScreen(ResourceManager &rm,
|
||||||
toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource);
|
toolbar_menuitem->setCommand(reconfig_toolbar_and_save_resource);
|
||||||
|
|
||||||
m_toolbar->menu().insert(toolbar_menuitem, 0);
|
m_toolbar->menu().insert(toolbar_menuitem, 0);
|
||||||
|
|
||||||
|
m_toolbar->menu().insert(new BoolMenuItem("Auto hide", *resource.toolbar_auto_hide, reconfig_toolbar), 0);
|
||||||
|
|
||||||
|
|
||||||
setupWorkspacemenu(*this, *workspacemenu);
|
setupWorkspacemenu(*this, *workspacemenu);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue