umbrello 26.03.70-1a62d36 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

selectoperationpage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef SELECTOPERATIONPAGE_H
7#define SELECTOPERATIONPAGE_H
8
9#include "dialogpagebase.h"
10
11 class KComboBox;
12 class QLineEdit;
13 class QCheckBox;
14 class QGroupBox;
15 class QLabel;
16 class QPushButton;
17 class LinkWidget;
18 class MessageWidget;
19 class UMLClassifier;
20 class UMLView;
21 class DocumentationWidget;
22
30 class SelectOperationPage : public DialogPageBase
31{
32 Q_OBJECT
33 public:
34 SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement = true);
35 ~SelectOperationPage();
36
37 QString getOpText();
38
39 bool isClassOp() const;
40
41 QString getSeqNumber();
42
43 bool autoIncrementSequence();
44 void setAutoIncrementSequence(bool state);
45
46 void setSeqNumber(const QString &num);
47 void setCustomOp(const QString &op);
48 bool setClassOp(const QString &op);
49
50 void setupDialog();
51 bool apply();
52
53Q_SIGNALS:
54 void enableButtonOk(bool state);
55
56 protected:
57 void setupOperationsList();
58
59 private:
60 static const int OP = 0;
61 static const int CUSTOM = 1;
62
63 QGroupBox *m_pOpGB;
64 KComboBox *m_pOpCB;
65 QLabel *m_pSeqL;
66 QLineEdit *m_pOpLE, *m_pSeqLE;
67 QLabel *m_pCustomRB, *m_pOpRB;
68 QPushButton *m_newOperationButton;
69 QCheckBox *m_pOpAS;
70 QString m_Text;
71 DocumentationWidget *m_docWidget;
72 int m_nOpCount;
73 int m_id;
74 UMLView *m_pView;
75 UMLClassifier *m_classifier;
76 LinkWidget *m_widget;
77 bool m_enableAutoIncrement;
78
79 public Q_SLOTS:
80 void slotAutoIncrementChecked(bool state);
81 void slotNewOperation();
82 void slotIndexChanged(int index);
83 void slotTextChanged(const QString &text);
84};
85
86#endif
87
DialogPageBase
Definition: dialogpagebase.h:20
DocumentationWidget
Definition: documentationwidget.h:22
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:32
MessageWidget
Displays a message.
Definition: messagewidget.h:36
SelectOperationPage
A dialog page to select an operation.
Definition: selectoperationpage.h:31
SelectOperationPage::getSeqNumber
QString getSeqNumber()
Definition: selectoperationpage.cpp:242
SelectOperationPage::m_id
int m_id
takes on the value OP or CUSTOM according to what the user selected
Definition: selectoperationpage.h:73
SelectOperationPage::m_pOpLE
QLineEdit * m_pOpLE
Definition: selectoperationpage.h:66
SelectOperationPage::m_enableAutoIncrement
bool m_enableAutoIncrement
Definition: selectoperationpage.h:77
SelectOperationPage::m_pOpCB
KComboBox * m_pOpCB
Definition: selectoperationpage.h:64
SelectOperationPage::m_pOpGB
QGroupBox * m_pOpGB
Definition: selectoperationpage.h:63
SelectOperationPage::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: selectoperationpage.cpp:261
SelectOperationPage::m_Text
QString m_Text
Definition: selectoperationpage.h:70
SelectOperationPage::enableButtonOk
void enableButtonOk(bool state)
SelectOperationPage::getOpText
QString getOpText()
Definition: selectoperationpage.cpp:117
SelectOperationPage::autoIncrementSequence
bool autoIncrementSequence()
Definition: selectoperationpage.cpp:269
SelectOperationPage::m_classifier
UMLClassifier * m_classifier
Definition: selectoperationpage.h:75
SelectOperationPage::apply
bool apply()
Definition: selectoperationpage.cpp:298
SelectOperationPage::m_pCustomRB
QLabel * m_pCustomRB
Definition: selectoperationpage.h:67
SelectOperationPage::setCustomOp
void setCustomOp(const QString &op)
Definition: selectoperationpage.cpp:142
SelectOperationPage::m_pView
UMLView * m_pView
Definition: selectoperationpage.h:74
SelectOperationPage::m_pOpAS
QCheckBox * m_pOpAS
Definition: selectoperationpage.h:69
SelectOperationPage::setClassOp
bool setClassOp(const QString &op)
Definition: selectoperationpage.cpp:207
SelectOperationPage::setupOperationsList
void setupOperationsList()
Definition: selectoperationpage.cpp:222
SelectOperationPage::m_pSeqLE
QLineEdit * m_pSeqLE
Definition: selectoperationpage.h:66
SelectOperationPage::m_newOperationButton
QPushButton * m_newOperationButton
Definition: selectoperationpage.h:68
SelectOperationPage::~SelectOperationPage
~SelectOperationPage()
Definition: selectoperationpage.cpp:108
SelectOperationPage::slotTextChanged
void slotTextChanged(const QString &text)
Definition: selectoperationpage.cpp:189
SelectOperationPage::slotAutoIncrementChecked
void slotAutoIncrementChecked(bool state)
Definition: selectoperationpage.cpp:151
SelectOperationPage::setupDialog
void setupDialog()
Definition: selectoperationpage.cpp:277
SelectOperationPage::m_pSeqL
QLabel * m_pSeqL
Definition: selectoperationpage.h:65
SelectOperationPage::isClassOp
bool isClassOp() const
Definition: selectoperationpage.cpp:132
SelectOperationPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: selectoperationpage.h:71
SelectOperationPage::setSeqNumber
void setSeqNumber(const QString &num)
Definition: selectoperationpage.cpp:252
SelectOperationPage::m_widget
LinkWidget * m_widget
Definition: selectoperationpage.h:76
SelectOperationPage::CUSTOM
static const int CUSTOM
Definition: selectoperationpage.h:61
SelectOperationPage::m_pOpRB
QLabel * m_pOpRB
Definition: selectoperationpage.h:67
SelectOperationPage::OP
static const int OP
Definition: selectoperationpage.h:60
SelectOperationPage::m_nOpCount
int m_nOpCount
Definition: selectoperationpage.h:72
SelectOperationPage::slotIndexChanged
void slotIndexChanged(int index)
Definition: selectoperationpage.cpp:174
SelectOperationPage::slotNewOperation
void slotNewOperation()
Definition: selectoperationpage.cpp:161
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLView
Definition: umlview.h:30
dialogpagebase.h