umbrello API Documentation

UMLEntityAttributeDialog Class Reference

#include <umlentityattributedialog.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

 UMLEntityAttributeDialog (QWidget *pParent, UMLEntityAttribute *pEntityAttribute)

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 insertAttribute (const QString &type, int index=-1)
 Inserts type into the type-combobox as well as its completion object.

Protected Attributes

UMLEntityAttributem_pEntityAttribute
 The EntityAttribute to represent.
QGroupBox * m_pAttsGB
QGroupBox * m_pValuesGB
QButtonGroup * m_pScopeBG
QRadioButton * m_pPublicRB
QRadioButton * m_pPrivateRB
QRadioButton * m_pProtectedRB
QRadioButton * m_pNoneRB
QLabel * m_pTypeL
QLabel * m_pNameL
QLabel * m_pInitialL
QLabel * m_pStereoTypeL
QLabel * m_pValuesL
QLabel * m_pAttributesL
KComboBox * m_pTypeCB
KComboBox * m_pAttributesCB
QLineEdit * m_pNameLE
QLineEdit * m_pInitialLE
QLineEdit * m_pStereoTypeLE
QLineEdit * m_pValuesLE
QCheckBox * m_pAutoIncrementCB
QCheckBox * m_pNullCB


Detailed Description

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

Definition at line 30 of file umlentityattributedialog.h.


Member Function Documentation

void UMLEntityAttributeDialog::setupDialog  )  [protected]
 

Sets up the dialog.

Definition at line 50 of file umlentityattributedialog.cpp.

References UMLDoc::addDefaultDatatypes(), UMLEntityAttribute::getAttributes(), UMLEntityAttribute::getAutoIncrement(), UMLDoc::getDatatypes(), UMLApp::getDocument(), UMLEntityAttribute::getIndexType(), UMLAttribute::getInitialValue(), UMLObject::getName(), UMLEntityAttribute::getNull(), UMLObject::getStereotype(), UMLClassifierListItem::getTypeName(), UMLEntityAttribute::getValues(), insertAttribute(), insertType(), m_pEntityAttribute, Dialog_Utils::makeLabeledEditField(), and UMLApp::setActiveLanguage().

bool UMLEntityAttributeDialog::apply  )  [protected]
 

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

Definition at line 181 of file umlentityattributedialog.cpp.

References UMLCanvasObject::findChildObject(), UMLDoc::findUMLObject(), UMLDoc::getDatatypes(), UMLApp::getDocument(), UMLObject::getName(), m_pEntityAttribute, UMLEntityAttribute::setAttributes(), UMLEntityAttribute::setAutoIncrement(), UMLEntityAttribute::setIndexType(), UMLAttribute::setInitialValue(), UMLObject::setName(), UMLEntityAttribute::setNull(), UMLObject::setStereotype(), UMLClassifierListItem::setType(), and UMLEntityAttribute::setValues().

Referenced by slotApply(), and slotOk().

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

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

Definition at line 251 of file umlentityattributedialog.cpp.

Referenced by setupDialog().

void UMLEntityAttributeDialog::insertAttribute const QString &  type,
int  index = -1
[protected]
 

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

Definition at line 256 of file umlentityattributedialog.cpp.

Referenced by setupDialog().

void UMLEntityAttributeDialog::slotApply  )  [slot]
 

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

Definition at line 241 of file umlentityattributedialog.cpp.

References apply().

void UMLEntityAttributeDialog::slotOk  )  [slot]
 

Used when the OK button is clicked.

Calls apply()

Definition at line 245 of file umlentityattributedialog.cpp.

References apply().


Member Data Documentation

UMLEntityAttribute* UMLEntityAttributeDialog::m_pEntityAttribute [protected]
 

The EntityAttribute to represent.

Definition at line 60 of file umlentityattributedialog.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:07 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003