Source: ./dialogs/umlattributedialog.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 UMLATTRIBUTEDIALOG_H
#define UMLATTRIBUTEDIALOG_H
//kde includes
#include
//qt includes
#include
#include
#include
#include
#include
#include
//app includes
/**
* @author Paul Hensgen
*/
class UMLAttribute;
class UMLAttributeDialog : public KDialogBase {
Q_OBJECT
public:
UMLAttributeDialog( QWidget * pParent, UMLAttribute * pAttribute );
~UMLAttributeDialog();
protected:
/**
* Sets up the dialog
*/
void setupDialog();
/**
* Checks if changes are valid and applies them if they are,
* else returns false
*/
bool apply();
/**
* The Attribute to represent
*/
UMLAttribute * m_pAttribute;
//GUI Widgets
QGroupBox * m_pAttsGB, * m_pValuesGB;
QButtonGroup * m_pScopeBG;
QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB;
QLabel * m_pTypeL, * m_pNameL, * m_pInitialL;
QComboBox * m_pTypeCB;
QLineEdit * m_pNameLE, * m_pInitialLE;
public slots:
/**
* I don't think this is used, but if we had an apply button
* it would slot into here
*/
void slotApply();
/**
* Used when the OK button is clicked. Calls apply()
*/
void slotOk();
};
#endif
| Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54. |