#include "PropertyInput.h"
Public Slots | |
| void | slotValueChanged (void) |
| If called the "inputValueChanged()" signal is emitted and the multiple values flag removed. | |
| void | slotValueChanged (bool) |
| If called the "inputValueChanged()" signal is emitted and the multiple values flag removed. | |
| void | slotValueChanged (int) |
| If called the "inputValueChanged()" signal is emitted and the multiple values flag removed. | |
Signals | |
| void | inputValueChanged (void) |
| Is emitted whenever the user changed a value. | |
Public Member Functions | |
| PropertyInput () | |
| virtual | ~PropertyInput () |
| virtual void | addPropertyInputValueToJson (ot::JsonValue &_object, const char *_memberNameValue, ot::JsonAllocator &_allocator)=0 |
| Add the current value to the provided JSON object. | |
| virtual QVariant | getCurrentValue (void) const =0 |
| Returns the current value. | |
| virtual Property * | createPropertyConfiguration (void) const =0 |
| Creates a property configuration that can be used to later create this object. | |
| virtual QWidget * | getQWidget (void) override=0 |
| Returns the root widget of the input (allows nested widgets) | |
| virtual bool | setupFromConfiguration (const Property *_configuration) |
| Setup the input from the provided configration. | |
| virtual void | focusPropertyInput (void)=0 |
| Sets the focus on the input widget. | |
| const std::string & | getPropertyType (void) const |
| void | setData (const PropertyBase &_data) |
| PropertyBase & | data (void) |
| const PropertyBase & | data (void) const |
| void | setDataHasChanged (bool _changed=true) |
| bool | dataHasChanged (void) const |
Public Member Functions inherited from ot::QWidgetInterface | |
| QWidgetInterface () | |
| virtual | ~QWidgetInterface () |
| void | setOTWidgetFlags (const WidgetFlags &_flags) |
| const WidgetFlags & | otWidgetFlags (void) const |
| virtual void | otWidgetFlagsChanged (const WidgetFlags &_flags) |
| void | centerOnParent (const QWidget *const _parentWidget) |
| Centers this widget on the parent. If no parent is provided the widget will center on the screen. | |
| QPoint | calculateCenterOnParentPos (const QWidget *const _parentWidget) |
| Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen. | |
Additional Inherited Members | |
Protected Attributes inherited from ot::QWidgetInterface | |
| WidgetFlags | m_widgetFlags |
| ot::PropertyInput::PropertyInput | ( | ) |
|
inlinevirtual |
|
pure virtual |
Add the current value to the provided JSON object.
| _object | Target JSON object |
| _memberNameValue | Value member name |
| _allocator | JSON allocator |
Implemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
pure virtual |
Creates a property configuration that can be used to later create this object.
Implemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Sets the focus on the input widget.
Implemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
pure virtual |
Returns the current value.
Implemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
inline |
|
overridepure virtual |
Returns the root widget of the input (allows nested widgets)
Implements ot::QWidgetInterface.
Implemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
signal |
Is emitted whenever the user changed a value.
|
inline |
|
inline |
|
virtual |
Setup the input from the provided configration.
Reimplemented in ot::PropertyInputBool, ot::PropertyInputColor, ot::PropertyInputDirectory, ot::PropertyInputDouble, ot::PropertyInputFilePath, ot::PropertyInputInt, ot::PropertyInputPainter2D, ot::PropertyInputString, and ot::PropertyInputStringList.
|
slot |
If called the "inputValueChanged()" signal is emitted and the multiple values flag removed.
|
slot |
If called the "inputValueChanged()" signal is emitted and the multiple values flag removed.
|
slot |
If called the "inputValueChanged()" signal is emitted and the multiple values flag removed.