umbrello API Documentation

UMLAttributeDialog Class Reference

#include <umlattributedialog.h>

List of all members.

Public Slots

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

 UMLAttributeDialog (QWidget *pParent, UMLAttribute *pAttribute)

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.

Protected Attributes

UMLAttributem_pAttribute
 The Attribute to represent.
QGroupBox * m_pAttsGB
QGroupBox * m_pValuesGB
QButtonGroup * m_pScopeBG
QRadioButton * m_pPublicRB
QRadioButton * m_pPrivateRB
QRadioButton * m_pProtectedRB
QRadioButton * m_pImplementationRB
QLabel * m_pTypeL
QLabel * m_pNameL
QLabel * m_pInitialL
QLabel * m_pStereoTypeL
KComboBox * m_pTypeCB
QLineEdit * m_pNameLE
QLineEdit * m_pInitialLE
QLineEdit * m_pStereoTypeLE
QCheckBox * m_pStaticCB


Detailed Description

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

Definition at line 30 of file umlattributedialog.h.


Member Function Documentation

void UMLAttributeDialog::setupDialog  )  [protected]
 

Sets up the dialog.

Definition at line 49 of file umlattributedialog.cpp.

References UMLDoc::getConcepts(), UMLApp::getDocument(), UMLObject::getFullyQualifiedName(), UMLAttribute::getInitialValue(), UMLObject::getName(), UMLObject::getStatic(), UMLObject::getStereotype(), UMLClassifierListItem::getTypeName(), UMLObject::getVisibility(), insertType(), m_pAttribute, and Dialog_Utils::makeLabeledEditField().

bool UMLAttributeDialog::apply  )  [protected]
 

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

Definition at line 152 of file umlattributedialog.cpp.

References Import_Utils::createUMLObject(), UMLCanvasObject::findChildObject(), UMLClassifier::findTemplate(), UMLDoc::findUMLObject(), UMLApp::getActiveLanguage(), UMLApp::getDocument(), UMLObject::getName(), m_pAttribute, UMLAttribute::setInitialValue(), UMLObject::setName(), Import_Utils::setRelatedClassifier(), UMLObject::setStatic(), UMLObject::setStereotype(), UMLClassifierListItem::setType(), and UMLObject::setVisibility().

Referenced by slotApply(), and slotOk().

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

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

Definition at line 228 of file umlattributedialog.cpp.

Referenced by setupDialog().

void UMLAttributeDialog::slotApply  )  [slot]
 

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

Definition at line 218 of file umlattributedialog.cpp.

References apply().

void UMLAttributeDialog::slotOk  )  [slot]
 

Used when the OK button is clicked.

Calls apply()

Definition at line 222 of file umlattributedialog.cpp.

References apply().


Member Data Documentation

UMLAttribute* UMLAttributeDialog::m_pAttribute [protected]
 

The Attribute to represent.

Definition at line 56 of file umlattributedialog.h.

Referenced by apply(), and setupDialog().


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:06 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003