![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Public Member Functions | |
| DtOpenTerrainWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtOpenTerrainWidget () |
| void | setupGui () |
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 |
Protected Slots | |
| virtual void | on_toolButtonClicked (bool checked) |
| virtual void | on_aboutToShow () |
Protected Slots inherited from makVrv::DtToolbarWidget | |
| virtual void | on_toolButtonStyleChanged (Qt::ToolButtonStyle val) |
| virtual void | on_toolButtonClicked (bool checked)=0 |
| virtual void | on_aboutToShow () |
Private Member Functions | |
| DtOpenTerrainWidget () | |
| DtOpenTerrainWidget (const DtOpenTerrainWidget &) | |
| DtOpenTerrainWidget & | operator= (const DtOpenTerrainWidget &) |
Additional Inherited Members | |
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("")) |
| virtual void | setWidgetsVisible (bool visible) |
Protected Attributes inherited from makVrv::DtToolbarWidget | |
| DtDe & | myDe |
| QToolButton * | myToolButton |
| QHBoxLayout * | myWidgetLayout |
| makVrv::DtOpenTerrainWidget::DtOpenTerrainWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
| [in] | de | is the display engine for this instance. |
| [in] | parent | is the parent widget for this instance. |
| [in] | f | is a set of window flags for this widget. |
|
virtual |
Virtual Destructor.
|
private |
Default CTOR.
|
private |
Copy CTOR.
|
private |
Copy operator.
| void makVrv::DtOpenTerrainWidget::setupGui | ( | ) |
Sets up the user interface.
|
protectedvirtualslot |
Slot when this widget's toolbutton has been clicked.
| checked | Whether 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. |
|
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()