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

A dialog page to display classifier properties. More...

#include <classifierlistpage.h>

Inheritance diagram for ClassifierListPage:
Collaboration diagram for ClassifierListPage:

Public Member Functions

 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 Slots

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 ()
 

Protected Member Functions

void reloadItemListBox ()
 
void hideArrowButtons (bool hide)
 
- Protected Member Functions inherited from DialogPageBase
virtual void keyPressEvent (QKeyEvent *event)
 

Protected Attributes

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 Member Functions

void setupPage ()
 
void setupListGroup (int margin)
 
void setupDocumentationGroup (int margin)
 
void setupMoveButtons (QHBoxLayout *parentLayout)
 
void setupActionButtons (const QString &itemType, QVBoxLayout *parentLayout)
 
void enableWidgets (bool state)
 
void saveCurrentItemDocumentation ()
 
virtual UMLClassifierListItemList getItemList ()
 
bool addToClassifier (UMLClassifierListItem *classifier, int position=-1)
 
bool takeItem (UMLClassifierListItem *listItem, bool seekPeerBefore, int &peerIndex)
 
void deleteMenu ()
 
void printItemList (const QString &prologue)
 

Private Attributes

QGroupBox * m_docGB
 
QGroupBox * m_pItemListGB
 
KTextEdit * m_docTE
 
CodeTextEditm_pCodeTE
 
QListWidget * m_pItemListLB
 
QToolButton * m_pTopArrowB
 
QToolButton * m_pUpArrowB
 
QToolButton * m_pDownArrowB
 
QToolButton * m_pBottomArrowB
 
UMLDocm_doc
 
UMLClassifierListItemm_pOldListItem
 

Detailed Description

A dialog page to display classifier properties.

A dialog page to display classifier list properties. This is not normally setup by you. It is used by the ClassPropertiesDialog and new class wizard.

Author
Paul Hensgen, Jonathan Riddell 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

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

Sets up the ClassifierListPage.

Parameters
parentThe parent to the ClassAttPage.
classifierThe Concept to display the properties of.
docThe UMLDoc document
typeThe type of listItem this handles
ClassifierListPage::~ClassifierListPage ( )
virtual

Standard destructor.

Member Function Documentation

bool ClassifierListPage::addToClassifier ( UMLClassifierListItem listitem,
int  position = -1 
)
private

Attempts to add a UMLClassifierListItem to m_pClassifier.

Parameters
listitemPointer to the classifier list item to add.
positionIndex at which to insert into the list.
Returns
true if the classifier could be added

Here is the call graph for this function:

void ClassifierListPage::apply ( )

Will move information from the dialog into the object. Call when the ok or apply button is pressed.

Here is the call graph for this function:

void ClassifierListPage::deleteMenu ( )
private
void ClassifierListPage::enableWidgets ( bool  state)
private

Set the state of the widgets on the page with the given value.

Parameters
stateThe state to set the widgets as.
UMLClassifierListItemList ClassifierListPage::getItemList ( )
privatevirtual

Get classifier list items.

Here is the call graph for this function:

void ClassifierListPage::hideArrowButtons ( bool  hide)
protected

Sets the visibility of the arrow buttons.

Parameters
hidetrue hides the arrow buttons
void ClassifierListPage::printItemList ( const QString &  prologue)
private

Utility for debugging, prints the current item list. Only effective if VERBOSE_DEBUGGING is defined.

Here is the call graph for this function:

void ClassifierListPage::reloadItemListBox ( )
protected

Loads the Item List Box.

Here is the call graph for this function:

void ClassifierListPage::saveCurrentItemDocumentation ( )
private

Saves the documentation for the currently selected item.

Here is the call graph for this function:

void ClassifierListPage::setupActionButtons ( const QString &  itemType,
QVBoxLayout *  parentLayout 
)
private

Sets up the action buttons.

Parameters
itemTypeThe item type.
parentLayoutThe parent layout to which this group belongs.

Here is the call graph for this function:

void ClassifierListPage::setupDocumentationGroup ( int  margin)
private

Sets up the documentation group.

Parameters
marginThe margin of the group.
void ClassifierListPage::setupListGroup ( int  margin)
private

Sets up the list group.

Parameters
marginThe margin of the group.

Here is the call graph for this function:

void ClassifierListPage::setupMoveButtons ( QHBoxLayout *  parentLayout)
private

Sets up the move up/down buttons.

Parameters
parentLayoutThe parent layout to which this group belongs.
void ClassifierListPage::setupPage ( )
private

Sets up the page.

Here is the call graph for this function:

void ClassifierListPage::slotActivateItem ( QListWidgetItem *  item)
protectedslot

Called whenever the list item needs to be activated calls enableWidgets().

Here is the call graph for this function:

void ClassifierListPage::slotBottomClicked ( )
protectedslot

Moved selected attribute to the bottom of the list.

Here is the call graph for this function:

void ClassifierListPage::slotDelete ( )
protectedslot

Removes currently selected attribute.

Here is the call graph for this function:

void ClassifierListPage::slotDoubleClick ( QListWidgetItem *  item)
protectedslot

Shows properties dialog for the attribute clicked on.

Here is the call graph for this function:

void ClassifierListPage::slotDownClicked ( )
protectedslot

Moved selected attribute down in list.

Here is the call graph for this function:

void ClassifierListPage::slotListItemCreated ( UMLObject object)
protectedslot

Here is the call graph for this function:

void ClassifierListPage::slotListItemModified ( )
protectedslot

Here is the call graph for this function:

void ClassifierListPage::slotMenuSelection ( QAction *  action)
protectedslot

Called when an item is selected in a right click menu.

Here is the call graph for this function:

void ClassifierListPage::slotNewListItem ( )
protectedslot

Shows dialog for new attribute.

Here is the call graph for this function:

void ClassifierListPage::slotProperties ( )
protectedslot

Shows properties dialog for currently selected attribute.

Here is the call graph for this function:

void ClassifierListPage::slotRightButtonPressed ( const QPoint &  p)
protectedslot

Here is the call graph for this function:

void ClassifierListPage::slotTopClicked ( )
protectedslot

Moves selected attribute to the top of the list.

Here is the call graph for this function:

void ClassifierListPage::slotUpClicked ( )
protectedslot

Moves selected attribute up in list.

Here is the call graph for this function:

bool ClassifierListPage::takeItem ( UMLClassifierListItem listItem,
bool  seekPeerBefore,
int peerIndex 
)
private

Take a classifier's subordinate item. Ownership of the classifier list item is transferred to the caller.

Parameters
listItemUMLClassifierListItem to take.
seekPeerBeforeTrue if a peer index should be sought which is smaller than the current listitem's index.
peerIndexReturn value: Index in the UMLClassifier's item list at which a peer item, i.e. another UMLClassifierListItem of the same type as listItem, is found. If no such item exists then return -1.
Returns
True for success.

Here is the call graph for this function:

Member Data Documentation

bool ClassifierListPage::m_bSigWaiting
protected
UMLDoc* ClassifierListPage::m_doc
private
QGroupBox* ClassifierListPage::m_docGB
private
KTextEdit* ClassifierListPage::m_docTE
private
UMLObject::ObjectType ClassifierListPage::m_itemType
protected
QToolButton* ClassifierListPage::m_pBottomArrowB
private
UMLClassifier* ClassifierListPage::m_pClassifier
protected
CodeTextEdit* ClassifierListPage::m_pCodeTE
private
QPushButton* ClassifierListPage::m_pDeleteListItemButton
protected
QToolButton* ClassifierListPage::m_pDownArrowB
private
QGroupBox* ClassifierListPage::m_pItemListGB
private
QListWidget* ClassifierListPage::m_pItemListLB
private
UMLClassifierListItem* ClassifierListPage::m_pLastObjectCreated
protected
QPushButton* ClassifierListPage::m_pNewClassifierListItemButton
protected
UMLClassifierListItem* ClassifierListPage::m_pOldListItem
private
QPushButton* ClassifierListPage::m_pPropertiesButton
protected
QToolButton* ClassifierListPage::m_pTopArrowB
private
QToolButton* ClassifierListPage::m_pUpArrowB
private

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