umbrello 2.32.3 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 * 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 ACTIVITYPAGE_H
12 #define ACTIVITYPAGE_H
13
14 #include "dialogpagebase.h"
15
16 //qt includes
17 #include <QListWidgetItem>
18 #include <QWidget>
19
20 class StateWidget;
21 class QGroupBox;
22 class QListWidget;
23 class QPushButton;
24 class QToolButton;
25
30 class ActivityPage : public DialogPageBase
31 {
32 Q_OBJECT
33 public:
34
35 ActivityPage(QWidget * pParent, StateWidget * pWidget);
36 ~ActivityPage();
37
38 void setupPage();
39
40 void updateActivities();
41
42 protected:
43
44 void enableWidgets(bool state);
45
49 StateWidget * m_pStateWidget;
50
54 QListWidget* m_pActivityLW;
55 QGroupBox* m_pActivityGB;
56 QToolButton* m_pUpArrowB;
57 QToolButton* m_pDownArrowB;
58 QToolButton* m_pTopArrowB;
59 QToolButton* m_pBottomArrowB;
60 QPushButton* m_pDeleteActivityButton;
61 QPushButton* m_pRenameButton;
62
63 public slots:
64
65 void slotMenuSelection(QAction* action);
66 void slotClicked(QListWidgetItem* item);
67 void slotDoubleClicked(QListWidgetItem* item);
68 void slotRightButtonPressed(const QPoint& p);
69
70 void slotTopClicked();
71 void slotUpClicked();
72 void slotDownClicked();
73 void slotBottomClicked();
74 void slotNewActivity();
75 void slotDelete();
76 void slotRename();
77 };
78
79 #endif
StateWidget::removeActivity
bool removeActivity(const QString &activity)
Definition: statewidget.cpp:433
ActivityPage::slotDoubleClicked
void slotDoubleClicked(QListWidgetItem *item)
Definition: activitypage.cpp:312
ActivityPage::slotNewActivity
void slotNewActivity()
Definition: activitypage.cpp:187
ActivityPage::m_pActivityGB
QGroupBox * m_pActivityGB
Definition: activitypage.h:55
statewidget.h
StateWidget::renameActivity
bool renameActivity(const QString &activity, const QString &newName)
Definition: statewidget.cpp:444
DialogsPopupMenu::tt_Activity_Selected
@ tt_Activity_Selected
Definition: dialogspopupmenu.h:24
ActivityPage::slotClicked
void slotClicked(QListWidgetItem *item)
Definition: activitypage.cpp:301
DialogsPopupMenu
Definition: dialogspopupmenu.h:17
StateWidget::setActivities
void setActivities(const QStringList &list)
Definition: statewidget.cpp:456
ActivityPage
Definition: activitypage.h:31
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
ActivityPage::slotRightButtonPressed
void slotRightButtonPressed(const QPoint &p)
Definition: activitypage.cpp:219
ActivityPage::enableWidgets
void enableWidgets(bool state)
Definition: activitypage.cpp:323
ActivityPage::slotDownClicked
void slotDownClicked()
Definition: activitypage.cpp:268
ActivityPage::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: activitypage.cpp:166
dialogpagebase.h
ActivityPage::m_pDeleteActivityButton
QPushButton * m_pDeleteActivityButton
Definition: activitypage.h:60
ActivityPage::setupPage
void setupPage()
Definition: activitypage.cpp:56
ActivityPage::m_pRenameButton
QPushButton * m_pRenameButton
Definition: activitypage.h:61
ActivityPage::m_pTopArrowB
QToolButton * m_pTopArrowB
Definition: activitypage.h:58
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
DialogsPopupMenu::tt_New_Activity
@ tt_New_Activity
Definition: dialogspopupmenu.h:30
ListPopupMenu::toString
static QString toString(MenuType menu)
Definition: listpopupmenu.cpp:609
ActivityPage::slotUpClicked
void slotUpClicked()
Definition: activitypage.cpp:251
Dialog_Utils::askDefaultNewName
bool askDefaultNewName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:179
uDebug
#define uDebug()
Definition: debug_utils.h:122
ActivityPage::m_pUpArrowB
QToolButton * m_pUpArrowB
Definition: activitypage.h:56
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
ActivityPage::slotTopClicked
void slotTopClicked()
Definition: activitypage.cpp:234
ActivityPage::ActivityPage
ActivityPage(QWidget *pParent, StateWidget *pWidget)
Definition: activitypage.cpp:39
ActivityPage::slotRename
void slotRename()
Definition: activitypage.cpp:206
ActivityPage::updateActivities
void updateActivities()
Definition: activitypage.cpp:153
DialogsPopupMenu::TriggerType
TriggerType
< This type hosts all possible menu types.
Definition: dialogspopupmenu.h:22
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:186
ActivityPage::~ActivityPage
~ActivityPage()
Definition: activitypage.cpp:49
uml.h
ActivityPage::slotDelete
void slotDelete()
Definition: activitypage.cpp:198
DialogsPopupMenu::tt_Undefined
@ tt_Undefined
Definition: dialogspopupmenu.h:41
debug_utils.h
dialogspopupmenu.h
ActivityPage::m_pStateWidget
StateWidget * m_pStateWidget
Definition: activitypage.h:49
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
WidgetBase::wt_Activity
@ wt_Activity
Definition: widgetbase.h:128
ListPopupMenu::mt_Rename
@ mt_Rename
Definition: listpopupmenu.h:183
dialog_utils.h
StateWidget::addActivity
bool addActivity(const QString &activity)
Definition: statewidget.cpp:423
ActivityPage::m_pDownArrowB
QToolButton * m_pDownArrowB
Definition: activitypage.h:57
activitypage.h
Dialog_Utils::askRenameName
bool askRenameName(WidgetBase::WidgetType type, QString &name)
Definition: dialog_utils.cpp:164
ListPopupMenu::mt_New_Activity
@ mt_New_Activity
Definition: listpopupmenu.h:134
ActivityPage::m_pActivityLW
QListWidget * m_pActivityLW
Definition: activitypage.h:54
ActivityPage::m_pBottomArrowB
QToolButton * m_pBottomArrowB
Definition: activitypage.h:59
ActivityPage::slotBottomClicked
void slotBottomClicked()
Definition: activitypage.cpp:285
StateWidget::activities
QStringList activities() const
Definition: statewidget.cpp:465