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

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

classifierlistpage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CLASSIFIERLISTPAGE_H
7#define CLASSIFIERLISTPAGE_H
8
9//app includes
10#include "dialogpagebase.h"
11#include "umlclassifierlistitemlist.h"
12#include "umlobject.h"
13
14class CodeTextEdit;
15class UMLClassifier;
16class UMLDoc;
17class KTextEdit;
18class QGroupBox;
19class QHBoxLayout;
20class QListWidget;
21class QListWidgetItem;
22class QPushButton;
23class QToolButton;
24class QVBoxLayout;
25
34 class ClassifierListPage : public DialogPageBase
35{
36 Q_OBJECT
37public:
38
39 ClassifierListPage(QWidget* parent,
40 UMLClassifier* classifier, UMLDoc* doc, UMLObject::ObjectType type);
41 virtual ~ClassifierListPage();
42
43 void apply();
44
45private:
46
47 void setupPage();
48
49 void setupListGroup(int margin);
50 void setupDocumentationGroup(int margin);
51 void setupMoveButtons(QHBoxLayout* parentLayout);
52 void setupActionButtons(const QString& itemType, QVBoxLayout* parentLayout);
53
54 void enableWidgets(bool state);
55
56 void saveCurrentItemDocumentation();
57
58 virtual UMLClassifierListItemList getItemList();
59
60 bool addToClassifier(UMLClassifierListItem* classifier, int position = -1);
61
62 bool takeItem(UMLClassifierListItem* listItem,
63 bool seekPeerBefore, int &peerIndex);
64
65 void deleteMenu();
66
67 void printItemList(const QString &prologue);
68
69 QGroupBox* m_docGB;
70 QGroupBox* m_pItemListGB;
71 KTextEdit* m_docTE;
72 CodeTextEdit* m_pCodeTE;
73 QListWidget* m_pItemListLB;
74
75 QToolButton* m_pTopArrowB;
76 QToolButton* m_pUpArrowB;
77 QToolButton* m_pDownArrowB;
78 QToolButton* m_pBottomArrowB;
79
80 UMLDoc* m_doc;
81 UMLClassifierListItem* m_pOldListItem;
82
83protected:
84
85 void reloadItemListBox();
86
87 void hideArrowButtons(bool hide);
88
89 UMLObject::ObjectType m_itemType;
90 UMLClassifier* m_pClassifier;
91 UMLClassifierListItem* m_pLastObjectCreated;
92
93 QPushButton* m_pNewClassifierListItemButton;
94 QPushButton* m_pDeleteListItemButton;
95 QPushButton* m_pPropertiesButton;
96
97 bool m_bSigWaiting;
98
99protected slots:
100
101 void slotActivateItem(QListWidgetItem* item);
102
103 void slotMenuSelection(QAction* action);
104
105 void slotListItemCreated(UMLObject* object);
106 void slotListItemModified();
107 void slotRightButtonPressed(const QPoint& p);
108
109 void slotDoubleClick(QListWidgetItem* item);
110
111 void slotTopClicked();
112 void slotUpClicked();
113 void slotDownClicked();
114 void slotBottomClicked();
115
116 void slotNewListItem();
117
118 void slotDelete();
119
120 void slotProperties();
121};
122
123#endif
ClassifierListPage
A dialog page to display classifier properties.
Definition classifierlistpage.h:35
ClassifierListPage::m_pNewClassifierListItemButton
QPushButton * m_pNewClassifierListItemButton
Definition classifierlistpage.h:93
ClassifierListPage::apply
void apply()
Definition classifierlistpage.cpp:377
ClassifierListPage::m_itemType
UMLObject::ObjectType m_itemType
Definition classifierlistpage.h:89
ClassifierListPage::setupPage
void setupPage()
Definition classifierlistpage.cpp:69
ClassifierListPage::setupMoveButtons
void setupMoveButtons(QHBoxLayout *parentLayout)
Definition classifierlistpage.cpp:168
ClassifierListPage::addToClassifier
bool addToClassifier(UMLClassifierListItem *classifier, int position=-1)
Definition classifierlistpage.cpp:795
ClassifierListPage::deleteMenu
void deleteMenu()
ClassifierListPage::slotTopClicked
void slotTopClicked()
Definition classifierlistpage.cpp:540
ClassifierListPage::m_pDownArrowB
QToolButton * m_pDownArrowB
Definition classifierlistpage.h:77
ClassifierListPage::m_pOldListItem
UMLClassifierListItem * m_pOldListItem
Definition classifierlistpage.h:81
ClassifierListPage::m_pDeleteListItemButton
QPushButton * m_pDeleteListItemButton
Definition classifierlistpage.h:94
ClassifierListPage::setupListGroup
void setupListGroup(int margin)
Definition classifierlistpage.cpp:105
ClassifierListPage::m_pItemListLB
QListWidget * m_pItemListLB
Definition classifierlistpage.h:73
ClassifierListPage::slotProperties
void slotProperties()
Definition classifierlistpage.cpp:739
ClassifierListPage::saveCurrentItemDocumentation
void saveCurrentItemDocumentation()
Definition classifierlistpage.cpp:762
ClassifierListPage::slotRightButtonPressed
void slotRightButtonPressed(const QPoint &p)
Definition classifierlistpage.cpp:430
ClassifierListPage::m_pBottomArrowB
QToolButton * m_pBottomArrowB
Definition classifierlistpage.h:78
ClassifierListPage::slotNewListItem
void slotNewListItem()
Definition classifierlistpage.cpp:748
ClassifierListPage::slotDoubleClick
void slotDoubleClick(QListWidgetItem *item)
Definition classifierlistpage.cpp:685
ClassifierListPage::~ClassifierListPage
virtual ~ClassifierListPage()
Definition classifierlistpage.cpp:62
ClassifierListPage::m_doc
UMLDoc * m_doc
Definition classifierlistpage.h:80
ClassifierListPage::m_pPropertiesButton
QPushButton * m_pPropertiesButton
Definition classifierlistpage.h:95
ClassifierListPage::slotDownClicked
void slotDownClicked()
Definition classifierlistpage.cpp:613
ClassifierListPage::m_docTE
KTextEdit * m_docTE
Definition classifierlistpage.h:71
ClassifierListPage::enableWidgets
void enableWidgets(bool state)
Definition classifierlistpage.cpp:261
ClassifierListPage::m_pTopArrowB
QToolButton * m_pTopArrowB
Definition classifierlistpage.h:75
ClassifierListPage::printItemList
void printItemList(const QString &prologue)
Definition classifierlistpage.cpp:521
ClassifierListPage::slotListItemCreated
void slotListItemCreated(UMLObject *object)
Definition classifierlistpage.cpp:384
ClassifierListPage::getItemList
virtual UMLClassifierListItemList getItemList()
Definition classifierlistpage.cpp:783
ClassifierListPage::m_bSigWaiting
bool m_bSigWaiting
Definition classifierlistpage.h:97
ClassifierListPage::slotActivateItem
void slotActivateItem(QListWidgetItem *item)
Definition classifierlistpage.cpp:317
ClassifierListPage::reloadItemListBox
void reloadItemListBox()
Definition classifierlistpage.cpp:242
ClassifierListPage::slotListItemModified
void slotListItemModified()
Definition classifierlistpage.cpp:416
ClassifierListPage::m_pClassifier
UMLClassifier * m_pClassifier
Definition classifierlistpage.h:90
ClassifierListPage::hideArrowButtons
void hideArrowButtons(bool hide)
Definition classifierlistpage.cpp:912
ClassifierListPage::m_pLastObjectCreated
UMLClassifierListItem * m_pLastObjectCreated
Definition classifierlistpage.h:91
ClassifierListPage::slotUpClicked
void slotUpClicked()
Definition classifierlistpage.cpp:575
ClassifierListPage::slotDelete
void slotDelete()
Definition classifierlistpage.cpp:717
ClassifierListPage::m_pUpArrowB
QToolButton * m_pUpArrowB
Definition classifierlistpage.h:76
ClassifierListPage::setupDocumentationGroup
void setupDocumentationGroup(int margin)
Definition classifierlistpage.cpp:219
ClassifierListPage::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition classifierlistpage.cpp:475
ClassifierListPage::takeItem
bool takeItem(UMLClassifierListItem *listItem, bool seekPeerBefore, int &peerIndex)
Definition classifierlistpage.cpp:879
ClassifierListPage::m_pCodeTE
CodeTextEdit * m_pCodeTE
Definition classifierlistpage.h:72
ClassifierListPage::m_docGB
QGroupBox * m_docGB
Definition classifierlistpage.h:69
ClassifierListPage::m_pItemListGB
QGroupBox * m_pItemListGB
Definition classifierlistpage.h:70
ClassifierListPage::setupActionButtons
void setupActionButtons(const QString &itemType, QVBoxLayout *parentLayout)
Definition classifierlistpage.cpp:203
ClassifierListPage::slotBottomClicked
void slotBottomClicked()
Definition classifierlistpage.cpp:650
CodeTextEdit
Definition codetextedit.h:26
DialogPageBase
Definition dialogpagebase.h:20
UMLClassifierListItemList
Definition umlclassifierlistitemlist.h:22
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition classifierlistitem.h:25
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLDoc
Definition umldoc.h:63
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition umlobject.h:76
dialogpagebase.h
umlclassifierlistitemlist.h
umlobject.h