umbrello: umbrello/dialogs/pages/selectoperationpage.h Source File

umbrello 2.38.5 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

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
11class KComboBox;
12class QLineEdit;
13class QCheckBox;
14class QGroupBox;
15class QLabel;
16class QPushButton;
17class LinkWidget;
18class MessageWidget;
19class UMLClassifier;
20class UMLView;
21class DocumentationWidget;
22
30 class SelectOperationPage : public DialogPageBase
31{
32 Q_OBJECT
33public:
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
53signals:
54 void enableButtonOk(bool state);
55
56protected:
57 void setupOperationsList();
58
59private:
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
79public 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:240
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:259
SelectOperationPage::m_Text
QString m_Text
Definition selectoperationpage.h:70
SelectOperationPage::enableButtonOk
void enableButtonOk(bool state)
SelectOperationPage::getOpText
QString getOpText()
Definition selectoperationpage.cpp:115
SelectOperationPage::autoIncrementSequence
bool autoIncrementSequence()
Definition selectoperationpage.cpp:267
SelectOperationPage::m_classifier
UMLClassifier * m_classifier
Definition selectoperationpage.h:75
SelectOperationPage::apply
bool apply()
Definition selectoperationpage.cpp:296
SelectOperationPage::m_pCustomRB
QLabel * m_pCustomRB
Definition selectoperationpage.h:67
SelectOperationPage::setCustomOp
void setCustomOp(const QString &op)
Definition selectoperationpage.cpp:140
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:205
SelectOperationPage::setupOperationsList
void setupOperationsList()
Definition selectoperationpage.cpp:220
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:106
SelectOperationPage::SelectOperationPage
SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement=true)
Definition selectoperationpage.cpp:48
SelectOperationPage::slotTextChanged
void slotTextChanged(const QString &text)
Definition selectoperationpage.cpp:187
SelectOperationPage::slotAutoIncrementChecked
void slotAutoIncrementChecked(bool state)
Definition selectoperationpage.cpp:149
SelectOperationPage::setupDialog
void setupDialog()
Definition selectoperationpage.cpp:275
SelectOperationPage::m_pSeqL
QLabel * m_pSeqL
Definition selectoperationpage.h:65
SelectOperationPage::isClassOp
bool isClassOp() const
Definition selectoperationpage.cpp:130
SelectOperationPage::m_docWidget
DocumentationWidget * m_docWidget
Definition selectoperationpage.h:71
SelectOperationPage::setSeqNumber
void setSeqNumber(const QString &num)
Definition selectoperationpage.cpp:250
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:172
SelectOperationPage::slotNewOperation
void slotNewOperation()
Definition selectoperationpage.cpp:159
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLView
Definition umlview.h:30
dialogpagebase.h