umbrello/umbrello
umlforeignkeyconstraintdialog.cpp
Go to the documentation of this file.
56 UMLForeignKeyConstraintDialog::UMLForeignKeyConstraintDialog(QWidget* parent, UMLForeignKeyConstraint* pForeignKeyConstraint)
148 m_ColumnWidgets.referencedColumnCB->addItem((pair.second)->toString(Uml::SignatureType::SigNoVis));
179 updateAction = (UMLForeignKeyConstraint::UpdateDeleteAction) m_GeneralWidgets.updateActionCB->currentIndex();
180 deleteAction = (UMLForeignKeyConstraint::UpdateDeleteAction) m_GeneralWidgets.deleteActionCB->currentIndex();
282 connect(m_GeneralWidgets.referencedEntityCB, SIGNAL(activated(int)), this, SLOT(slotReferencedEntityChanged(int)));
300 headers << i18nc("column header local", "Local") << i18nc("column header referenced", "Referenced");
321 m_ColumnWidgets.removePB = buttonBox->addButton(i18n("&Delete"), KDialogButtonBox::ActionRole, this,
331 QMap<UMLEntityAttribute*, UMLEntityAttribute*> map = m_pForeignKeyConstraint->getEntityAttributePairs();
366 connect(m_ColumnWidgets.mappingTW, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this, SLOT(slotResetWidgetState()));
394 int result = KMessageBox::questionYesNo(this, i18n("You are attempting to change the Referenced Entity of this ForeignKey Constraint. Any unapplied changes to the mappings between local and referenced entities will be lost. Are you sure you want to continue ?"));
458 if (m_ColumnWidgets.localColumnCB->count() == 0 || m_ColumnWidgets.referencedColumnCB->count() == 0) {
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
void slotApply()
Used when the Apply button is clicked.
Definition: umlforeignkeyconstraintdialog.cpp:372
void setUpdateAction(UpdateDeleteAction uda)
Set the Update Action to the specified UpdateDeleteAction.
Definition: foreignkeyconstraint.cpp:440
UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Reimplementation of getFilteredList to support ot=UMLObject::ot_EntityConstraint. ...
Definition: entity.cpp:642
void setDeleteAction(UpdateDeleteAction uda)
Set the Delete Action to the specified UpdateDeleteAction.
Definition: foreignkeyconstraint.cpp:432
KIcon DesktopIcon(IconType type)
Returns the pixmap for the given type as desktop icon.
Definition: icon_utils.cpp:76
UpdateDeleteAction
Update/Delete Action: Action to be taken on Update or Delete of a referenced attribute is either...
Definition: foreignkeyconstraint.h:42
Definition: icon_utils.h:74
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
void slotResetWidgetState()
Enable/Disable the widgets in the Dialog Box.
Definition: umlforeignkeyconstraintdialog.cpp:450
void clearMappings()
Clears all mappings between local and referenced attributes.
Definition: foreignkeyconstraint.cpp:366
~UMLForeignKeyConstraintDialog()
Standard destructor.
Definition: umlforeignkeyconstraintdialog.cpp:78
void setReferencedEntity(UMLEntity *ent)
Set the Referenced Entity.
Definition: foreignkeyconstraint.cpp:335
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the list item.
Definition: classifierlistitem.cpp:89
Definition: basictypes.h:137
UMLForeignKeyConstraintDialog(QWidget *parent, UMLForeignKeyConstraint *pForeignKeyConstraint)
Sets up the UMLForeignKeyConstraintDialog.
Definition: umlforeignkeyconstraintdialog.cpp:56
void slotReferencedEntityChanged(int index)
Definition: umlforeignkeyconstraintdialog.cpp:387
Definition: umlobject.h:67
KLineEdit * makeLabeledEditField(QGroupBox *containingBox, QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:43
UpdateDeleteAction getUpdateAction() const
Get the Update Action.
Definition: foreignkeyconstraint.cpp:424
UMLEntity * getReferencedEntity() const
Get the Referenced Entity.
Definition: foreignkeyconstraint.cpp:349
QMap< UMLEntityAttribute *, UMLEntityAttribute * > getEntityAttributePairs()
Retrieve all Pairs of Attributes.
Definition: foreignkeyconstraint.cpp:408
void slotDeletePair()
Deletes a pair from the list.
Definition: umlforeignkeyconstraintdialog.cpp:125
UMLEntityList entities(bool includeNested=true)
Returns a list of the entities in this UMLDoc.
Definition: umldoc.cpp:2505
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
UpdateDeleteAction getDeleteAction() const
Get the Delete Action.
Definition: foreignkeyconstraint.cpp:416
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLEntityAttribute.
Definition: entityattribute.cpp:169
QPair< UMLEntityAttribute *, UMLEntityAttribute * > EntityAttributePair
Definition: umlforeignkeyconstraintdialog.cpp:48
Definition: icon_utils.h:55
bool addEntityAttributePair(UMLEntityAttribute *pAttr, UMLEntityAttribute *rAttr)
Adds the attribute pair to the attributeMap.
Definition: foreignkeyconstraint.cpp:184
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
Definition: umlobject.h:68
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.