umbrello API Documentation

UMLOperationDialog Class Reference

#include <umloperationdialog.h>

List of all members.

Public Slots

void slotParmRightButtonPressed (QListBoxItem *item, const QPoint &p)
void slotParmRightButtonClicked (QListBoxItem *item, const QPoint &p)
void slotParmDoubleClick (QListBoxItem *item)
void slotParmPopupMenuSel (int id)
void slotNewParameter ()
void slotDeleteParameter ()
void slotParameterProperties ()
void slotParameterUp ()
void slotParameterDown ()
void slotParamsBoxClicked (QListBoxItem *parameterItem)
 enables or disables buttons
void slotApply ()
 I don't think this is used, but if we had an apply button it would slot into here.
void slotOk ()
 Used when the OK button is clicked.
void slotNameChanged (const QString &)

Public Member Functions

 UMLOperationDialog (QWidget *parent, UMLOperation *pOperation)
 Constructor.
 ~UMLOperationDialog ()
 Deconstructor.

Protected Member Functions

void setupDialog ()
 Sets up the dialog.
bool apply ()
 Checks if changes are valid and applies them if they are, else returns false.
void insertType (const QString &type, int index=-1)
 Inserts type into the type-combobox as well as its completion object.
void insertStereotype (const QString &type, int index=-1)
 Inserts stereotype into the stereotype-combobox as well as its completion object.

Protected Attributes

UMLOperationm_pOperation
 The operation to represent.
UMLDocm_doc
 The UMLDocument where all objects live.
ListPopupMenum_pMenu
 Menu used in paramater list box.
QGroupBox * m_pParmsGB
QGroupBox * m_pGenGB
QListBox * m_pParmsLB
QButtonGroup * m_pScopeBG
QRadioButton * m_pPublicRB
QRadioButton * m_pPrivateRB
QRadioButton * m_pProtectedRB
QRadioButton * m_pImplementationRB
QLabel * m_pRtypeL
QLabel * m_pNameL
QLabel * m_pStereoTypeL
KComboBox * m_pRtypeCB
KComboBox * m_pStereoTypeCB
QLineEdit * m_pNameLE
QCheckBox * m_pAbstractCB
QCheckBox * m_pStaticCB
QCheckBox * m_pQueryCB
QPushButton * m_pDeleteButton
QPushButton * m_pPropertiesButton
KArrowButton * m_pUpButton
KArrowButton * m_pDownButton


Detailed Description

Author:
Paul Hensgen Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 38 of file umloperationdialog.h.


Constructor & Destructor Documentation

UMLOperationDialog::UMLOperationDialog QWidget *  parent,
UMLOperation pOperation
 

Constructor.

Definition at line 49 of file umloperationdialog.cpp.

References UMLApp::getDocument(), m_doc, m_pMenu, m_pOperation, and setupDialog().

UMLOperationDialog::~UMLOperationDialog  ) 
 

Deconstructor.

Definition at line 57 of file umloperationdialog.cpp.


Member Function Documentation

void UMLOperationDialog::setupDialog  )  [protected]
 

Sets up the dialog.

Definition at line 59 of file umloperationdialog.cpp.

References UMLObject::getAbstract(), UMLDoc::getConcepts(), UMLOperation::getConst(), UMLClassifier::getFilteredList(), UMLObject::getFullyQualifiedName(), UMLObject::getName(), UMLOperation::getParmList(), UMLObject::getStatic(), UMLObject::getStereotype(), UMLDoc::getStereotypes(), UMLClassifierListItem::getTypeName(), insertStereotype(), insertType(), m_doc, m_pOperation, Dialog_Utils::makeLabeledEditField(), and slotParamsBoxClicked().

Referenced by UMLOperationDialog().

bool UMLOperationDialog::apply  )  [protected]
 

Checks if changes are valid and applies them if they are, else returns false.

Definition at line 452 of file umloperationdialog.cpp.

References UMLClassifier::checkOperationSignature(), UMLClassifier::findTemplate(), UMLObject::getName(), UMLOperation::getParmList(), m_pOperation, UMLObject::setAbstract(), UMLOperation::setConst(), UMLObject::setStatic(), UMLObject::setStereotype(), UMLOperation::setType(), and UMLClassifierListItem::setTypeName().

Referenced by slotApply(), and slotOk().

void UMLOperationDialog::insertType const QString &  type,
int  index = -1
[protected]
 

Inserts type into the type-combobox as well as its completion object.

Definition at line 518 of file umloperationdialog.cpp.

Referenced by setupDialog().

void UMLOperationDialog::insertStereotype const QString &  type,
int  index = -1
[protected]
 

Inserts stereotype into the stereotype-combobox as well as its completion object.

Definition at line 524 of file umloperationdialog.cpp.

Referenced by setupDialog().

void UMLOperationDialog::slotParamsBoxClicked QListBoxItem *  parameterItem  )  [slot]
 

enables or disables buttons

Definition at line 438 of file umloperationdialog.cpp.

Referenced by setupDialog().

void UMLOperationDialog::slotApply  )  [slot]
 

I don't think this is used, but if we had an apply button it would slot into here.

Definition at line 508 of file umloperationdialog.cpp.

References apply().

void UMLOperationDialog::slotOk  )  [slot]
 

Used when the OK button is clicked.

Calls apply()

Definition at line 512 of file umloperationdialog.cpp.

References apply().


Member Data Documentation

UMLOperation* UMLOperationDialog::m_pOperation [protected]
 

The operation to represent.

Definition at line 72 of file umloperationdialog.h.

Referenced by apply(), setupDialog(), and UMLOperationDialog().

UMLDoc* UMLOperationDialog::m_doc [protected]
 

The UMLDocument where all objects live.

Definition at line 77 of file umloperationdialog.h.

Referenced by setupDialog(), and UMLOperationDialog().

ListPopupMenu* UMLOperationDialog::m_pMenu [protected]
 

Menu used in paramater list box.

Definition at line 82 of file umloperationdialog.h.

Referenced by UMLOperationDialog().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:07 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003