umbrello  2.38.5
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Slots | List of all members
MultiPageDialogBase Class Reference

#include <multipagedialogbase.h>

Inheritance diagram for MultiPageDialogBase:
Collaboration diagram for MultiPageDialogBase:

Public Types

enum  PageType {
  AutoLayoutPage, ClassPage, CodeImportPage, CodeGenerationPage,
  CodeViewerPage, FontPage, GeneralPage, UserInterfacePage
}
 Available page types. More...
 

Signals

void okClicked ()
 
void applyClicked ()
 
void defaultClicked ()
 

Public Member Functions

 MultiPageDialogBase (QWidget *parent, bool withDefaultButton=false)
 
virtual ~MultiPageDialogBase ()
 
void apply ()
 
void setCaption (const QString &caption)
 
void accept ()
 
void reject ()
 
KPageWidgetItem * currentPage () const
 
void addPage (KPageWidgetItem *page)
 
void setCurrentPage (KPageWidgetItem *page)
 
int exec ()
 
virtual bool isModified () const
 

Protected Slots

void slotEnableButtonOk (bool state)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
QFrame * createPage (const QString &name, const QString &header, Icon_Utils::IconType icon)
 
KPageWidgetItem * createPage (const QString &name, const QString &header, Icon_Utils::IconType icon, QWidget *widget)
 
void setupGeneralPage (AssociationWidget *widget)
 
void applyGeneralPage (AssociationWidget *widget)
 
void setupGeneralPage (NoteWidget *widget)
 
KPageWidgetItem * setupGeneralPage (MessageWidget *widget)
 
void applyGeneralPage (MessageWidget *widget)
 
KPageWidgetItem * setupFontPage (const QFont &font)
 
KPageWidgetItem * setupFontPage (UMLWidget *widget)
 
KPageWidgetItem * setupFontPage (AssociationWidget *widget)
 
void resetFontPage (QWidget *widget)
 
void applyFontPage (AssociationWidget *widget)
 
void applyFontPage (Settings::OptionState *state)
 
void applyFontPage (UMLScene *scene)
 
void applyFontPage (UMLWidget *widget)
 
KPageWidgetItem * setupStylePage (WidgetBase *widget)
 
KPageWidgetItem * setupStylePage (AssociationWidget *widget)
 
void applyStylePage ()
 
KPageWidgetItem * setupAssociationRolePage (AssociationWidget *widget)
 
void applyAssociationRolePage ()
 

Protected Attributes

AssociationGeneralPagem_pAssocGeneralPage
 
NotePagem_notePage
 
SelectOperationPagem_operationGeneralPage
 
AssociationRolePagem_pRolePage
 
KFontChooser * m_fontChooser
 
UMLWidgetStylePagem_pStylePage
 
KPageWidgetItem * m_pageItem
 
KPageDialog * m_pageDialog
 
KPageWidget * m_pageWidget
 
bool m_useDialog
 
bool m_isModified
 

Private Slots

void slotOkClicked ()
 
void slotApplyClicked ()
 
void slotDefaultClicked ()
 
void slotHelpClicked ()
 
void slotButtonClicked (QAbstractButton *button)
 

Detailed Description

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

Member Enumeration Documentation

Available page types.

Enumerator
AutoLayoutPage 
ClassPage 
CodeImportPage 
CodeGenerationPage 
CodeViewerPage 
FontPage 
GeneralPage 
UserInterfacePage 

Constructor & Destructor Documentation

MultiPageDialogBase::MultiPageDialogBase ( QWidget *  parent,
bool  withDefaultButton = false 
)
explicit

Constructor

Here is the call graph for this function:

MultiPageDialogBase::~MultiPageDialogBase ( )
virtual

Member Function Documentation

void MultiPageDialogBase::accept ( )
void MultiPageDialogBase::addPage ( KPageWidgetItem *  page)
void MultiPageDialogBase::apply ( )

Apply all used pages

Here is the call graph for this function:

void MultiPageDialogBase::applyAssociationRolePage ( )
protected

Save all used pages

Here is the call graph for this function:

void MultiPageDialogBase::applyClicked ( )
signal
void MultiPageDialogBase::applyFontPage ( AssociationWidget widget)
protected

updates the font page data

Parameters
widgetWidget to save the font data into

Here is the call graph for this function:

void MultiPageDialogBase::applyFontPage ( Settings::OptionState state)
protected
void MultiPageDialogBase::applyFontPage ( UMLScene scene)
protected

updates the font page data

Parameters
sceneScene to save the font data into

Here is the call graph for this function:

void MultiPageDialogBase::applyFontPage ( UMLWidget widget)
protected

updates the font page data

Parameters
widgetWidget to save the font data into

Here is the call graph for this function:

void MultiPageDialogBase::applyGeneralPage ( AssociationWidget widget)
protected
void MultiPageDialogBase::applyGeneralPage ( MessageWidget widget)
protected
void MultiPageDialogBase::applyStylePage ( )
protected

Updates the style page.

Here is the call graph for this function:

QFrame * MultiPageDialogBase::createPage ( const QString &  name,
const QString &  header,
Icon_Utils::IconType  icon 
)
protected

Create a property page

Parameters
nameThe Text displayed in the page list
headerThe Text displayed above the page
iconThe icon to display in the page list
Returns
Pointer to created frame

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::createPage ( const QString &  name,
const QString &  header,
Icon_Utils::IconType  icon,
QWidget *  widget 
)
protected

create new page using a dedicated widget

Parameters
nameThe Text displayed in the page list
headerThe Text displayed above the page
iconThe icon to display in the page list
widgetWidget to display in the page
Returns
page widget item instance

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::currentPage ( ) const
void MultiPageDialogBase::defaultClicked ( )
signal
int MultiPageDialogBase::exec ( )
bool MultiPageDialogBase::isModified ( ) const
virtual

Return state if any data has been changed in the dialog.

Returns
true data has been changed
void MultiPageDialogBase::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle key press event.

Parameters
eventkey press event
void MultiPageDialogBase::okClicked ( )
signal
void MultiPageDialogBase::reject ( )
void MultiPageDialogBase::resetFontPage ( QWidget *  widget)
protected

Set the font page to show the font from the given widget

Parameters
widget
void MultiPageDialogBase::setCaption ( const QString &  caption)
void MultiPageDialogBase::setCurrentPage ( KPageWidgetItem *  page)

Set current page.

Parameters
pagethe page to set
KPageWidgetItem * MultiPageDialogBase::setupAssociationRolePage ( AssociationWidget widget)
protected

Sets up the role settings page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupFontPage ( const QFont &  font)
protected

Sets up the font selection page.

Parameters
fontThe font to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupFontPage ( UMLWidget widget)
protected

Sets up the font selection page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupFontPage ( AssociationWidget widget)
protected

Sets up the font selection page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

void MultiPageDialogBase::setupGeneralPage ( AssociationWidget widget)
protected

Sets up the general settings page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

void MultiPageDialogBase::setupGeneralPage ( NoteWidget widget)
protected

Sets up the general settings page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupGeneralPage ( MessageWidget widget)
protected

Sets up the general page for operations

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupStylePage ( WidgetBase widget)
protected

Sets up the style page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

KPageWidgetItem * MultiPageDialogBase::setupStylePage ( AssociationWidget widget)
protected

Sets up the style page.

Parameters
widgetThe widget to load the initial data from

Here is the call graph for this function:

void MultiPageDialogBase::slotApplyClicked ( )
privateslot

Handle click on apply button.

void MultiPageDialogBase::slotButtonClicked ( QAbstractButton *  button)
privateslot

Button clicked event handler for the dialog button box.

Parameters
buttonthe button which was clicked

Here is the call graph for this function:

void MultiPageDialogBase::slotDefaultClicked ( )
privateslot

Handle click on default button, if enabled in constructor.

void MultiPageDialogBase::slotEnableButtonOk ( bool  state)
protectedslot
void MultiPageDialogBase::slotHelpClicked ( )
privateslot

Launch khelpcenter.

void MultiPageDialogBase::slotOkClicked ( )
privateslot

Handle click on ok button.

Member Data Documentation

KFontChooser* MultiPageDialogBase::m_fontChooser
protected
bool MultiPageDialogBase::m_isModified
protected
NotePage* MultiPageDialogBase::m_notePage
protected
SelectOperationPage* MultiPageDialogBase::m_operationGeneralPage
protected
KPageDialog* MultiPageDialogBase::m_pageDialog
protected
KPageWidgetItem* MultiPageDialogBase::m_pageItem
protected
KPageWidget* MultiPageDialogBase::m_pageWidget
protected
AssociationGeneralPage* MultiPageDialogBase::m_pAssocGeneralPage
protected
AssociationRolePage* MultiPageDialogBase::m_pRolePage
protected
UMLWidgetStylePage* MultiPageDialogBase::m_pStylePage
protected
bool MultiPageDialogBase::m_useDialog
protected

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