|
| LinkParamBase (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange=true, std::string_view IconResourcePath={}, bool Optional=false) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true).
|
|
virtual | ~LinkBase () |
|
template<typename ResourceManagerType > |
auto | ShareResource (const ResourceManagerType &Manager, ItemIDType ID) |
| Returns a shared_ptr pointing to the resource with the given ID contained in the given resource manager Manager . The returned pointer points to a non-const instance of class Object . Throws an exception of type Util::NotFoundException if the resource is not found.
|
|
template<typename ObjectType > |
auto | MakeObjectIDsWithLabels (const ManagerTypeOfObjectType_t< ObjectType > &Manager) const |
| Finds all resources managed by the given resource manager matching type ObjectTpye and returns a list of information about these objects.
|
|
| TypedParamBase (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange=true, ParamType DefaultValue=ParamType()) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true).
|
|
| TypedParamBase (ParamsBase &Owner, std::string ParamName, ParamType DefaultValue=ParamType()) |
| Base constructor of any parameter to be used if a parameter should not be displayed in a settings dialog (UserEditable is set to false).
|
|
virtual void | ToXMLNodeChild (QDomDocument &Document, QDomElement &XMLElement) const override |
| Converts this parameter to a Qt dom element (describing an XML node containing this parameter's name and value).
|
|
virtual void | FromXMLNodeChild (const QDomElement &XMLElement) override |
| Restores this parameter's value from the given Qt dom element (describing an XML node)
|
|
| ParamBase (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true).
|
|
| ParamBase (ParamsBase &Owner, std::string ParamName) |
| Base constructor of any parameter to be used if a parameter should not be displayed in a settings dialog (UserEditable is set to false).
|
|
virtual | ~ParamBase ()=0 |
|
const auto & | GetOwner () const noexcept |
| Returns the ParamsBase instance owning this ParamBase instance.
|
|
auto & | GetOwner () noexcept |
| Returns the ParamsBase instance owning this ParamBase instance.
|
|
Base class for link parameters to a single Object
of any type specifying the underlying parameter type. The underlying type is the integral DynExp::ItemIDType type, which stores the ID of the linked object.
Definition at line 1121 of file Object.h.
DynExp::ParamsBase::LinkParamBase::LinkParamBase |
( |
ParamsBase & |
Owner, |
|
|
std::string |
ParamName, |
|
|
std::string_view |
ParamTitle, |
|
|
std::string_view |
ParamDescription, |
|
|
bool |
NeedsResetToApplyChange = true , |
|
|
std::string_view |
IconResourcePath = {} , |
|
|
bool |
Optional = false |
|
) |
| |
|
inlineprotected |
Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true).
- Parameters
-
Owner | ParamsBase instance owning this parameter. |
ParamName | Name of the parameter to be used in the XML config file. std::string to allow for auto-generated names. |
ParamTitle | Title of the parameter to be displayed in settings dialogs. A static string literal with a constant address is expected. |
ParamDescription | Detailed description of the parameter to be displayed in settings dialogs. A static string literal with a constant address is expected. |
NeedsResetToApplyChange | Indicated whether the object this parameter belongs to needs to be reset to apply changes if this parameter's value has changed. |
DefaultValue | Default value to assign to the constructed parameter |
Constructs a LinkBase object.
- Parameters
-
IconResourcePath | Qt resource path describing an icon being displayed along with this parameter in user interface dialogs. |
Optional | Determines whether this parameter is optional. Optional parameters do not have to point to valid object IDs. |
No further constructor since LinkParamBase parameters must be editable by the user.
Definition at line 1129 of file Object.h.