umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
activitypage.h
Go to the documentation of this file.
1 /*
2  SPDX-License-Identifier: GPL-2.0-or-later
3  SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5 
6 #ifndef ACTIVITYPAGE_H
7 #define ACTIVITYPAGE_H
8 
9 #include "dialogpagebase.h"
10 
11 //qt includes
12 #include <QListWidgetItem>
13 #include <QWidget>
14 
15 class StateWidget;
16 class QGroupBox;
17 class QListWidget;
18 class QPushButton;
19 class QToolButton;
20 
26 {
27  Q_OBJECT
28 public:
29 
30  ActivityPage(QWidget * pParent, StateWidget * pWidget);
31  ~ActivityPage();
32 
33  void setupPage();
34 
35  void updateActivities();
36 
37 protected:
38 
39  void enableWidgets(bool state);
40 
45 
49  QListWidget* m_pActivityLW;
50  QGroupBox* m_pActivityGB;
51  QToolButton* m_pUpArrowB;
52  QToolButton* m_pDownArrowB;
53  QToolButton* m_pTopArrowB;
54  QToolButton* m_pBottomArrowB;
56  QPushButton* m_pRenameButton;
57 
58 public slots:
59 
60  void slotMenuSelection(QAction* action);
61  void slotClicked(QListWidgetItem* item);
62  void slotDoubleClicked(QListWidgetItem* item);
63  void slotRightButtonPressed(const QPoint& p);
64 
65  void slotTopClicked();
66  void slotUpClicked();
67  void slotDownClicked();
68  void slotBottomClicked();
69  void slotNewActivity();
70  void slotDelete();
71  void slotRename();
72 };
73 
74 #endif
StateWidget::removeActivity
bool removeActivity(const QString &activity)
Definition: statewidget.cpp:429
ActivityPage::slotDoubleClicked
void slotDoubleClicked(QListWidgetItem *item)
Definition: activitypage.cpp:307
ActivityPage::slotNewActivity
void slotNewActivity()
Definition: activitypage.cpp:182
ActivityPage::m_pActivityGB
QGroupBox * m_pActivityGB
Definition: activitypage.h:50
statewidget.h
StateWidget::renameActivity
bool renameActivity(const QString &activity, const QString &newName)
Definition: statewidget.cpp:440
DialogsPopupMenu::tt_Activity_Selected
@ tt_Activity_Selected
Definition: dialogspopupmenu.h:19
ActivityPage::slotClicked
void slotClicked(QListWidgetItem *item)
Definition: activitypage.cpp:296
DialogsPopupMenu
Definition: dialogspopupmenu.h:11
StateWidget::setActivities
void setActivities(const QStringList &list)
Definition: statewidget.cpp:452
ActivityPage
Definition: activitypage.h:25
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:33
ActivityPage::slotRightButtonPressed
void slotRightButtonPressed(const QPoint &p)
Definition: activitypage.cpp:214
ActivityPage::enableWidgets
void enableWidgets(bool state)
Definition: activitypage.cpp:318
ActivityPage::slotDownClicked
void slotDownClicked()
Definition: activitypage.cpp:263
ActivityPage::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: activitypage.cpp:161
dialogpagebase.h
ActivityPage::m_pDeleteActivityButton
QPushButton * m_pDeleteActivityButton
Definition: activitypage.h:55
ActivityPage::setupPage
void setupPage()
Definition: activitypage.cpp:51
ActivityPage::m_pRenameButton
QPushButton * m_pRenameButton
Definition: activitypage.h:56
it
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
ActivityPage::m_pTopArrowB
QToolButton * m_pTopArrowB
Definition: activitypage.h:53
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:38
DialogPageBase
Definition: dialogpagebase.h:19
i18n
#define i18n
Definition: main.cpp:34
DialogsPopupMenu::tt_New_Activity
@ tt_New_Activity
Definition: dialogspopupmenu.h:25
ListPopupMenu::toString
static QString toString(MenuType menu)
Definition: listpopupmenu.cpp:608
ActivityPage::slotUpClicked
void slotUpClicked()
Definition: activitypage.cpp:246
Dialog_Utils::askDefaultNewName
bool askDefaultNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:272
uDebug
#define uDebug()
Definition: debug_utils.h:108
ActivityPage::m_pUpArrowB
QToolButton * m_pUpArrowB
Definition: activitypage.h:51
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
ActivityPage::slotTopClicked
void slotTopClicked()
Definition: activitypage.cpp:229
ActivityPage::ActivityPage
ActivityPage(QWidget *pParent, StateWidget *pWidget)
Definition: activitypage.cpp:34
ActivityPage::slotRename
void slotRename()
Definition: activitypage.cpp:201
ActivityPage::updateActivities
void updateActivities()
Definition: activitypage.cpp:148
DialogsPopupMenu::TriggerType
TriggerType
< This type hosts all possible menu types.
Definition: dialogspopupmenu.h:16
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:181
ActivityPage::~ActivityPage
~ActivityPage()
Definition: activitypage.cpp:44
uml.h
ActivityPage::slotDelete
void slotDelete()
Definition: activitypage.cpp:193
DialogsPopupMenu::tt_Undefined
@ tt_Undefined
Definition: dialogspopupmenu.h:36
debug_utils.h
dialogspopupmenu.h
ActivityPage::m_pStateWidget
StateWidget * m_pStateWidget
Definition: activitypage.h:44
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:406
WidgetBase::wt_Activity
@ wt_Activity
Definition: widgetbase.h:124
ListPopupMenu::mt_Rename
@ mt_Rename
Definition: listpopupmenu.h:178
dialog_utils.h
StateWidget::addActivity
bool addActivity(const QString &activity)
Definition: statewidget.cpp:419
ActivityPage::m_pDownArrowB
QToolButton * m_pDownArrowB
Definition: activitypage.h:52
activitypage.h
Dialog_Utils::askRenameName
bool askRenameName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:257
ListPopupMenu::mt_New_Activity
@ mt_New_Activity
Definition: listpopupmenu.h:129
ActivityPage::m_pActivityLW
QListWidget * m_pActivityLW
Definition: activitypage.h:49
ActivityPage::m_pBottomArrowB
QToolButton * m_pBottomArrowB
Definition: activitypage.h:54
ActivityPage::slotBottomClicked
void slotBottomClicked()
Definition: activitypage.cpp:280
StateWidget::activities
QStringList activities() const
Definition: statewidget.cpp:461