umbrello  2.38.5
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ParameterPropertiesDialog Class Reference

A properties dialog box for a parameter. More...

#include <parameterpropertiesdialog.h>

Inheritance diagram for ParameterPropertiesDialog:
Collaboration diagram for ParameterPropertiesDialog:

Public Member Functions

 ParameterPropertiesDialog (QWidget *parent, UMLDoc *doc, UMLAttribute *attr)
 
 ~ParameterPropertiesDialog ()
 
virtual bool apply ()
 
- Public Member Functions inherited from SinglePageDialogBase
 SinglePageDialogBase (QWidget *parent, bool withApplyButton=false, bool withSearchButton=false)
 
virtual ~SinglePageDialogBase ()
 
void setCaption (const QString &caption)
 
QWidget * mainWidget ()
 
void setMainWidget (QWidget *widget)
 
void setButtonText (ButtonCode code, const QString &text)
 

Protected Member Functions

QString getName ()
 
QString getInitialValue ()
 
Uml::ParameterDirection::Enum getParmKind ()
 
virtual bool validate ()
 
- Protected Member Functions inherited from SinglePageDialogBase
void enableButtonOk (bool enable)
 

Private Attributes

QGroupBox * m_pParmGB
 
QGroupBox * m_pKindGB
 
QRadioButton * m_pIn
 
QRadioButton * m_pOut
 
QRadioButton * m_pInOut
 
QLabel * m_pNameL
 
QLineEdit * m_pNameLE
 
DefaultValueWidgetm_defaultValueWidget
 
DocumentationWidgetm_docWidget
 
UMLDocm_pUmldoc
 
UMLAttributem_pAtt
 
UMLDatatypeWidgetm_datatypeWidget
 
UMLStereotypeWidgetm_stereotypeWidget
 

Additional Inherited Members

- Public Types inherited from SinglePageDialogBase
enum  ButtonCode { Cancel = 0, Ok = 1, Apply = 2 }
 
- Protected Slots inherited from SinglePageDialogBase
void slotApply ()
 
void slotOk ()
 
void slotCancel ()
 
void slotClicked (QAbstractButton *)
 
- Protected Attributes inherited from SinglePageDialogBase
QDialogButtonBox * m_buttonBox
 
QWidget * m_mainWidget
 

Detailed Description

A properties dialog box for a parameter.

Displays a dialog box that displays properties of a parameter. You need to make sure that UMLDoc is made to be the parent.

Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

ParameterPropertiesDialog::ParameterPropertiesDialog ( QWidget *  parent,
UMLDoc doc,
UMLAttribute attr 
)

Constructs a ParameterPropertiesDialog.

Parameters
parentthe parent of the dialog
docUMLDoc instance for access to classifiers and stereotypes
attrthe parameter to represent

Here is the call graph for this function:

ParameterPropertiesDialog::~ParameterPropertiesDialog ( )

Standard destructor.

Member Function Documentation

bool ParameterPropertiesDialog::apply ( )
virtual

Apply dialog changes to the related object.

This method could be overridden in derived dialogs to suppport post dialog applying.

Returns
true apply succeeds
false apply does not succeed

Reimplemented from SinglePageDialogBase.

Here is the call graph for this function:

QString ParameterPropertiesDialog::getInitialValue ( )
protected

Here is the call graph for this function:

QString ParameterPropertiesDialog::getName ( )
protected
Uml::ParameterDirection::Enum ParameterPropertiesDialog::getParmKind ( )
protected

Return the kind of the parameter (in, out, or inout).

Returns
The Uml::ParameterDirection::Enum corresponding to the selected "Kind" radiobutton.
bool ParameterPropertiesDialog::validate ( )
protectedvirtual

Validates the fields in the dialog box.

Returns
success state

Reimplemented from SinglePageDialogBase.

Here is the call graph for this function:

Member Data Documentation

UMLDatatypeWidget* ParameterPropertiesDialog::m_datatypeWidget
private
DefaultValueWidget* ParameterPropertiesDialog::m_defaultValueWidget
private
DocumentationWidget* ParameterPropertiesDialog::m_docWidget
private
UMLAttribute* ParameterPropertiesDialog::m_pAtt
private
QRadioButton* ParameterPropertiesDialog::m_pIn
private
QRadioButton * ParameterPropertiesDialog::m_pInOut
private
QGroupBox* ParameterPropertiesDialog::m_pKindGB
private
QLabel* ParameterPropertiesDialog::m_pNameL
private
QLineEdit* ParameterPropertiesDialog::m_pNameLE
private
QRadioButton * ParameterPropertiesDialog::m_pOut
private
QGroupBox* ParameterPropertiesDialog::m_pParmGB
private
UMLDoc* ParameterPropertiesDialog::m_pUmldoc
private
UMLStereotypeWidget* ParameterPropertiesDialog::m_stereotypeWidget
private

The documentation for this class was generated from the following files: