umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

forkjoinwidget.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) 2005-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef FORKJOINWIDGET_H
12 #define FORKJOINWIDGET_H
13
14 //app includes
15 #include "boxwidget.h"
16
25 class ForkJoinWidget : public BoxWidget
26 {
27 Q_OBJECT
28 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
29 public:
30 explicit ForkJoinWidget(UMLScene * scene, Qt::Orientation ori = Qt::Horizontal, Uml::ID::Type id = Uml::ID::None);
31 virtual ~ForkJoinWidget();
32
33 Qt::Orientation orientation() const;
34 void setOrientation(Qt::Orientation ori);
35
36 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
37
38 virtual bool loadFromXMI1(QDomElement & qElement);
39 virtual void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
40
41 virtual bool showPropertiesDialog();
42
43 public Q_SLOTS:
44 virtual void slotMenuSelection(QAction* action);
45
46 protected:
47 QSizeF minimumSize() const;
48
49 virtual void paintSelected(QPainter * p, int offsetX = 0, int offsetY = 0);
50
51 void constrain(qreal& width, qreal& height);
52
53 private:
54 Qt::Orientation m_orientation;
55 };
56
57 #endif
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
ForkJoinWidget::minimumSize
QSizeF minimumSize() const
Definition: forkjoinwidget.cpp:159
umlview.h
ForkJoinWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: forkjoinwidget.cpp:84
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
ListPopupMenu::mt_Fill_Color
@ mt_Fill_Color
Definition: listpopupmenu.h:199
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
ForkJoinWidget::m_orientation
Qt::Orientation m_orientation
whether to draw the plate horizontally or vertically
Definition: forkjoinwidget.h:54
ForkJoinWidget::constrain
void constrain(qreal &width, qreal &height)
Definition: forkjoinwidget.cpp:183
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
ForkJoinWidget::setOrientation
void setOrientation(Qt::Orientation ori)
Definition: forkjoinwidget.cpp:59
ForkJoinWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: forkjoinwidget.cpp:138
ForkJoinWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: forkjoinwidget.cpp:106
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
WidgetBase::setUsesDiagramFillColor
void setUsesDiagramFillColor(bool state)
Definition: widgetbase.cpp:494
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
UMLWidget::setFillColor
virtual void setFillColor(const QColor &color)
Definition: umlwidget.cpp:1168
ForkJoinWidget
Displays a fork/join plate in a state diagram.
Definition: forkjoinwidget.h:26
boxwidget.h
ForkJoinWidget::~ForkJoinWidget
virtual ~ForkJoinWidget()
Definition: forkjoinwidget.cpp:44
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
ForkJoinWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: forkjoinwidget.cpp:70
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
BoxWidget
Displays a box.
Definition: boxwidget.h:28
Uml
Definition: basictypes.cpp:37
UMLWidget::adjustAssocs
virtual void adjustAssocs(qreal dx, qreal dy)
Definition: umlwidget.cpp:1310
ForkJoinWidget::paintSelected
virtual void paintSelected(QPainter *p, int offsetX=0, int offsetY=0)
Definition: forkjoinwidget.cpp:173
ListPopupMenu::mt_FlipHorizontal
@ mt_FlipHorizontal
Definition: listpopupmenu.h:219
ForkJoinWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: forkjoinwidget.cpp:121
debug_utils.h
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
ListPopupMenu::mt_FlipVertical
@ mt_FlipVertical
Definition: listpopupmenu.h:220
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
listpopupmenu.h
ForkJoinWidget::ForkJoinWidget
ForkJoinWidget(UMLScene *scene, Qt::Orientation ori=Qt::Horizontal, Uml::ID::Type id=Uml::ID::None)
Definition: forkjoinwidget.cpp:32
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
ForkJoinWidget::orientation
Qt::Orientation orientation
Definition: forkjoinwidget.h:28
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
umldoc.h
forkjoinwidget.h
WidgetBase::umlDoc
UMLDoc * umlDoc() const
Definition: widgetbase.cpp:172
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869