umbrello/umbrello
#include <refactoringassistant.h>
Public Slots | |
void | addBaseClassifier () |
void | addDerivedClassifier () |
void | addInterfaceImplementation () |
void | attributeAdded (UMLClassifierListItem *listItem) |
void | attributeRemoved (UMLClassifierListItem *listItem) |
void | createAttribute () |
void | createOperation () |
void | deleteItem () |
void | editProperties () |
void | itemExecuted (QTreeWidgetItem *item, int column) |
void | objectModified (const UMLObject *obj=0) |
void | operationAdded (UMLClassifierListItem *listItem) |
void | operationRemoved (UMLClassifierListItem *listItem) |
Public Member Functions | |
RefactoringAssistant (UMLDoc *doc, UMLClassifier *obj=0, QWidget *parent=0, const QString &name=QString()) | |
virtual | ~RefactoringAssistant () |
void | refactor (UMLClassifier *obj) |
Protected Member Functions | |
void | addClassifier (UMLClassifier *classifier, QTreeWidgetItem *parent=0, bool addSuper=true, bool addSub=true, bool recurse=false) |
void | deleteItem (QTreeWidgetItem *item, UMLObject *obj) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
void | editProperties (UMLObject *obj) |
QTreeWidgetItem * | findListViewItem (const UMLObject *obj) |
UMLObject * | findUMLObject (const QTreeWidgetItem *) |
void | setVisibilityIcon (QTreeWidgetItem *item, const UMLObject *obj) |
Protected Attributes | |
QSet< UMLClassifier * > | m_alreadySeen |
UMLDoc * | m_doc |
QMenu * | m_menu |
UMLClassifier * | m_umlObject |
QMap< QTreeWidgetItem *, UMLObject * > | m_umlObjectMap |
Detailed Description
Definition at line 27 of file refactoringassistant.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
doc the UML document obj the UML classifier to refactor parent the parent widget name the object name
Definition at line 41 of file refactoringassistant.cpp.
|
virtual |
Destructor.
Definition at line 68 of file refactoringassistant.cpp.
Member Function Documentation
|
slot |
Slot for adding a base classifier.
Definition at line 477 of file refactoringassistant.cpp.
|
protected |
Add a classifier to the data structure.
- Parameters
-
classifier the classifier to add parent the tree item under which the classifier is placed addSuper add it to the base classifier folder addSub add it to the derived classifier folder recurse ...
Definition at line 635 of file refactoringassistant.cpp.
|
slot |
Slot for adding a derived classifier.
Definition at line 522 of file refactoringassistant.cpp.
|
slot |
Slot for adding an interface implementation.
- Todo:
- not yet implemented, needs addSuperClassifier() first
Definition at line 567 of file refactoringassistant.cpp.
|
slot |
Slot for adding an attribute to the tree.
- Parameters
-
listItem the new attribute to add
Definition at line 264 of file refactoringassistant.cpp.
|
slot |
Slot for removing an attribute from the tree.
- Parameters
-
listItem the attribute to be removed
Definition at line 295 of file refactoringassistant.cpp.
|
slot |
Create new attribute.
Definition at line 608 of file refactoringassistant.cpp.
|
slot |
Create new operation.
Definition at line 586 of file refactoringassistant.cpp.
|
slot |
Slot for deleting an item called from the popup menu.
Definition at line 354 of file refactoringassistant.cpp.
|
protected |
Delete an item from the tree.
- Parameters
-
item the tree widget item obj the uml object
Definition at line 370 of file refactoringassistant.cpp.
|
protectedvirtual |
Reimplementation of the drag move event.
- Parameters
-
event the drag move event
Definition at line 730 of file refactoringassistant.cpp.
|
protectedvirtual |
Reimplementation of the drop event.
- Parameters
-
event the drop event
Definition at line 765 of file refactoringassistant.cpp.
|
slot |
Slot for calling editProperties with the current item.
Definition at line 313 of file refactoringassistant.cpp.
|
protected |
Show the dialog with data from the given UML object.
- Parameters
-
obj the UML object to edit
Definition at line 328 of file refactoringassistant.cpp.
|
protected |
Find tree item from UML object.
- Parameters
-
obj the UML object to search in tree
- Returns
- the found tree widget item or 0
Definition at line 120 of file refactoringassistant.cpp.
|
protected |
Find UML object from tree item.
- Parameters
-
item the item from the tree widget
- Returns
- the UML object behind the item
Definition at line 102 of file refactoringassistant.cpp.
|
slot |
Slot for double clicking on a tree widget item.
- Parameters
-
item tree widget item on which the user clicked column the column of the tree on which the user clicked.
Definition at line 138 of file refactoringassistant.cpp.
|
slot |
Slot for updating the tree item properties according to the given UML object.
If no parameter is given the sender is used.
- Parameters
-
obj the UML object
Definition at line 198 of file refactoringassistant.cpp.
|
slot |
Slot for adding an operation to the tree.
- Parameters
-
listItem the new operation to add
Definition at line 218 of file refactoringassistant.cpp.
|
slot |
Slot for removing an operation from the tree.
- Parameters
-
listItem the operation to be removed
Definition at line 248 of file refactoringassistant.cpp.
void RefactoringAssistant::refactor | ( | UMLClassifier * | obj | ) |
Builds up the tree for the classifier.
- Parameters
-
obj the classifier which has to be refactored
Definition at line 78 of file refactoringassistant.cpp.
|
protected |
Set the icon representing the visibility of the given item.
- Parameters
-
item the tree item obj the UML object behind the tree item
Definition at line 152 of file refactoringassistant.cpp.
Member Data Documentation
|
protected |
recursive guard
Definition at line 82 of file refactoringassistant.h.
|
protected |
Definition at line 79 of file refactoringassistant.h.
|
protected |
Definition at line 80 of file refactoringassistant.h.
|
protected |
Definition at line 78 of file refactoringassistant.h.
|
protected |
Definition at line 81 of file refactoringassistant.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.