![]() |
VR-Forces 4.2 Class Documentation
|

Public Slots | |
| virtual void | setDisplayOptions (const DtTMDisplayOptions *o) |
| Slots. | |
Signals | |
| void | displayOptionsChanged (const DtTMDisplayOptions *o) |
| Signals. | |
Public Member Functions | |
| DtTMAppOptions (int argc, char **argv) | |
| Default constructor. | |
| virtual | ~DtTMAppOptions () |
| Destructor. | |
| virtual bool | init (const DtTMFactory *f) |
| Initializer. | |
| virtual void | parseCommandLine () |
| This function will parse out and process all command line options. | |
| virtual QString | language () const |
| virtual void | setLanguage (const QString &s) |
| virtual void | processConfigFile (const QString &) |
| This function will process a configuration file. | |
| virtual void | readConfigurationFiles () |
| This function will read a configuration file and set all of the appropriate values in the options object. | |
| virtual void | clearFiles () |
| Clears out any files held in arrays (translation, mtl, etc). Default does nothing. | |
| virtual bool | usingGlobalMiniMap () |
| Returns true if global minimap was specified. | |
| virtual void | setUsingGlobalMiniMap (bool) |
| virtual QString | defaultConfigFile () const |
| Returns the name of the default configuration file. | |
| virtual void | setDefaultConfigFile (const QString &) |
| virtual DtTMDisplayOptions * | displayOptions () const |
| Returns a pointer to the global display options. | |
| virtual void | setSettingsFile (const QString &file) |
| Sets the settings file. Default is ...mtl. | |
| virtual QString | settingsFile () const |
| virtual void | setDoNotUseSettingsFile (bool b) |
| Set to true to not save out or load settings. | |
| virtual bool | doNotUseSettingsFile () const |
| virtual void | setDoNotUsePluginsDirectory (bool b) |
| Set to true to not read files from the plugins directory. | |
| virtual bool | doNotUsePluginsDirectory () const |
| virtual void | setQtAssistantLocation (const QString &loc) |
| Qt assistant help usage information. By default is false (uses browser) | |
| virtual QString | qtAssistantLocation () const |
| virtual void | setQtHelpFile (const QString &loc) |
| virtual QString | qtHelpFile () const |
| virtual void | setShowMaximized (bool b) |
| Used only for archival purposes. | |
| virtual bool | showMaximized () const |
| virtual void | setWindowGeometry (const QRect &r) |
| virtual const QRect & | windowGeometry () const |
| virtual void | initCommandOptions () |
| virtual void | initMtlData () |
| virtual const std::vector < DtString > & | symbolMapFiles () const |
| virtual std::vector< DtString > & | symbolMapFiles () |
| virtual const std::vector < DtString > & | translationFiles () const |
| virtual std::vector< DtString > & | translationFiles () |
| virtual void | addTranslationFile (const DtString &) |
| virtual QString | defaultSymbolMapFile () const |
| virtual void | setDefaultSymbolMapFile (const QString &s) |
| virtual QString | overlayMenu () const |
| virtual void | setOverlayMenu (const QString &s) |
| virtual int | printMargin () const |
| virtual void | setPrintMargin (int iMargin) |
| virtual void | setDefaultFreehandSamplingRate (int) |
| Sets/gets the default number of points used to sample on a freehand line. | |
| virtual int | defaultFreehandSamplingRate () const |
| virtual void | setStoreLineValuesMode (int) |
| Sets/gets the mode for storing default line mode settings. | |
| virtual int | storeLineValuesMode () const |
| virtual void | setHideOffScreenSymbols (bool) |
| Set to true, such that when a view driver is created, it will hide rather than destroy symbols that go offscreen. | |
| virtual bool | hideOffScreenSymbols () const |
| virtual void | preparse () |
| Called before mtl or command line is parsed. | |
| virtual const DtString & | defaultTerrainDatabasePath () const |
| virtual void | setDefaultTerrainDatabasePath (const DtString &path) |
| virtual void | setShowSplashScreen (bool) |
| Set to false in order to not show splash screen. By default, it is true. | |
| virtual bool | showSplashScreen () const |
| virtual void | setEnableOverlayLogo (bool) |
| Options for watermark. | |
| virtual bool | enableOverlayLogo () const |
| virtual void | setPluginsDirectory (const DtFilename &) |
| Directory to read for plugins .mtl files. | |
| virtual const DtFilename & | pluginsDirectory () const |
| virtual void | setOverlayLogoFile (const DtFilename &) |
| virtual const DtFilename & | overlayLogoFile () const |
| virtual void | setOverlayLogoPosition (int) |
| The position of the overlay on the map. | |
| virtual int | overlayLogoPosition () const |
| virtual void | setOverlayLogoScaleFactor (double) |
| virtual double | overlayLogoScaleFactor () const |
| virtual void | setOverlayLogoPositionOverride (int x, int y) |
| virtual void | setOverlayLogoPositionOverride (const QPoint &) |
| virtual QPoint | overlayLogoPositionOverride () const |
| virtual void | setPreserveEmptyOverlayLayers (bool) |
| virtual bool | preserveEmptyOverlayLayers () const |
| virtual void | setUseGLWidget (bool) |
| virtual bool | useGLWidget () const |
| virtual void | setLoadPluginsIfVersionMismatch (bool) |
| virtual bool | loadIfVersionMismatch () const |
| const QVector< DtMenuLink > & | helpWebLinks () const |
| virtual void | addHelpWebLink (const QString &helpTitle, const QString &webLink) |
| virtual void | insertHelpWebLink (int iIndex, const QString &helpTitle, const QString &webLink) |
| virtual void | removeHelpWebLink (int iIndex) |
| virtual void | setDisplayStyle (const QString &) |
| virtual const QString & | displayStyle () const |
| virtual void | setAllowRasterMapOptimization (bool) |
| virtual bool | allowRasterMapOptimization () const |
| virtual void | setHideSymbolsWhenMapShifted (bool) |
| If this is true, hides the symbols when shifting the map via Ctrl+Shift movement, else shows symbols. | |
| virtual bool | hideSymbolsWhenMapShifted () const |
| virtual void | postSettingsFileRead () |
| Called after settings file is read. | |
| virtual int | addFont (const QString &) |
| Calls down to QFontDatabase to add the specified font. Returns font resource id if added. | |
| virtual void | addDefaultFonts () |
| Adds default fonts into the system. Currently MAK-MilStd-2525-b.ttf. | |
| virtual void | setFileDialogPriority (int) |
| Set to -1 to not use file dialog workaround for slowness in opening any file dialog. | |
| virtual int | fileDialogPriority () const |
| virtual DtApplicationSettings * | appSettings () |
| virtual char ** | argv () const |
| virtual int | argc () const |
| virtual void | setSplashScreenImage (const DtString &) |
| Determines the image to be used for the splash screen. | |
| virtual const DtString & | splashScreenImage () const |
| Determines the image to be used for the splash screen. | |
Public Member Functions inherited from DtArchivableObject | |
| DtArchivableObject (QString name, DtArchivableObjectCreator fcn) | |
| This constructor will add this object to the archivable object factory. | |
| DtArchivableObject (QString name) | |
| DtArchivableObject () | |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| Returns the archiver of this object. | |
| virtual void | read (QTextStream &s) |
| Reads/writes archiver. | |
| virtual void | write (QTextStream &s) |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| Allows for cloning of this object. | |
Static Public Member Functions | |
| static DtTMAppOptions * | create (int argc, char **argv) |
| Returns a newly created instance of a DTTMAppOptions. | |
Protected Member Functions | |
| virtual void | setupOptionsFromCommandLine () |
| virtual void | addHelpWebLinks () |
Protected Attributes | |
| DtApplicationSettings | myApplicationSettings |
| MUST BE FIRST else bad things happen on initialization of command line variables. | |
| DtConfigVariable< bool > | myUsingGlobalMiniMap |
| Command line used for command parsing. | |
| DtConfigVariable< bool > | myDoNotUseSettingsFile |
| DtConfigVariable< bool > | myDoNotUsePluginsDirectory |
| DtConfigVariable< DtString > | myDefaultConfigFile |
| DtConfigVariable< DtString > | myPluginFile |
| DtMultiConfigVariable< DtString > | myConfigFiles |
| DtMultiConfigVariable< DtString > | myPluginFiles |
| DtConfigVariable< DtString > | myOverlayMenu |
| DtConfigVariable< DtString > | mySettingsFile |
| DtMultiConfigVariable< DtString > | mySymbolMapFiles |
| DtMultiConfigVariable< DtString > | myTranslationFiles |
| DtConfigVariable< DtString > | myDefaultSymbolMapFile |
| DtConfigVariable< DtString > | myLanguage |
| int | myArgc |
| char ** | myArgv |
| DtTMDisplayOptions * | myDisplayOptions |
| bool | myHideOffScreenSymbols |
| int | myShowSplashScreen |
| DtString | mySplashScreenImage |
| DtString | myQtAssistantLocation |
| DtString | myQtHelpFile |
| QRect | myWindowGeometry |
| bool | myShowMaximized |
| int | myPrintMargin |
| int | myDefaultFreehandSamplingRate |
| int | myHideSymbolsWhenMapShifted |
| int | myStoreLineValuesMode |
| DtString | myDefaultTerrainDatabasePath |
| int | myEnableLogoOverlay |
| Watermark items. | |
| DtFilename | myOverlayLogoFile |
| int | myOverlayLogoPosition |
| The position of the overlay on the map. 1 is upper left, 2 is upper middle, 3 is upper right, etc. | |
| double | myOverlayLogoScaleFactor |
| Amount to scale image. 1.0 is normal scale. | |
| int | myOverlayLogoPositionX |
| Override position. If both are not -1, place logo at that place. | |
| int | myOverlayLogoPositionY |
| int | myPreserveEmptyOverlayLayers |
| If true, will keep around empty overlay layers when a scenario or database is closed as well as create empty overlay layers that exist in a .ovl file. | |
| DtFilename | myPluginsDirectory |
| Default is ../plugins unless on 64-bit OS, in which case it's ../plugins64. | |
| short | myLoadIfVersionMismatch |
| QString | myDisplayStyle |
| Display style. Default is windows. | |
| int | myAllowRasterMapOptimization |
| Set to false to turn off default raster map optimization (default is on) | |
| QHash< int, QString > | myFontMap |
| Map of fonts. Will be used to remove when options are deleted. | |
| QVector< DtMenuLink > | myHelpWebLinks |
| int | myFileDialogPriority |
| The priority to use when setting file dialog thread. | |
| int | myUseGLWidget |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
Private Member Functions | |
| DtTMAppOptions (const DtTMAppOptions &orig) | |
| Copy constructor – not implemented. | |
| DtTMAppOptions & | operator= (const DtTMAppOptions &rhs) |
| Assignment operator – not implemented. | |
| DtTMAppOptions::DtTMAppOptions | ( | int | argc, |
| char ** | argv | ||
| ) |
Default constructor.
|
virtual |
Destructor.
|
private |
Copy constructor – not implemented.
|
virtual |
Initializer.
|
virtual |
This function will parse out and process all command line options.
|
virtual |
|
virtual |
|
virtual |
This function will process a configuration file.
|
virtual |
This function will read a configuration file and set all of the appropriate values in the options object.
|
virtual |
Clears out any files held in arrays (translation, mtl, etc). Default does nothing.
|
virtual |
Returns true if global minimap was specified.
|
virtual |
|
virtual |
Returns the name of the default configuration file.
|
virtual |
|
virtual |
Returns a pointer to the global display options.
Referenced by DtTMApplication::displayOptions().
|
virtual |
Sets the settings file. Default is ...mtl.
|
virtual |
|
virtual |
Set to true to not save out or load settings.
|
virtual |
|
virtual |
Set to true to not read files from the plugins directory.
|
virtual |
|
virtual |
Qt assistant help usage information. By default is false (uses browser)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Used only for archival purposes.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in DtTerrainAppOptions.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets/gets the default number of points used to sample on a freehand line.
Default is one
|
virtual |
|
virtual |
Sets/gets the mode for storing default line mode settings.
All settings are valid for this session only
0 - Do not store 1 - Only store if object is a freehand object 2 - Store all values
Default is 1
|
virtual |
|
virtual |
Set to true, such that when a view driver is created, it will hide rather than destroy symbols that go offscreen.
Performance enhacement for large exercises. By default is false
|
virtual |
|
virtual |
Called before mtl or command line is parsed.
Use to preparse command line or any other setup. This is for mtl file reading, currently
Reimplemented in DtTerrainAppOptions.
|
virtual |
|
virtual |
|
virtual |
Set to false in order to not show splash screen. By default, it is true.
|
virtual |
|
virtual |
Determines the image to be used for the splash screen.
|
virtual |
Determines the image to be used for the splash screen.
|
virtual |
Options for watermark.
These must be set before the application has started. Setting them after application initialization will have no effect
|
virtual |
|
virtual |
Directory to read for plugins .mtl files.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
The position of the overlay on the map.
7 is upper left, 8 is upper middle, 9 is upper right, etc. The positioning follows the keypad numbering
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References myHelpWebLinks.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If this is true, hides the symbols when shifting the map via Ctrl+Shift movement, else shows symbols.
|
virtual |
|
virtual |
Called after settings file is read.
|
virtual |
Calls down to QFontDatabase to add the specified font. Returns font resource id if added.
|
virtual |
Adds default fonts into the system. Currently MAK-MilStd-2525-b.ttf.
|
virtual |
Set to -1 to not use file dialog workaround for slowness in opening any file dialog.
|
virtual |
|
virtual |
|
inlinevirtual |
References myArgv.
|
inlinevirtual |
References myArgc.
|
protectedvirtual |
|
protectedvirtual |
|
static |
Returns a newly created instance of a DTTMAppOptions.
Reimplemented in DtTerrainAppOptions.
|
signal |
Signals.
|
virtualslot |
Slots.
|
private |
Assignment operator – not implemented.
|
protected |
MUST BE FIRST else bad things happen on initialization of command line variables.
|
protected |
Command line used for command parsing.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by argc().
|
protected |
Referenced by argv().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Watermark items.
|
protected |
|
protected |
The position of the overlay on the map. 1 is upper left, 2 is upper middle, 3 is upper right, etc.
|
protected |
Amount to scale image. 1.0 is normal scale.
|
protected |
Override position. If both are not -1, place logo at that place.
|
protected |
|
protected |
If true, will keep around empty overlay layers when a scenario or database is closed as well as create empty overlay layers that exist in a .ovl file.
If false, will remove those layers when the scenario or database is closed and/or not create empty layers found in the .ovl file. Default is false
|
protected |
Default is ../plugins unless on 64-bit OS, in which case it's ../plugins64.
|
protected |
|
protected |
Display style. Default is windows.
|
protected |
Set to false to turn off default raster map optimization (default is on)
|
protected |
Map of fonts. Will be used to remove when options are deleted.
|
protected |
Referenced by helpWebLinks().
|
protected |
The priority to use when setting file dialog thread.
Work around for Qt slowness in opening file dialog on windows. If this value is -1, will not use scheme. Default is THREAD_PRIORITY_TIME_CRITICAL
|
protected |