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::DtOpenTerrainWidget Class Reference

DtOpenTerrainWidget is a toolbar widget that combines a button to open a new terrain with a drop-down button to bring up a list of recently used terrains the user can load. More...

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

Public Member Functions

 DtOpenTerrainWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual ~DtOpenTerrainWidget ()
 Virtual Destructor. More...
 
void setupGui ()
 Sets up the user interface. 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
 

Protected Slots

virtual void on_toolButtonClicked (bool checked)
 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 This slot populates the menu with all recently used terrains using DtVrvApplication::getRecentTerrains() 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 Attributes

DtDemyDe
 
- Protected Attributes inherited from makVrv::DtToolbarWidget
QToolButtonmyToolButton
 
QHBoxLayout * myWidgetLayout
 

Private Member Functions

 DtOpenTerrainWidget ()
 Default CTOR. More...
 
 DtOpenTerrainWidget (const DtOpenTerrainWidget &)
 Copy CTOR. More...
 
DtOpenTerrainWidgetoperator= (const DtOpenTerrainWidget &)
 Copy operator. More...
 

Additional Inherited Members

- 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...
 
virtual void setWidgetsVisible (bool visible)
 Called whenever the ToolButtonStyle has changed. More...
 

Detailed Description

DtOpenTerrainWidget is a toolbar widget that combines a button to open a new terrain with a drop-down button to bring up a list of recently used terrains the user can load.

Constructor & Destructor Documentation

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

Constructor.

Parameters
[in]deis the display engine for this instance.
[in]parentis the parent widget for this instance.
[in]fis a set of window flags for this widget.
virtual makVrv::DtOpenTerrainWidget::~DtOpenTerrainWidget ( )
virtual

Virtual Destructor.

makVrv::DtOpenTerrainWidget::DtOpenTerrainWidget ( )
private

Default CTOR.

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

Copy CTOR.

Note
Not implemented ( prevents copies ).

Member Function Documentation

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

Copy operator.

Note
Not implemented ( prevents copies ).
void makVrv::DtOpenTerrainWidget::setupGui ( )

Sets up the user interface.

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

Slot when this widget's toolbutton has been clicked.

Parameters
checkedWhether or not the QToolButton is checked or not This slot brings up a dialog that prompts the user for a filepath of the terrain to be loaded and then loads the specified terrain.
virtual void makVrv::DtOpenTerrainWidget::on_aboutToShow ( )
protectedvirtualslot

Slot for when the menu for this widget is about to be shown This slot populates the menu with all recently used terrains using DtVrvApplication::getRecentTerrains()

Member Data Documentation

DtDe& makVrv::DtOpenTerrainWidget::myDe
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)