umbrello API Documentation

selectopdlg.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 
00013 #ifndef SELECTOPDLG_H
00014 #define SELECTOPDLG_H
00015 
00016 #include <kdialogbase.h>
00017 
00018 #include <qgroupbox.h>
00019 #include <kcombobox.h>
00020 #include <qradiobutton.h>
00021 #include <qbuttongroup.h>
00022 #include <qlineedit.h>
00023 #include <qlabel.h>
00024 #include "../classifier.h"
00025 
00026 class UMLView;
00027 
00028 #define OP     0
00029 #define CUSTOM  1
00030 
00039 class SelectOpDlg : public KDialogBase
00040 {
00041     Q_OBJECT
00042 public:
00049     SelectOpDlg(UMLView * parent, UMLClassifier * c);
00050 
00054     ~SelectOpDlg();
00055 
00061     QString getOpText();
00062 
00070     bool isClassOp() const;
00071 
00077     QString getSeqNumber();
00078 
00084     void setSeqNumber(const QString &num);
00085 
00091     void setCustomOp(const QString &op);
00098     bool setClassOp(const QString &op);
00099 protected:
00103     void insertOperation( const QString& type, int index = -1 );
00104 private:
00105     QGroupBox * m_pOpGB;
00106     KComboBox * m_pOpCB;
00107     QLabel * m_pSeqL;
00108     QLineEdit * m_pOpLE, * m_pSeqLE;
00109     QRadioButton * m_pCustomRB, * m_pOpRB;
00110     QButtonGroup * m_pOpBG, * m_pDocGB;
00111     QString m_Text;
00112     int m_nOpCount;
00113     int m_id;  
00114     UMLView *m_pView;
00115 public slots:
00116     void slotSelected(int id);
00117 };
00118 
00119 #endif
00120 
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:00 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003