#include <multipagedialogbase.h>
Base class for property dialogs
MultiPageDialogBase contains common property dialog related methods and attributes In finished state this class provides simple methods to setup common pages like WidgetStyle, FontSetting and others
- 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
◆ PageType
Available page types.
Enumerator |
---|
AutoLayoutPage | |
ClassPage | |
CodeImportPage | |
CodeGenerationPage | |
CodeViewerPage | |
FontPage | |
GeneralPage | |
UserInterfacePage | |
◆ MultiPageDialogBase()
MultiPageDialogBase::MultiPageDialogBase |
( |
QWidget * |
parent, |
|
|
bool |
withDefaultButton = false |
|
) |
| |
|
explicit |
◆ ~MultiPageDialogBase()
MultiPageDialogBase::~MultiPageDialogBase |
( |
| ) |
|
|
virtual |
◆ accept()
void MultiPageDialogBase::accept |
( |
| ) |
|
◆ addPage()
void MultiPageDialogBase::addPage |
( |
KPageWidgetItem * |
page | ) |
|
◆ apply()
void MultiPageDialogBase::apply |
( |
| ) |
|
◆ applyAssociationRolePage()
void MultiPageDialogBase::applyAssociationRolePage |
( |
| ) |
|
|
protected |
◆ applyClicked
void MultiPageDialogBase::applyClicked |
( |
| ) |
|
|
signal |
◆ applyFontPage() [1/4]
updates the font page data
- Parameters
-
widget | Widget to save the font data into |
◆ applyFontPage() [2/4]
◆ applyFontPage() [3/4]
void MultiPageDialogBase::applyFontPage |
( |
UMLScene * |
scene | ) |
|
|
protected |
updates the font page data
- Parameters
-
scene | Scene to save the font data into |
◆ applyFontPage() [4/4]
void MultiPageDialogBase::applyFontPage |
( |
UMLWidget * |
widget | ) |
|
|
protected |
updates the font page data
- Parameters
-
widget | Widget to save the font data into |
◆ applyGeneralPage() [1/2]
◆ applyGeneralPage() [2/2]
void MultiPageDialogBase::applyGeneralPage |
( |
MessageWidget * |
widget | ) |
|
|
protected |
◆ applyStylePage()
void MultiPageDialogBase::applyStylePage |
( |
| ) |
|
|
protected |
◆ createPage() [1/2]
QFrame * MultiPageDialogBase::createPage |
( |
const QString & |
name, |
|
|
const QString & |
header, |
|
|
Icon_Utils::IconType |
icon |
|
) |
| |
|
protected |
Create a property page
- Parameters
-
name | The Text displayed in the page list |
header | The Text displayed above the page |
icon | The icon to display in the page list |
- Returns
- Pointer to created frame
◆ createPage() [2/2]
KPageWidgetItem * MultiPageDialogBase::createPage |
( |
const QString & |
name, |
|
|
const QString & |
header, |
|
|
Icon_Utils::IconType |
icon, |
|
|
QWidget * |
widget |
|
) |
| |
|
protected |
create new page using a dedicated widget
- Parameters
-
name | The Text displayed in the page list |
header | The Text displayed above the page |
icon | The icon to display in the page list |
widget | Widget to display in the page |
- Returns
- page widget item instance
◆ currentPage()
KPageWidgetItem * MultiPageDialogBase::currentPage |
( |
| ) |
const |
◆ defaultClicked
void MultiPageDialogBase::defaultClicked |
( |
| ) |
|
|
signal |
◆ exec()
int MultiPageDialogBase::exec |
( |
| ) |
|
◆ isModified()
bool MultiPageDialogBase::isModified |
( |
| ) |
const |
|
virtual |
Return state if any data has been changed in the dialog.
- Returns
- true data has been changed
◆ keyPressEvent()
void MultiPageDialogBase::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Handle key press event.
- Parameters
-
◆ okClicked
void MultiPageDialogBase::okClicked |
( |
| ) |
|
|
signal |
◆ reject()
void MultiPageDialogBase::reject |
( |
| ) |
|
◆ resetFontPage()
void MultiPageDialogBase::resetFontPage |
( |
QWidget * |
widget | ) |
|
|
protected |
Set the font page to show the font from the given widget
- Parameters
-
◆ setCaption()
void MultiPageDialogBase::setCaption |
( |
const QString & |
caption | ) |
|
◆ setCurrentPage()
void MultiPageDialogBase::setCurrentPage |
( |
KPageWidgetItem * |
page | ) |
|
Set current page.
- Parameters
-
◆ setupAssociationRolePage()
KPageWidgetItem * MultiPageDialogBase::setupAssociationRolePage |
( |
AssociationWidget * |
widget | ) |
|
|
protected |
Sets up the role settings page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupFontPage() [1/3]
Sets up the font selection page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupFontPage() [2/3]
KPageWidgetItem * MultiPageDialogBase::setupFontPage |
( |
const QFont & |
font | ) |
|
|
protected |
Sets up the font selection page.
- Parameters
-
font | The font to load the initial data from |
◆ setupFontPage() [3/3]
KPageWidgetItem * MultiPageDialogBase::setupFontPage |
( |
UMLWidget * |
widget | ) |
|
|
protected |
Sets up the font selection page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupGeneralPage() [1/3]
Sets up the general settings page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupGeneralPage() [2/3]
KPageWidgetItem * MultiPageDialogBase::setupGeneralPage |
( |
MessageWidget * |
widget | ) |
|
|
protected |
Sets up the general page for operations
- Parameters
-
widget | The widget to load the initial data from |
◆ setupGeneralPage() [3/3]
void MultiPageDialogBase::setupGeneralPage |
( |
NoteWidget * |
widget | ) |
|
|
protected |
Sets up the general settings page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupStylePage() [1/2]
Sets up the style page.
- Parameters
-
widget | The widget to load the initial data from |
◆ setupStylePage() [2/2]
KPageWidgetItem * MultiPageDialogBase::setupStylePage |
( |
WidgetBase * |
widget | ) |
|
|
protected |
Sets up the style page.
- Parameters
-
widget | The widget to load the initial data from |
◆ slotApplyClicked
void MultiPageDialogBase::slotApplyClicked |
( |
| ) |
|
|
privateslot |
Handle click on apply button.
◆ slotButtonClicked
void MultiPageDialogBase::slotButtonClicked |
( |
QAbstractButton * |
button | ) |
|
|
privateslot |
Button clicked event handler for the dialog button box.
- Parameters
-
button | the button which was clicked |
◆ slotDefaultClicked
void MultiPageDialogBase::slotDefaultClicked |
( |
| ) |
|
|
privateslot |
Handle click on default button, if enabled in constructor.
◆ slotEnableButtonOk
void MultiPageDialogBase::slotEnableButtonOk |
( |
bool |
state | ) |
|
|
protectedslot |
◆ slotHelpClicked
void MultiPageDialogBase::slotHelpClicked |
( |
| ) |
|
|
privateslot |
◆ slotOkClicked
void MultiPageDialogBase::slotOkClicked |
( |
| ) |
|
|
privateslot |
Handle click on ok button.
◆ m_fontChooser
KFontChooser* MultiPageDialogBase::m_fontChooser |
|
protected |
◆ m_isModified
bool MultiPageDialogBase::m_isModified |
|
protected |
◆ m_notePage
NotePage* MultiPageDialogBase::m_notePage |
|
protected |
◆ m_operationGeneralPage
◆ m_pageDialog
KPageDialog* MultiPageDialogBase::m_pageDialog |
|
protected |
◆ m_pageItem
KPageWidgetItem* MultiPageDialogBase::m_pageItem |
|
protected |
◆ m_pageWidget
KPageWidget* MultiPageDialogBase::m_pageWidget |
|
protected |
◆ m_pAssocGeneralPage
◆ m_pRolePage
◆ m_pStylePage
◆ m_useDialog
bool MultiPageDialogBase::m_useDialog |
|
protected |
The documentation for this class was generated from the following files: