umbrello API Documentation

ForkJoinWidget Class Reference

Displays a fork/join plate in a state diagram. More...

#include <forkjoinwidget.h>

Inheritance diagram for ForkJoinWidget:

BoxWidget UMLWidget WidgetBase List of all members.

Public Member Functions

 ForkJoinWidget (UMLView *view, bool drawVertical=false, Uml::IDType id=Uml::id_None)
 Constructs a ForkJoinWidget.
virtual ~ForkJoinWidget ()
 destructor
void setDrawVertical (bool to)
 Set whether to draw the plate vertically.
bool getDrawVertical () const
 Get whether to draw the plate vertically.
void slotMenuSelection (int sel)
 Overrides the function from UMLWidget.
void draw (QPainter &p, int offsetX, int offsetY)
 Draws a slim solid black rectangle.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Saves the widget to the <forkjoinwidget> XMI element.
bool loadFromXMI (QDomElement &qElement)
 Loads the widget from the <forkjoinwidget> XMI element.

Protected Member Functions

void drawSelected (QPainter *p, int offsetX, int offsetY)
 Reimplement method from UMLWidget to suppress the resize corner.
QSize calculateSize ()
 Overrides the function from UMLWidget.
void constrain (int &width, int &height)
 Reimplement method from UMLWidget.

Detailed Description

Displays a fork/join plate in a state diagram.

Author:
Oliver Kellogg <okellogg@users.sourceforge.net>
See also:
UMLWidget Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 28 of file forkjoinwidget.h.


Constructor & Destructor Documentation

ForkJoinWidget::ForkJoinWidget UMLView view,
bool  drawVertical = false,
Uml::IDType  id = Uml::id_None
[explicit]
 

Constructs a ForkJoinWidget.

Parameters:
view The parent to this widget.
drawVertical Whether to draw the plate horizontally or vertically.
id The ID to assign (-1 will prompt a new ID.)

Definition at line 23 of file forkjoinwidget.cpp.

References UMLWidget::init().

ForkJoinWidget::~ForkJoinWidget  )  [virtual]
 

destructor

Definition at line 33 of file forkjoinwidget.cpp.


Member Function Documentation

void ForkJoinWidget::setDrawVertical bool  to  ) 
 

Set whether to draw the plate vertically.

Definition at line 87 of file forkjoinwidget.cpp.

References UMLWidget::adjustAssocs(), UMLWidget::getX(), UMLWidget::getY(), and UMLWidget::updateComponentSize().

Referenced by loadFromXMI(), and slotMenuSelection().

bool ForkJoinWidget::getDrawVertical  )  const
 

Get whether to draw the plate vertically.

Definition at line 93 of file forkjoinwidget.cpp.

Referenced by ListPopupMenu::ListPopupMenu().

void ForkJoinWidget::slotMenuSelection int  sel  )  [virtual]
 

Overrides the function from UMLWidget.

Parameters:
sel The command to be executed.

Reimplemented from UMLWidget.

Definition at line 77 of file forkjoinwidget.cpp.

References setDrawVertical().

void ForkJoinWidget::draw QPainter &  p,
int  offsetX,
int  offsetY
[virtual]
 

Draws a slim solid black rectangle.

Reimplemented from BoxWidget.

Definition at line 44 of file forkjoinwidget.cpp.

References drawSelected().

void ForkJoinWidget::saveToXMI QDomDocument &  qDoc,
QDomElement &  qElement
[virtual]
 

Saves the widget to the <forkjoinwidget> XMI element.

Reimplemented from BoxWidget.

Definition at line 97 of file forkjoinwidget.cpp.

bool ForkJoinWidget::loadFromXMI QDomElement &  qElement  )  [virtual]
 

Loads the widget from the <forkjoinwidget> XMI element.

Reimplemented from UMLWidget.

Definition at line 104 of file forkjoinwidget.cpp.

References setDrawVertical().

void ForkJoinWidget::drawSelected QPainter *  p,
int  offsetX,
int  offsetY
[protected, virtual]
 

Reimplement method from UMLWidget to suppress the resize corner.

Although the ForkJoinWidget supports resizing, we suppress the resize corner because it is too large for this very slim widget.

Reimplemented from UMLWidget.

Definition at line 52 of file forkjoinwidget.cpp.

Referenced by draw().

QSize ForkJoinWidget::calculateSize  )  [protected, virtual]
 

Overrides the function from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 36 of file forkjoinwidget.cpp.

void ForkJoinWidget::constrain int &  width,
int &  height
[protected, virtual]
 

Reimplement method from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 55 of file forkjoinwidget.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003