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

An extension to the classifier list dialog page to display constraint properties. More...

#include <constraintlistpage.h>

Inheritance diagram for ConstraintListPage:
Collaboration diagram for ConstraintListPage:

Public Member Functions

 ConstraintListPage (QWidget *parent, UMLClassifier *classifier, UMLDoc *doc, UMLObject::ObjectType type)
 
virtual ~ConstraintListPage ()
 
- Public Member Functions inherited from ClassifierListPage
 ClassifierListPage (QWidget *parent, UMLClassifier *classifier, UMLDoc *doc, UMLObject::ObjectType type)
 
virtual ~ClassifierListPage ()
 
void apply ()
 
- Public Member Functions inherited from DialogPageBase
 DialogPageBase (QWidget *parent)
 
virtual ~DialogPageBase ()
 
virtual bool isModified ()
 

Protected Member Functions

bool greaterThan (UMLObject::ObjectType ct1, UMLObject::ObjectType ct2)
 
- Protected Member Functions inherited from ClassifierListPage
void reloadItemListBox ()
 
void hideArrowButtons (bool hide)
 
- Protected Member Functions inherited from DialogPageBase
virtual void keyPressEvent (QKeyEvent *event)
 

Protected Attributes

QMenu * buttonMenu
 
- Protected Attributes inherited from ClassifierListPage
UMLObject::ObjectType m_itemType
 
UMLClassifierm_pClassifier
 
UMLClassifierListItemm_pLastObjectCreated
 
QPushButton * m_pNewClassifierListItemButton
 
QPushButton * m_pDeleteListItemButton
 
QPushButton * m_pPropertiesButton
 
bool m_bSigWaiting
 
- Protected Attributes inherited from DialogPageBase
bool m_isModified
 

Private Slots

void slotNewUniqueConstraint ()
 
void slotNewPrimaryKeyConstraint ()
 
void slotNewForeignKeyConstraint ()
 
void slotNewCheckConstraint ()
 
virtual UMLClassifierListItemList getItemList ()
 

Private Member Functions

void setupActions ()
 

Private Attributes

QAction * newUniqueConstraintAction
 
QAction * newPrimaryKeyConstraintAction
 
QAction * newForeignKeyConstraintAction
 
QAction * newCheckConstraintAction
 

Additional Inherited Members

- Protected Slots inherited from ClassifierListPage
void slotActivateItem (QListWidgetItem *item)
 
void slotMenuSelection (QAction *action)
 
void slotListItemCreated (UMLObject *object)
 
void slotListItemModified ()
 
void slotRightButtonPressed (const QPoint &p)
 
void slotDoubleClick (QListWidgetItem *item)
 
void slotTopClicked ()
 
void slotUpClicked ()
 
void slotDownClicked ()
 
void slotBottomClicked ()
 
void slotNewListItem ()
 
void slotDelete ()
 
void slotProperties ()
 

Detailed Description

An extension to the classifier list dialog page to display constraint properties.

A dialog page to display entity 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

◆ ConstraintListPage()

ConstraintListPage::ConstraintListPage ( QWidget * parent,
UMLClassifier * classifier,
UMLDoc * doc,
UMLObject::ObjectType type )

Sets up the ConstraintListPage

Parameters
parentThe parent to the ConstraintListPage.
classifierThe Concept to display the properties of.
docThe UMLDoc document
typeThe object type
Here is the call graph for this function:

◆ ~ConstraintListPage()

ConstraintListPage::~ConstraintListPage ( )
virtual

Standard destructor.

Member Function Documentation

◆ getItemList

UMLClassifierListItemList ConstraintListPage::getItemList ( )
privatevirtualslot

Get constraint list items for all types (unique, foreign-key and check-constraints)

Here is the call graph for this function:

◆ greaterThan()

bool ConstraintListPage::greaterThan ( UMLObject::ObjectType ct1,
UMLObject::ObjectType ct2 )
protected

Calculates the new index to be assigned when an object of type ot is to be added to the list box. The default Implementation is to add it to the end of the list param ot The Object Type to be added return The index

Returns the index of the Item in the List Box

Will return true if ct1 has a higher (top) place in the list than ct2

Parameters
ct1Constraint Type 1
ct2Constraint Type 2
Returns
true if ct1 is to be shown above ct2 else false

◆ setupActions()

void ConstraintListPage::setupActions ( )
private
Here is the call graph for this function:

◆ slotNewCheckConstraint

void ConstraintListPage::slotNewCheckConstraint ( )
privateslot
Here is the call graph for this function:

◆ slotNewForeignKeyConstraint

void ConstraintListPage::slotNewForeignKeyConstraint ( )
privateslot
Here is the call graph for this function:

◆ slotNewPrimaryKeyConstraint

void ConstraintListPage::slotNewPrimaryKeyConstraint ( )
privateslot
Here is the call graph for this function:

◆ slotNewUniqueConstraint

void ConstraintListPage::slotNewUniqueConstraint ( )
privateslot
Here is the call graph for this function:

Member Data Documentation

◆ buttonMenu

QMenu* ConstraintListPage::buttonMenu
protected

◆ newCheckConstraintAction

QAction* ConstraintListPage::newCheckConstraintAction
private

◆ newForeignKeyConstraintAction

QAction* ConstraintListPage::newForeignKeyConstraintAction
private

◆ newPrimaryKeyConstraintAction

QAction* ConstraintListPage::newPrimaryKeyConstraintAction
private

◆ newUniqueConstraintAction

QAction* ConstraintListPage::newUniqueConstraintAction
private

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