#include <diagramproxywidget.h>
DiagramProxyWidget::DiagramProxyWidget |
( |
UMLWidget * |
widget, |
|
|
qreal |
borderWidth = 5 |
|
) |
| |
virtual DiagramProxyWidget::~DiagramProxyWidget |
( |
| ) |
|
|
inlinevirtual |
bool DiagramProxyWidget::activate |
( |
IDChangeLog * |
changeLog = 0 | ) |
|
|
protected |
const QRectF & DiagramProxyWidget::clientRect |
( |
| ) |
const |
Return the area in which the linked diagram is displayed.
- Returns
- area in current item coordinates
void DiagramProxyWidget::contextMenuEvent |
( |
QGraphicsSceneContextMenuEvent * |
event | ) |
|
|
protectedvirtual |
UMLWidget * DiagramProxyWidget::getProxiedWidget |
( |
const QPointF & |
p | ) |
const |
QRectF DiagramProxyWidget::iconRect |
( |
| ) |
const |
Getter for icon rectangle
- Returns
- icon rectangle
bool DiagramProxyWidget::isProxyWidget |
( |
| ) |
const |
UMLScene * DiagramProxyWidget::linkedDiagram |
( |
| ) |
const |
bool DiagramProxyWidget::loadFromXMI |
( |
QDomElement & |
qElement | ) |
|
|
protected |
QPointF DiagramProxyWidget::mapFromClient |
( |
const QPointF & |
p | ) |
const |
QRectF DiagramProxyWidget::mapFromClient |
( |
const QRectF & |
r | ) |
const |
QPointF DiagramProxyWidget::mapToClient |
( |
const QPointF & |
pos | ) |
const |
Maps point from item coordinate to client scene coordinate system.
- Parameters
-
- Returns
- point in client scene coordinate system
void DiagramProxyWidget::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedvirtual |
void DiagramProxyWidget::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedvirtual |
void DiagramProxyWidget::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedvirtual |
void DiagramProxyWidget::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedvirtual |
void DiagramProxyWidget::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = 0 |
|
) |
| |
Paint linked diagram into current widget
- Parameters
-
painter | painter to paint on |
option | The option parameter provides style options for the item, such as its state, exposed area and its level-of-detail hints |
widget | The widget argument is optional. If provided, it points to the widget that is being painted on; otherwise, it is 0 |
void DiagramProxyWidget::saveToXMI |
( |
QXmlStreamWriter & |
writer | ) |
|
|
protected |
const QRectF & DiagramProxyWidget::sceneRect |
( |
| ) |
const |
Return scene area of the linked diagram.
- Returns
- scene rectangle
void DiagramProxyWidget::setClientRect |
( |
const QRectF & |
rect | ) |
|
Set the area in which the linked diagram is displayed
- Parameters
-
bool DiagramProxyWidget::setDiagramLink |
( |
const Uml::ID::Type & |
id | ) |
|
void DiagramProxyWidget::setIconRect |
( |
const QRectF & |
iconRect | ) |
|
Setter for icon rectangle
- Parameters
-
void DiagramProxyWidget::setShowLinkedDiagram |
( |
bool |
showLinkedDiagram | ) |
|
Set state for 'show linked diagram' attribute
- Parameters
-
showLinkedDiagram | state to set |
void DiagramProxyWidget::setupEvent |
( |
QGraphicsSceneMouseEvent & |
e, |
|
|
const QGraphicsSceneMouseEvent * |
event, |
|
|
const QPointF & |
pos |
|
) |
| const |
|
protected |
Set up synthetic graphics scene event
- Parameters
-
e | event to setup |
event | event source |
pos | position in item coordinates |
void DiagramProxyWidget::setupEvent |
( |
QGraphicsSceneContextMenuEvent & |
e, |
|
|
const QGraphicsSceneContextMenuEvent * |
event, |
|
|
const QPointF & |
pos |
|
) |
| const |
|
protected |
Set up synthetic graphics scene context menu event
- Parameters
-
e | event to setup |
event | event source |
pos | position in item coordinates |
bool DiagramProxyWidget::showLinkedDiagram |
( |
| ) |
const |
Return state of 'show linked diagram' attribute
- Returns
- state
void DiagramProxyWidget::slotMenuSelection |
( |
QAction * |
action | ) |
|
|
protected |
Captures any popup menu signals for menus it created.
If the provided action is not handled, it will be forwarded to the contained widget.
- Parameters
-
qreal DiagramProxyWidget::m_borderWidth |
|
private |
QRectF DiagramProxyWidget::m_clientRect |
|
private |
widget area for embedded diagram
QRectF DiagramProxyWidget::m_iconRect |
|
private |
widget area for diagram icon
QPointer<UMLScene> DiagramProxyWidget::m_linkedDiagram |
|
private |
pointer to linked diagram
QRectF DiagramProxyWidget::m_sceneRect |
|
private |
scene rectangle used for internal calculations
bool DiagramProxyWidget::m_showLinkedDiagram |
|
private |
The documentation for this class was generated from the following files: