umbrello: umbrello/dialogs/umloperationdialog.h Source File

umbrello 2.32.3 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 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
13class DocumentationWidget;
14class KComboBox;
15class DialogsPopupMenu;
16class QAbstractButton;
17class QGridLayout;
18class QGroupBox;
19class QListWidget;
20class QListWidgetItem;
21class QLabel;
22class QRadioButton;
23class QPushButton;
24class QCheckBox;
25class QToolButton;
26class KLineEdit;
27class UMLDoc;
28class UMLObject;
29class UMLOperation;
30class UMLDatatypeWidget;
31class UMLStereotypeWidget;
32class VisibilityEnumWidget;
33
38 class UMLOperationDialog : public SinglePageDialogBase
39{
40 Q_OBJECT
41public:
42
43 UMLOperationDialog(QWidget * parent, UMLOperation * pOperation);
44 ~UMLOperationDialog();
45
46protected:
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 KLineEdit* m_pNameLE;
73 KLineEdit* 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
87public 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:31
UMLDatatypeWidget
Definition: umldatatypewidget.h:19
UMLDoc
Definition: umldoc.h:70
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLOperationDialog
Definition: umloperationdialog.h:39
UMLOperationDialog::m_pTagLE
KLineEdit * m_pTagLE[N_STEREOATTRS]
Definition: umloperationdialog.h:73
UMLOperationDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umloperationdialog.cpp:218
UMLOperationDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umloperationdialog.h:65
UMLOperationDialog::slotParamsBoxClicked
void slotParamsBoxClicked(QListWidgetItem *parameterItem)
Definition: umloperationdialog.cpp:396
UMLOperationDialog::m_pOverrideCB
QCheckBox * m_pOverrideCB
Definition: umloperationdialog.h:79
UMLOperationDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umloperationdialog.h:72
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:374
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_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:73
UMLOperationDialog::UMLOperationDialog
UMLOperationDialog(QWidget *parent, UMLOperation *pOperation)
Definition: umloperationdialog.cpp:55
UMLOperationDialog::slotParmDoubleClick
void slotParmDoubleClick(QListWidgetItem *item)
Definition: umloperationdialog.cpp:250
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:274
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:261
UMLOperationDialog::setupDialog
void setupDialog()
Definition: umloperationdialog.cpp:80
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:355
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_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:301
UMLOperationDialog::slotStereoTextChanged
void slotStereoTextChanged(const QString &)
Definition: umloperationdialog.cpp:223
UMLOperationDialog::m_virtualCB
QCheckBox * m_virtualCB
Definition: umloperationdialog.h:77
UMLOperationDialog::slotParameterProperties
void slotParameterProperties()
Definition: umloperationdialog.cpp:315
UMLOperationDialog::apply
bool apply()
Definition: umloperationdialog.cpp:418
UMLOperationDialog::slotParmRightButtonPressed
void slotParmRightButtonPressed(const QPoint &p)
Definition: umloperationdialog.cpp:228
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