umbrello/umbrello
classifierlistpage.cpp
Go to the documentation of this file.
92 connect(m_pItemListLB, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)), this, SLOT(slotActivateItem(QListWidgetItem*)));
93 connect(m_pItemListLB, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(slotDoubleClick(QListWidgetItem*)));
94 connect(m_pItemListLB, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(slotRightButtonPressed(QPoint)));
96 connect(m_doc, SIGNAL(sigObjectCreated(UMLObject*)), this, SLOT(slotListItemCreated(UMLObject*)));
204 m_pNewClassifierListItemButton = buttonBox->addButton(itemType, KDialogButtonBox::ActionRole, this,
208 m_pPropertiesButton = buttonBox->addButton(i18n("&Properties"), KDialogButtonBox::ActionRole, this, SLOT(slotProperties()));
680 m_pItemListLB->item(m_pItemListLB->row(item))->setText(listItem->toString(Uml::SignatureType::SigNoVis));
UMLObject * addEnumLiteral(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an enumliteral to the enum.
Definition: enum.cpp:132
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an already created template.
Definition: classifier.cpp:1043
Definition: codetextedit.h:39
ClassifierListPage(QWidget *parent, UMLClassifier *classifier, UMLDoc *doc, UMLObject::ObjectType type)
Sets up the ClassifierListPage.
Definition: classifierlistpage.cpp:49
Definition: umlobject.h:60
void slotListItemCreated(UMLObject *object)
Definition: classifierlistpage.cpp:375
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
void hideArrowButtons(bool hide)
Sets the visibility of the arrow buttons.
Definition: classifierlistpage.cpp:848
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
static QString toString(MenuType menu)
Convert enum MenuType to string.
Definition: listpopupmenu.cpp:1986
UMLClassifierListItem * m_pLastObjectCreated
Definition: classifierlistpage.h:100
void slotRightButtonPressed(const QPoint &p)
Definition: classifierlistpage.cpp:421
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
QListIterator< UMLClassifierListItem * > UMLClassifierListItemListIt
Definition: umlclassifierlistitemlist.h:17
void slotListItemModified()
Definition: classifierlistpage.cpp:407
Definition: listpopupmenu.h:157
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
Definition: umlobject.h:59
Definition: umlobject.h:61
void slotBottomClicked()
Moved selected attribute to the bottom of the list.
Definition: classifierlistpage.cpp:632
void slotActivateItem(QListWidgetItem *item)
Called whenever the list item needs to be activated calls enableWidgets().
Definition: classifierlistpage.cpp:314
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
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:304
void setSourceCode(const QString &code)
Sets the source code for this operation.
Definition: operation.cpp:432
Definition: listpopupmenu.h:158
QPushButton * m_pDeleteListItemButton
Definition: classifierlistpage.h:103
void slotMenuSelection(QAction *action)
Called when an item is selected in a right click menu.
Definition: classifierlistpage.cpp:462
void slotTopClicked()
Moves selected attribute to the top of the list.
Definition: classifierlistpage.cpp:525
void slotDoubleClick(QListWidgetItem *item)
Shows properties dialog for the attribute clicked on.
Definition: classifierlistpage.cpp:666
void removeUMLObject(UMLObject *umlobject)
Removes an UMLObject from the current file.
Definition: umldoc.cpp:1527
UMLObject * addEntityAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an entityAttribute.
Definition: entity.cpp:305
void updateObject()
Will move information from the dialog into the object.
Definition: classifierlistpage.cpp:368
void renameChildUMLObject(UMLObject *o)
Used to rename an operation or attribute of a concept.
Definition: umldoc.cpp:1400
Definition: umlobject.h:70
Definition: umlobject.h:58
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
void slotProperties()
Shows properties dialog for currently selected attribute.
Definition: classifierlistpage.cpp:709
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type)
Creates an operation, attribute, template, or enum literal for the parent classifier.
Definition: object_factory.cpp:242
Definition: listpopupmenu.h:156
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:810
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
int takeItem(UMLClassifierListItem *item)
Take and return a subordinate item from this classifier.
Definition: classifier.cpp:1186
Definition: umlobject.h:68
Definition: listpopupmenu.h:236
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
virtual bool showPropertiesDialog(QWidget *parent)=0
Display the properties configuration dialog for the list item.
QPushButton * m_pNewClassifierListItemButton
Definition: classifierlistpage.h:102
QPushButton * m_pPropertiesButton
Definition: classifierlistpage.h:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 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:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.