#include <refactoringassistant.h>
RefactoringAssistant::RefactoringAssistant |
( |
UMLDoc * |
doc, |
|
|
UMLClassifier * |
obj = 0 , |
|
|
QWidget * |
parent = 0 , |
|
|
const QString & |
name = QString() |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
doc | the UML document |
obj | the UML classifier to refactor |
parent | the parent widget |
name | the object name |
RefactoringAssistant::~RefactoringAssistant |
( |
| ) |
|
|
virtual |
void RefactoringAssistant::addBaseClassifier |
( |
| ) |
|
|
slot |
Slot for adding a base classifier.
void RefactoringAssistant::addClassifier |
( |
UMLClassifier * |
classifier, |
|
|
QTreeWidgetItem * |
parent = 0 , |
|
|
bool |
addSuper = true , |
|
|
bool |
addSub = true , |
|
|
bool |
recurse = false |
|
) |
| |
|
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 | ... |
void RefactoringAssistant::addDerivedClassifier |
( |
| ) |
|
|
slot |
Slot for adding a derived classifier.
void RefactoringAssistant::addInterfaceImplementation |
( |
| ) |
|
|
slot |
Slot for adding an interface implementation.
- Todo:
- not yet implemented, needs addSuperClassifier() first
Slot for adding an attribute to the tree.
- Parameters
-
listItem | the new attribute to add |
Slot for removing an attribute from the tree.
- Parameters
-
listItem | the attribute to be removed |
Create an action for an entry in the context menu.
- Parameters
-
text | the text of the action |
method | the method to call when triggered |
icon | the shown icon |
- Returns
- the created action
void RefactoringAssistant::createAttribute |
( |
| ) |
|
|
slot |
void RefactoringAssistant::createOperation |
( |
| ) |
|
|
slot |
void RefactoringAssistant::deleteItem |
( |
| ) |
|
|
slot |
Slot for deleting an item called from the popup menu.
void RefactoringAssistant::deleteItem |
( |
QTreeWidgetItem * |
item, |
|
|
UMLObject * |
obj |
|
) |
| |
|
protected |
Delete an item from the tree.
- Parameters
-
item | the tree widget item |
obj | the uml object |
void RefactoringAssistant::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
Reimplementation of the drag move event.
- Parameters
-
void RefactoringAssistant::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
Reimplementation of the drop event.
- Parameters
-
void RefactoringAssistant::editProperties |
( |
| ) |
|
|
slot |
Slot for calling editProperties with the current item.
void RefactoringAssistant::editProperties |
( |
UMLObject * |
obj | ) |
|
|
protected |
Show the dialog with data from the given UML object.
- Parameters
-
obj | the UML object to edit |
QTreeWidgetItem * RefactoringAssistant::findListViewItem |
( |
const UMLObject * |
obj | ) |
|
|
protected |
Find tree item from UML object.
- Parameters
-
obj | the UML object to search in tree |
- Returns
- the found tree widget item or 0
UMLObject * RefactoringAssistant::findUMLObject |
( |
const QTreeWidgetItem * |
item | ) |
|
|
protected |
Find UML object from tree item.
- Parameters
-
item | the item from the tree widget |
- Returns
- the UML object behind the item
void RefactoringAssistant::itemExecuted |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
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. |
void RefactoringAssistant::objectModified |
( |
| ) |
|
|
slot |
Slot for updating the tree item properties according to the given UML object.
Slot for adding an operation to the tree.
- Parameters
-
listItem | the new operation to add |
Slot for removing an operation from the tree.
- Parameters
-
listItem | the operation to be removed |
Builds up the tree for the classifier.
- Parameters
-
obj | the classifier which has to be refactored |
void RefactoringAssistant::setVisibilityIcon |
( |
QTreeWidgetItem * |
item, |
|
|
const UMLObject * |
obj |
|
) |
| |
|
protected |
Set the icon representing the visibility of the given item.
- Parameters
-
item | the tree item |
obj | the UML object behind the tree item |
void RefactoringAssistant::showContextMenu |
( |
const QPoint & |
p | ) |
|
|
privateslot |
Slot for the context menu by right clicking in the tree widget.
- Parameters
-
p | point of the right click inside the tree widget |
UMLDoc* RefactoringAssistant::m_doc |
|
protected |
QMenu* RefactoringAssistant::m_menu |
|
protected |
QMap<QTreeWidgetItem*, UMLObject*> RefactoringAssistant::m_umlObjectMap |
|
protected |
The documentation for this class was generated from the following files: