umbrello API Documentation

parmpropdlg.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #ifndef PARMPROPDLG_H
00013 #define PARMPROPDLG_H
00014 
00015 #include <kdialogbase.h>
00016 #include <kcombobox.h>
00017 #include <qgroupbox.h>
00018 #include <qlabel.h>
00019 #include <qlayout.h>
00020 #include <qradiobutton.h>
00021 #include <qlineedit.h>
00022 #include <qbuttongroup.h>
00023 #include <qmultilineedit.h>
00024 #include <qcombobox.h>
00025 #include "../attribute.h"
00026 
00027 class UMLDoc;
00028 
00038 class ParmPropDlg : public KDialogBase {
00039     Q_OBJECT
00040 public:
00047     ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * a);
00048 
00052     ~ParmPropDlg();
00053 
00059     QString getDoc() {
00060         return m_pDoc -> text();
00061     }
00062 
00068     QString getName() {
00069         return m_pNameLE -> text();
00070     }
00071 
00077     QString getInitialValue() {
00078         return m_pInitialLE -> text();
00079     }
00080 
00086     QString getTypeName() {
00087         return m_pTypeCB -> currentText();
00088     }
00089 
00096     Uml::Parameter_Direction getParmKind();
00097 
00098 public slots:
00099     void slotOk();
00100 
00101 protected:
00105     void insertType( const QString& type, int index = -1 );
00106 
00110     void insertStereotype( const QString& type, int index = -1 );
00111 
00112 
00113 private:
00114     QGroupBox * m_pParmGB, * m_pDocGB;
00115     QButtonGroup *m_pKind;
00116     QRadioButton * m_pIn, * m_pOut, *m_pInOut;
00117     QLabel * m_pTypeL, * m_pNameL, * m_pInitialL, * m_pStereoTypeL;
00118     KComboBox * m_pTypeCB, * m_pStereoTypeCB;
00119     QLineEdit * m_pNameLE, * m_pInitialLE;
00120     QMultiLineEdit * m_pDoc;
00121     UMLDoc * m_pUmldoc;
00122     UMLAttribute * m_pAtt;
00123 };
00124 
00125 #endif
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:07:59 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003