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

Widget subclassed from makVrv::DtDisplayUnitsSettingsWidget to add timezone selection, and time formatting. More...

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

Public Member Functions

 DtVrfDisplayUnitsSettingsWidget (makVrv::DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR. More...
 
virtual ~DtVrfDisplayUnitsSettingsWidget ()
 Virtual DTOR. More...
 
- Public Member Functions inherited from makVrv::DtDisplayUnitsSettingsWidget
 DtDisplayUnitsSettingsWidget (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR. More...
 
virtual ~DtDisplayUnitsSettingsWidget ()
 Virtual DTOR. More...
 
virtual void addDisplayUnitToUI (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, makArchives::DtDisplayUnitsSettingsRecord::DisplayUnitType type)
 Add a display unit to the interface. More...
 
virtual void updateDisplayUnitUnit (const std::string &displayUnitCollectionName, const std::string &displayUnitName, unsigned int unitEnumValue)
 Update the interface to reflect the new unit of measurement a display unit uses. More...
 
virtual void updateDisplayUnitDecimals (const std::string &displayUnitCollectionName, const std::string &displayUnitName, unsigned int decimals)
 Update the interface to reflect the new number of decimals a display unit uses. More...
 
virtual void updateDisplayUnitName (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName, const DtUnicode &newDisplayName)
 Update the name of a display unit in the UI. More...
 
virtual void setDisplayUnitDecimalsQSpinBoxVisible (const std::string &displayUnitCollectionName, const std::string &displayUnitName, bool isVisible)
 Update the visibility of a QSpinBox associated with a display unit. More...
 
virtual void addSuppressMagneticNorthNotationCheckBox ()
 Add a checkbox that toggles the suppression of magnetic north notation to the GUI. More...
 
virtual void setSuppressMagneticNorthNotationEnabled (bool enabled)
 Set the state of the QCheckBox for suppressing magnetic north notation. More...
 
virtual void addObjectTypeToUI (const DtUnicode &objectType)
 Add an object type to the interface. More...
 
virtual std::string currentObjectType () const
 Get the currently selected object type. More...
 
virtual void populateDisplayUnitComboBoxes (makArchives::DtDisplayUnitsSettingsRecord::DisplayUnitType displayUnitType, const DtUnicode &name, unsigned int unitEnumValue)
 Populate the appropriate unit of measurement combo boxes. More...
 
virtual void clear ()
 Removes all the display units and unit of measurements from the GUI. More...
 
- Public Member Functions inherited from makVrv::DtDisplayUnitsSettingsInterface
virtual ~DtDisplayUnitsSettingsInterface ()
 DTOR. More...
 

Public Attributes

QLabelmyTimeDisplayLabel
 
QLabelmyTimezoneLabel
 
QLabelmyTimeFormatLabel
 
QComboBoxmyTimezoneCombo
 
QComboBoxmyDateTimeFormat
 
QComboBoxmyFormatsSetCombo
 
- Public Attributes inherited from makVrv::DtDisplayUnitsSettingsWidget
QGridLayout * myMainLayout
 
QHBoxLayout * myObjectTypeLayout
 
QLabelmyObjectTypeLabel
 
QComboBoxmyObjectTypeComboBox
 
QLabelmyDecimalPlacesLabel
 
std::map< std::string,
std::set< QWidget * > > 
myDynamicWidgets
 
std::map< std::string,
unsigned int
myDynamicWidgetsLayoutIndices
 
std::map
< makArchives::DtDisplayUnitsSettingsRecord::DisplayUnitType,
std::set< QComboBox * > > 
myComboBoxesByDisplayUnitType
 
- Public Attributes inherited from makVrv::DtDisplayUnitsSettingsInterface
boost::signalslib::signal< void()> signal_currentObjectTypeChanged
 Used to signal the logic class when the currently selected object type, e.g. More...
 
boost::signalslib::signal
< void(const std::string
&displayUnitCollectionName,
const std::string
&displayUnitName, unsigned int
unitEnumValue)> 
signal_displayUnitUnitChanged
 Used to signal the logic class when the unit of measurement to use for a display unit has changed in the GUI. More...
 
boost::signalslib::signal
< void(const std::string
&displayUnitCollectionName,
const std::string
&displayUnitName, unsigned int
decimals)> 
signal_displayUnitDecimalsChanged
 Used to signal the logic class when the number of decimal places to use for a display unit has changed in the GUI. More...
 
boost::signalslib::signal
< void(bool
suppressMagNorthNotation)> 
signal_suppressMagneticNorthNotationChanged
 Used to signal the logic class when the checkbox indicating whether or not to suppress magnetic north notation has changed in the GUI. More...
 

Protected Slots

virtual void timezoneChanged ()
 
virtual void dateTimeFormatChanged ()
 
virtual void formatsSetChanged ()
 
- Protected Slots inherited from makVrv::DtDisplayUnitsSettingsWidget
void slot_onObjectTypeChanged (int index)
 
void slot_onDisplayUnitUnitChanged (int unit)
 
void slot_onDisplayUnitDecimalsChanged (int decimals)
 
void slot_onSuppressMagneticNorthNotationCheckboxChanged (int state)
 

Protected Member Functions

virtual void slot_timezoneChanged (const std::string &oldTimezone, const std::string &newTimezone)
 Sets the timezone to use. More...
 
virtual void slot_dateAndTimeFormattingChanged (const std::string &newFormat)
 Sets the display of the date/time. More...
 
virtual void slot_formatsSetChanged (const std::string &newFormatsSet)
 
virtual void refreshTimezones ()
 
- Protected Member Functions inherited from makVrv::DtDisplayUnitsSettingsWidget
virtual void setupGui ()
 Sets up the GUI with three sections for some number of display units, added via addDisplayUnitToUI(...). More...
 
virtual std::string getDisplayUnitKey (const std::string &displayUnitCollectionName, const std::string &displayUnitName) const
 Get the string key for a display unit The key is used internally to group its dynamic children widgets by storing the key in widgets that control a display unit setting, e.g. More...
 

Protected Attributes

makVrv::DtSignalConnectionManager myConnectionManager
 
bool myHasCustomDateTimeFormat
 
bool myResizeTimezonesToContent
 
unsigned int myNextAvailableVrfRowIndex
 
- Protected Attributes inherited from makVrv::DtDisplayUnitsSettingsWidget
DtDemyDe
 
unsigned int myNextAvailableObjectRowIndex
 These are used to maintain the next free row in the QGridLayout so display units can continually be added to the GUI. More...
 
unsigned int myNextAvailableApplicationRowIndex
 
unsigned int myNextAvailableWeatherRowIndex
 

Detailed Description

Widget subclassed from makVrv::DtDisplayUnitsSettingsWidget to add timezone selection, and time formatting.

Same information is also available on the Date/Time section of the environment page

Constructor & Destructor Documentation

makVrf::DtVrfDisplayUnitsSettingsWidget::DtVrfDisplayUnitsSettingsWidget ( makVrv::DtDe de,
QWidget *  parent,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

virtual makVrf::DtVrfDisplayUnitsSettingsWidget::~DtVrfDisplayUnitsSettingsWidget ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::slot_timezoneChanged ( const std::string &  oldTimezone,
const std::string &  newTimezone 
)
protectedvirtual

Sets the timezone to use.

virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::slot_dateAndTimeFormattingChanged ( const std::string &  newFormat)
protectedvirtual

Sets the display of the date/time.

virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::slot_formatsSetChanged ( const std::string &  newFormatsSet)
protectedvirtual
virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::refreshTimezones ( )
protectedvirtual
virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::timezoneChanged ( )
protectedvirtualslot
virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::dateTimeFormatChanged ( )
protectedvirtualslot
virtual void makVrf::DtVrfDisplayUnitsSettingsWidget::formatsSetChanged ( )
protectedvirtualslot

Member Data Documentation

QLabel* makVrf::DtVrfDisplayUnitsSettingsWidget::myTimeDisplayLabel
QLabel* makVrf::DtVrfDisplayUnitsSettingsWidget::myTimezoneLabel
QLabel* makVrf::DtVrfDisplayUnitsSettingsWidget::myTimeFormatLabel
QComboBox* makVrf::DtVrfDisplayUnitsSettingsWidget::myTimezoneCombo
QComboBox* makVrf::DtVrfDisplayUnitsSettingsWidget::myDateTimeFormat
QComboBox* makVrf::DtVrfDisplayUnitsSettingsWidget::myFormatsSetCombo
makVrv::DtSignalConnectionManager makVrf::DtVrfDisplayUnitsSettingsWidget::myConnectionManager
protected
bool makVrf::DtVrfDisplayUnitsSettingsWidget::myHasCustomDateTimeFormat
protected
bool makVrf::DtVrfDisplayUnitsSettingsWidget::myResizeTimezonesToContent
protected
unsigned int makVrf::DtVrfDisplayUnitsSettingsWidget::myNextAvailableVrfRowIndex
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)