VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtNewSpawnTemplateDialog Class Reference

Dialog to allow user to create a new template. More...

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

Public Slots

virtual void onPlanButtonClicked ()
 Opens a plan widget to allow the user to create a plan to assign to the spawned items.
virtual void onAddSpawnItem ()
 Add a new type of entity to be spawned.
virtual void onEditSpawnItem ()
 Edit the type of entity to be spawned.
virtual void onDeleteSpawnItem ()
 deletes selected spawn item
virtual void onEnableContinuousSpawnage (bool on)
 enables/disables whether the entities will always be spawned, i.e.
virtual void onEnableTimeOfDaySpawnage (bool on)
 enables/disables whether the entities will be spawned for a period of time defined by time of day.
virtual void onEnableSimTimeSpawnage (bool on)
 enables/disables whether the entities will be spawned for a period of time defined by simulation time of the scenario.For example, entities would begin spawing at a start time of 5 minutes into the scenario and stop at end time 30 minutes into the scenario.
virtual void onEnableBurstCycle (bool on)
 enables/disables whether the entities will be spawned in bursts during the spawn period
virtual void onEnableCustomPlan (bool on)
virtual void onEnableDefaultPlan (bool on)
virtual void onAddSinkPt ()
virtual void slot_addSinkPt (const DtUUID &)
virtual void onRemoveSinkPt ()

Signals

void sendSpawnData (DtRwSpawnData &spawnData)
 Sends configured spawn data to parent dialog.
void closing ()
 to parent dialog on cancel so it can reenable its buttons

Public Member Functions

 DtNewSpawnTemplateDialog (makVrv::DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
virtual ~DtNewSpawnTemplateDialog ()
virtual void init (bool editing=false)
virtual void setSpawnData (const DtRwSpawnData &data, bool resolveDuplcateTemplateName=false)
 If resolveDuplicateTemplateName is true, if the template name given is duplicate to ones already set add a new number to the end.
virtual const DtRwSpawnDataspawnData () const
virtual int exec ()
virtual void displayDialog ()
virtual void setTemplateNamesInUseList (const QStringList &namesInUse)
virtual void enableWidgets (bool b)
 Enables/disables widgets without disabling the main window to allow for plan window to be shown.

Public Attributes

Ui::DtNewSpawnTemplateDialogUi myUiImpl
DtOverlayParentEntryWidgetmyOverlayCombo

Protected Slots

virtual void updateButtons ()
 Updates the status of the buttons inside the dialog.
virtual void onCreateButtonClicked ()
 Sends a create spawn template message to all the backends.
virtual void onCreateObjectName (QTreeWidgetItem *i, int col)
virtual void onEditObjectName (QTreeWidgetItem *i, int col)
virtual void displayEntityPalette ()
virtual void cancel ()
 Invoked when the Cancel button of this dialog is pressed.

Protected Member Functions

virtual void setupGui ()
virtual void createEntityPalette ()
virtual void createPlanWidget ()
virtual void slot_createObjectType (const makVrf::DtEntityMapperKey &x)
 Calls down to logic to add mapper key to the createItemData.
virtual bool updateSpawnFromGui ()
 Returns true if update is valid, false if template name is in use.
virtual QTime convertTime (double secondsPastMidnight)
virtual void keyPressEvent (QKeyEvent *e)
 If user hits the esc key, cancel the dialog.
virtual void slot_send ()
virtual void slot_close ()
virtual void refreshLabels ()
virtual void slot_onUnitChanged (int attribute, int from, int to)
virtual void slot_displayUnitDecimalsChanged (makVrv::DtUnitConverterCollection::DisplayUnitType, int, int)
virtual void sinkPointRemoved (const DtUUID &)
virtual void sinkPointAdded (const DtUUID &)
virtual QString patternName (const DtString &curName) const
virtual void paletteItemsAdded ()

Protected Attributes

makVrv::DtDemyDe
bool myEditing
DtEntityCreatePalettemyEntityPalettePanel
DtRwSpawnData mySpawnData
int myCurrentForce
 Keep track of the entity type and force selected.
DtEntityType myCurrentEntityType
QStringList myTemplateNamesInUse
makVrf::DtIssueEntityPlanWidgetmyPlanWidget
makVrv::DtSignalConnectionManager myConnectionManager

Detailed Description

Dialog to allow user to create a new template.

Constructor & Destructor Documentation

makVrf::DtNewSpawnTemplateDialog::DtNewSpawnTemplateDialog ( makVrv::DtDe de,
QWidget *  parent = 0,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtNewSpawnTemplateDialog::~DtNewSpawnTemplateDialog ( )
virtual

Member Function Documentation

virtual void makVrf::DtNewSpawnTemplateDialog::init ( bool  editing = false)
virtual
virtual void makVrf::DtNewSpawnTemplateDialog::setSpawnData ( const DtRwSpawnData data,
bool  resolveDuplcateTemplateName = false 
)
virtual

If resolveDuplicateTemplateName is true, if the template name given is duplicate to ones already set add a new number to the end.

virtual const DtRwSpawnData& makVrf::DtNewSpawnTemplateDialog::spawnData ( ) const
virtual
virtual int makVrf::DtNewSpawnTemplateDialog::exec ( )
virtual
virtual void makVrf::DtNewSpawnTemplateDialog::displayDialog ( )
virtual
virtual void makVrf::DtNewSpawnTemplateDialog::setTemplateNamesInUseList ( const QStringList &  namesInUse)
virtual
virtual void makVrf::DtNewSpawnTemplateDialog::enableWidgets ( bool  b)
virtual

Enables/disables widgets without disabling the main window to allow for plan window to be shown.

virtual void makVrf::DtNewSpawnTemplateDialog::onPlanButtonClicked ( )
virtualslot

Opens a plan widget to allow the user to create a plan to assign to the spawned items.

virtual void makVrf::DtNewSpawnTemplateDialog::onAddSpawnItem ( )
virtualslot

Add a new type of entity to be spawned.

virtual void makVrf::DtNewSpawnTemplateDialog::onEditSpawnItem ( )
virtualslot

Edit the type of entity to be spawned.

virtual void makVrf::DtNewSpawnTemplateDialog::onDeleteSpawnItem ( )
virtualslot

deletes selected spawn item

virtual void makVrf::DtNewSpawnTemplateDialog::onEnableContinuousSpawnage ( bool  on)
virtualslot

enables/disables whether the entities will always be spawned, i.e.

for the duration of the scenario.

virtual void makVrf::DtNewSpawnTemplateDialog::onEnableTimeOfDaySpawnage ( bool  on)
virtualslot

enables/disables whether the entities will be spawned for a period of time defined by time of day.

For example entities would begin spawning at a start time of 1PM and would stop spawning at end time 5PM. scenario.

virtual void makVrf::DtNewSpawnTemplateDialog::onEnableSimTimeSpawnage ( bool  on)
virtualslot

enables/disables whether the entities will be spawned for a period of time defined by simulation time of the scenario.For example, entities would begin spawing at a start time of 5 minutes into the scenario and stop at end time 30 minutes into the scenario.

virtual void makVrf::DtNewSpawnTemplateDialog::onEnableBurstCycle ( bool  on)
virtualslot

enables/disables whether the entities will be spawned in bursts during the spawn period

virtual void makVrf::DtNewSpawnTemplateDialog::onEnableCustomPlan ( bool  on)
virtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::onEnableDefaultPlan ( bool  on)
virtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::onAddSinkPt ( )
virtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::slot_addSinkPt ( const DtUUID )
virtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::onRemoveSinkPt ( )
virtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::setupGui ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::createEntityPalette ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::createPlanWidget ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::slot_createObjectType ( const makVrf::DtEntityMapperKey x)
protectedvirtual

Calls down to logic to add mapper key to the createItemData.

This represents the type of entity to be create.

virtual bool makVrf::DtNewSpawnTemplateDialog::updateSpawnFromGui ( )
protectedvirtual

Returns true if update is valid, false if template name is in use.

virtual QTime makVrf::DtNewSpawnTemplateDialog::convertTime ( double  secondsPastMidnight)
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

If user hits the esc key, cancel the dialog.

If they hit the ok button, this accepts the dialog.

virtual void makVrf::DtNewSpawnTemplateDialog::slot_send ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::slot_close ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::refreshLabels ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::slot_onUnitChanged ( int  attribute,
int  from,
int  to 
)
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::slot_displayUnitDecimalsChanged ( makVrv::DtUnitConverterCollection::DisplayUnitType  ,
int  ,
int   
)
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::sinkPointRemoved ( const DtUUID )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::sinkPointAdded ( const DtUUID )
protectedvirtual
virtual QString makVrf::DtNewSpawnTemplateDialog::patternName ( const DtString curName) const
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::paletteItemsAdded ( )
protectedvirtual
virtual void makVrf::DtNewSpawnTemplateDialog::updateButtons ( )
protectedvirtualslot

Updates the status of the buttons inside the dialog.

virtual void makVrf::DtNewSpawnTemplateDialog::onCreateButtonClicked ( )
protectedvirtualslot

Sends a create spawn template message to all the backends.

virtual void makVrf::DtNewSpawnTemplateDialog::onCreateObjectName ( QTreeWidgetItem i,
int  col 
)
protectedvirtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::onEditObjectName ( QTreeWidgetItem i,
int  col 
)
protectedvirtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::displayEntityPalette ( )
protectedvirtualslot
virtual void makVrf::DtNewSpawnTemplateDialog::cancel ( )
protectedvirtualslot

Invoked when the Cancel button of this dialog is pressed.

void makVrf::DtNewSpawnTemplateDialog::sendSpawnData ( DtRwSpawnData spawnData)
signal

Sends configured spawn data to parent dialog.

void makVrf::DtNewSpawnTemplateDialog::closing ( )
signal

to parent dialog on cancel so it can reenable its buttons

Member Data Documentation

Ui::DtNewSpawnTemplateDialogUi makVrf::DtNewSpawnTemplateDialog::myUiImpl
DtOverlayParentEntryWidget* makVrf::DtNewSpawnTemplateDialog::myOverlayCombo
makVrv::DtDe& makVrf::DtNewSpawnTemplateDialog::myDe
protected
bool makVrf::DtNewSpawnTemplateDialog::myEditing
protected
DtEntityCreatePalette* makVrf::DtNewSpawnTemplateDialog::myEntityPalettePanel
protected
DtRwSpawnData makVrf::DtNewSpawnTemplateDialog::mySpawnData
protected
int makVrf::DtNewSpawnTemplateDialog::myCurrentForce
protected

Keep track of the entity type and force selected.

DtEntityType makVrf::DtNewSpawnTemplateDialog::myCurrentEntityType
protected
QStringList makVrf::DtNewSpawnTemplateDialog::myTemplateNamesInUse
protected
makVrf::DtIssueEntityPlanWidget* makVrf::DtNewSpawnTemplateDialog::myPlanWidget
protected
makVrv::DtSignalConnectionManager makVrf::DtNewSpawnTemplateDialog::myConnectionManager
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)