VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtModelScaleWidget Class Reference

DtModelScaleWidget is a toolbar widget that combines a button to enable and disable model scaling, and a drop-down button to bring up a slider for the model scale factor. More...

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

Public Member Functions

 DtModelScaleWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtModelScaleWidget ()
 Destructor.
virtual void setEnabled (bool b)
 Enable or disable the model scaling button.
virtual void setValue (bool b)
 Set the value of the model caling button (on/off)
virtual void setModelScaleFactor (int factor)
 Set the current model scale factor to be used by the scale factor slider.
virtual void setMaxModelScaleFactor (int maxModelScaleFactor)
 Sets the model scale slider's maximum value.
- Public Member Functions inherited from makVrv::DtModelScaleWidgetInterface
virtual ~DtModelScaleWidgetInterface ()
 Virtual DTOR.

Protected Slots

virtual void on_modelScaleToggleClicked ()
 connected to the internal model scale slider toggle button
virtual void on_modelScaleSliderChanged (int)

Protected Member Functions

void setupGui ()
 Sets up the user interface. Called from constructor.
virtual void slot_activate (DtDe *subject)
virtual void slot_deactivate (DtDe *)

Protected Attributes

DtDemyDe
DtModelScaleWidgetLogicmyLogic
QToolButtonmyModelScaleToolButton
DtPopupToolbarButtonmySliderEnableButton
DtModelScaleSliderWidgetmySliderWidget
DtPopupToolbarmySliderToolBar
bool mySliderWidgetShown

Detailed Description

DtModelScaleWidget is a toolbar widget that combines a button to enable and disable model scaling, and a drop-down button to bring up a slider for the model scale factor.

Constructor & Destructor Documentation

makVrv::DtModelScaleWidget::DtModelScaleWidget ( DtDe de,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

virtual makVrv::DtModelScaleWidget::~DtModelScaleWidget ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtModelScaleWidget::setEnabled ( bool  b)
virtual

Enable or disable the model scaling button.

If the scale slider is up, this will also bring that down

Implements makVrv::DtModelScaleWidgetInterface.

virtual void makVrv::DtModelScaleWidget::setValue ( bool  b)
virtual

Set the value of the model caling button (on/off)

Implements makVrv::DtModelScaleWidgetInterface.

virtual void makVrv::DtModelScaleWidget::setModelScaleFactor ( int  factor)
virtual

Set the current model scale factor to be used by the scale factor slider.

Implements makVrv::DtModelScaleWidgetInterface.

virtual void makVrv::DtModelScaleWidget::setMaxModelScaleFactor ( int  maxModelScaleFactor)
virtual

Sets the model scale slider's maximum value.

Implements makVrv::DtModelScaleWidgetInterface.

void makVrv::DtModelScaleWidget::setupGui ( )
protected

Sets up the user interface. Called from constructor.

virtual void makVrv::DtModelScaleWidget::slot_activate ( DtDe subject)
protectedvirtual
virtual void makVrv::DtModelScaleWidget::slot_deactivate ( DtDe )
inlineprotectedvirtual
virtual void makVrv::DtModelScaleWidget::on_modelScaleToggleClicked ( )
protectedvirtualslot

connected to the internal model scale slider toggle button

virtual void makVrv::DtModelScaleWidget::on_modelScaleSliderChanged ( int  )
protectedvirtualslot

Member Data Documentation

DtDe& makVrv::DtModelScaleWidget::myDe
protected
DtModelScaleWidgetLogic* makVrv::DtModelScaleWidget::myLogic
protected
QToolButton* makVrv::DtModelScaleWidget::myModelScaleToolButton
protected
DtPopupToolbarButton* makVrv::DtModelScaleWidget::mySliderEnableButton
protected
DtModelScaleSliderWidget* makVrv::DtModelScaleWidget::mySliderWidget
protected
DtPopupToolbar* makVrv::DtModelScaleWidget::mySliderToolBar
protected
bool makVrv::DtModelScaleWidget::mySliderWidgetShown
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)