![]() |
Mapper
0.9.0
API documentation
|
Abstract base class for parameters in CRSTemplates. More...
#include <crs_template.h>
Public Types | |
using | WidgetObserver = CRSParameterWidgetObserver |
Public Member Functions | |
CRSTemplateParameter (const QString &id, const QString &name) | |
Constructs a new parameter with the given identifier and name. More... | |
CRSTemplateParameter (const CRSTemplateParameter &)=delete | |
CRSTemplateParameter (CRSTemplateParameter &&)=delete | |
virtual | ~CRSTemplateParameter () |
Destructor. More... | |
CRSTemplateParameter & | operator= (const CRSTemplateParameter &)=delete |
CRSTemplateParameter & | operator= (CRSTemplateParameter &&)=delete |
QString | id () const |
Returns the parameter's permanent unique ID. More... | |
QString | name () const |
Returns the parameter's display name. More... | |
virtual QWidget * | createEditor (WidgetObserver &widget_observer) const =0 |
Creates a widget which can be used to edit the value. More... | |
virtual std::vector< QString > | specValues (const QString &edit_value) const |
Return a list of actual specification parameters values from a value in storage format. More... | |
virtual QString | value (const QWidget *edit_widget) const =0 |
Return the widget's value(s) in form of a single string. More... | |
virtual void | setValue (QWidget *edit_widget, const QString &value)=0 |
Sets the widget to a stored value. More... | |
Abstract base class for parameters in CRSTemplates.
OpenOrienteering::CRSTemplateParameter::CRSTemplateParameter | ( | const QString & | id, |
const QString & | name | ||
) |
Constructs a new parameter with the given identifier and name.
|
delete |
|
delete |
|
virtual |
Destructor.
|
pure virtual |
Creates a widget which can be used to edit the value.
The widget should be simple in the sense that it can be used as a field in a QFormLayout, together with the parameter's label.
Implemented in OpenOrienteering::CRSTemplates::IntRangeParameter, OpenOrienteering::CRSTemplates::UTMZoneParameter, OpenOrienteering::CRSTemplates::FullSpecParameter, and OpenOrienteering::CRSTemplates::TextParameter.
|
inline |
Returns the parameter's permanent unique ID.
|
inline |
Returns the parameter's display name.
|
delete |
|
delete |
|
pure virtual |
Sets the widget to a stored value.
Implemented in OpenOrienteering::CRSTemplates::IntRangeParameter, OpenOrienteering::CRSTemplates::UTMZoneParameter, OpenOrienteering::CRSTemplates::FullSpecParameter, and OpenOrienteering::CRSTemplates::TextParameter.
|
virtual |
Return a list of actual specification parameters values from a value in storage format.
The default implementation returns a vector which contains just the single edit_value.
Reimplemented in OpenOrienteering::CRSTemplates::IntRangeParameter, and OpenOrienteering::CRSTemplates::UTMZoneParameter.
|
pure virtual |
Return the widget's value(s) in form of a single string.
This string can be stored and used for restoring the widget.
Implemented in OpenOrienteering::CRSTemplates::IntRangeParameter, OpenOrienteering::CRSTemplates::UTMZoneParameter, and OpenOrienteering::CRSTemplates::TextParameter.