VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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

makVrv::DtPopupToolbarButton::DtPopupToolbarButton ( DtPopupToolbar toolbar,
QWidget parent 
)
explicit

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

virtual makVrv::DtPopupToolbarButton::~DtPopupToolbarButton ( )
virtual

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.

void makVrv::DtPopupToolbarButton::showToolbar ( bool  show = true)

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

void makVrv::DtPopupToolbarButton::hideToolbar ( )

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

virtual void makVrv::DtPopupToolbarButton::changeEvent ( QEvent *  event)
protectedvirtual
void makVrv::DtPopupToolbarButton::buttonEnableDisable ( bool  enabled)
protected
void makVrv::DtPopupToolbarButton::updateButtonIcon ( bool  checked)
protected
void makVrv::DtPopupToolbarButton::slot_onToggle ( bool  toggled)
protectedslot
void makVrv::DtPopupToolbarButton::on_sliderToolBarShown ( )
protectedslot
void makVrv::DtPopupToolbarButton::on_sliderToolBarHidden ( )
protectedslot
static QIcon makVrv::DtPopupToolbarButton::makeWideIconWithArrow ( const QIcon &  baseIcon,
bool  downArrow,
QToolButton button 
)
staticprotected

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

Member Data Documentation

DtPopupToolbar* makVrv::DtPopupToolbarButton::myToolbar
protected
QIcon* makVrv::DtPopupToolbarButton::myUpArrowIcon
protected
QIcon* makVrv::DtPopupToolbarButton::myDownArrowIcon
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)