6 #ifndef SWIFT_GUI_SETTINGS_VIEWUPDATESETTINGS_H
7 #define SWIFT_GUI_SETTINGS_VIEWUPDATESETTINGS_H
21 namespace swift::gui::settings
30 IndexAtc = swift::misc::CPropertyIndexRef::GlobalIndexCViewUpdateSettings,
54 this->m_updateAircraft = time;
69 this->m_updateRendering = time;
76 QString convertToQString(
bool i18n =
false)
const;
104 static const char *
key() {
return "guiviewupdate"; }
109 static const QString name(
"View update");
Settings about view update rates.
void setAircraftUpdateTime(const swift::misc::physical_quantities::CTime &time)
Set time.
const swift::misc::physical_quantities::CTime & getRenderingUpdateTime() const
Get time.
void setRenderingUpdateTime(const swift::misc::physical_quantities::CTime &time)
Set time.
const swift::misc::physical_quantities::CTime & getUserUpdateTime() const
Get time.
void setUserUpdateTime(const swift::misc::physical_quantities::CTime &time)
Set time.
const swift::misc::physical_quantities::CTime & getAircraftUpdateTime() const
Get time.
void setAtcUpdateTime(const swift::misc::physical_quantities::CTime &time)
Set time.
bool isValid() const
Valid?
ColumnIndex
Properties by index.
const swift::misc::physical_quantities::CTime & getAtcUpdateTime() const
Get time.
Generic ordered container with value semantics.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
static CTimeUnit s()
Second s.
Trait for settings about update rates.
static bool isValid(const CViewUpdateSettings &settings, QString &)
Validator function. Return true if the argument is valid, false otherwise. Default implementation jus...
static const char * key()
Key string of the value. Reimplemented in derived class.
static const QString & humanReadable()
Optional human readable name.
Base class for traits to be used as template argument to swift::misc::CSetting.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...