VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtToolbarItem Class Reference

An menu item for controlling toolbars. More...

Inheritance diagram for makVrv::DtToolbarItem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtToolbarItem (const std::string &dockName, DtToolbar *dockable)
 CTOR.
virtual ~DtToolbarItem ()
 DTOR.
virtual QActioncreateAction (DtDe &, QWidget *parent)
 Build a menu item (via an action).

Protected Member Functions

virtual void on_triggered ()
 Called when the menu item is clicked.
virtual void on_checkStateChanged (bool)
 Called when the menu item checkbox changes.
virtual bool eventFilter (QObject *obj, QEvent *event)
 Track show/hide events for toolbar to change check state of action.
virtual void slot_toolbarSet ()
 Called when the toolbar is set for the associated DtToolbar.

Protected Attributes

DtToolbarmyToolbar
QActionmyAction

Detailed Description

An menu item for controlling toolbars.

This allows toolbars to be shown and hidden via a menu item. DtToolbarItem's are automatically registered when a toolbar is created by the DtToolbarBuilder.


Constructor & Destructor Documentation

makVrv::DtToolbarItem::DtToolbarItem ( const std::string &  dockName,
DtToolbar dockable 
)

CTOR.

DTOR.


Member Function Documentation

virtual QAction* makVrv::DtToolbarItem::createAction ( DtDe ,
QWidget parent 
) [virtual]

Build a menu item (via an action).

Implements makVrv::DtMenuItem.

virtual void makVrv::DtToolbarItem::on_triggered ( ) [protected, virtual]

Called when the menu item is clicked.

Reimplemented from makVrv::DtMenuItem.

virtual void makVrv::DtToolbarItem::on_checkStateChanged ( bool  ) [protected, virtual]

Called when the menu item checkbox changes.

Reimplemented from makVrv::DtMenuItem.

virtual bool makVrv::DtToolbarItem::eventFilter ( QObject obj,
QEvent *  event 
) [protected, virtual]

Track show/hide events for toolbar to change check state of action.

virtual void makVrv::DtToolbarItem::slot_toolbarSet ( ) [protected, virtual]

Called when the toolbar is set for the associated DtToolbar.

Do not need to call directly and will only be called once


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)