Source: ./dialogs/parmpropdlg.h
|
|
|
|
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PARMPROPDLG_H
#define PARMPROPDLG_H
#include
#include
#include
#include
#include
#include
#include
#include "../attribute.h"
class UMLDoc;
/**
* Displays a dialog box that displays properties of a paramater.
* You need to make sure that @ref UMLDoc is made to be the
* parent.
*
* @short A properties dialog box for a parameter.
* @author Paul Hensgen
* @version 1.0
*/
class ParmPropDlg : public KDialogBase {
public:
/**
* Constructs a ParmPropDlg.
*
* @param parent The parent of the dialog.
* @param a The parameter to represent.
*/
ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a);
/**
* Standard deconstructor.
*/
~ParmPropDlg();
/**
* Returns the documentation.
*
* @return Returns the documentation.
*/
QString getDoc() {
return m_pDoc -> text();
}
/**
* Return the name of the parameter.
*
* @return Return the name of the parameter.
*/
QString getName() {
return m_pNameLE -> text();
}
/**
* Return the initial value of the parameter.
*
* @return Return the initial value of the parameter.
*/
QString getInitialValue() {
return m_pInitialLE -> text();
}
/**
* Return the type name of the parameter.
*
* @return Return the type name of the parameter.
*/
QString getTypeName() {
return m_pTypeCB -> currentText();
}
private:
QGroupBox * m_pParmGB, * m_pDocGB;
QLabel * m_pTypeL, * m_pNameL, * m_pInitialL;
QComboBox * m_pTypeCB;
QLineEdit * m_pNameLE, * m_pInitialLE;
QMultiLineEdit * m_pDoc;
UMLDoc * m_pUmldoc;
};
#endif
| Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54. |