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

#include <DefaultBinderPropertyPage.h>

Inheritance diagram for sf::DefaultBinderPropertyPage:
Collaboration diagram for sf::DefaultBinderPropertyPage:

Public Member Functions

 DefaultBinderPropertyPage (TDefaultScanBinder *target, QWidget *parent)
 Constructor.
 
 ~DefaultBinderPropertyPage () override
 Destructor.
 
void applyPage () override
 Overridden from base class.
 
void afterPageApply (bool was_modified) override
 Overridden from base class.
 
bool canApplyPage () const override
 Overridden from base class.
 
bool isPageModified () const override
 Overridden from base class.
 
void updatePage () override
 Overridden from base class.
 
void getListData (const QModelIndex &index, int role, QVariant &data)
 Handles getting the data for Treeview.
 
void setListData (const QModelIndex &index, int role, const QVariant &data)
 Handles setting the data represented by the treeview.
 
- Public Member Functions inherited from sf::PropertyPage
 PropertyPage (QWidget *parent)
 Constructor.
 
virtual QIcon getPageIcon () const
 Gets the icon of the page for displaying in the list view. Default it returns the sf::Resource settings icon.
 
void setPageIcon (const QIcon &)
 Sets the icon of the page for displaying in the list view.
 
virtual QString getPageName () const
 Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is returned.
 
void setPageName (const QString &)
 Sets the page name icon of the page for displaying in the list view.
 
virtual QString getPageDescription () const
 Gets the description for hinting of the page in the list view.
 
void setPageDescription (const QString &)
 Sets the description for hinting of the page in the list view.
 
PropertySheetDialoggetSheet ()
 Gets the parent sheet of this page. (also the parent but cast.)
 
virtual void storeState (ConfigStore &cfg_store, bool save)
 Called by sheet to save the state of the page. A call to QSettings::beginGroup() is not needed since it is done by the parent sheet already.
 

Additional Inherited Members

- Protected Member Functions inherited from sf::PropertyPage
virtual QWidgetList connectControls ()
 Connects all known controls change signals to a handler which enables or disables buttons. A derived class should call this method when the is set up and controls are updated.
 
- Protected Attributes inherited from sf::PropertyPage
PropertySheetDialog_sheet
 Holds the sheet it is part of and also its parent.
 
QString _name
 Holds the name of the property page for when getPageName() is not overridden.
 
QString _description
 Holds the description of the property page for when getPageDescription() is not overridden.
 
QIcon _icon
 Holds the description of the property page for when getPageIcon() is not overridden.
 
friend PropertySheetDialog
 

Constructor & Destructor Documentation

◆ DefaultBinderPropertyPage()

sf::DefaultBinderPropertyPage::DefaultBinderPropertyPage ( TDefaultScanBinder target,
QWidget *  parent 
)

Constructor.

Parameters
targetTargeted binder instance.
parentSheet owning this page.

◆ ~DefaultBinderPropertyPage()

sf::DefaultBinderPropertyPage::~DefaultBinderPropertyPage ( )
override

Destructor.

Member Function Documentation

◆ afterPageApply()

void sf::DefaultBinderPropertyPage::afterPageApply ( bool  was_modified)
overridevirtual

Overridden from base class.

Reimplemented from sf::PropertyPage.

◆ applyPage()

void sf::DefaultBinderPropertyPage::applyPage ( )
overridevirtual

Overridden from base class.

Reimplemented from sf::PropertyPage.

◆ canApplyPage()

bool sf::DefaultBinderPropertyPage::canApplyPage ( ) const
overridevirtual

Overridden from base class.

Reimplemented from sf::PropertyPage.

◆ getListData()

void sf::DefaultBinderPropertyPage::getListData ( const QModelIndex &  index,
int  role,
QVariant &  data 
)

Handles getting the data for Treeview.

Parameters
indexIndex position in the view for row and column.
roleType of data retrieved.
dataThe variant returning the data.

◆ isPageModified()

bool sf::DefaultBinderPropertyPage::isPageModified ( ) const
overridevirtual

Overridden from base class.

Reimplemented from sf::PropertyPage.

◆ setListData()

void sf::DefaultBinderPropertyPage::setListData ( const QModelIndex &  index,
int  role,
const QVariant &  data 
)

Handles setting the data represented by the treeview.

Parameters
indexIndex position in the view for row and column.
roleType of data retrieved.
dataThe data to update the field designated by the index with row and column.

◆ updatePage()

void sf::DefaultBinderPropertyPage::updatePage ( )
overridevirtual

Overridden from base class.

Reimplemented from sf::PropertyPage.


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