#include <singlepagedialogbase.h>
Base class for single page property dialogs
- Author
- Ralf Habacker
Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
| Enumerator |
|---|
| Cancel |
|
| Ok |
|
| Apply |
|
| SinglePageDialogBase::SinglePageDialogBase |
( |
QWidget * |
parent, |
|
|
bool |
withApplyButton = false, |
|
|
bool |
withSearchButton = false |
|
) |
| |
|
explicit |
| SinglePageDialogBase::~SinglePageDialogBase |
( |
| ) |
|
|
virtual |
| bool SinglePageDialogBase::apply |
( |
| ) |
|
|
virtual |
Apply dialog changes to the related object.
This method could be overridden in derived dialogs to suppport post dialog applying.
- Returns
- true apply succeeds
-
false apply does not succeed
Reimplemented in UMLOperationDialog, SelectOperationDialog, UMLCheckConstraintDialog, ParameterPropertiesDialog, UMLUniqueConstraintDialog, UMLAttributeDialog, UMLRoleDialog, UMLEntityAttributeDialog, UMLTemplateDialog, UMLEnumLiteralDialog, StereoAttributeDialog, and UMLInstanceAttributeDialog.
| void SinglePageDialogBase::enableButtonOk |
( |
bool |
enable | ) |
|
|
protected |
Enable the ok button.
- Parameters
-
| QWidget * SinglePageDialogBase::mainWidget |
( |
| ) |
|
- Returns
- The main widget. Will return `this` as the mainWidget if none was set before. This way you can write when using designer.
Set the text of a dedicated button.
- Parameters
-
| code | button code |
| text | button text |
| void SinglePageDialogBase::setCaption |
( |
const QString & |
caption | ) |
|
| void SinglePageDialogBase::setMainWidget |
( |
QWidget * |
widget | ) |
|
Sets the main widget of the dialog.
| void SinglePageDialogBase::slotApply |
( |
| ) |
|
|
protectedslot |
Used when the Apply button is clicked. Calls apply().
| void SinglePageDialogBase::slotCancel |
( |
| ) |
|
|
protectedslot |
Used when the Cancel button is clicked.
| void SinglePageDialogBase::slotClicked |
( |
QAbstractButton * |
button | ) |
|
|
protectedslot |
Used when the Cancel button is clicked.
| void SinglePageDialogBase::slotOk |
( |
| ) |
|
|
protectedslot |
Used when the OK button is clicked. Calls apply().
| bool SinglePageDialogBase::validate |
( |
| ) |
|
|
protectedvirtual |
Return state of dialog input validation.
The false state is used to prevent closing the dialog.
- Returns
- true if dialog entries are valid
Reimplemented in ParameterPropertiesDialog.
| QDialogButtonBox* SinglePageDialogBase::m_buttonBox |
|
protected |
| QWidget* SinglePageDialogBase::m_mainWidget |
|
protected |
The documentation for this class was generated from the following files: