![]() |
Scanframe Modular Application 0.1.0
|
Widget to create a page in a PropertySheet dialog. More...
#include <PropertyPage.h>
Public Member Functions | |
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. | |
virtual void | updatePage () |
Updates the control widgets of the page. This method is called to initialize the control widgets. | |
virtual bool | isPageModified () const |
Gets the modified/changed status of the page. | |
virtual bool | canApplyPage () const |
Allows validation of the changes made per page. First page which return false is selected. | |
virtual void | applyPage () |
Applies the changes made in this page. | |
virtual void | afterPageApply (bool was_modified) |
Called when all pages are applied. Method can be overridden by a derived class to update control widgets that were changed because of other pages being applied. | |
PropertySheetDialog * | getSheet () |
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. | |
Protected Member Functions | |
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. | |
virtual void | connectIt (PropertySheetDialog *sheet, const QObject *object, QWidgetList &list) |
Connects all standard controls to the sf::PropertySheetDialog::checkModified() method. Is called recursively. | |
Protected Attributes | |
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 |
Widget to create a page in a PropertySheet dialog.
|
explicit |
Constructor.
parent | Myst be a PropertySheetDialog pointer or derived one. |
|
virtual |
Called when all pages are applied. Method can be overridden by a derived class to update control widgets that were changed because of other pages being applied.
was_modified | True when this page was modified. |
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ProjectPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::DefaultBinderPropertyPage, sf::ipj::LineScanMethodPropertyPage, sf::ipj::MeanderScanMethodPropertyPage, sf::ipj::ElementInfoPropertyPage, sf::ipj::NipscanTranslatePropertyPage, sf::ipj::ScanDepthPropertyPage, sf::ipj::ToolInfoPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, and sf::xgl::SceneServerPropertyPage.
|
virtual |
Applies the changes made in this page.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ContainerPropertyPage, sf::MiscellaneousPropertyPage, sf::PositionPropertyPage, sf::WidgetPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::VariableIdPropertyPage, sf::GmiServerPropertyPage, sf::CustomFieldsPropertyPage, sf::MaterialPropertyPage, sf::ParamMappingPropertyPage, sf::ProjectDataPropertyPage, sf::ScanMethodConfigurationPropertyPage, sf::ScanMethodPositionPropertyPage, sf::BinderCommonPropertyPage, sf::CheckPositionsPropertyPage, sf::DefaultBinderConfigPropertyPage, sf::DefaultBinderProjectPropertyPage, sf::DefaultBinderPropertyPage, sf::ipj::CircleScanMethodPropertyPage, sf::ipj::LineScanMethodPropertyPage, sf::ipj::MeanderScanMethodPropertyPage, sf::ipj::ElementInfoPropertyPage, sf::ipj::ElementInfoFilerPropertyPage, sf::ipj::NipscanTranslatePropertyPage, sf::ipj::ScanDepthPropertyPage, sf::ipj::ToolInfoPropertyPage, sf::ipj::ToolInfoFilerPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, sf::xgl::SceneServerPropertyPage, sf::AcquisitionControlPropertyPage, sf::AscanPropertyPage, sf::BscanPropertyPage, and sf::LayoutButtonPropertyPage.
|
virtual |
Allows validation of the changes made per page. First page which return false is selected.
Reimplemented in sf::MiscellaneousPropertyPage, sf::ProjectPropertyPage, and sf::DefaultBinderPropertyPage.
|
protected |
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.
|
protectedvirtual |
Connects all standard controls to the sf::PropertySheetDialog::checkModified() method. Is called recursively.
sheet | Dialog sheet the property page belongs to. |
object | The object who children |
list | Returns the list of non-connectable instances. |
|
virtual |
Gets the description for hinting of the page in the list view.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ContainerPropertyPage, sf::PositionPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, and sf::xgl::SceneServerPropertyPage.
|
virtual |
Gets the icon of the page for displaying in the list view. Default it returns the sf::Resource settings icon.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::MiscellaneousPropertyPage, sf::PositionPropertyPage, sf::WidgetPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::GmiServerPropertyPage, sf::ipj::CircleScanMethodPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, sf::xgl::SceneServerPropertyPage, sf::AcquisitionControlPropertyPage, and sf::BscanPropertyPage.
|
virtual |
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is returned.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ContainerPropertyPage, sf::MiscellaneousPropertyPage, sf::PositionPropertyPage, sf::WidgetPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::VariableIdPropertyPage, sf::GmiServerPropertyPage, sf::ipj::CircleScanMethodPropertyPage, sf::ipj::MeanderScanMethodPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, sf::xgl::SceneServerPropertyPage, sf::AcquisitionControlPropertyPage, sf::AscanPropertyPage, sf::BscanPropertyPage, and sf::LayoutButtonPropertyPage.
PropertySheetDialog * sf::PropertyPage::getSheet | ( | ) |
Gets the parent sheet of this page. (also the parent but cast.)
|
virtual |
Gets the modified/changed status of the page.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ContainerPropertyPage, sf::MiscellaneousPropertyPage, sf::PositionPropertyPage, sf::WidgetPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::VariableIdPropertyPage, sf::GmiServerPropertyPage, sf::CustomFieldsPropertyPage, sf::MaterialPropertyPage, sf::ParamMappingPropertyPage, sf::ProjectDataPropertyPage, sf::ScanMethodConfigurationPropertyPage, sf::ScanMethodPositionPropertyPage, sf::BinderCommonPropertyPage, sf::CheckPositionsPropertyPage, sf::DefaultBinderConfigPropertyPage, sf::DefaultBinderProjectPropertyPage, sf::DefaultBinderPropertyPage, sf::ipj::CircleScanMethodPropertyPage, sf::ipj::LineScanMethodPropertyPage, sf::ipj::MeanderScanMethodPropertyPage, sf::ipj::ElementInfoPropertyPage, sf::ipj::NipscanTranslatePropertyPage, sf::ipj::ScanDepthPropertyPage, sf::ipj::ToolInfoPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, sf::xgl::SceneServerPropertyPage, sf::AcquisitionControlPropertyPage, sf::AscanPropertyPage, sf::BscanPropertyPage, and sf::LayoutButtonPropertyPage.
void sf::PropertyPage::setPageDescription | ( | const QString & | ) |
Sets the description for hinting of the page in the list view.
void sf::PropertyPage::setPageIcon | ( | const QIcon & | ) |
Sets the icon of the page for displaying in the list view.
void sf::PropertyPage::setPageName | ( | const QString & | ) |
Sets the page name icon of the page for displaying in the list view.
|
virtual |
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.
Reimplemented in sf::LayoutEditorPropertyPage, sf::WidgetPropertyPage, sf::UnitConversionPropertyPage, sf::CustomFieldsPropertyPage, sf::ParamMappingPropertyPage, sf::ProjectDataPropertyPage, sf::CheckPositionsPropertyPage, and sf::ipj::CircleScanMethodPropertyPage.
|
virtual |
Updates the control widgets of the page. This method is called to initialize the control widgets.
Reimplemented in sf::ApplicationPropertyPage, sf::MainWindowPropertyPage, sf::LayoutEditorPropertyPage, sf::ContainerPropertyPage, sf::MiscellaneousPropertyPage, sf::PositionPropertyPage, sf::WidgetPropertyPage, sf::ProjectPropertyPage, sf::ScriptManagerPropertyPage, sf::ServicePropertyPage, sf::UnitConversionPropertyPage, sf::VariableIdPropertyPage, sf::GmiServerPropertyPage, sf::CustomFieldsPropertyPage, sf::MaterialPropertyPage, sf::ParamMappingPropertyPage, sf::ProjectDataPropertyPage, sf::ScanMethodConfigurationPropertyPage, sf::ScanMethodPositionPropertyPage, sf::BinderCommonPropertyPage, sf::CheckPositionsPropertyPage, sf::DefaultBinderConfigPropertyPage, sf::DefaultBinderProjectPropertyPage, sf::DefaultBinderPropertyPage, sf::ipj::CircleScanMethodPropertyPage, sf::ipj::LineScanMethodPropertyPage, sf::ipj::MeanderScanMethodPropertyPage, sf::ipj::ElementInfoPropertyPage, sf::ipj::NipscanTranslatePropertyPage, sf::ipj::ScanDepthPropertyPage, sf::ipj::ToolInfoPropertyPage, sf::EditorPropertyPage, sf::PaletteServerPropertyPage, sf::xgl::SceneServerPropertyPage, sf::AcquisitionControlPropertyPage, sf::AscanPropertyPage, sf::BscanPropertyPage, and sf::LayoutButtonPropertyPage.
|
protected |
Holds the description of the property page for when getPageDescription() is not overridden.
|
protected |
Holds the description of the property page for when getPageIcon() is not overridden.
|
protected |
Holds the name of the property page for when getPageName() is not overridden.
|
protected |
Holds the sheet it is part of and also its parent.
|
protected |