VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

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

Public Member Functions

 DtPopupToolbarButton (DtPopupToolbar *toolbar, QWidget *parent)
 
virtual ~DtPopupToolbarButton ()
 
virtual void setIconWithArrow (const QIcon &icon)
 
void showToolbar (bool show=true)
 
void hideToolbar ()
 

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)
 
void movePopupToolbar ()
 

Static Protected Member Functions

static QIcon makeWideIconWithArrow (const QIcon &baseIcon, bool downArrow, QToolButton *button)
 

Protected Attributes

DtPopupToolbarmyToolbar
 
QIcon * myUpArrowIcon
 
QIcon * myDownArrowIcon
 

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::movePopupToolbar ( )
protected

move the popup toolbar to be directly below the button. checks it against the screen geometry to make sure it doesn't overlap the edge

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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)