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

umbrello 2.31.1 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 * 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 SELECTOPERATIONPAGE_H
12 #define SELECTOPERATIONPAGE_H
13
14 #include "dialogpagebase.h"
15
16 class KComboBox;
17 class KLineEdit;
18 class QCheckBox;
19 class QGroupBox;
20 class QLabel;
21 class QPushButton;
22 class LinkWidget;
23 class MessageWidget;
24 class UMLClassifier;
25 class UMLView;
26 class DocumentationWidget;
27
35 class SelectOperationPage : public DialogPageBase
36 {
37 Q_OBJECT
38 public:
39 SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement = true);
40 ~SelectOperationPage();
41
42 QString getOpText();
43
44 bool isClassOp() const;
45
46 QString getSeqNumber();
47
48 bool autoIncrementSequence();
49 void setAutoIncrementSequence(bool state);
50
51 void setSeqNumber(const QString &num);
52 void setCustomOp(const QString &op);
53 bool setClassOp(const QString &op);
54
55 void setupDialog();
56 bool apply();
57
58 signals:
59 void enableButtonOk(bool state);
60
61 protected:
62 void setupOperationsList();
63
64 private:
65 static const int OP = 0;
66 static const int CUSTOM = 1;
67
68 QGroupBox *m_pOpGB;
69 KComboBox *m_pOpCB;
70 QLabel *m_pSeqL;
71 KLineEdit *m_pOpLE, *m_pSeqLE;
72 QLabel *m_pCustomRB, *m_pOpRB;
73 QPushButton *m_newOperationButton;
74 QCheckBox *m_pOpAS;
75 QString m_Text;
76 DocumentationWidget *m_docWidget;
77 int m_nOpCount;
78 int m_id;
79 UMLView *m_pView;
80 UMLClassifier *m_classifier;
81 LinkWidget *m_widget;
82 bool m_enableAutoIncrement;
83
84 public slots:
85 void slotAutoIncrementChecked(bool state);
86 void slotNewOperation();
87 void slotIndexChanged(int index);
88 void slotTextChanged(const QString &text);
89 };
90
91 #endif
92
SelectOperationPage::m_nOpCount
int m_nOpCount
Definition: selectoperationpage.h:77
SelectOperationPage::m_pOpLE
KLineEdit * m_pOpLE
Definition: selectoperationpage.h:71
UMLClassifier::getOpList
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Definition: classifier.cpp:939
Model_Utils::Parse_Status
Parse_Status
Definition: model_utils.h:108
SelectOperationPage::isClassOp
bool isClassOp() const
Definition: selectoperationpage.cpp:136
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1323
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
SelectOperationPage::setCustomOp
void setCustomOp(const QString &op)
Definition: selectoperationpage.cpp:146
UMLScene::autoIncrementSequence
bool autoIncrementSequence() const
Definition: umlscene.cpp:372
UMLScene::autoIncrementSequenceValue
QString autoIncrementSequenceValue()
Definition: umlscene.cpp:385
SelectOperationPage::getOpText
QString getOpText()
Definition: selectoperationpage.cpp:121
LinkWidget::setOperation
virtual void setOperation(UMLOperation *op)=0
UMLScene::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: umlscene.cpp:377
operation.h
Model_Utils::OpDescriptor
Definition: model_utils.h:129
UMLClassifier::createOperation
UMLOperation * createOperation(const QString &name=QString(), bool *isExistingOp=0, Model_Utils::NameAndType_List *params=0)
Definition: classifier.cpp:236
SelectOperationPage::~SelectOperationPage
~SelectOperationPage()
Definition: selectoperationpage.cpp:112
documentationwidget.h
SelectOperationPage::setSeqNumber
void setSeqNumber(const QString &num)
Definition: selectoperationpage.cpp:255
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:182
SelectOperationPage::m_id
int m_id
takes on the value OP or CUSTOM according to what the user selected
Definition: selectoperationpage.h:78
SelectOperationPage::m_widget
LinkWidget * m_widget
Definition: selectoperationpage.h:81
UMLOperation::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: operation.cpp:205
SelectOperationPage::SelectOperationPage
SelectOperationPage(UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement=true)
Definition: selectoperationpage.cpp:52
SelectOperationPage::m_Text
QString m_Text
Definition: selectoperationpage.h:75
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
SelectOperationPage::apply
bool apply()
Definition: selectoperationpage.cpp:301
SelectOperationPage::m_pSeqLE
KLineEdit * m_pSeqLE
Definition: selectoperationpage.h:71
LinkWidget::setSequenceNumber
void setSequenceNumber(const QString &sequenceNumber)
Definition: linkwidget.cpp:95
dialogpagebase.h
SelectOperationPage::m_pCustomRB
QLabel * m_pCustomRB
Definition: selectoperationpage.h:72
LinkWidget::lwOperationText
virtual QString lwOperationText()=0
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
SelectOperationPage::setupOperationsList
void setupOperationsList()
Definition: selectoperationpage.cpp:225
SelectOperationPage::slotTextChanged
void slotTextChanged(const QString &text)
Definition: selectoperationpage.cpp:192
SelectOperationPage
A dialog page to select an operation.
Definition: selectoperationpage.h:36
umlclassifierlistitemlist.h
Dialog_Utils::makeLabeledEditField
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Definition: dialog_utils.cpp:52
SelectOperationPage::slotIndexChanged
void slotIndexChanged(int index)
Definition: selectoperationpage.cpp:177
Model_Utils::parseOperation
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Definition: model_utils.cpp:1056
UMLView
Definition: umlview.h:35
SelectOperationPage::m_pSeqL
QLabel * m_pSeqL
Definition: selectoperationpage.h:70
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
attribute.h
SelectOperationPage::slotAutoIncrementChecked
void slotAutoIncrementChecked(bool state)
Definition: selectoperationpage.cpp:155
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
LinkWidget::setOperationText
virtual void setOperationText(const QString &op)=0
SelectOperationPage::m_pView
UMLView * m_pView
Definition: selectoperationpage.h:79
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
messagewidget.h
SelectOperationPage::m_classifier
UMLClassifier * m_classifier
Definition: selectoperationpage.h:80
Model_Utils::OpDescriptor::m_name
QString m_name
< Data structure filled by parseOperation().
Definition: model_utils.h:130
caseInsensitiveLessThan
static bool caseInsensitiveLessThan(const UMLOperation *s1, const UMLOperation *s2)
Definition: selectoperationpage.cpp:40
LinkWidget::sequenceNumber
QString sequenceNumber() const
Definition: linkwidget.cpp:103
SelectOperationPage::m_newOperationButton
QPushButton * m_newOperationButton
Definition: selectoperationpage.h:73
LinkWidget::operation
virtual UMLOperation * operation()=0
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
SelectOperationPage::OP
static const int OP
Definition: selectoperationpage.h:65
LinkWidget
Interface to FloatingTextWidget for AssociationWidget and MessageWidget.
Definition: linkwidget.h:36
selectoperationpage.h
SelectOperationPage::setupDialog
void setupDialog()
Definition: selectoperationpage.cpp:280
SelectOperationPage::enableButtonOk
void enableButtonOk(bool state)
SelectOperationPage::slotNewOperation
void slotNewOperation()
Definition: selectoperationpage.cpp:164
classifier.h
SelectOperationPage::m_pOpAS
QCheckBox * m_pOpAS
Definition: selectoperationpage.h:74
DocumentationWidget
Definition: documentationwidget.h:27
UMLOperation
Definition: operation.h:25
umlscene.h
SelectOperationPage::setClassOp
bool setClassOp(const QString &op)
Definition: selectoperationpage.cpp:210
SelectOperationPage::m_pOpGB
QGroupBox * m_pOpGB
Definition: selectoperationpage.h:68
Model_Utils::OpDescriptor::m_pReturnType
UMLObject * m_pReturnType
Definition: model_utils.h:132
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
SelectOperationPage::getSeqNumber
QString getSeqNumber()
Definition: selectoperationpage.cpp:245
SelectOperationPage::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: selectoperationpage.cpp:264
Model_Utils::OpDescriptor::m_args
NameAndType_List m_args
Definition: model_utils.h:131
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
UMLClassifier::findOperation
UMLOperation * findOperation(const QString &name, Model_Utils::NameAndType_List params)
Definition: classifier.cpp:179
dialog_utils.h
SelectOperationPage::m_pOpCB
KComboBox * m_pOpCB
Definition: selectoperationpage.h:69
Model_Utils::PS_OK
@ PS_OK
Return type of parseOperation().
Definition: model_utils.h:109
UMLOperation::setType
void setType(UMLObject *type)
Definition: operation.cpp:94
UMLClassifier::operations
int operations()
Definition: classifier.cpp:926
SelectOperationPage::m_enableAutoIncrement
bool m_enableAutoIncrement
Definition: selectoperationpage.h:82
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18
SelectOperationPage::m_pOpRB
QLabel * m_pOpRB
Definition: selectoperationpage.h:72
SelectOperationPage::CUSTOM
static const int CUSTOM
Definition: selectoperationpage.h:66
SelectOperationPage::m_docWidget
DocumentationWidget * m_docWidget
Definition: selectoperationpage.h:76
MessageWidget
Displays a message.
Definition: messagewidget.h:41
SelectOperationPage::autoIncrementSequence
bool autoIncrementSequence()
Definition: selectoperationpage.cpp:272