umbrello/umbrello
umloperationdialog.cpp
Go to the documentation of this file.
304 KMessageBox::sorry(this, i18n("The parameter name you have chosen\nis already being used in this operation."),
316 UMLAttribute* pOldAtt = m_operation->getParmList().at(m_pParmsLW->row(m_pParmsLW->currentItem()));
340 UMLAttribute* tempAttribute = static_cast<UMLAttribute*>(pOldAtt->clone()); // create a clone of the parameter
348 pAtt = m_operation->findParm(newName); // search whether a parameter with this name already exists
350 KMessageBox::error(this, i18n("The parameter name you have chosen is already being used in this operation."),
445 QString msg = i18n("An operation with that signature already exists in %1.\n", classifier->name())
void slotDeleteParameter()
Definition: umloperationdialog.cpp:314
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:151
bool getConst() const
Returns whether this operation is a query (C++ "const").
Definition: operation.cpp:411
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
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
void slotParameterProperties()
Definition: umloperationdialog.cpp:328
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
void slotParmDoubleClick(QListWidgetItem *item)
Definition: umloperationdialog.cpp:263
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
Displays a dialog box that displays properties of a parameter.
Definition: parmpropdlg.h:36
QString getUniqueParameterName()
Returns an unused parameter name for a new parameter.
Definition: operation.cpp:272
void slotMenuSelection(QAction *action)
Definition: umloperationdialog.cpp:274
Definition: listpopupmenu.h:157
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the UMLAttribute object.
Definition: attribute.cpp:230
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
const UMLStereotypeList & stereotypes() const
Returns a list of the stereotypes in this UMLDoc.
Definition: umldoc.cpp:3022
Definition: umlobject.h:61
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
bool apply()
Checks if changes are valid and applies them if they are, else returns false.
Definition: umloperationdialog.cpp:431
UMLOperation * checkOperationSignature(const QString &name, UMLAttributeList opParams, UMLOperation *exemptOp=NULL)
Checks whether an operation is valid based on its signature - An operation is "valid" if the operatio...
Definition: classifier.cpp:136
Definition: basictypes.h:58
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:87
QRadioButton * m_pImplementationRB
Definition: umloperationdialog.h:66
Definition: basictypes.h:137
UMLAttribute * findParm(const QString &name)
Finds a parameter of the operation.
Definition: operation.cpp:182
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:259
Definition: listpopupmenu.h:158
UMLClassifierList concepts(bool includeNested=true)
Returns a list of the concepts in this UMLDoc.
Definition: umldoc.cpp:2463
void slotParmRightButtonPressed(const QPoint &p)
Definition: umloperationdialog.cpp:241
Definition: basictypes.h:60
void slotNameChanged(const QString &)
Definition: umloperationdialog.cpp:236
KLineEdit * makeLabeledEditField(QGroupBox *containingBox, QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:43
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
void setConst(bool b)
Sets whether this operation is a query (C++ "const").
Definition: operation.cpp:403
Definition: basictypes.h:57
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:335
Definition: listpopupmenu.h:156
void moveParmLeft(UMLAttribute *a)
Move a parameter one position to the left.
Definition: operation.cpp:99
void insertStereotypesSorted(const QString &type)
Inserts stereotype into the stereotype-combobox as well as its completion object. ...
Definition: umloperationdialog.cpp:558
void slotApply()
I don't think this is used, but if we had an apply button it would slot into here.
Definition: umloperationdialog.cpp:496
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
QAction * getAction(MenuType idx)
Get the action from the menu type as index.
Definition: listpopupmenu.cpp:1890
void slotParamsBoxClicked(QListWidgetItem *parameterItem)
Enables or disables buttons.
Definition: umloperationdialog.cpp:409
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:159
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
void insertTypesSorted(const QString &type="")
Inserts type into the type-combobox.
Definition: umloperationdialog.cpp:514
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1137
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLAttribute.
Definition: attribute.cpp:132
Definition: basictypes.h:59
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
QPushButton * m_pPropertiesButton
Definition: umloperationdialog.h:77
void setTypeName(const QString &type)
Sets the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:139
Definition: listpopupmenu.h:236
UMLOperationDialog(QWidget *parent, UMLOperation *pOperation)
Constructor.
Definition: umloperationdialog.cpp:54
void moveParmRight(UMLAttribute *a)
Move a parameter one position to the right.
Definition: operation.cpp:123
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 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:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.