umbrello 25.07.80
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
ClassPropertiesDialog Class Reference

#include <classpropertiesdialog.h>

Inheritance diagram for ClassPropertiesDialog:
Collaboration diagram for ClassPropertiesDialog:

Public Types

enum  Page {
  page_gen = 0 , page_att , page_op , page_entatt ,
  page_constraint , page_template , page_assoc , page_options ,
  page_color , page_font
}
Public Types inherited from MultiPageDialogBase
enum  PageType {
  AutoLayoutPage , ClassPage , CodeImportPage , CodeGenerationPage ,
  CodeViewerPage , FontPage , GeneralPage , UserInterfacePage
}
 Available page types. More...

Public Member Functions

 ClassPropertiesDialog (QWidget *parent, UMLObject *c, bool assoc=false)
 ClassPropertiesDialog (QWidget *parent, ObjectWidget *o)
 ClassPropertiesDialog (QWidget *parent, UMLWidget *o)
 ~ClassPropertiesDialog ()
virtual void apply ()
Public Member Functions inherited from MultiPageDialogBase
 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 slotOk ()
void slotApply ()
Protected Slots inherited from MultiPageDialogBase
void slotEnableButtonOk (bool state)

Protected Member Functions

void setupPages (bool assoc=false)
void setupGeneralPage ()
void setupDisplayPage ()
void setupAttributesPage ()
void setupOperationsPage ()
void setupTemplatesPage ()
void setupEnumLiteralsPage ()
void setupEntityDisplayPage (EntityWidget *widget)
void setupEntityAttributesPage ()
void setupEntityConstraintsPage ()
void setupContentsPage ()
void setupAssociationsPage ()
void setupInstancePages ()
Protected Member Functions inherited from MultiPageDialogBase
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 ()

Private Member Functions

void init ()

Private Attributes

ClassGeneralPagem_pGenPage
ClassifierListPagem_pAttPage
ClassifierListPagem_pOpsPage
ClassifierListPagem_pTemplatePage
ClassifierListPagem_pEnumLiteralPage
ClassifierListPagem_pEntityAttributePage
ConstraintListPagem_pEntityConstraintPage
PackageContentsPagem_pPkgContentsPage
ClassAssociationsPagem_pAssocPage
ClassOptionsPagem_pOptionsPage
UMLDocm_doc
UMLObjectm_pObject
UMLWidgetm_pWidget

Additional Inherited Members

Signals inherited from MultiPageDialogBase
void okClicked ()
void applyClicked ()
void defaultClicked ()
Protected Attributes inherited from MultiPageDialogBase
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

Detailed Description

Member Enumeration Documentation

◆ Page

Enumerator
page_gen 
page_att 
page_op 
page_entatt 
page_constraint 
page_template 
page_assoc 
page_options 
page_color 
page_font 

Constructor & Destructor Documentation

◆ ClassPropertiesDialog() [1/3]

ClassPropertiesDialog::ClassPropertiesDialog ( QWidget * parent,
UMLObject * c,
bool assoc = false )

Sets up a ClassPropDialog.

Parameters
parentThe parent of the ClassPropDialog
cThe UMLObject to display properties of.
assocDetermines whether to display associations
Here is the call graph for this function:

◆ ClassPropertiesDialog() [2/3]

ClassPropertiesDialog::ClassPropertiesDialog ( QWidget * parent,
ObjectWidget * o )

Sets up a ClassPropDialog.

Parameters
parentThe parent of the ClassPropDialog
oThe ObjectWidget to display properties of.
Here is the call graph for this function:

◆ ClassPropertiesDialog() [3/3]

ClassPropertiesDialog::ClassPropertiesDialog ( QWidget * parent,
UMLWidget * w )

Sets up a ClassPropDialog.

Parameters
parentThe parent of the ClassPropDialog
wThe UMLWidget to display properties of.
Here is the call graph for this function:

◆ ~ClassPropertiesDialog()

ClassPropertiesDialog::~ClassPropertiesDialog ( )

Standard destructor.

Member Function Documentation

◆ apply()

void ClassPropertiesDialog::apply ( )
virtual

Calls slotApply()

Here is the call graph for this function:

◆ init()

void ClassPropertiesDialog::init ( )
private
Here is the call graph for this function:

◆ setupAssociationsPage()

void ClassPropertiesDialog::setupAssociationsPage ( )
protected

Sets up the page "Associations" for the component.

Here is the call graph for this function:

◆ setupAttributesPage()

void ClassPropertiesDialog::setupAttributesPage ( )
protected

Sets up the page "Attributes" for the component.

Here is the call graph for this function:

◆ setupContentsPage()

void ClassPropertiesDialog::setupContentsPage ( )
protected

Sets up the page "Contents" for the component.

Here is the call graph for this function:

◆ setupDisplayPage()

void ClassPropertiesDialog::setupDisplayPage ( )
protected

Sets up the page "Display" for the component.

Here is the call graph for this function:

◆ setupEntityAttributesPage()

void ClassPropertiesDialog::setupEntityAttributesPage ( )
protected

Sets up the page "Entity Attributes" for the component.

Here is the call graph for this function:

◆ setupEntityConstraintsPage()

void ClassPropertiesDialog::setupEntityConstraintsPage ( )
protected

Sets up the page "Entity Constraints" for the component.

Here is the call graph for this function:

◆ setupEntityDisplayPage()

void ClassPropertiesDialog::setupEntityDisplayPage ( EntityWidget * widget)
protected

Sets up the page "Display" for the component.

Here is the call graph for this function:

◆ setupEnumLiteralsPage()

void ClassPropertiesDialog::setupEnumLiteralsPage ( )
protected

Sets up the page "Enum Literals" for the component.

Here is the call graph for this function:

◆ setupGeneralPage()

void ClassPropertiesDialog::setupGeneralPage ( )
protected

Sets up the page "General" for the component.

Here is the call graph for this function:

◆ setupInstancePages()

void ClassPropertiesDialog::setupInstancePages ( )
protected

Sets up the general page for the component.

Here is the call graph for this function:

◆ setupOperationsPage()

void ClassPropertiesDialog::setupOperationsPage ( )
protected

Sets up the page "Operations" for the component.

Here is the call graph for this function:

◆ setupPages()

void ClassPropertiesDialog::setupPages ( bool assoc = false)
protected

Sets up the general, attribute, operations, template and association pages as appropriate.

Here is the call graph for this function:

◆ setupTemplatesPage()

void ClassPropertiesDialog::setupTemplatesPage ( )
protected

Sets up the page "Templates" for the component.

Here is the call graph for this function:

◆ slotApply

void ClassPropertiesDialog::slotApply ( )
protectedslot

Applies the settings in the dialog to the widget and object.

Here is the call graph for this function:

◆ slotOk

void ClassPropertiesDialog::slotOk ( )
protectedslot

Calls slotApply() and accepts (closes) the dialog.

Here is the call graph for this function:

Member Data Documentation

◆ m_doc

UMLDoc* ClassPropertiesDialog::m_doc
private

◆ m_pAssocPage

ClassAssociationsPage* ClassPropertiesDialog::m_pAssocPage
private

◆ m_pAttPage

ClassifierListPage* ClassPropertiesDialog::m_pAttPage
private

◆ m_pEntityAttributePage

ClassifierListPage* ClassPropertiesDialog::m_pEntityAttributePage
private

◆ m_pEntityConstraintPage

ConstraintListPage* ClassPropertiesDialog::m_pEntityConstraintPage
private

◆ m_pEnumLiteralPage

ClassifierListPage* ClassPropertiesDialog::m_pEnumLiteralPage
private

◆ m_pGenPage

ClassGeneralPage* ClassPropertiesDialog::m_pGenPage
private

◆ m_pObject

UMLObject* ClassPropertiesDialog::m_pObject
private

◆ m_pOpsPage

ClassifierListPage* ClassPropertiesDialog::m_pOpsPage
private

◆ m_pOptionsPage

ClassOptionsPage* ClassPropertiesDialog::m_pOptionsPage
private

◆ m_pPkgContentsPage

PackageContentsPage* ClassPropertiesDialog::m_pPkgContentsPage
private

◆ m_pTemplatePage

ClassifierListPage* ClassPropertiesDialog::m_pTemplatePage
private

◆ m_pWidget

UMLWidget* ClassPropertiesDialog::m_pWidget
private

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