![]() |
VR-Forces 4.10 Class Documentation
|
Widget that allows the selection of a country. More...

Public Member Functions | |
| DtCountrySelectionEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode) | |
| virtual | ~DtCountrySelectionEntryWidget () |
| virtual void | setLabel (const QString &) |
| Qt version label. More... | |
| virtual QString | label () const |
| virtual void | setLabel (const std::string &) |
| Display label. More... | |
| virtual void | setRange (double bottom, double top) |
| Validation range. Not applicable. More... | |
| virtual void | setDefaultValue (const std::string &) |
| Default value to set in control. More... | |
| virtual void | setVariableData (const std::string &) |
| Variable data. Unused in this widget. More... | |
| virtual void | setupFrom (const std::vector< makVrv::DtSimEntry * > &data) |
| Sets up widget with currently selected item. Requests data. More... | |
| virtual void | setToolTip (const QString &) |
| Sets the tool tip for the widget. More... | |
| virtual DtReaderWriter * | createBoundVariable (const std::string &variableName) |
| Creates the reader/writer variable that will be used as part of the task statement. More... | |
| virtual void | addCountry (const std::string &code, const std::string &countryName, const QPixmap &flag) |
| Adds a new force info potential forces and force combo. More... | |
| virtual void | setupFromBoundVariable (const DtReaderWriter *variableName) |
| Sets up the widget from the given reader/writer variables. More... | |
| virtual void | setCountryCode (const std::string &) |
| Sets the current country (by code) More... | |
| virtual std::string | countryCode () const |
| Returns the current country code. More... | |
| virtual QString | countryName (bool translated=true) const |
| Returns the name of the country selected. More... | |
| virtual void | setIndent (int) |
| Sets the indent level for the contents of this widget. More... | |
| virtual void | setHasAll (bool) |
| Whether or not to include "All" (default is true) More... | |
| bool | hasAll () const |
| virtual void | setHasUncategorized (bool) |
| Whether or not to include "Uncategorized" (default is true) More... | |
| bool | hasUncategoriezed () const |
| virtual void | clear () |
| virtual bool | isValid () const |
| Indicates the current selection is valid. More... | |
| virtual std::string | scriptedTaskVariableName () const |
| In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead. More... | |
| virtual void | initializeCountries () |
| Clears and re-initializes country list. More... | |
| virtual void | setHideCountries (const std::set< std::string > &countryCodes) |
| const std::set< std::string > & | hideCountries () const |
| virtual void | setShowCountries (const std::set< std::string > &countryCodes) |
| If this is empty will return to default behavior of showing all available. More... | |
| const std::set< std::string > & | showCountries () const |
| virtual void | setAllowNone (bool) |
| Allow "None" to be put in. The code will be the empty string (default is false) More... | |
| bool | allowNone () const |
Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| DtTaskSetVariableWidgetInterface () | |
| virtual | ~DtTaskSetVariableWidgetInterface () |
| virtual void | setTopLineVisible (bool) |
| Hides top line. More... | |
| virtual bool | topLineVisible () const |
| virtual void | widgetInitializedForDialog (DtScriptedTaskDialog *, const std::vector< makVrv::DtSimEntry * > &data) |
| Called when the widget is initialized from a scripted task dialog. Default implementation is to do nothing. More... | |
| virtual const std::set < makVrv::DtUniqueID > & | selection () const |
| virtual DtTaskSetVariableWidgetExtensionInterface * | parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const |
| If there are any, returns contents for this variable for variable extension. Default is no extension. More... | |
| virtual bool | guiElementOnly () const |
| Returns true if this is a GUI element only. Default is false. More... | |
Static Public Member Functions | |
| static makVrv::DtUnicode | codeVariableType () |
| static std::string | designerGroup () |
| static std::string | headerFile () |
| static std::string | variableName () |
| static bool | includeInQtDesigner () |
| static std::string | uncategorizedCode () |
| The internal code that will select "Uncategorized". More... | |
| static std::string | allCode () |
| The internal code that will select "All". More... | |
Static Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| static bool | canBeUsedAsWidget () |
| Whether or not this shows up as a usable variable widget. More... | |
| static void | initializeForQtDesignerExtension (makVrv::DtDe &de, QDesignerFormEditorInterface *core) |
| Implement at class level to perform Qt Designer custom widget initialization. Please refer to Qt documentation for designer modifications. More... | |
| static bool | includeInQtDesigner () |
Public Attributes | |
| boost::signals2::signal< void(std::string)> | signal_countrySelectionChanged |
| QLabel * | myCountryLabel |
| QComboBox * | myCountry |
| QHBoxLayout * | myContentLayout |
| QSpacerItem * | mySpacerItem |
Protected Slots | |
| virtual void | activated (int) |
Protected Member Functions | |
| virtual std::string | variableDataFromUiDesigner (const QDomElement &, const DtScriptedTaskVariableLayoutConverter &) const |
| Given the Ui designer properties create a string that will represent the variable data for those properties. More... | |
| virtual void | initialize () |
| virtual void | slot_countryAdded (const std::string &code) |
| virtual void | slot_countryRemoved (const std::string &code) |
| virtual void | slot_countriesReloaded () |
| void | setSelection (const std::set< makVrv::DtUniqueID > &) |
| The selection set can be used to determine the diplay units to show. More... | |
| void | setSelection (const std::vector< makVrv::DtSimEntry * > &) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| bool | myInitialized |
| makVrv::DtSignalConnectionManager | myConnections |
| bool | myHasAll |
| bool | myHasUncategorized |
| std::set< std::string > | myHideCountries |
| std::set< std::string > | myShowCountries |
| bool | myAllowNone |
Additional Inherited Members | |
Public Types inherited from makVrf::DtTaskSetVariableWidgetInterface | |
| enum | CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 } |
Widget that allows the selection of a country.
| makVrf::DtCountrySelectionEntryWidget::DtCountrySelectionEntryWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0, |
||
| const CreationFlags & | cflags = NormalMode |
||
| ) |
|
virtual |
|
virtual |
Qt version label.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
|
virtual |
Display label.
Implements makVrf::DtTaskSetVariableWidgetInterface.
Validation range. Not applicable.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Default value to set in control.
If value contains colons then treat as DD:HH:MM:SS else treat as seconds
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Variable data. Unused in this widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Sets up widget with currently selected item. Requests data.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Sets the tool tip for the widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Creates the reader/writer variable that will be used as part of the task statement.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Adds a new force info potential forces and force combo.
|
virtual |
Sets up the widget from the given reader/writer variables.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Sets the current country (by code)
|
virtual |
Returns the current country code.
|
virtual |
Returns the name of the country selected.
|
virtual |
Sets the indent level for the contents of this widget.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Whether or not to include "All" (default is true)
|
inline |
|
virtual |
Whether or not to include "Uncategorized" (default is true)
|
inline |
|
virtual |
|
inlinevirtual |
Indicates the current selection is valid.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
inlinestatic |
References makVrv::DtUnicode::tr().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
virtual |
In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead.
If the blank name is returned then just use the variable name
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
virtual |
Clears and re-initializes country list.
|
virtual |
|
inline |
|
virtual |
If this is empty will return to default behavior of showing all available.
If this is not empty will also not show all or uncategorized
|
inline |
|
static |
The internal code that will select "Uncategorized".
|
static |
The internal code that will select "All".
|
virtual |
Allow "None" to be put in. The code will be the empty string (default is false)
|
inline |
|
protectedvirtualslot |
|
inlineprotectedvirtual |
Given the Ui designer properties create a string that will represent the variable data for those properties.
Implements makVrf::DtTaskSetVariableWidgetInterface.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
The selection set can be used to determine the diplay units to show.
Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.
|
inlineprotectedvirtual |
Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.
| boost::signals2::signal<void (std::string)> makVrf::DtCountrySelectionEntryWidget::signal_countrySelectionChanged |
| QLabel* makVrf::DtCountrySelectionEntryWidget::myCountryLabel |
| QComboBox* makVrf::DtCountrySelectionEntryWidget::myCountry |
| QHBoxLayout* makVrf::DtCountrySelectionEntryWidget::myContentLayout |
| QSpacerItem* makVrf::DtCountrySelectionEntryWidget::mySpacerItem |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |