umbrello API Documentation

umloperationdialog.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 UMLOPERATIONDIALOG_H
00014 #define UMLOPERATIONDIALOG_H
00015 
00016 //kde includes
00017 #include <kdialogbase.h>
00018 
00024 class UMLOperation;
00025 class ListPopupMenu;
00026 class QGroupBox;
00027 class QListBox;
00028 class QButtonGroup;
00029 class QRadioButton;
00030 class QPushButton;
00031 class QLabel;
00032 class QCheckBox;
00033 class KComboBox;
00034 class QLineEdit;
00035 class UMLDoc;
00036 class KArrowButton;
00037 
00038 class UMLOperationDialog : public KDialogBase {
00039     Q_OBJECT
00040 
00041 public:
00045     UMLOperationDialog( QWidget * parent, UMLOperation * pOperation );
00046 
00050     ~UMLOperationDialog();
00051 
00052 protected:
00056     void setupDialog();
00057 
00062     bool apply();
00063 
00067     void insertType( const QString& type, int index = -1 );
00068 
00072     UMLOperation * m_pOperation;
00073 
00077     UMLDoc *m_doc;
00078 
00082     ListPopupMenu * m_pMenu;
00083 
00087     void insertStereotype( const QString& type, int index = -1 );
00088 
00089     //GUI widgets
00090     QGroupBox  * m_pParmsGB, * m_pGenGB;
00091     QListBox * m_pParmsLB;
00092     QButtonGroup * m_pScopeBG;
00093     QRadioButton * m_pPublicRB, * m_pPrivateRB,  * m_pProtectedRB, *m_pImplementationRB;
00094     QLabel * m_pRtypeL, * m_pNameL, * m_pStereoTypeL;
00095     KComboBox * m_pRtypeCB, * m_pStereoTypeCB;
00096     QLineEdit * m_pNameLE;
00097     QCheckBox * m_pAbstractCB;
00098     QCheckBox * m_pStaticCB;
00099     QCheckBox * m_pQueryCB;
00100     QPushButton* m_pDeleteButton;
00101     QPushButton* m_pPropertiesButton;
00102     KArrowButton* m_pUpButton;
00103     KArrowButton* m_pDownButton;
00104 
00105 public slots:
00106     void slotParmRightButtonPressed(QListBoxItem *item, const QPoint &p);
00107     void slotParmRightButtonClicked(QListBoxItem *item, const QPoint &p);
00108     void slotParmDoubleClick(QListBoxItem *item);
00109     void slotParmPopupMenuSel(int id);
00110     void slotNewParameter();
00111     void slotDeleteParameter();
00112     void slotParameterProperties();
00113     void slotParameterUp();
00114     void slotParameterDown();
00115 
00119     void slotParamsBoxClicked(QListBoxItem* parameterItem);
00120 
00125     void slotApply();
00126 
00130     void slotOk();
00131     void slotNameChanged( const QString & );
00132 
00133 };
00134 
00135 #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:08:01 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003