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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

umloperationdialog.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLOPERATIONDIALOG_H
7#define UMLOPERATIONDIALOG_H
8
9//kde includes
10#include "singlepagedialogbase.h"
11#include "n_stereoattrs.h"
12
13 class DocumentationWidget;
14 class KComboBox;
15 class DialogsPopupMenu;
16 class QAbstractButton;
17 class QGridLayout;
18 class QGroupBox;
19 class QListWidget;
20 class QListWidgetItem;
21 class QLabel;
22 class QRadioButton;
23 class QPushButton;
24 class QCheckBox;
25 class QToolButton;
26 class QLineEdit;
27 class UMLDoc;
28 class UMLObject;
29 class UMLOperation;
30 class UMLDatatypeWidget;
31 class UMLStereotypeWidget;
32 class VisibilityEnumWidget;
33
38 class UMLOperationDialog : public SinglePageDialogBase
39{
40 Q_OBJECT
41 public:
42
43 UMLOperationDialog(QWidget * parent, UMLOperation * pOperation);
44 ~UMLOperationDialog();
45
46 protected:
47
48 void setupDialog();
49
50 bool apply();
51
52 void insertTypesSorted(const QString& type = QString());
53
54 UMLOperation* m_operation;
55 UMLDoc* m_doc;
56 DialogsPopupMenu* m_menu;
57
58 //GUI widgets
59 QGridLayout* m_pGenLayout;
60 QGroupBox* m_pParmsGB;
61 QGroupBox* m_pGenGB;
62 QListWidget* m_pParmsLW;
63 QGroupBox* m_pScopeGB;
64 QRadioButton* m_pPublicRB;
65 QRadioButton* m_pPrivateRB;
66 QRadioButton* m_pProtectedRB;
67 QRadioButton* m_pImplementationRB;
68 QLabel* m_pNameL;
69 QLabel* m_pTagL[N_STEREOATTRS];
70 UMLDatatypeWidget* m_datatypeWidget;
71 UMLStereotypeWidget* m_stereotypeWidget;
72 QLineEdit* m_pNameLE;
73 QLineEdit* m_pTagLE[N_STEREOATTRS];
74 QCheckBox* m_pAbstractCB;
75 QCheckBox* m_pStaticCB;
76 QCheckBox* m_pQueryCB;
77 QCheckBox* m_virtualCB;
78 QCheckBox* m_inlineCB;
79 QCheckBox* m_pOverrideCB;
80 QPushButton* m_pDeleteButton;
81 QPushButton* m_pPropertiesButton;
82 QToolButton* m_pUpButton;
83 QToolButton* m_pDownButton;
84 DocumentationWidget* m_docWidget;
85 VisibilityEnumWidget* m_visibilityEnumWidget;
86
87 public slots:
88 void slotParmRightButtonPressed(const QPoint &p);
89 void slotParmDoubleClick(QListWidgetItem *item);
90 void slotMenuSelection(QAction* action);
91 void slotNewParameter();
92 void slotDeleteParameter();
93 void slotParameterProperties();
94 void slotParameterUp();
95 void slotParameterDown();
96 void slotParamsBoxClicked(QListWidgetItem* parameterItem);
97 void slotStereoTextChanged(const QString &);
98 void slotNameChanged(const QString &);
99};
100
101#endif
DialogsPopupMenu
Definition dialogspopupmenu.h:12
DocumentationWidget
Definition documentationwidget.h:22
SinglePageDialogBase
Definition singlepagedialogbase.h:23
UMLDatatypeWidget
Definition umldatatypewidget.h:19
UMLDoc
Definition umldoc.h:63
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLOperationDialog
Definition umloperationdialog.h:39
UMLOperationDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition umloperationdialog.cpp:207
UMLOperationDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition umloperationdialog.h:65
UMLOperationDialog::slotParamsBoxClicked
void slotParamsBoxClicked(QListWidgetItem *parameterItem)
Definition umloperationdialog.cpp:386
UMLOperationDialog::m_pOverrideCB
QCheckBox * m_pOverrideCB
Definition umloperationdialog.h:79
UMLOperationDialog::insertTypesSorted
void insertTypesSorted(const QString &type=QString())
UMLOperationDialog::m_pPropertiesButton
QPushButton * m_pPropertiesButton
Definition umloperationdialog.h:81
UMLOperationDialog::m_pImplementationRB
QRadioButton * m_pImplementationRB
Definition umloperationdialog.h:67
UMLOperationDialog::slotParameterDown
void slotParameterDown()
Definition umloperationdialog.cpp:364
UMLOperationDialog::m_pGenGB
QGroupBox * m_pGenGB
Definition umloperationdialog.h:61
UMLOperationDialog::m_operation
UMLOperation * m_operation
The operation to represent.
Definition umloperationdialog.h:54
UMLOperationDialog::m_pTagL
QLabel * m_pTagL[N_STEREOATTRS]
Definition umloperationdialog.h:69
UMLOperationDialog::m_pNameLE
QLineEdit * m_pNameLE
Definition umloperationdialog.h:72
UMLOperationDialog::m_pGenLayout
QGridLayout * m_pGenLayout
Definition umloperationdialog.h:59
UMLOperationDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition umloperationdialog.h:84
UMLOperationDialog::m_pUpButton
QToolButton * m_pUpButton
Definition umloperationdialog.h:82
UMLOperationDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition umloperationdialog.h:63
UMLOperationDialog::~UMLOperationDialog
~UMLOperationDialog()
Definition umloperationdialog.cpp:72
UMLOperationDialog::UMLOperationDialog
UMLOperationDialog(QWidget *parent, UMLOperation *pOperation)
Definition umloperationdialog.cpp:54
UMLOperationDialog::slotParmDoubleClick
void slotParmDoubleClick(QListWidgetItem *item)
Definition umloperationdialog.cpp:239
UMLOperationDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition umloperationdialog.h:71
UMLOperationDialog::m_pDownButton
QToolButton * m_pDownButton
Definition umloperationdialog.h:83
UMLOperationDialog::slotNewParameter
void slotNewParameter()
Definition umloperationdialog.cpp:263
UMLOperationDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition umloperationdialog.h:70
UMLOperationDialog::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition umloperationdialog.h:85
UMLOperationDialog::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition umloperationdialog.cpp:250
UMLOperationDialog::setupDialog
void setupDialog()
Definition umloperationdialog.cpp:79
UMLOperationDialog::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition umloperationdialog.h:74
UMLOperationDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition umloperationdialog.h:64
UMLOperationDialog::m_pParmsGB
QGroupBox * m_pParmsGB
Definition umloperationdialog.h:60
UMLOperationDialog::m_menu
DialogsPopupMenu * m_menu
Menu used in parameter list box.
Definition umloperationdialog.h:56
UMLOperationDialog::slotParameterUp
void slotParameterUp()
Definition umloperationdialog.cpp:345
UMLOperationDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition umloperationdialog.h:75
UMLOperationDialog::m_pQueryCB
QCheckBox * m_pQueryCB
Definition umloperationdialog.h:76
UMLOperationDialog::m_doc
UMLDoc * m_doc
The UMLDocument where all objects live.
Definition umloperationdialog.h:55
UMLOperationDialog::m_pDeleteButton
QPushButton * m_pDeleteButton
Definition umloperationdialog.h:80
UMLOperationDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition umloperationdialog.h:66
UMLOperationDialog::m_pTagLE
QLineEdit * m_pTagLE[N_STEREOATTRS]
Definition umloperationdialog.h:73
UMLOperationDialog::m_pNameL
QLabel * m_pNameL
Definition umloperationdialog.h:68
UMLOperationDialog::m_pParmsLW
QListWidget * m_pParmsLW
Definition umloperationdialog.h:62
UMLOperationDialog::slotDeleteParameter
void slotDeleteParameter()
Definition umloperationdialog.cpp:290
UMLOperationDialog::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition umloperationdialog.cpp:212
UMLOperationDialog::m_virtualCB
QCheckBox * m_virtualCB
Definition umloperationdialog.h:77
UMLOperationDialog::slotParameterProperties
void slotParameterProperties()
Definition umloperationdialog.cpp:304
UMLOperationDialog::apply
bool apply()
Definition umloperationdialog.cpp:408
UMLOperationDialog::slotParmRightButtonPressed
void slotParmRightButtonPressed(const QPoint &p)
Definition umloperationdialog.cpp:217
UMLOperationDialog::m_inlineCB
QCheckBox * m_inlineCB
Definition umloperationdialog.h:78
UMLOperation
Definition operation.h:20
UMLStereotypeWidget
Definition umlstereotypewidget.h:15
VisibilityEnumWidget
Definition visibilityenumwidget.h:22
n_stereoattrs.h
N_STEREOATTRS
#define N_STEREOATTRS
Definition n_stereoattrs.h:11
singlepagedialogbase.h