umbrello: umbrello/dialogs/umloperationdialog.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

umloperationdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLOPERATIONDIALOG_H
12 #define UMLOPERATIONDIALOG_H
13
14 //kde includes
15 #include "singlepagedialogbase.h"
16 #include "n_stereoattrs.h"
17
18 class DocumentationWidget;
19 class KComboBox;
20 class DialogsPopupMenu;
21 class QAbstractButton;
22 class QGridLayout;
23 class QGroupBox;
24 class QListWidget;
25 class QListWidgetItem;
26 class QLabel;
27 class QRadioButton;
28 class QPushButton;
29 class QCheckBox;
30 class QToolButton;
31 class KLineEdit;
32 class UMLDoc;
33 class UMLObject;
34 class UMLOperation;
35 class UMLDatatypeWidget;
36 class UMLStereotypeWidget;
37 class VisibilityEnumWidget;
38
43 class UMLOperationDialog : public SinglePageDialogBase
44 {
45 Q_OBJECT
46 public:
47
48 UMLOperationDialog(QWidget * parent, UMLOperation * pOperation);
49 ~UMLOperationDialog();
50
51 protected:
52
53 void setupDialog();
54
55 bool apply();
56
57 void insertTypesSorted(const QString& type = QString());
58
59 UMLOperation* m_operation;
60 UMLDoc* m_doc;
61 DialogsPopupMenu* m_menu;
62
63 //GUI widgets
64 QGridLayout* m_pGenLayout;
65 QGroupBox* m_pParmsGB;
66 QGroupBox* m_pGenGB;
67 QListWidget* m_pParmsLW;
68 QGroupBox* m_pScopeGB;
69 QRadioButton* m_pPublicRB;
70 QRadioButton* m_pPrivateRB;
71 QRadioButton* m_pProtectedRB;
72 QRadioButton* m_pImplementationRB;
73 QLabel* m_pNameL;
74 QLabel* m_pTagL[N_STEREOATTRS];
75 UMLDatatypeWidget* m_datatypeWidget;
76 UMLStereotypeWidget* m_stereotypeWidget;
77 KLineEdit* m_pNameLE;
78 KLineEdit* m_pTagLE[N_STEREOATTRS];
79 QCheckBox* m_pAbstractCB;
80 QCheckBox* m_pStaticCB;
81 QCheckBox* m_pQueryCB;
82 QCheckBox* m_virtualCB;
83 QCheckBox* m_inlineCB;
84 QCheckBox* m_pOverrideCB;
85 QPushButton* m_pDeleteButton;
86 QPushButton* m_pPropertiesButton;
87 QToolButton* m_pUpButton;
88 QToolButton* m_pDownButton;
89 DocumentationWidget* m_docWidget;
90 VisibilityEnumWidget* m_visibilityEnumWidget;
91
92 public slots:
93 void slotParmRightButtonPressed(const QPoint &p);
94 void slotParmDoubleClick(QListWidgetItem *item);
95 void slotMenuSelection(QAction* action);
96 void slotNewParameter();
97 void slotDeleteParameter();
98 void slotParameterProperties();
99 void slotParameterUp();
100 void slotParameterDown();
101 void slotParamsBoxClicked(QListWidgetItem* parameterItem);
102 void slotStereoTextChanged(const QString &);
103 void slotNameChanged(const QString &);
104 };
105
106 #endif
DialogsPopupMenu
Definition: dialogspopupmenu.h:17
DocumentationWidget
Definition: documentationwidget.h:27
SinglePageDialogBase
Definition: singlepagedialogbase.h:36
UMLDatatypeWidget
Definition: umldatatypewidget.h:24
UMLDoc
Definition: umldoc.h:75
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLOperationDialog
Definition: umloperationdialog.h:44
UMLOperationDialog::m_pTagLE
KLineEdit * m_pTagLE[N_STEREOATTRS]
Definition: umloperationdialog.h:78
UMLOperationDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umloperationdialog.cpp:223
UMLOperationDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umloperationdialog.h:70
UMLOperationDialog::slotParamsBoxClicked
void slotParamsBoxClicked(QListWidgetItem *parameterItem)
Definition: umloperationdialog.cpp:401
UMLOperationDialog::m_pOverrideCB
QCheckBox * m_pOverrideCB
Definition: umloperationdialog.h:84
UMLOperationDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umloperationdialog.h:77
UMLOperationDialog::insertTypesSorted
void insertTypesSorted(const QString &type=QString())
UMLOperationDialog::m_pPropertiesButton
QPushButton * m_pPropertiesButton
Definition: umloperationdialog.h:86
UMLOperationDialog::m_pImplementationRB
QRadioButton * m_pImplementationRB
Definition: umloperationdialog.h:72
UMLOperationDialog::slotParameterDown
void slotParameterDown()
Definition: umloperationdialog.cpp:379
UMLOperationDialog::m_pGenGB
QGroupBox * m_pGenGB
Definition: umloperationdialog.h:66
UMLOperationDialog::m_operation
UMLOperation * m_operation
The operation to represent.
Definition: umloperationdialog.h:59
UMLOperationDialog::m_pTagL
QLabel * m_pTagL[N_STEREOATTRS]
Definition: umloperationdialog.h:74
UMLOperationDialog::m_pGenLayout
QGridLayout * m_pGenLayout
Definition: umloperationdialog.h:64
UMLOperationDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition: umloperationdialog.h:89
UMLOperationDialog::m_pUpButton
QToolButton * m_pUpButton
Definition: umloperationdialog.h:87
UMLOperationDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umloperationdialog.h:68
UMLOperationDialog::~UMLOperationDialog
~UMLOperationDialog()
Definition: umloperationdialog.cpp:78
UMLOperationDialog::UMLOperationDialog
UMLOperationDialog(QWidget *parent, UMLOperation *pOperation)
Definition: umloperationdialog.cpp:60
UMLOperationDialog::slotParmDoubleClick
void slotParmDoubleClick(QListWidgetItem *item)
Definition: umloperationdialog.cpp:255
UMLOperationDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umloperationdialog.h:76
UMLOperationDialog::m_pDownButton
QToolButton * m_pDownButton
Definition: umloperationdialog.h:88
UMLOperationDialog::slotNewParameter
void slotNewParameter()
Definition: umloperationdialog.cpp:279
UMLOperationDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umloperationdialog.h:75
UMLOperationDialog::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: umloperationdialog.h:90
UMLOperationDialog::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: umloperationdialog.cpp:266
UMLOperationDialog::setupDialog
void setupDialog()
Definition: umloperationdialog.cpp:85
UMLOperationDialog::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition: umloperationdialog.h:79
UMLOperationDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umloperationdialog.h:69
UMLOperationDialog::m_pParmsGB
QGroupBox * m_pParmsGB
Definition: umloperationdialog.h:65
UMLOperationDialog::m_menu
DialogsPopupMenu * m_menu
Menu used in parameter list box.
Definition: umloperationdialog.h:61
UMLOperationDialog::slotParameterUp
void slotParameterUp()
Definition: umloperationdialog.cpp:360
UMLOperationDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition: umloperationdialog.h:80
UMLOperationDialog::m_pQueryCB
QCheckBox * m_pQueryCB
Definition: umloperationdialog.h:81
UMLOperationDialog::m_doc
UMLDoc * m_doc
The UMLDocument where all objects live.
Definition: umloperationdialog.h:60
UMLOperationDialog::m_pDeleteButton
QPushButton * m_pDeleteButton
Definition: umloperationdialog.h:85
UMLOperationDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umloperationdialog.h:71
UMLOperationDialog::m_pNameL
QLabel * m_pNameL
Definition: umloperationdialog.h:73
UMLOperationDialog::m_pParmsLW
QListWidget * m_pParmsLW
Definition: umloperationdialog.h:67
UMLOperationDialog::slotDeleteParameter
void slotDeleteParameter()
Definition: umloperationdialog.cpp:306
UMLOperationDialog::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition: umloperationdialog.cpp:228
UMLOperationDialog::m_virtualCB
QCheckBox * m_virtualCB
Definition: umloperationdialog.h:82
UMLOperationDialog::slotParameterProperties
void slotParameterProperties()
Definition: umloperationdialog.cpp:320
UMLOperationDialog::apply
bool apply()
Definition: umloperationdialog.cpp:423
UMLOperationDialog::slotParmRightButtonPressed
void slotParmRightButtonPressed(const QPoint &p)
Definition: umloperationdialog.cpp:233
UMLOperationDialog::m_inlineCB
QCheckBox * m_inlineCB
Definition: umloperationdialog.h:83
UMLOperation
Definition: operation.h:25
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
n_stereoattrs.h
N_STEREOATTRS
#define N_STEREOATTRS
Definition: n_stereoattrs.h:15
singlepagedialogbase.h