OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::PropertyInputInt Class Reference

#include "PropertyInputInt.h"

Inheritance diagram for ot::PropertyInputInt:
ot::PropertyInput ot::QWidgetInterface

Public Member Functions

 PropertyInputInt ()
 
virtual ~PropertyInputInt ()
 
virtual void addPropertyInputValueToJson (ot::JsonValue &_object, const char *_memberNameValue, ot::JsonAllocator &_allocator) override
 Add the current value to the provided JSON object.
 
virtual QVariant getCurrentValue (void) const override
 Returns the current value.
 
virtual QWidget * getQWidget (void) override
 Returns the root widget of the input (allows nested widgets)
 
virtual const QWidget * getQWidget (void) const override
 
virtual PropertycreatePropertyConfiguration (void) const override
 Creates a property configuration that can be used to later create this object.
 
virtual bool setupFromConfiguration (const Property *_configuration) override
 Setup the input from the provided configration.
 
virtual void focusPropertyInput (void) override
 Sets the focus on the input widget.
 
void setValue (int _value)
 
int getValue (void) const
 
bool hasInputError (void) const
 
- Public Member Functions inherited from ot::PropertyInput
 PropertyInput ()
 
virtual ~PropertyInput ()
 
const std::string & getPropertyType (void) const
 
void setData (const PropertyBase &_data)
 
PropertyBasedata (void)
 
const PropertyBasedata (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 WidgetFlagsotWidgetFlags (void) const
 

Additional Inherited Members

- Public Slots inherited from ot::PropertyInput
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 inherited from ot::PropertyInput
void inputValueChanged (void)
 Is emitted whenever the user changed a value.
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ PropertyInputInt()

ot::PropertyInputInt::PropertyInputInt ( )

◆ ~PropertyInputInt()

ot::PropertyInputInt::~PropertyInputInt ( )
virtual

Member Function Documentation

◆ addPropertyInputValueToJson()

void ot::PropertyInputInt::addPropertyInputValueToJson ( ot::JsonValue & _object,
const char * _memberNameValue,
ot::JsonAllocator & _allocator )
overridevirtual

Add the current value to the provided JSON object.

Parameters
_objectTarget JSON object
_memberNameValueValue member name
_allocatorJSON allocator

Implements ot::PropertyInput.

◆ createPropertyConfiguration()

ot::Property * ot::PropertyInputInt::createPropertyConfiguration ( void ) const
overridevirtual

Creates a property configuration that can be used to later create this object.

Implements ot::PropertyInput.

◆ focusPropertyInput()

void ot::PropertyInputInt::focusPropertyInput ( void )
overridevirtual

Sets the focus on the input widget.

Implements ot::PropertyInput.

◆ getCurrentValue()

QVariant ot::PropertyInputInt::getCurrentValue ( void ) const
overridevirtual

Returns the current value.

Implements ot::PropertyInput.

◆ getQWidget() [1/2]

const QWidget * ot::PropertyInputInt::getQWidget ( void ) const
overridevirtual

Implements ot::PropertyInput.

◆ getQWidget() [2/2]

QWidget * ot::PropertyInputInt::getQWidget ( void )
overridevirtual

Returns the root widget of the input (allows nested widgets)

Implements ot::PropertyInput.

◆ getValue()

int ot::PropertyInputInt::getValue ( void ) const

◆ hasInputError()

bool ot::PropertyInputInt::hasInputError ( void ) const

◆ setupFromConfiguration()

bool ot::PropertyInputInt::setupFromConfiguration ( const Property * _configuration)
overridevirtual

Setup the input from the provided configration.

Reimplemented from ot::PropertyInput.

◆ setValue()

void ot::PropertyInputInt::setValue ( int _value)

The documentation for this class was generated from the following files: