• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • widgets
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-2013 *
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 loadFromXMI(QDomElement & qElement);
39  virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
40 
41 public Q_SLOTS:
42  virtual void slotMenuSelection(QAction* action);
43 
44 protected:
45  QSizeF minimumSize();
46 
47  virtual void paintSelected(QPainter * p, int offsetX = 0, int offsetY = 0);
48 
49  void constrain(qreal& width, qreal& height);
50 
51 private:
52  Qt::Orientation m_orientation;
53 };
54 
55 #endif
ForkJoinWidget::orientation
Qt::Orientation orientation() const
ForkJoinWidget::paintSelected
virtual void paintSelected(QPainter *p, int offsetX=0, int offsetY=0)
Reimplement method from UMLWidget to suppress the resize corner.
Definition: forkjoinwidget.cpp:150
boxwidget.h
ForkJoinWidget::constrain
void constrain(qreal &width, qreal &height)
Reimplement method from UMLWidget.
Definition: forkjoinwidget.cpp:160
ForkJoinWidget
Displays a fork/join plate in a state diagram.
Definition: forkjoinwidget.h:25
QWidget
UMLWidget::height
qreal height() const
Returns the height of widget.
Definition: umlwidget.h:122
ForkJoinWidget::setOrientation
void setOrientation(Qt::Orientation ori)
Set whether to draw the plate vertically or horizontally.
Definition: forkjoinwidget.cpp:50
ForkJoinWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Reimplemented form UMLWidget::slotMenuSelection to handle Flip action.
Definition: forkjoinwidget.cpp:113
ForkJoinWidget::~ForkJoinWidget
virtual ~ForkJoinWidget()
Destructor.
Definition: forkjoinwidget.cpp:35
Uml::ID::Type
std::string Type
Definition: basictypes.h:317
ForkJoinWidget::saveToXMI
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Reimplemented from UMLWidget::saveToXMI to save widget info into XMI element - 'forkjoin'.
Definition: forkjoinwidget.cpp:97
BoxWidget
Displays a rectangular box.
Definition: boxwidget.h:27
UMLWidget::width
qreal width() const
Returns the width of the widget.
Definition: umlwidget.h:129
ForkJoinWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented from UMLWidget::paint to draw the plate of fork join.
Definition: forkjoinwidget.cpp:61
ForkJoinWidget::minimumSize
QSizeF minimumSize()
Overrides the function from UMLWidget.
Definition: forkjoinwidget.cpp:136
ForkJoinWidget::ForkJoinWidget
ForkJoinWidget(UMLScene *scene, Qt::Orientation ori=Qt::Horizontal, Uml::ID::Type id=Uml::ID::None)
Constructs a ForkJoinWidget.
Definition: forkjoinwidget.cpp:26
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:319
UMLScene
UMLScene instances represent diagrams.
Definition: umlscene.h:70
ForkJoinWidget::loadFromXMI
virtual bool loadFromXMI(QDomElement &qElement)
Reimplemented from UMLWidget::loadFromXMI to load widget info from XMI element - 'forkjoin'.
Definition: forkjoinwidget.cpp:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal