SPH
|
Partial specialization for Path. More...
#include <VirtualSettings.inl.h>
Public Member Functions | |
SettingsEntry (Settings< TEnum > &settings, const TEnum id, const std::string &name) | |
virtual void | setImpl (const Value &value) override |
virtual Value | get () const override |
Returns the currently stored value. More... | |
virtual Type | getType () const override |
Returns the type of this entry. More... | |
virtual std::string | getName () const override |
Returns a descriptive name of the entry. More... | |
Public Member Functions inherited from EntryControl | |
EntryControl & | setTooltip (const std::string &newTooltip) |
Adds or replaces the previous tooltip associanted with the entry. More... | |
EntryControl & | setUnits (const Float newMult) |
Sets units in which the entry is stored. More... | |
EntryControl & | setEnabler (const Enabler &newEnabler) |
Adds or replaces the enabler functor of the entry. More... | |
EntryControl & | addAccessor (const SharedToken &owner, const Accessor &accessor) |
Adds a functor called when the entry changes, i.e. when set function is called. More... | |
EntryControl & | setValidator (const Validator &newValidator) |
Adds or replaces the functor called to validate the new value. More... | |
EntryControl & | setSideEffect () |
Specifies that the entry has a side effect, i.e. in changes values of other entries. More... | |
EntryControl & | setPathType (const PathType &newType) |
Sets the type of the path. More... | |
EntryControl & | setFileFormats (Array< FileFormat > &&formats) |
Sets the allowed file formats. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Additional Inherited Members | |
Public Types inherited from EntryControl | |
using | Enabler = Function< bool()> |
using | Accessor = Function< void(const Value &newValue)> |
using | Validator = Function< bool(const Value &newValue)> |
Public Types inherited from IVirtualEntry | |
enum class | Type { BOOL , INT , FLOAT , VECTOR , INTERVAL , STRING , PATH , ENUM , EXTRA , FLAGS } |
enum class | PathType { DIRECTORY , INPUT_FILE , OUTPUT_FILE } |
using | Value = Variant< bool, int, Float, Vector, Interval, std::string, Path, EnumWrapper, ExtraEntry > |
Protected Member Functions inherited from EntryControl | |
virtual bool | enabled () const override final |
Returns if this entry is currently enabled. More... | |
virtual std::string | getTooltip () const override final |
Returns an optional description of the entry. More... | |
virtual bool | hasSideEffect () const override final |
Returns true if the entry can modify multiple values simultaneously. More... | |
virtual Optional< PathType > | getPathType () const override final |
Returns the type of the path. More... | |
virtual Array< FileFormat > | getFileFormats () const override final |
Returns the allowed file format for this file entry. More... | |
virtual bool | isValid (const Value &value) const override final |
Checks if the given value is a valid input for this entry. More... | |
Protected Attributes inherited from EntryControl | |
std::string | tooltip |
Float | mult = 1._f |
Optional< PathType > | pathType = NOTHING |
Array< FileFormat > | fileFormats |
Enabler | enabler = nullptr |
CallbackSet< Accessor > | accessors |
Validator | validator = nullptr |
bool | sideEffect = false |
Partial specialization for Path.
Definition at line 217 of file VirtualSettings.inl.h.
|
inline |
Definition at line 224 of file VirtualSettings.inl.h.
|
inlineoverridevirtual |
Returns the currently stored value.
Implements IVirtualEntry.
Definition at line 235 of file VirtualSettings.inl.h.
|
inlineoverridevirtual |
Returns a descriptive name of the entry.
This name is intended to be presented to the user (in UI, printed in log, etc.). It may be the same as the key associated with an entry, although the key is only used as an unique identifier and does not have to be human-readable.
Implements IVirtualEntry.
Definition at line 243 of file VirtualSettings.inl.h.
|
inlineoverridevirtual |
Returns the type of this entry.
Implements IVirtualEntry.
Definition at line 239 of file VirtualSettings.inl.h.
|
inlineoverridevirtual |
Implements EntryControl.
Definition at line 231 of file VirtualSettings.inl.h.