umbrello API Documentation

UMLTemplateDialog Class Reference

A dialog to edit the properties of a class template (paramaterised class). More...

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

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

UMLTemplatem_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

void UMLTemplateDialog::setupDialog  )  [protected]
 

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().

bool UMLTemplateDialog::apply  )  [protected]
 

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().

void UMLTemplateDialog::slotApply  )  [slot]
 

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().

void UMLTemplateDialog::slotOk  )  [slot]
 

Used when the OK button is clicked.

Calls apply()

Definition at line 155 of file umltemplatedialog.cpp.

References apply().

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

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

Definition at line 106 of file umltemplatedialog.cpp.

Referenced by setupDialog().


Member Data Documentation

UMLTemplate* UMLTemplateDialog::m_pTemplate [protected]
 

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