UMLAttributeDialog Class Reference
#include <umlattributedialog.h>
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 | |
| UMLAttribute * | m_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
|
|
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(). |
|
|
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(). |
|
||||||||||||
|
Inserts
Definition at line 228 of file umlattributedialog.cpp. Referenced by setupDialog(). |
|
|
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(). |
|
|
Used when the OK button is clicked. Calls apply() Definition at line 222 of file umlattributedialog.cpp. References apply(). |
Member Data Documentation
|
|
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:
