selectopdlg.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
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
This file is part of the documentation for umbrello Version 3.1.0.