Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::VariableEdit Class Reference

Widget for editing sf::Variable value types integer, floating point and single line string. More...

#include <VariableEdit.h>

Inheritance diagram for sf::VariableEdit:
Collaboration diagram for sf::VariableEdit:

Public Member Functions

 VariableEdit (QWidget *parent=nullptr)
 Constructor.
 
void setFocusFrame (bool yn)
 
bool hasFocusFrame () const
 
int nameLevel () const
 
void setNameLevel (int level=-1)
 
- Public Member Functions inherited from sf::VariableWidgetBase
 VariableWidgetBase (QWidget *parent, QObject *self)
 Constructor.
 
 ~VariableWidgetBase () override
 Destructor.
 
void addPropertyPages (sf::PropertySheetDialog *sheet) override
 Adds the pages specific for this object.
 
void setId (Gii::IdType id)
 Property 'variableId' set method.
 
Gii::IdType getId () const
 Property 'variableId' get method.
 
VariablegetVariable ()
 Gets the reference to the underlying Variable instance.
 
void setConverted (bool)
 Property 'converted' set method.
 
bool getConverted () const
 Property 'converted' get method.
 
void setReadOnly (bool)
 Property 'converted' set method.
 
bool getReadOnly () const
 Property 'converted' get method.
 
bool isRequiredProperty (const QString &name) override
 Overridden from base class 'ObjectExtension' to write only the properties that mean anything.
 
- Public Member Functions inherited from sf::ObjectExtension
virtual bool getSaveChildren () const
 Gets if the children needs saving by the FormBuilder class.
 

Protected Member Functions

bool isRequiredProperty (const QString &name) override
 Overridden from base class '#ObjectExtension'.
 
void applyReadOnly (bool yn) override
 Overridden from base class 'VariableWidgetBase'.
 
- Protected Member Functions inherited from sf::ObjectExtension
 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
 

Properties

bool focusFrame
 
int nameLevel
 
- Properties inherited from sf::VariableWidgetBase
qulonglong idVariable
 
bool converted
 
bool readOnly
 

Additional Inherited Members

- Static Public Member Functions inherited from sf::VariableWidgetBase
static const char * propertyNameEditorObject ()
 Property name of the property which guides the layout editor to the proper parent.
 
- Static Public Member Functions inherited from sf::ObjectExtension
static bool inDesigner ()
 Gets the designer status.
 
static QObject * getExtensionParent (QObject *obj, bool first=true)
 Return if the passed object has this type as parent.
 
- Protected Attributes inherited from sf::VariableWidgetBase
PrivateBase_p {nullptr}
 Holds the private object or a derived one.
 

Detailed Description

Widget for editing sf::Variable value types integer, floating point and single line string.

Constructor & Destructor Documentation

◆ VariableEdit()

sf::VariableEdit::VariableEdit ( QWidget *  parent = nullptr)
explicit

Constructor.

Member Function Documentation

◆ applyReadOnly()

void sf::VariableEdit::applyReadOnly ( bool  yn)
overrideprotectedvirtual

Overridden from base class 'VariableWidgetBase'.

Implements sf::VariableWidgetBase.

◆ hasFocusFrame()

bool sf::VariableEdit::hasFocusFrame ( ) const

Gets the focus frame status.

Returns
True when a focus frame is used.

◆ isRequiredProperty()

bool sf::VariableEdit::isRequiredProperty ( const QString &  name)
overrideprotectedvirtual

Overridden from base class '#ObjectExtension'.

Implements sf::ObjectExtension.

◆ nameLevel()

int sf::VariableEdit::nameLevel ( ) const

Gets the name level shown.

◆ setFocusFrame()

void sf::VariableEdit::setFocusFrame ( bool  yn)

Sets the edit frame or no frame property.

Parameters
ynTrue when a focus frame is wanted.

◆ setNameLevel()

void sf::VariableEdit::setNameLevel ( int  level = -1)

Sets the name level shown.

Property Documentation

◆ focusFrame

bool sf::VariableEdit::focusFrame
readwrite

◆ nameLevel

int sf::VariableEdit::nameLevel
readwrite

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