VR-Forces 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 Attributes | Private Member Functions
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.

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

Public Member Functions

 DtModelScaleWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DtModelScaleWidget ()
 
virtual void setEnabled (bool b)
 
virtual void setValue (bool b)
 
virtual void setModelScaleFactor (int factor)
 
virtual void setMaxModelScaleFactor (int maxModelScaleFactor)
 
void setupGui ()
 
virtual void setWidgetsVisible (bool visible)
 
- Public Member Functions inherited from makVrv::DtToolbarWidget
 DtToolbarWidget (DtDe &de, QWidget *p=0, Qt::WindowFlags f=0)
 
virtual ~DtToolbarWidget ()
 
void setToolButtonChecked (bool checked)
 
bool isToolButtonChecked () const
 
void setToolButtonStyle (Qt::ToolButtonStyle style)
 
Qt::ToolButtonStyle toolButtonStyle () const
 
- Public Member Functions inherited from makVrv::DtModelScaleWidgetInterface
virtual ~DtModelScaleWidgetInterface ()
 

Protected Slots

virtual void on_modelScaleSliderChanged (int)
 
virtual void on_toolButtonClicked (bool checked)
 
- Protected Slots inherited from makVrv::DtToolbarWidget
virtual void on_toolButtonStyleChanged (Qt::ToolButtonStyle val)
 
virtual void on_toolButtonClicked (bool checked)=0
 
virtual void on_aboutToShow ()
 

Protected Member Functions

virtual void slot_activate (DtDe *subject)
 
virtual void slot_deactivate (DtDe *)
 
- Protected Member Functions inherited from makVrv::DtToolbarWidget
virtual void configureToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFilePath=QString(""))
 
virtual void configureThemedToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFileName=QString(""))
 

Protected Attributes

DtModelScaleWidgetLogicmyLogic
 
DtPopupToolbarButtonmySliderEnableButton
 
DtModelScaleSliderWidgetmySliderWidget
 
DtPopupToolbarmySliderToolBar
 
bool mySliderWidgetShown
 
- Protected Attributes inherited from makVrv::DtToolbarWidget
DtDemyDe
 
QToolButtonmyToolButton
 
QHBoxLayout * myWidgetLayout
 

Private Member Functions

 DtModelScaleWidget ()
 
 DtModelScaleWidget (const DtModelScaleWidget &)
 
DtModelScaleWidgetoperator= (const DtModelScaleWidget &)
 

Constructor & Destructor Documentation

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

Constructor.

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

Virtual Destructor.

makVrv::DtModelScaleWidget::DtModelScaleWidget ( )
private

Default CTOR.

Note
Not implemented ( force use of initializer ).
makVrv::DtModelScaleWidget::DtModelScaleWidget ( const DtModelScaleWidget )
private

Copy CTOR.

Note
Not implemented ( prevents copies ).

Member Function Documentation

DtModelScaleWidget& makVrv::DtModelScaleWidget::operator= ( const DtModelScaleWidget )
private

Copy operator.

Note
Not implemented ( prevents copies ).
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 ( )

Sets up the user interface. Called from constructor.

virtual void makVrv::DtModelScaleWidget::setWidgetsVisible ( bool  visible)
virtual

Called whenever the ToolButtonStyle has changed.

Parameters
visibleWhether or not any custom widgets are visible This function updates the visibility of mySliderEnableButton

Reimplemented from makVrv::DtToolbarWidget.

virtual void makVrv::DtModelScaleWidget::slot_activate ( DtDe subject)
protectedvirtual

For Display Engine subject observer.

virtual void makVrv::DtModelScaleWidget::slot_deactivate ( DtDe )
inlineprotectedvirtual

For Display Engine subject observer.

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

connected to the internal model scale slider toggle button

virtual void makVrv::DtModelScaleWidget::on_toolButtonClicked ( bool  checked)
protectedvirtualslot

Slot when this widget's toolbutton has been clicked.

Parameters
checkedWhether or not the QToolButton is checked or not

Member Data Documentation

DtModelScaleWidgetLogic* makVrv::DtModelScaleWidget::myLogic
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)