umbrello: umbrello/dialogs/selectoperationdialog.h Source File

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

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

- File List
- File Members

selectoperationdialog.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 SELECTOPERATIONDIALOG_H
7#define SELECTOPERATIONDIALOG_H
8
9#include "singlepagedialogbase.h"
10
11class KComboBox;
12class QLineEdit;
13class QCheckBox;
14class QGroupBox;
15class QLabel;
16class UMLClassifier;
17class UMLView;
18class LinkWidget;
19
27 class SelectOperationDialog : public SinglePageDialogBase
28{
29 Q_OBJECT
30public:
31 SelectOperationDialog(UMLView * parent, UMLClassifier * c, LinkWidget *widget, bool enableAutoIncrement = true);
32 ~SelectOperationDialog();
33
34 QString getOpText();
35
36 bool isClassOp() const;
37
38 QString getSeqNumber();
39
40 bool autoIncrementSequence();
41 void setAutoIncrementSequence(bool state);
42
43 void setSeqNumber(const QString &num);
44 void setCustomOp(const QString &op);
45 bool setClassOp(const QString &op);
46
47 bool apply();
48
49protected:
50 void setupDialog();
51 void setupOperationsList();
52
53private:
54 static const int OP = 0;
55 static const int CUSTOM = 1;
56
57 QGroupBox *m_pOpGB;
58 KComboBox *m_pOpCB;
59 QLabel *m_pSeqL;
60 QLineEdit *m_pOpLE, *m_pSeqLE;
61 QLabel *m_pCustomRB, *m_pOpRB;
62 QPushButton *m_newOperationButton;
63 QCheckBox *m_pOpAS;
64 QString m_Text;
65 int m_nOpCount;
66 int m_id;
67 UMLView *m_pView;
68 UMLClassifier *m_classifier;
69 LinkWidget *m_widget;
70 bool m_enableAutoIncrement;
71
72public slots:
73 void slotAutoIncrementChecked(bool state);
74 void slotNewOperation();
75 void slotIndexChanged(int index);
76 void slotTextChanged(const QString &text);
77};
78
79#endif
80
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:32
SelectOperationDialog
A dialog to select an operation.
Definition: selectoperationdialog.h:28
SelectOperationDialog::m_id
int m_id
takes on the value OP or CUSTOM according to what the user selected
Definition: selectoperationdialog.h:66
SelectOperationDialog::m_classifier
UMLClassifier * m_classifier
Definition: selectoperationdialog.h:68
SelectOperationDialog::apply
bool apply()
Definition: selectoperationdialog.cpp:290
SelectOperationDialog::slotIndexChanged
void slotIndexChanged(int index)
Definition: selectoperationdialog.cpp:167
SelectOperationDialog::m_pOpRB
QLabel * m_pOpRB
Definition: selectoperationdialog.h:61
SelectOperationDialog::m_pOpAS
QCheckBox * m_pOpAS
Definition: selectoperationdialog.h:63
SelectOperationDialog::m_pOpGB
QGroupBox * m_pOpGB
Definition: selectoperationdialog.h:57
SelectOperationDialog::isClassOp
bool isClassOp() const
Definition: selectoperationdialog.cpp:125
SelectOperationDialog::m_Text
QString m_Text
Definition: selectoperationdialog.h:64
SelectOperationDialog::getOpText
QString getOpText()
Definition: selectoperationdialog.cpp:110
SelectOperationDialog::m_enableAutoIncrement
bool m_enableAutoIncrement
Definition: selectoperationdialog.h:70
SelectOperationDialog::m_pOpCB
KComboBox * m_pOpCB
Definition: selectoperationdialog.h:58
SelectOperationDialog::m_pSeqL
QLabel * m_pSeqL
Definition: selectoperationdialog.h:59
SelectOperationDialog::m_pCustomRB
QLabel * m_pCustomRB
Definition: selectoperationdialog.h:61
SelectOperationDialog::m_widget
LinkWidget * m_widget
Definition: selectoperationdialog.h:69
SelectOperationDialog::CUSTOM
static const int CUSTOM
Definition: selectoperationdialog.h:55
SelectOperationDialog::slotNewOperation
void slotNewOperation()
Definition: selectoperationdialog.cpp:154
SelectOperationDialog::setCustomOp
void setCustomOp(const QString &op)
Definition: selectoperationdialog.cpp:135
SelectOperationDialog::autoIncrementSequence
bool autoIncrementSequence()
Definition: selectoperationdialog.cpp:262
SelectOperationDialog::setClassOp
bool setClassOp(const QString &op)
Definition: selectoperationdialog.cpp:200
SelectOperationDialog::m_pView
UMLView * m_pView
Definition: selectoperationdialog.h:67
SelectOperationDialog::m_nOpCount
int m_nOpCount
Definition: selectoperationdialog.h:65
SelectOperationDialog::slotTextChanged
void slotTextChanged(const QString &text)
Definition: selectoperationdialog.cpp:182
SelectOperationDialog::setupDialog
void setupDialog()
Definition: selectoperationdialog.cpp:270
SelectOperationDialog::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: selectoperationdialog.cpp:254
SelectOperationDialog::setSeqNumber
void setSeqNumber(const QString &num)
Definition: selectoperationdialog.cpp:245
SelectOperationDialog::slotAutoIncrementChecked
void slotAutoIncrementChecked(bool state)
Definition: selectoperationdialog.cpp:144
SelectOperationDialog::m_newOperationButton
QPushButton * m_newOperationButton
Definition: selectoperationdialog.h:62
SelectOperationDialog::~SelectOperationDialog
~SelectOperationDialog()
Definition: selectoperationdialog.cpp:101
SelectOperationDialog::setupOperationsList
void setupOperationsList()
Definition: selectoperationdialog.cpp:215
SelectOperationDialog::m_pOpLE
QLineEdit * m_pOpLE
Definition: selectoperationdialog.h:60
SelectOperationDialog::m_pSeqLE
QLineEdit * m_pSeqLE
Definition: selectoperationdialog.h:60
SelectOperationDialog::OP
static const int OP
Definition: selectoperationdialog.h:54
SelectOperationDialog::getSeqNumber
QString getSeqNumber()
Definition: selectoperationdialog.cpp:235
SinglePageDialogBase
Definition: singlepagedialogbase.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLView
Definition: umlview.h:30
singlepagedialogbase.h