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

A dialog page to display foreignkey constraint properties. More...

#include <umlforeignkeyconstraintdialog.h>

Inheritance diagram for UMLForeignKeyConstraintDialog:
Collaboration diagram for UMLForeignKeyConstraintDialog:

Classes

struct  ColumnWidgets
struct  GeneralWidgets

Public Slots

void slotResetWidgetState ()
void slotApply ()
void slotOk ()
void slotAddPair ()
void slotDeletePair ()
void slotReferencedEntityChanged (int index)

Public Member Functions

 UMLForeignKeyConstraintDialog (QWidget *parent, UMLForeignKeyConstraint *pForeignKeyConstraint)
 ~UMLForeignKeyConstraintDialog ()
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

Private Member Functions

bool apply ()
void setupGeneralPage ()
void setupColumnPage ()
void refillReferencedAttributeCB ()
void refillLocalAttributeCB ()

Private Attributes

UMLDocm_doc
 the UMLDocument where all objects live
UMLForeignKeyConstraintm_pForeignKeyConstraint
UMLEntityAttributeList m_pLocalAttributeList
UMLEntityAttributeList m_pReferencedAttributeList
EntityAttributePairList m_pAttributeMapList
int m_pReferencedEntityIndex
GeneralWidgets m_GeneralWidgets
ColumnWidgets m_ColumnWidgets
KPageWidgetItem * pageGeneral
KPageWidgetItem * pageColumn

Additional Inherited Members

Public Types inherited from MultiPageDialogBase
enum  PageType {
  AutoLayoutPage , ClassPage , CodeImportPage , CodeGenerationPage ,
  CodeViewerPage , FontPage , GeneralPage , UserInterfacePage
}
 Available page types. More...
Signals inherited from MultiPageDialogBase
void okClicked ()
void applyClicked ()
void defaultClicked ()
Protected Slots inherited from MultiPageDialogBase
void slotEnableButtonOk (bool state)
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 ()
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

A dialog page to display foreignkey constraint properties.

A dialog page to display foreignkey constraint properties.

Author
Sharan Rao Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

◆ UMLForeignKeyConstraintDialog()

UMLForeignKeyConstraintDialog::UMLForeignKeyConstraintDialog ( QWidget * parent,
UMLForeignKeyConstraint * pForeignKeyConstraint )

Sets up the UMLForeignKeyConstraintDialog

Parameters
parentThe parent to the UMLForeignKeyConstraintDialog.
pForeignKeyConstraintThe Unique Constraint to show the properties of
Here is the call graph for this function:

◆ ~UMLForeignKeyConstraintDialog()

UMLForeignKeyConstraintDialog::~UMLForeignKeyConstraintDialog ( )

Standard destructor.

Member Function Documentation

◆ apply()

bool UMLForeignKeyConstraintDialog::apply ( )
private

Checks if changes are valid and applies them if they are, else returns false.

Here is the call graph for this function:

◆ refillLocalAttributeCB()

void UMLForeignKeyConstraintDialog::refillLocalAttributeCB ( )
private
Here is the call graph for this function:

◆ refillReferencedAttributeCB()

void UMLForeignKeyConstraintDialog::refillReferencedAttributeCB ( )
private
Here is the call graph for this function:

◆ setupColumnPage()

void UMLForeignKeyConstraintDialog::setupColumnPage ( )
private

Setup Column Page.

Here is the call graph for this function:

◆ setupGeneralPage()

void UMLForeignKeyConstraintDialog::setupGeneralPage ( )
private

Setup the General Page.

Here is the call graph for this function:

◆ slotAddPair

void UMLForeignKeyConstraintDialog::slotAddPair ( )
slot

Adds pair to the list.

Here is the call graph for this function:

◆ slotApply

void UMLForeignKeyConstraintDialog::slotApply ( )
slot

Used when the Apply button is clicked.

Here is the call graph for this function:

◆ slotDeletePair

void UMLForeignKeyConstraintDialog::slotDeletePair ( )
slot

Deletes a pair from the list.

Here is the call graph for this function:

◆ slotOk

void UMLForeignKeyConstraintDialog::slotOk ( )
slot

Used when the OK button is clicked. Calls apply().

Here is the call graph for this function:

◆ slotReferencedEntityChanged

void UMLForeignKeyConstraintDialog::slotReferencedEntityChanged ( int index)
slot
Here is the call graph for this function:

◆ slotResetWidgetState

void UMLForeignKeyConstraintDialog::slotResetWidgetState ( )
slot

Enable/Disable the widgets in the Dialog Box.

Member Data Documentation

◆ m_ColumnWidgets

ColumnWidgets UMLForeignKeyConstraintDialog::m_ColumnWidgets
private

◆ m_doc

UMLDoc* UMLForeignKeyConstraintDialog::m_doc
private

the UMLDocument where all objects live

◆ m_GeneralWidgets

GeneralWidgets UMLForeignKeyConstraintDialog::m_GeneralWidgets
private

◆ m_pAttributeMapList

EntityAttributePairList UMLForeignKeyConstraintDialog::m_pAttributeMapList
private

◆ m_pForeignKeyConstraint

UMLForeignKeyConstraint* UMLForeignKeyConstraintDialog::m_pForeignKeyConstraint
private

◆ m_pLocalAttributeList

UMLEntityAttributeList UMLForeignKeyConstraintDialog::m_pLocalAttributeList
private

◆ m_pReferencedAttributeList

UMLEntityAttributeList UMLForeignKeyConstraintDialog::m_pReferencedAttributeList
private

◆ m_pReferencedEntityIndex

int UMLForeignKeyConstraintDialog::m_pReferencedEntityIndex
private

Temporary Storage for entity index in referencedColumnCB. Used for reverting back a change in referenced entities.

◆ pageColumn

KPageWidgetItem * UMLForeignKeyConstraintDialog::pageColumn
private

◆ pageGeneral

KPageWidgetItem* UMLForeignKeyConstraintDialog::pageGeneral
private

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