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 * 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
17 class DocumentationWidget;
18 class KComboBox;
19 class DialogsPopupMenu;
20 class QAbstractButton;
21 class QGroupBox;
22 class QListWidget;
23 class QListWidgetItem;
24 class QLabel;
25 class QRadioButton;
26 class QPushButton;
27 class QCheckBox;
28 class QToolButton;
29 class KLineEdit;
30 class UMLDoc;
31 class UMLOperation;
32 class UMLDatatypeWidget;
33 class UMLStereotypeWidget;
34 class VisibilityEnumWidget;
35
40 class UMLOperationDialog : public SinglePageDialogBase
41 {
42 Q_OBJECT
43 public:
44
45 UMLOperationDialog(QWidget * parent, UMLOperation * pOperation);
46 ~UMLOperationDialog();
47
48 protected:
49
50 void setupDialog();
51
52 bool apply();
53
54 void insertTypesSorted(const QString& type = QString());
55
56 UMLOperation* m_operation;
57 UMLDoc* m_doc;
58 DialogsPopupMenu* m_menu;
59
60 //GUI widgets
61 QGroupBox* m_pParmsGB;
62 QGroupBox* m_pGenGB;
63 QListWidget* m_pParmsLW;
64 QGroupBox* m_pScopeGB;
65 QRadioButton* m_pPublicRB;
66 QRadioButton* m_pPrivateRB;
67 QRadioButton* m_pProtectedRB;
68 QRadioButton* m_pImplementationRB;
69 QLabel* m_pNameL;
70 UMLDatatypeWidget* m_datatypeWidget;
71 UMLStereotypeWidget* m_stereotypeWidget;
72 KLineEdit* m_pNameLE;
73 QCheckBox* m_pAbstractCB;
74 QCheckBox* m_pStaticCB;
75 QCheckBox* m_pQueryCB;
76 QCheckBox* m_virtualCB;
77 QCheckBox* m_inlineCB;
78 QCheckBox* m_pOverrideCB;
79 QPushButton* m_pDeleteButton;
80 QPushButton* m_pPropertiesButton;
81 QToolButton* m_pUpButton;
82 QToolButton* m_pDownButton;
83 DocumentationWidget* m_docWidget;
84 VisibilityEnumWidget* m_visibilityEnumWidget;
85
86 public slots:
87 void slotParmRightButtonPressed(const QPoint &p);
88 void slotParmDoubleClick(QListWidgetItem *item);
89 void slotMenuSelection(QAction* action);
90 void slotNewParameter();
91 void slotDeleteParameter();
92 void slotParameterProperties();
93 void slotParameterUp();
94 void slotParameterDown();
95 void slotParamsBoxClicked(QListWidgetItem* parameterItem);
96 void slotNameChanged(const QString &);
97 };
98
99 #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
UMLOperationDialog
Definition: umloperationdialog.h:41
UMLOperationDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umloperationdialog.cpp:217
UMLOperationDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umloperationdialog.h:66
UMLOperationDialog::slotParamsBoxClicked
void slotParamsBoxClicked(QListWidgetItem *parameterItem)
Definition: umloperationdialog.cpp:390
UMLOperationDialog::m_pOverrideCB
QCheckBox * m_pOverrideCB
Definition: umloperationdialog.h:78
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:80
UMLOperationDialog::m_pImplementationRB
QRadioButton * m_pImplementationRB
Definition: umloperationdialog.h:68
UMLOperationDialog::slotParameterDown
void slotParameterDown()
Definition: umloperationdialog.cpp:368
UMLOperationDialog::m_pGenGB
QGroupBox * m_pGenGB
Definition: umloperationdialog.h:62
UMLOperationDialog::m_operation
UMLOperation * m_operation
The operation to represent.
Definition: umloperationdialog.h:56
UMLOperationDialog::m_docWidget
DocumentationWidget * m_docWidget
Definition: umloperationdialog.h:83
UMLOperationDialog::m_pUpButton
QToolButton * m_pUpButton
Definition: umloperationdialog.h:81
UMLOperationDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umloperationdialog.h:64
UMLOperationDialog::~UMLOperationDialog
~UMLOperationDialog()
Definition: umloperationdialog.cpp:74
UMLOperationDialog::UMLOperationDialog
UMLOperationDialog(QWidget *parent, UMLOperation *pOperation)
Definition: umloperationdialog.cpp:60
UMLOperationDialog::slotParmDoubleClick
void slotParmDoubleClick(QListWidgetItem *item)
Definition: umloperationdialog.cpp:244
UMLOperationDialog::m_stereotypeWidget
UMLStereotypeWidget * m_stereotypeWidget
Definition: umloperationdialog.h:71
UMLOperationDialog::m_pDownButton
QToolButton * m_pDownButton
Definition: umloperationdialog.h:82
UMLOperationDialog::slotNewParameter
void slotNewParameter()
Definition: umloperationdialog.cpp:268
UMLOperationDialog::m_datatypeWidget
UMLDatatypeWidget * m_datatypeWidget
Definition: umloperationdialog.h:70
UMLOperationDialog::m_visibilityEnumWidget
VisibilityEnumWidget * m_visibilityEnumWidget
Definition: umloperationdialog.h:84
UMLOperationDialog::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: umloperationdialog.cpp:255
UMLOperationDialog::setupDialog
void setupDialog()
Definition: umloperationdialog.cpp:81
UMLOperationDialog::m_pAbstractCB
QCheckBox * m_pAbstractCB
Definition: umloperationdialog.h:73
UMLOperationDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umloperationdialog.h:65
UMLOperationDialog::m_pParmsGB
QGroupBox * m_pParmsGB
Definition: umloperationdialog.h:61
UMLOperationDialog::m_menu
DialogsPopupMenu * m_menu
Menu used in parameter list box.
Definition: umloperationdialog.h:58
UMLOperationDialog::slotParameterUp
void slotParameterUp()
Definition: umloperationdialog.cpp:349
UMLOperationDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition: umloperationdialog.h:74
UMLOperationDialog::m_pQueryCB
QCheckBox * m_pQueryCB
Definition: umloperationdialog.h:75
UMLOperationDialog::m_doc
UMLDoc * m_doc
The UMLDocument where all objects live.
Definition: umloperationdialog.h:57
UMLOperationDialog::m_pDeleteButton
QPushButton * m_pDeleteButton
Definition: umloperationdialog.h:79
UMLOperationDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umloperationdialog.h:67
UMLOperationDialog::m_pNameL
QLabel * m_pNameL
Definition: umloperationdialog.h:69
UMLOperationDialog::m_pParmsLW
QListWidget * m_pParmsLW
Definition: umloperationdialog.h:63
UMLOperationDialog::slotDeleteParameter
void slotDeleteParameter()
Definition: umloperationdialog.cpp:295
UMLOperationDialog::m_virtualCB
QCheckBox * m_virtualCB
Definition: umloperationdialog.h:76
UMLOperationDialog::slotParameterProperties
void slotParameterProperties()
Definition: umloperationdialog.cpp:309
UMLOperationDialog::apply
bool apply()
Definition: umloperationdialog.cpp:412
UMLOperationDialog::slotParmRightButtonPressed
void slotParmRightButtonPressed(const QPoint &p)
Definition: umloperationdialog.cpp:222
UMLOperationDialog::m_inlineCB
QCheckBox * m_inlineCB
Definition: umloperationdialog.h:77
UMLOperation
Definition: operation.h:25
UMLStereotypeWidget
Definition: umlstereotypewidget.h:20
VisibilityEnumWidget
Definition: visibilityenumwidget.h:27
singlepagedialogbase.h