Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ObjectExtension Class Referenceabstract

Interface class to multiple inherit when the sf::FormWriter class needs to be restricted in writing object properties. More...

#include <ObjectExtension.h>

Inheritance diagram for sf::ObjectExtension:

Public Member Functions

virtual bool isRequiredProperty (const QString &name)=0
 Returns true if a property is to be saved to file.
 
virtual void addPropertyPages (sf::PropertySheetDialog *sheet)
 Adds the pages specific for this object.
 
virtual bool getSaveChildren () const
 Gets if the children needs saving by the FormBuilder class.
 

Static Public Member Functions

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 Member Functions

 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
 

Detailed Description

Interface class to multiple inherit when the sf::FormWriter class needs to be restricted in writing object properties.

Constructor & Destructor Documentation

◆ ObjectExtension()

sf::ObjectExtension::ObjectExtension ( QObject *  object)
explicitprotected

Protected constructor only. Inlined so no external libs are need for designer.

Parameters
objectThis pointer of the extended class instance.

Member Function Documentation

◆ addPropertyPages()

virtual void sf::ObjectExtension::addPropertyPages ( sf::PropertySheetDialog sheet)
virtual

Adds the pages specific for this object.

Parameters
sheetParent and property sheet for the page.

Reimplemented in sf::LayoutButton, sf::VariableWidgetBase, sf::AcquisitionControl, sf::AscanGraph, and sf::BscanGraph.

◆ getExtensionParent()

static QObject * sf::ObjectExtension::getExtensionParent ( QObject *  obj,
bool  first = true 
)
static

Return if the passed object has this type as parent.

It starts by testing the passed object itself.

Parameters
objObject to start with in the search.
firstWhen false is passed it returns the last one found in the path.
Returns
True when a parent was found that matches.

◆ getSaveChildren()

virtual bool sf::ObjectExtension::getSaveChildren ( ) const
virtual

Gets if the children needs saving by the FormBuilder class.

Returns
False by default.

◆ inDesigner()

static bool sf::ObjectExtension::inDesigner ( )
static

Gets the designer status.

Returns
True when in the designer application.

◆ isRequiredProperty()

virtual bool sf::ObjectExtension::isRequiredProperty ( const QString &  name)
pure virtual

Returns true if a property is to be saved to file.

Parameters
nameName of the property.
Returns
True saving is required.

Implemented in sf::InformationIdEdit, sf::VariableBar, sf::VariableCheckBox, sf::VariableComboBox, sf::VariableEdit, sf::VariableWidgetBase, sf::ActionButton, sf::Editor, sf::AcquisitionControl, sf::AscanGraph, sf::BscanGraph, sf::LayoutButton, and sf::LayoutTabs.


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