VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtPopupToolbarButton Class Reference

The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar. More...

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

List of all members.

Public Member Functions

 DtPopupToolbarButton (DtPopupToolbar *toolbar, QWidget *parent)
 Constructs a toolbar button which will control the visibility of the provided toolbar.
virtual ~DtPopupToolbarButton ()
 Delete the button.
virtual void setIconWithArrow (const QIcon &icon)
 Sets the button to use an icon and an arrow next to it.
void showToolbar (bool show=true)
 Shows the toolbar and updates the state/display of the button.
void hideToolbar ()
 Hides the toolbar and updates the state/display of the button.

Protected Slots

void slot_onToggle (bool toggled)
void on_sliderToolBarShown ()
void on_sliderToolBarHidden ()

Protected Member Functions

virtual void changeEvent (QEvent *event)
void buttonEnableDisable (bool enabled)
void updateButtonIcon (bool checked)

Static Protected Member Functions

static QIcon makeWideIconWithArrow (const QIcon &baseIcon, bool downArrow, QToolButton *button)
 Utility function for creating an icon with an arrow next to it.

Protected Attributes

DtPopupToolbarmyToolbar
QIcon * myUpArrowIcon
QIcon * myDownArrowIcon

Detailed Description

The DtPopupToolbarButton class is a toolbar which controls the display of a toolbar.


Constructor & Destructor Documentation

Constructs a toolbar button which will control the visibility of the provided toolbar.

Delete the button.


Member Function Documentation

virtual void makVrv::DtPopupToolbarButton::setIconWithArrow ( const QIcon &  icon) [virtual]

Sets the button to use an icon and an arrow next to it.

Shows the toolbar and updates the state/display of the button.

Hides the toolbar and updates the state/display of the button.

virtual void makVrv::DtPopupToolbarButton::changeEvent ( QEvent *  event) [protected, virtual]
void makVrv::DtPopupToolbarButton::slot_onToggle ( bool  toggled) [protected, slot]
static QIcon makVrv::DtPopupToolbarButton::makeWideIconWithArrow ( const QIcon &  baseIcon,
bool  downArrow,
QToolButton button 
) [static, protected]

Utility function for creating an icon with an arrow next to it.


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)