Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::PropertySheetDialog Class Referencefinal

Dialog containing multiple property pages. More...

#include <PropertySheetDialog.h>

Inheritance diagram for sf::PropertySheetDialog:
Collaboration diagram for sf::PropertySheetDialog:

Public Member Functions

 PropertySheetDialog (const QString &name, QSettings *settings, QWidget *parent=nullptr)
 Constructor.
 
 ~PropertySheetDialog () override
 Destructor.
 
void addPage (PropertyPage *page)
 Adds a property page to this sheet. This method cannot be called from a property page's constructor.
 
bool isSheetModified () const
 Gets the modified aggregated status of all property pages.
 
void applySheet ()
 Applies changes of all pages in the sheet.
 
int exec () override
 
Q_SIGNAL void modified ()
 Emitted when a modification was applied.
 
Q_SLOT void checkModified (QWidget *origin)
 Slot called from page when a control widget has been changed.
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 

Detailed Description

Dialog containing multiple property pages.

Constructor & Destructor Documentation

◆ PropertySheetDialog()

sf::PropertySheetDialog::PropertySheetDialog ( const QString &  name,
QSettings *  settings,
QWidget *  parent = nullptr 
)
explicit

Constructor.

Parameters
nameName for identifying this sheet for referencing.
settingsSettings to store
parentOptional parent widget.

◆ ~PropertySheetDialog()

sf::PropertySheetDialog::~PropertySheetDialog ( )
override

Destructor.

Member Function Documentation

◆ addPage()

void sf::PropertySheetDialog::addPage ( PropertyPage page)

Adds a property page to this sheet. This method cannot be called from a property page's constructor.

Parameters
page

◆ applySheet()

void sf::PropertySheetDialog::applySheet ( )

Applies changes of all pages in the sheet.

◆ checkModified()

Q_SLOT void sf::PropertySheetDialog::checkModified ( QWidget *  origin)

Slot called from page when a control widget has been changed.

◆ exec()

int sf::PropertySheetDialog::exec ( )
override

◆ isSheetModified()

bool sf::PropertySheetDialog::isSheetModified ( ) const

Gets the modified aggregated status of all property pages.

Returns
True when the sheet is modified.

◆ modified()

Q_SIGNAL void sf::PropertySheetDialog::modified ( )

Emitted when a modification was applied.

◆ showEvent()

void sf::PropertySheetDialog::showEvent ( QShowEvent *  event)
overrideprotected

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