umbrello 2.38.4
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
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;
22
31{
32 Q_OBJECT
33public:
34 SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement = true);
36
37 QString getOpText();
38
39 bool isClassOp() const;
40
41 QString getSeqNumber();
42
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:
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;
69 QCheckBox *m_pOpAS;
70 QString m_Text;
73 int m_id;
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
Definition dialogpagebase.h:20
Definition documentationwidget.h:22
Displays a message.
Definition messagewidget.h:36
A dialog page to select an operation.
Definition selectoperationpage.h:31
QString getSeqNumber()
Definition selectoperationpage.cpp:240
int m_id
takes on the value OP or CUSTOM according to what the user selected
Definition selectoperationpage.h:73
QLineEdit * m_pOpLE
Definition selectoperationpage.h:66
bool m_enableAutoIncrement
Definition selectoperationpage.h:77
KComboBox * m_pOpCB
Definition selectoperationpage.h:64
QGroupBox * m_pOpGB
Definition selectoperationpage.h:63
void setAutoIncrementSequence(bool state)
Definition selectoperationpage.cpp:259
QString m_Text
Definition selectoperationpage.h:70
void enableButtonOk(bool state)
QString getOpText()
Definition selectoperationpage.cpp:115
bool autoIncrementSequence()
Definition selectoperationpage.cpp:267
UMLClassifier * m_classifier
Definition selectoperationpage.h:75
bool apply()
Definition selectoperationpage.cpp:296
QLabel * m_pCustomRB
Definition selectoperationpage.h:67
void setCustomOp(const QString &op)
Definition selectoperationpage.cpp:140
UMLView * m_pView
Definition selectoperationpage.h:74
QCheckBox * m_pOpAS
Definition selectoperationpage.h:69
bool setClassOp(const QString &op)
Definition selectoperationpage.cpp:205
void setupOperationsList()
Definition selectoperationpage.cpp:220
QLineEdit * m_pSeqLE
Definition selectoperationpage.h:66
QPushButton * m_newOperationButton
Definition selectoperationpage.h:68
~SelectOperationPage()
Definition selectoperationpage.cpp:106
void slotTextChanged(const QString &text)
Definition selectoperationpage.cpp:187
void slotAutoIncrementChecked(bool state)
Definition selectoperationpage.cpp:149
void setupDialog()
Definition selectoperationpage.cpp:275
QLabel * m_pSeqL
Definition selectoperationpage.h:65
bool isClassOp() const
Definition selectoperationpage.cpp:130
DocumentationWidget * m_docWidget
Definition selectoperationpage.h:71
void setSeqNumber(const QString &num)
Definition selectoperationpage.cpp:250
LinkWidget * m_widget
Definition selectoperationpage.h:76
static const int CUSTOM
Definition selectoperationpage.h:61
QLabel * m_pOpRB
Definition selectoperationpage.h:67
static const int OP
Definition selectoperationpage.h:60
int m_nOpCount
Definition selectoperationpage.h:72
void slotIndexChanged(int index)
Definition selectoperationpage.cpp:172
void slotNewOperation()
Definition selectoperationpage.cpp:159
Information for a non-graphical Concept/Class.
Definition classifier.h:35
Definition umlview.h:30