UMLTemplateDialog Class Reference
A dialog to edit the properties of a class template (paramaterised class). More...
#include <umltemplatedialog.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. | |
Public Member Functions | |
| UMLTemplateDialog (QWidget *pParent, UMLTemplate *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 | |
| UMLTemplate * | m_pTemplate |
| The Attribute to represent. | |
| QGroupBox * | m_pTemplateGB |
| QGroupBox * | m_pValuesGB |
| QLabel * | m_pTypeL |
| QLabel * | m_pNameL |
| QLabel * | m_pStereoTypeL |
| KComboBox * | m_pTypeCB |
| QLineEdit * | m_pNameLE |
| QLineEdit * | m_pStereoTypeLE |
Detailed Description
A dialog to edit the properties of a class template (paramaterised class).
- Author:
- Jonathan Riddell Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 32 of file umltemplatedialog.h.
Member Function Documentation
|
|
Sets up the dialog.
Definition at line 43 of file umltemplatedialog.cpp. References UMLDoc::getConcepts(), UMLApp::getDocument(), UMLObject::getName(), UMLObject::getStereotype(), UMLTemplate::getTypeName(), insertType(), m_pTemplate, and Dialog_Utils::makeLabeledEditField(). |
|
|
Checks if changes are valid and applies them if they are, else returns false.
Definition at line 112 of file umltemplatedialog.cpp. References UMLCanvasObject::findChildObject(), UMLDoc::getConcepts(), UMLApp::getDocument(), UMLObject::getName(), m_pTemplate, UMLObject::setName(), UMLObject::setStereotype(), UMLClassifierListItem::setType(), and UMLClassifierListItem::setTypeName(). Referenced by slotApply(), and slotOk(). |
|
|
I don't think this is used, but if we had an apply button it would slot into here.
Definition at line 151 of file umltemplatedialog.cpp. References apply(). |
|
|
Used when the OK button is clicked. Calls apply() Definition at line 155 of file umltemplatedialog.cpp. References apply(). |
|
||||||||||||
|
Inserts
Definition at line 106 of file umltemplatedialog.cpp. Referenced by setupDialog(). |
Member Data Documentation
|
|
The Attribute to represent.
Definition at line 53 of file umltemplatedialog.h. Referenced by apply(), and setupDialog(). |
The documentation for this class was generated from the following files:
