![]() |
VR-Forces 4.1 Class Documentation
|
The class that will contain information about the currently loaded scenario. More...

Public Types | |
| enum | DtJoinSessionTerrainAction { DtTerrainActionUseSessionTerrain, DtTerrainActionChooseAlternateTerrain, DtTerrainActionKeepCurrentTerrain, DtShowSessionStartupDialog, DtLoadScenarioSpecifiedInApplication } |
| enum | SessionStatusDialogs { Loading = 0x00000001, Saving = 0x00000002, Closing = 0x00000004, AllStatusDialogs = Loading | Saving | Closing } |
Public Member Functions | |
| DtVrfScenarioManager (makVrv::DtDe &) | |
| virtual | ~DtVrfScenarioManager () |
| const DtScenarioExplorer * | scenarioExplorer () const |
| const std::vector < DtEntityMapperKey > & | controlObjects () const |
| virtual void | addControlObject (const DtEntityMapperKey &key) |
| virtual void | removeControlObject (const DtEntityMapperKey &key) |
| virtual void | clearControlObjects () |
| virtual bool | isControlObject (const DtEntityMapperKey &key) const |
| virtual void | closeScenario (bool resetScenario=true) |
| virtual bool | loadScenario (const std::string &s) |
| virtual bool | loadScenario (const DtScenarioLoadInformation &s) |
| virtual void | runScenario () |
| virtual void | pauseScenario () |
| virtual void | rewindScenario () |
| virtual void | setCreateMenuBuilderFlags (DtCreateMenuBuilder::Flags) |
| Sets the flags to use when creating the menu for the create menu. | |
| virtual DtCreateMenuBuilder::Flags | createMenuBuilderFlags () const |
| virtual void | tickedLoadScenario () |
| Schedules to call the load scenario method (with current main window) on the next de tick. | |
| virtual void | tickedNewScenario () |
| Schedules to call the new scenario method (with current main window) on the next de tick. | |
| virtual void | loadScenarioFromDialog (QWidget *p) |
| Creates and shows load scenario dialog. | |
| virtual DtLoadScenarioDialog * | createLoadScenarioDialog (QWidget *) |
| virtual void | setHelpFile (const std::string &, bool save=false) |
| Sets the help file to use when pressing the F1 key. | |
| virtual std::string | helpFile () const |
| virtual void | setDefaultScenarioFile (const std::string &f, bool save=false) |
| Sets the scenario file used as the default when creating a new scenario. | |
| virtual std::string | defaultScenarioFile () const |
| virtual void | setDefaultSimulationModelSetFile (const std::string &f, bool save=false) |
| Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded. | |
| virtual std::string | defaultSimulationModelSetFile () const |
| virtual void | rebuildCreateMenu () |
| Call to regenerate the menu from the model set structure and then recreate the menu. | |
| virtual void | recreateCreateMenu () |
| Call to start the process of recreating the create menu from the current menu structure. | |
| virtual void | loadTaskMenu (const DtScenarioExplorer &explorer) |
| Call to recreate the set menu from initialTaskMenuConfiguration. | |
| virtual void | loadSetMenu (const DtScenarioExplorer &explorer) |
| Call to recreate the task menu from initialSetMenuConfiguration. | |
| virtual DtScenarioSettingsDialog * | createNewScenarioDialog (QWidget *p) |
| Creates and shows new scenario dialog. | |
| virtual void | newScenarioFromDialog (QWidget *p) |
| virtual void | newScenario (const std::string &) |
| Creates a new scenario on specified terrain using default.scn as the scenario base. | |
| virtual void | loadBatchScenario (QWidget *) |
| Calls to batch scenario manager to load batch scenario. | |
| virtual bool | joinSession (DtJoinSessionTerrainAction terrainAction=DtTerrainActionUseSessionTerrain) |
| Does the actual joining to the session. | |
| virtual void | resignSession (bool closeTerrain=true) |
| virtual bool | saveScenarioAs () |
| virtual bool | saveScenario () |
| virtual bool | canRewind () const |
| void | setValidateForVrfObjects (bool b) |
| Default is true. | |
| bool | validateForVrfObjects () const |
| void | setScenarioDirty (bool b) |
| bool | scenarioDirty () const |
| const DtScenario * | scenario () const |
| void | setAskSaveIfScenarioModified (bool b) |
| bool | askSaveIfScenarioModified () const |
| bool | joinedToSession () const |
| void | setDisplayExistingGdbWarningMessages (bool b) |
| bool | displatExistingGdbWarningMessages () const |
| virtual void | setCorrelated (bool) |
| bool | correlated () const |
| DtMenu * | createMenu () |
| bool | initialized () const |
| const DtDeadReckoningSettings & | deadReckoningSettings () const |
| void | setAllowEditingOnScenarioJoin (bool b) |
| bool | allowEditingOnScenarioJoint () const |
| virtual std::string | currentlyLoadedTerrain () const |
| virtual void | processJoinSession (bool startupMessage=false) |
| virtual void | setFromRecord (const DtVrfSessionSettingsRecord &rec) |
| virtual void | setFromRecord (const DtVrfScriptedTaskSettingsRecord &rec) |
| virtual void | loadDefaultSessionSettings (bool loadOnlyFactorySettings=false) |
| virtual void | loadDefaultScriptedTaskSettings (bool loadOnlyFactorySettings=false) |
| virtual void | saveSessionSettingsAsDefaults () |
| virtual void | saveScriptedTaskSettingsAsDefaults () |
| virtual void | getRecord (DtVrfSessionSettingsRecord &rec) const |
| virtual void | getRecord (DtVrfScriptedTaskSettingsRecord &rec) const |
| virtual bool | autoJoinSession () const |
| Access to session record information. | |
| virtual bool | askToJoin () const |
| virtual bool | alwaysJoinWithSessionDatabase () const |
| virtual bool | alwaysJoinWithOpenDatabase () const |
| virtual bool | displaySessionDialogs () const |
| virtual bool | displayCorrelationWarningMessages () const |
| virtual void | setFavorite (const DtEntityMapperKey &, bool f) |
| Sets the item to be a favorite then signals to recreate create menu. | |
| makVrv::DtRecordSettingsBackupInterface * | sessionSettingsBackup () |
| makVrv::DtRecordSettingsBackupInterface * | scriptedTaskSettingsBackup () |
| void | exportSessionSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importSessionSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
| void | exportScriptedTaskSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importScriptedTaskSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
| virtual void | setDoNotShowSessionStartupDialog (bool) |
| Sets whether or not to show the startup session dialog. | |
| bool | showSessionStartupDialog () const |
| virtual void | setStartupPreference (int) |
| Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario) | |
| int | startupPreference () const |
| virtual void | setAggregateOnCreate (bool) |
| Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created. | |
| bool | aggregateOnCreate () const |
| virtual void | setUserDefinedSmoothing (bool) |
| Sets whether or not the user or system is defining smoothing in performance options. | |
| bool | userDefinedSmoothing () const |
| virtual void | setWindowTitle (const QString &) |
| Sets the title of the main window to the given name. | |
| virtual void | setShowSessionStatusDialogs (SessionStatusDialogs) |
| Sets to show which type of session status dialogs. | |
| SessionStatusDialogs | showSessionStatusDialogs () const |
| virtual void | setDenySystemScriptEditing (bool) |
| Sets whether or not system script editing is allowed. By default it is. | |
| virtual bool | denySystemScriptEditing () const |
| virtual void | setIndent (int) |
| Returns the indent level (in pixels) to apply to scripted task dialog indents. | |
| virtual int | indent () const |
| virtual void | setWarnOnSystemScriptChange (bool) |
| Returns true if should give warning on system script change with meta data or script. | |
| virtual bool | warnOnSystemScriptChange () const |
| virtual void | setMonitorScriptedTaskFrameRates (bool) |
| Returns true if should show frame rates for scripts. | |
| virtual bool | monitorScriptedTaskFrameRates () const |
| virtual void | setAutoSave (bool) |
| Set to false to not save on settings change. Default is true. | |
| virtual bool | autoSave () const |
| virtual void | setShowScenarioDescriptionMessageBox (bool b, bool save) |
| Sets whether or not to show scenario description message box. | |
| virtual bool | showScenarioDescriptionMessageBox () const |
| virtual const DtSubMenuConfiguration & | initialCreateMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialCreateMenuConfiguration () |
| virtual const DtSubMenuConfiguration & | initialTaskMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialTaskMenuConfiguration () |
| virtual const DtSubMenuConfiguration & | initialSetMenuConfiguration () const |
| Valid after scenario is loaded. | |
| virtual DtSubMenuConfiguration & | initialSetMenuConfiguration () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfScenarioManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
| static void | init (makVrv::DtDe &) |
| Initialize manager. Must be called once. | |
Friends | |
| class | DtSessionStatusBox |
| boost::signal< void()> | signal_setMenuConfigurationLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void()> | signal_taskMenuConfigurationLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void()> | signal_createMenuConfigurationLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(const std::string &)> | signal_scenarioLoadError |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(DtSessionStartupDialog *)> | signal_sessionStartupBoxCreated |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(DtHostilityMatrixDialog *)> | signal_hostilityMatrixDialogCreated |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(const DtDeadReckoningSettings &)> | signal_deadReckoningSettingsChanged |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_scenarioLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(bool)> | signal_sessionStatusChanged |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void()> | signal_allBackendsClosed |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void()> | signal_rewinding |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void()> | signal_scenarioJustLoaded |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| boost::signal< void(const DtScenarioLoadInformation &)> | signal_preLoadScenario |
| Sent before any load scenario is sent to the back-end or before terrain is loaded. | |
| boost::signal< void(const DtScenarioLoadInformation &)> | signal_postLoadScenario |
| Sent after scenario load message is sent to the back-end and after all additional files are loaded. | |
| boost::signal< void(const std::string &)> | signal_preLoadBaseTerrain |
| Sent before terrain is opened This function sends the terrain file requested on load. | |
| boost::signal< void(const std::string &)> | signal_preLoadTerrain |
| Sent before terrain is opened This function sends the actual terrain file being loaded. | |
| boost::signal< void(const std::string &)> | signal_postLoadTerrain |
| Sent after terrain is opened. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadForceFiles |
| Sent before force file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadForceFiles |
| Sent after force file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadArtilleryManager |
| Sent after artillery artillery is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadArtilleryManager |
| Sent after artillery artillery is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadModelSetFiles |
| Sent before model set files are loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadModelSetFiles |
| Sent after model set files are loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadCreateMenu |
| Sent before create menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &, DtMenu *)> | signal_postLoadCreateMenu |
| Sent after create menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadTaskMenu |
| Sent before task menu is loaded. | |
| boost::signal< void(const DtFilename &, DtVrfModelSetManager *)> | signal_modelSetLoaded |
| Signal sent when a model set is loaded into the model set manager. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadTaskMenu |
| Sent after task menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_preLoadSetMenu |
| Sent before set menu is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_postLoadSetMenu |
| Sent after set menu is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadOverlayFile |
| Sent before overlay file is loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadOverlayFile |
| Sent after overlay file is loaded. | |
| boost::signal< void(const DtScenarioExplorer &)> | signal_createMenuLoaded |
| Sent after post load callback. | |
| boost::signal< void()> | signal_recreateCreateMenu |
| Sent to simply recrete the menu. Called from recreateCreateMenu() method. | |
| boost::signal< void()> | signal_recreateTaskMenu |
| Sent to simply recrete the menu. Called from recreateTaskMenu() method. | |
| boost::signal< void()> | signal_recreateSetMenu |
| Sent to simply recrete the menu. Called from recreateSetMenu() method. | |
| boost::signal< void(const DtVrfSessionSettingsRecord &)> | signal_sessionSettingsChanged |
| Sent when session settings have changed. | |
| boost::signal< void(const DtVrfScriptedTaskSettingsRecord &)> | signal_scriptedTaskSettingsChanged |
| Sent when scripted task settings have changed. | |
| boost::signal< void(DtVrfGuiRecentScenarios *)> | signal_recentScenariosChanged |
| Sent when recent scenarios have changed. | |
| boost::signal< void(const DtScenario &)> | signal_preLoadGuiScenarioSettings |
| Sent before scenario settings are loaded. | |
| boost::signal< void(const DtScenario &)> | signal_postLoadGuiScenarioSettings |
| Sent after scenario settings are loaded. | |
| boost::signal< void()> | signal_scenarioClosed |
| Sent when the scenario is closed. | |
| boost::signal< void(QString)> | signal_windowTitleSet |
| Signal sent when the window title is set. | |
| makVrv::DtDe & | myDe |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtScenario * | myScenario |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtMenu * | myMenu |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtScenarioExplorer * | myExplorer |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| QDialog * | mySessionStatusMessageBox |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| std::vector< DtEntityMapperKey > | myControlObjectTypes |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myRewinding |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myValidateForVrfObjects |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myScenarioDirty |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myFirstRun |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myAskSaveIfScenarioModified |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myAutoJoinSession |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myJoinedToSession |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myCorrelationWarned |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| std::string | myLoadedTerrain |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myCorrelated |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myDisplayExistingGdbWarningMessage |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myTerrainClearing |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myLoadingScenario |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| int | myTimeoutInterval |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myCanSimulate |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myInitialized |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myIsStartup |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myAutoSave |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| bool | myAllowEditingOnScenarioJoin |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtVrfSessionSettingsRecord | mySessionSettings |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtVrfScriptedTaskSettingsRecord | myScriptedTaskSettings |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtDeadReckoningSettings | myDeadReckoningSettings |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| makVrv::DtRecordSettingsBackupInterface * | mySessionSettingsBackup |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| makVrv::DtRecordSettingsBackupInterface * | myScriptedTaskSettingsBackup |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtSessionStatusBox * | mySessionStatusBox |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| SessionStatusDialogs | myShowSessionStatusDialogs |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtSubMenuConfiguration * | myInitialCreateMenuConfiguration |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtSubMenuConfiguration * | myInitialTaskMenuConfiguration |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtSubMenuConfiguration * | myInitialSetMenuConfiguration |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| DtCreateMenuBuilder::Flags | myCreateMenuBuilderFlags |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| std::vector< DtString > | myAdditionalSmsFiles |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | addAdditionalSmsFile (const std::string &) |
| virtual void | removeAdditionalSmsFile (const std::string &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual const std::vector < DtString > & | additionalSmsFiles () const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | setAdditionalSmsFiles (const std::vector< DtString > &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_onScenarioModified () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_allBackendsClosed () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | editHostilityMatrix (QWidget *parent) |
| Creates the hostility matrix editing dialog and emits a signal when it is created. | |
| virtual DtHostilityMatrixDialog * | createHostilityMatrixDialog (QWidget *p, const Qt::WindowFlags &flags) const |
| Creates the hostility matrix daialog. | |
| virtual void | addRecentScenario (const std::string &) |
| Uses recent scenario settings object to add a recent scenario. Sends out signal when changed. | |
| virtual bool | askAndSaveScriptsForRewind () |
| Will ask the user to save scripts that are modified before a rewind. | |
| virtual void | cleanupSessionBox () |
| Removes session dialog if up. | |
| virtual void | slot_sessionStartupComplete () |
| Called when session startup dialog has been finished. | |
| virtual void | slot_onScenarioLoaded (const DtScenario *) |
| Called when a scenario is loaded, updates internal information and re-emits a loaded signal. | |
| virtual void | slot_checkBackendClosed (const DtVrfBackendState &, int) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_checkSimulationState (const DtVrfBackendState &, int) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | saveIfDirty () |
| If scenario is dirty, put up a dialog to ask the user if they want to save. | |
| virtual DtJoinSessionDialog * | createJoinSessionDialog (QWidget *parent, const Qt::WindowFlags &flags) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | connectSignals (bool) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | displayCorrelationWarningMessage () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | reloadScenario (const std::string &newTerrain) |
| Saves existing to a temporary scenario then reloads that with new scenario name. | |
| virtual void | saveScenario (std::string baseName, std::string newTerrainName) |
| Sets up to save current scenario to supplied name. | |
| virtual void | slot_onScenarioSaved (std::string scenarioName, std::string newTerrain) |
| Called when the scenario is saved, reloads scenario then deletes temp scenario after reload. | |
| virtual void | slot_onScenarioReloaded (std::string scenarioName) |
| Called when the scenario is loaded as part of a reload. Will delete temp scenario files. | |
| virtual void | setup () |
| If not initialized, does initial setup. | |
| virtual void | showSessionStartupDialog () |
| Shows the session startup dialog (DtSessionStartupDialog) | |
| virtual void | sessionStatusBoxClosed () |
| Called by session status box when it is closed. | |
| virtual void | processServerMessage (DtSimMessage *) |
| Called when there is a message from the server. | |
| virtual void | processForcesMessage (DtSimMessage *) |
| Process the message for current force types in the simulation. | |
| virtual void | restorePreservedScripts () |
| Restores modified scripts and clears out modified status of all scripts. | |
| virtual void | loadIndirectFireManager (const DtScenarioExplorer &explorer) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | loadForceFiles (const DtScenarioExplorer &explorer) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | loadCreateMenu (const DtScenarioExplorer &explorer) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | loadInitialMenuConfiguration (makVrv::DtMenuConfiguration &, const DtFilename &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | loadOverlayFile (const DtScenario &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | loadGuiScenarioSettings (const DtScenario &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | loadModelSetFiles (const DtScenarioExplorer &explorer) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | loadTerrain (const std::string &filePath) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual DtModelSetEntry * | modelSetEntry (const DtEntityMapperKey &key) const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual DtMenu * | createMenuFromFile (const DtString &) const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | isModelSet (const DtFilename &filename) const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | loadModelSet (const DtFilename &filename, DtMenu *m) const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_onSessionUpdated (int flags) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_onDuplicateBackendAddress (const DtVrfBackendState &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_backendDiscovered (const DtVrfBackendState &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_settingReceived (const std::string &, const DtVrfBackendState *) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | sessionPrompt (const QString &message) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | openTerrainDatabaseFromUserSelection () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | loadSessionTerrain (const std::string &) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | isSameTerrain (const std::string &terrain1, const std::string &terrain2) const |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_terrainModified () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_deDestructing () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_terrainToBeCleared () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | slot_terrainCleared () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual bool | checkWriteGdb (const std::string &gdb) |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | setupSessionSettings () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual void | setupScriptedTaskSettings () |
| Signal sent when a scenario has just been loaded, either locally or remotely. | |
| virtual QFileInfo | findTerrainFile (const std::string &terrainFile) const |
| Calls findTerrainFile with default search paths and extensions. | |
| virtual QFileInfo | findTerrainFile (const std::string &terrainFile, const std::vector< std::string > &searchPaths, const std::string &extension) const |
| Given the terrain file and search paths, look for that terrain file, using the supplied extension. | |
| virtual void | slot_scenarioAboutToBeSaved (DtScenario *) |
| Called when the scenario is about to be saved, put up the save dialog. | |
| virtual void | createSessionStatusBox (const QString &title, const QString &message, int statusType) |
| Creates a session status box. If one exists, delete it. | |
The class that will contain information about the currently loaded scenario.
| makVrf::DtVrfScenarioManager::DtVrfScenarioManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
static |
Initialize manager. Must be called once.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the flags to use when creating the menu for the create menu.
Default is to use favorites and place all envrionmentals/tactical graphics on the menu by force. Setting this flag will only be used at the next scenario load. It will not change the current menu setup
|
virtual |
|
virtual |
Schedules to call the load scenario method (with current main window) on the next de tick.
|
virtual |
Schedules to call the new scenario method (with current main window) on the next de tick.
|
virtual |
Creates and shows load scenario dialog.
|
virtual |
|
virtual |
Sets the help file to use when pressing the F1 key.
Note this will be a permanent change and will be using that file the next time the application is started if the save flag is true. By default is false
|
virtual |
|
virtual |
Sets the scenario file used as the default when creating a new scenario.
If save is true will make this change permanent
|
virtual |
|
virtual |
Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded.
If save is true will make change permanent
|
virtual |
|
virtual |
Call to regenerate the menu from the model set structure and then recreate the menu.
|
virtual |
Call to start the process of recreating the create menu from the current menu structure.
Call rebuildCreateMenu to recreate from model set information
|
virtual |
Call to recreate the set menu from initialTaskMenuConfiguration.
|
virtual |
Call to recreate the task menu from initialSetMenuConfiguration.
|
virtual |
Creates and shows new scenario dialog.
|
virtual |
|
virtual |
Creates a new scenario on specified terrain using default.scn as the scenario base.
|
virtual |
Calls to batch scenario manager to load batch scenario.
|
virtual |
Does the actual joining to the session.
Triggers a terrain database load, if there is a terrain loaded by the current session.
| terrainAction | Determines what action will be taken with the terrain when joining the session. DtTerrainActionUseSessionTerrain will cause the session terrain to be loaded. DtTerrainActionChooseAlternateTerrain will cause a prompt to be displayed to the user to choose a terrain. DtTerrainActionKeepCurrentTerrain will keep the current terrain (or no terrain) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Default is true.
Set to false if menus should not use as one determining factor to validate themselves by whether or not an object is simulated by VRF
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Access to session record information.
To set, get record and then reset vis setFromRecord
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the item to be a favorite then signals to recreate create menu.
|
inline |
|
inline |
| void makVrf::DtVrfScenarioManager::exportSessionSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfScenarioManager::importSessionSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
| void makVrf::DtVrfScenarioManager::exportScriptedTaskSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfScenarioManager::importScriptedTaskSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
|
virtual |
Sets whether or not to show the startup session dialog.
| bool makVrf::DtVrfScenarioManager::showSessionStartupDialog | ( | ) | const |
|
virtual |
Preference on startup (new scenario on VR-TheWorldServer, new scenario, or load scenario)
| int makVrf::DtVrfScenarioManager::startupPreference | ( | ) | const |
|
virtual |
Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created.
Default is false
| bool makVrf::DtVrfScenarioManager::aggregateOnCreate | ( | ) | const |
|
virtual |
Sets whether or not the user or system is defining smoothing in performance options.
| bool makVrf::DtVrfScenarioManager::userDefinedSmoothing | ( | ) | const |
|
virtual |
Sets the title of the main window to the given name.
|
virtual |
Sets to show which type of session status dialogs.
|
inline |
|
virtual |
Sets whether or not system script editing is allowed. By default it is.
|
virtual |
|
virtual |
Returns the indent level (in pixels) to apply to scripted task dialog indents.
|
virtual |
|
virtual |
Returns true if should give warning on system script change with meta data or script.
|
virtual |
|
virtual |
Returns true if should show frame rates for scripts.
|
virtual |
|
virtual |
Set to false to not save on settings change. Default is true.
|
virtual |
|
virtual |
Sets whether or not to show scenario description message box.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Valid after scenario is loaded.
|
virtual |
|
virtual |
Additional SMS files to use during new scenarios
|
virtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
virtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
virtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
virtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
virtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
virtual |
Creates the hostility matrix editing dialog and emits a signal when it is created.
|
virtual |
Creates the hostility matrix daialog.
|
virtual |
Uses recent scenario settings object to add a recent scenario. Sends out signal when changed.
|
virtual |
Will ask the user to save scripts that are modified before a rewind.
After rewind is complete will send the script and meta data to the server. Returns true if the user has indicated they want to save the modified scripts
|
protectedvirtual |
Removes session dialog if up.
|
protectedvirtual |
Called when session startup dialog has been finished.
|
protectedvirtual |
Called when a scenario is loaded, updates internal information and re-emits a loaded signal.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
If scenario is dirty, put up a dialog to ask the user if they want to save.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Saves existing to a temporary scenario then reloads that with new scenario name.
|
protectedvirtual |
Sets up to save current scenario to supplied name.
If scenario name exists in temp directory then counts until it can find a unique name.
|
protectedvirtual |
Called when the scenario is saved, reloads scenario then deletes temp scenario after reload.
|
protectedvirtual |
Called when the scenario is loaded as part of a reload. Will delete temp scenario files.
|
protectedvirtual |
If not initialized, does initial setup.
|
protectedvirtual |
Shows the session startup dialog (DtSessionStartupDialog)
|
protectedvirtual |
Called by session status box when it is closed.
|
protectedvirtual |
Called when there is a message from the server.
Will see if there is a scenario load error and then repackage and signal it
|
protectedvirtual |
Process the message for current force types in the simulation.
|
protectedvirtual |
Restores modified scripts and clears out modified status of all scripts.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protectedvirtual |
Calls findTerrainFile with default search paths and extensions.
|
protectedvirtual |
Given the terrain file and search paths, look for that terrain file, using the supplied extension.
Return a QFileInfo that points to the file
|
protectedvirtual |
Called when the scenario is about to be saved, put up the save dialog.
|
protectedvirtual |
Creates a session status box. If one exists, delete it.
|
friend |
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_setMenuConfigurationLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_taskMenuConfigurationLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_createMenuConfigurationLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_scenarioLoadError |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (DtSessionStartupDialog*)> makVrf::DtVrfScenarioManager::signal_sessionStartupBoxCreated |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (DtHostilityMatrixDialog*)> makVrf::DtVrfScenarioManager::signal_hostilityMatrixDialogCreated |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (const DtDeadReckoningSettings&)> makVrf::DtVrfScenarioManager::signal_deadReckoningSettingsChanged |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_scenarioLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (bool)> makVrf::DtVrfScenarioManager::signal_sessionStatusChanged |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_allBackendsClosed |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_rewinding |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioJustLoaded |
Signal sent when a scenario has just been loaded, either locally or remotely.
| boost::signal<void (const DtScenarioLoadInformation&)> makVrf::DtVrfScenarioManager::signal_preLoadScenario |
Sent before any load scenario is sent to the back-end or before terrain is loaded.
| boost::signal<void (const DtScenarioLoadInformation&)> makVrf::DtVrfScenarioManager::signal_postLoadScenario |
Sent after scenario load message is sent to the back-end and after all additional files are loaded.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_preLoadBaseTerrain |
Sent before terrain is opened This function sends the terrain file requested on load.
Which could change if you are loading say a flt file embedded in a mtd file
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_preLoadTerrain |
Sent before terrain is opened This function sends the actual terrain file being loaded.
| boost::signal<void (const std::string&)> makVrf::DtVrfScenarioManager::signal_postLoadTerrain |
Sent after terrain is opened.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadForceFiles |
Sent before force file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadForceFiles |
Sent after force file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadArtilleryManager |
Sent after artillery artillery is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadArtilleryManager |
Sent after artillery artillery is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadModelSetFiles |
Sent before model set files are loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadModelSetFiles |
Sent after model set files are loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadCreateMenu |
Sent before create menu is loaded.
| boost::signal<void (const DtScenarioExplorer&, DtMenu*)> makVrf::DtVrfScenarioManager::signal_postLoadCreateMenu |
Sent after create menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadTaskMenu |
Sent before task menu is loaded.
| boost::signal<void (const DtFilename&, DtVrfModelSetManager*)> makVrf::DtVrfScenarioManager::signal_modelSetLoaded |
Signal sent when a model set is loaded into the model set manager.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadTaskMenu |
Sent after task menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_preLoadSetMenu |
Sent before set menu is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_postLoadSetMenu |
Sent after set menu is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadOverlayFile |
Sent before overlay file is loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadOverlayFile |
Sent after overlay file is loaded.
| boost::signal<void (const DtScenarioExplorer&)> makVrf::DtVrfScenarioManager::signal_createMenuLoaded |
Sent after post load callback.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateCreateMenu |
Sent to simply recrete the menu. Called from recreateCreateMenu() method.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateTaskMenu |
Sent to simply recrete the menu. Called from recreateTaskMenu() method.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_recreateSetMenu |
Sent to simply recrete the menu. Called from recreateSetMenu() method.
| boost::signal<void (const DtVrfSessionSettingsRecord&)> makVrf::DtVrfScenarioManager::signal_sessionSettingsChanged |
Sent when session settings have changed.
| boost::signal<void (const DtVrfScriptedTaskSettingsRecord&)> makVrf::DtVrfScenarioManager::signal_scriptedTaskSettingsChanged |
Sent when scripted task settings have changed.
| boost::signal<void (DtVrfGuiRecentScenarios*)> makVrf::DtVrfScenarioManager::signal_recentScenariosChanged |
Sent when recent scenarios have changed.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_preLoadGuiScenarioSettings |
Sent before scenario settings are loaded.
| boost::signal<void (const DtScenario&)> makVrf::DtVrfScenarioManager::signal_postLoadGuiScenarioSettings |
Sent after scenario settings are loaded.
| boost::signal<void ()> makVrf::DtVrfScenarioManager::signal_scenarioClosed |
Sent when the scenario is closed.
| boost::signal<void (QString)> makVrf::DtVrfScenarioManager::signal_windowTitleSet |
Signal sent when the window title is set.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.
|
protected |
Signal sent when a scenario has just been loaded, either locally or remotely.