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

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

#include <LayoutTabs.h>

Inheritance diagram for sf::LayoutTabs:
Collaboration diagram for sf::LayoutTabs:

Public Member Functions

 LayoutTabs (QWidget *parent=nullptr)
 Constructor.
 
QStringList getTabsConfig () const
 Gets the tabs configuration where each string in the list configures a tab.
 
void setTabsConfig (const QStringList &sl)
 Sets the tabs configuration where each string in the list configures a tab.
 
- Public Member Functions inherited from sf::VariableWidgetBase
 VariableWidgetBase (QWidget *parent, QObject *self)
 Constructor.
 
 ~VariableWidgetBase () override
 Destructor.
 
void addPropertyPages (sf::PropertySheetDialog *sheet) override
 Overridden from base class sf::ObjectExtension::addPropertyPages().
 
void setId (gii::IdType id)
 Property 'variableId' set method.
 
gii::IdType getId () const
 Property 'variableId' get method.
 
VariablegetVariable () const
 Gets the reference to the underlying Variable instance.
 
void setConverted (bool) const
 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 'sf::ObjectExtension'.
 
void applyReadOnly (bool yn) override
 Overridden from base class 'sf::VariableWidgetBase'.
 
- Protected Member Functions inherited from sf::ObjectExtension
 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
 
virtual ~ObjectExtension ()=default
 Virtual destructor.
 

Properties

QStringList tabsConfig
 
QTabWidget::TabPosition tabPosition
 
QTabWidget::TabShape tabShape
 
int currentIndex
 
- 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. It starts by testing the passed object itself.
 
- 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

◆ LayoutTabs()

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

Constructor.

Member Function Documentation

◆ applyReadOnly()

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

Overridden from base class 'sf::VariableWidgetBase'.

Implements sf::VariableWidgetBase.

◆ getTabsConfig()

QStringList sf::LayoutTabs::getTabsConfig ( ) const

Gets the tabs configuration where each string in the list configures a tab.

The string is separated by a '|' character and has 3 fields. In the form of "name|id-offset|relative-filename". The file name does not have a suffix.

◆ isRequiredProperty()

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

Overridden from base class 'sf::ObjectExtension'.

Implements sf::ObjectExtension.

◆ setTabsConfig()

void sf::LayoutTabs::setTabsConfig ( const QStringList &  sl)

Sets the tabs configuration where each string in the list configures a tab.

Property Documentation

◆ currentIndex

int sf::LayoutTabs::currentIndex
readwrite

◆ tabPosition

QTabWidget::TabPosition sf::LayoutTabs::tabPosition
readwrite

◆ tabsConfig

QStringList sf::LayoutTabs::tabsConfig
readwrite

◆ tabShape

QTabWidget::TabShape sf::LayoutTabs::tabShape
readwrite

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