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 | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtScenarioDescriptionDialog Class Reference

Will show a dialog that will request the scenario description. Depending on the mode will allow the user to edit or simply read the description.

Inheritance diagram for makVrf::DtScenarioDescriptionDialog:
Inheritance graph
[legend]

Public Member Functions

 DtScenarioDescriptionDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=Qt::Tool, bool doNotDisplayIfNoDescription=false)
 
virtual ~DtScenarioDescriptionDialog () override
 
virtual void setDisplayOnly (bool)
 
virtual void setShowNeverShowAgain (bool)
 
virtual void closeEvent (QCloseEvent *) override
 
virtual void setupGui ()
 
virtual bool neverShowAgain () const
 
virtual void setUpdateScenarioDescriptionFromThisDialog (bool)
 
bool updateScenarioDescriptionFromThisDialog () const
 
virtual void setScenarioInformation (const DtIfScenarioDescriptionMessage *)
 
virtual void setHideCancel (bool)
 
virtual void setDisplayChangeWarningIcon (DtScenarioInformationWidget::DisplayElement, bool)
 
virtual void setShowScreenElement (DtScenarioInformationWidget::DisplayElement, bool)
 
virtual void setEnableScreenElement (DtScenarioInformationWidget::DisplayElement, bool)
 
virtual void setCanSelectTerrain (bool)
 
const DtScenario & scenario () const
 

Public Attributes

boost::signals2::signal< void()> signal_closed
 
boost::signals2::signal< void(DtScenario &)> signal_scenarioInformationAboutToBeSet
 
QCheckBox * myNeverShowAgain
 
QPushButton * myOK
 
QPushButton * myCancel
 
DtScenarioPreviewWidget * myScenarioInformation
 

Protected Member Functions

virtual void scenarioDescriptionCallback (DtSimMessage *)
 
virtual void accept () override
 

Protected Attributes

DtScenario myScenario
 
makVrv::DtDe & myDe
 
bool myIsEditable
 
bool myDoNotDisplayIfNoDescription
 
bool myUpdateScenarioDescriptionFromThisDialog
 

Constructor & Destructor Documentation

makVrf::DtScenarioDescriptionDialog::DtScenarioDescriptionDialog ( makVrv::DtDe &  de,
QWidget *  parent,
const Qt::WindowFlags &  flags = Qt::Tool,
bool  doNotDisplayIfNoDescription = false 
)

returned, this dialog will be closed and deleted

virtual makVrf::DtScenarioDescriptionDialog::~DtScenarioDescriptionDialog ( )
overridevirtual

Member Function Documentation

virtual void makVrf::DtScenarioDescriptionDialog::setDisplayOnly ( bool  )
virtual

Sets to a mode where it is display only.

virtual void makVrf::DtScenarioDescriptionDialog::setShowNeverShowAgain ( bool  )
virtual

Shows the "never show again" checkbox. By default this is hidden.

virtual void makVrf::DtScenarioDescriptionDialog::closeEvent ( QCloseEvent *  )
overridevirtual
virtual void makVrf::DtScenarioDescriptionDialog::setupGui ( )
virtual
virtual bool makVrf::DtScenarioDescriptionDialog::neverShowAgain ( ) const
virtual

Returns true if this dialog should never be shown again.

virtual void makVrf::DtScenarioDescriptionDialog::setUpdateScenarioDescriptionFromThisDialog ( bool  )
virtual

Set to false to allow some other mechanism for updating scenario information. This is true for legacy usage of this dialog.

bool makVrf::DtScenarioDescriptionDialog::updateScenarioDescriptionFromThisDialog ( ) const
inline
virtual void makVrf::DtScenarioDescriptionDialog::setScenarioInformation ( const DtIfScenarioDescriptionMessage *  )
virtual

Sets the scenario information.

virtual void makVrf::DtScenarioDescriptionDialog::setHideCancel ( bool  )
virtual
virtual void makVrf::DtScenarioDescriptionDialog::setDisplayChangeWarningIcon ( DtScenarioInformationWidget::DisplayElement  ,
bool   
)
virtual

Whether or not to show the change warning icon for elements. Only the following elements have the change warning icon SimulationModelSet SimulationTerrain FrontEndTerrain ComponentAttachmentTable FrameMode FrameTime.

virtual void makVrf::DtScenarioDescriptionDialog::setShowScreenElement ( DtScenarioInformationWidget::DisplayElement  ,
bool   
)
virtual

Whether or not to show the particular screen element.

virtual void makVrf::DtScenarioDescriptionDialog::setEnableScreenElement ( DtScenarioInformationWidget::DisplayElement  ,
bool   
)
virtual

Whether or not to enable the display element.

virtual void makVrf::DtScenarioDescriptionDialog::setCanSelectTerrain ( bool  )
virtual

Whether or not terrains can be selected.

const DtScenario& makVrf::DtScenarioDescriptionDialog::scenario ( ) const
inline
virtual void makVrf::DtScenarioDescriptionDialog::scenarioDescriptionCallback ( DtSimMessage *  )
protectedvirtual

Called when scenario description is received from the currently selected back-end.

virtual void makVrf::DtScenarioDescriptionDialog::accept ( )
overrideprotectedvirtual

Sends updated description to back-end.

Member Data Documentation

boost::signals2::signal<void ()> makVrf::DtScenarioDescriptionDialog::signal_closed

Signal sent when window is closing.

boost::signals2::signal<void (DtScenario&)> makVrf::DtScenarioDescriptionDialog::signal_scenarioInformationAboutToBeSet

Signal sent when the scenario information is about to be set in the dialog. Whatever changes are made in the supplied scenario will be reflected in the dialog.

QCheckBox* makVrf::DtScenarioDescriptionDialog::myNeverShowAgain
QPushButton* makVrf::DtScenarioDescriptionDialog::myOK
QPushButton* makVrf::DtScenarioDescriptionDialog::myCancel
DtScenarioPreviewWidget* makVrf::DtScenarioDescriptionDialog::myScenarioInformation
DtScenario makVrf::DtScenarioDescriptionDialog::myScenario
protected
makVrv::DtDe& makVrf::DtScenarioDescriptionDialog::myDe
protected
bool makVrf::DtScenarioDescriptionDialog::myIsEditable
protected
bool makVrf::DtScenarioDescriptionDialog::myDoNotDisplayIfNoDescription
protected
bool makVrf::DtScenarioDescriptionDialog::myUpdateScenarioDescriptionFromThisDialog
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)