VR-Forces 4.10 Class Documentation
 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. More...

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

Public Member Functions

 DtModelScaleWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual ~DtModelScaleWidget ()
 Virtual Destructor. More...
 
virtual void setEnabled (bool b)
 Enable or disable the model scaling button. More...
 
virtual void setValue (bool b)
 Set the value of the model caling button (on/off) More...
 
virtual void setModelScaleFactor (int factor)
 Set the current model scale factor to be used by the scale factor slider. More...
 
virtual void setMaxModelScaleFactor (int maxModelScaleFactor)
 Sets the model scale slider's maximum value. More...
 
void setupGui ()
 Sets up the user interface. Called from constructor. More...
 
virtual void setWidgetsVisible (bool visible)
 Called whenever the ToolButtonStyle has changed. More...
 
- Public Member Functions inherited from makVrv::DtToolbarWidget
 DtToolbarWidget (QWidget *p=0, Qt::WindowFlags f=0)
 CTOR The parent widget should be a QToolBar so that we can connect to its toolButtonStyleChanged(Qt::ToolButtonStyle) signal. More...
 
virtual ~DtToolbarWidget ()
 DTOR. More...
 
void setToolButtonChecked (bool checked)
 Set/Get whether or not the tool button is checked. More...
 
bool isToolButtonChecked () const
 
void setToolButtonStyle (Qt::ToolButtonStyle style)
 Set/Get the current toolbutton style If myToolButton is uninitialized, the getter defaults to returning Qt::ToolButtonFollowStyle. More...
 
Qt::ToolButtonStyle toolButtonStyle () const
 
- Public Member Functions inherited from makVrv::DtModelScaleWidgetInterface
virtual ~DtModelScaleWidgetInterface ()
 Virtual DTOR. More...
 

Protected Slots

virtual void on_modelScaleSliderChanged (int)
 connected to the internal model scale slider toggle button More...
 
virtual void on_toolButtonClicked (bool checked)
 Slot when this widget's toolbutton has been clicked. More...
 
- Protected Slots inherited from makVrv::DtToolbarWidget
virtual void on_toolButtonStyleChanged (Qt::ToolButtonStyle val)
 Updates widget to match the new ToolButtonStyle. More...
 
virtual void on_toolButtonClicked (bool checked)=0
 Slot when this widget's toolbutton has been clicked. More...
 
virtual void on_aboutToShow ()
 Slot for when the menu for this widget is about to be shown The slot is only used if this toolbar widget is configured to have a menu. More...
 

Protected Member Functions

virtual void slot_activate (DtDe *subject)
 For Display Engine subject observer. More...
 
virtual void slot_deactivate (DtDe *)
 
- Protected Member Functions inherited from makVrv::DtToolbarWidget
virtual void configureToolButton (const QString &text, const QString &tooltip, const QString &iconPath, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup)
 Configure the QToolButton for this toolbar widget. More...
 

Protected Attributes

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

Private Member Functions

 DtModelScaleWidget ()
 Default CTOR. More...
 
 DtModelScaleWidget (const DtModelScaleWidget &)
 Copy CTOR. More...
 
DtModelScaleWidgetoperator= (const DtModelScaleWidget &)
 Copy operator. More...
 

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

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
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

DtDe& makVrv::DtModelScaleWidget::myDe
protected
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 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)