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

umbrello/umbrello

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ToolBarStateOneWidget Class Reference

#include <toolbarstateonewidget.h>

Inheritance diagram for ToolBarStateOneWidget:
Inheritance graph
[legend]

Public Slots

virtual void slotWidgetRemoved (UMLWidget *widget)
 
- Public Slots inherited from ToolBarState
virtual void slotAssociationRemoved (AssociationWidget *association)
 
virtual void slotWidgetRemoved (UMLWidget *widget)
 

Public Member Functions

 ToolBarStateOneWidget (UMLScene *umlScene)
 
virtual ~ToolBarStateOneWidget ()
 
virtual void cleanBeforeChange ()
 
virtual void mouseMove (QGraphicsSceneMouseEvent *ome)
 
- Public Member Functions inherited from ToolBarStatePool
virtual ~ToolBarStatePool ()
 
WorkToolBar::ToolBar_Buttons getButton () const
 
void setButton (const WorkToolBar::ToolBar_Buttons &button)
 
- Public Member Functions inherited from ToolBarState
virtual ~ToolBarState ()
 
virtual void mouseDoubleClick (QGraphicsSceneMouseEvent *ome)
 
virtual void mousePress (QGraphicsSceneMouseEvent *ome)
 
virtual void mouseRelease (QGraphicsSceneMouseEvent *ome)
 

Protected Member Functions

virtual void mouseReleaseEmpty ()
 
virtual void mouseReleaseWidget ()
 
virtual void setCurrentElement ()
 
void setWidget (UMLWidget *firstObject)
 
WidgetBase::WidgetType widgetType ()
 
- Protected Member Functions inherited from ToolBarStatePool
 ToolBarStatePool (UMLScene *umlScene)
 
- Protected Member Functions inherited from ToolBarState
 ToolBarState (UMLScene *umlScene)
 
AssociationWidget * associationAt (const QPointF &pos)
 
virtual void changeTool ()
 
virtual AssociationWidget * currentAssociation () const
 
virtual UMLWidget * currentWidget () const
 
FloatingDashLineWidget * floatingLineAt (const QPointF &pos)
 
MessageWidget * messageAt (const QPointF &pos)
 
virtual void mouseDoubleClickAssociation ()
 
virtual void mouseDoubleClickEmpty ()
 
virtual void mouseDoubleClickWidget ()
 
virtual void mouseMoveAssociation ()
 
virtual void mouseMoveEmpty ()
 
virtual void mouseMoveWidget ()
 
virtual void mousePressAssociation ()
 
virtual void mousePressEmpty ()
 
virtual void mousePressWidget ()
 
virtual void mouseReleaseAssociation ()
 
virtual void setCurrentAssociation (AssociationWidget *association)
 
virtual void setCurrentWidget (UMLWidget *widget)
 
void setMouseEvent (QGraphicsSceneMouseEvent *ome, const QEvent::Type &type)
 

Protected Attributes

UMLWidget * m_firstObject
 
bool m_isObjectWidgetLine
 
- Protected Attributes inherited from ToolBarState
QGraphicsSceneMouseEvent * m_pMouseEvent
 
UMLScene * m_pUMLScene
 

Detailed Description

Sequence tool to create components linked with one object in sequence diagram like precondition.

With sequence tool, one objects is selected clicking with left button on it

Definition at line 23 of file toolbarstateonewidget.h.

Constructor & Destructor Documentation

ToolBarStateOneWidget::ToolBarStateOneWidget ( UMLScene *  umlScene)
explicit

Creates a new ToolBarStateOneWidget.

Parameters
umlViewThe UMLView to use.

Definition at line 39 of file toolbarstateonewidget.cpp.

ToolBarStateOneWidget::~ToolBarStateOneWidget ( )
virtual

Destroys this ToolBarStateOneWidget.

Definition at line 49 of file toolbarstateonewidget.cpp.

Member Function Documentation

void ToolBarStateOneWidget::cleanBeforeChange ( )
virtual

Called when the current tool is changed to use another tool.

Executes base method and cleans the message.

Reimplemented from ToolBarState.

Definition at line 57 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::mouseMove ( QGraphicsSceneMouseEvent *  ome)
virtual

Called when a mouse event happened.

It executes the base method and then updates the position of the message line, if any.

Reimplemented from ToolBarState.

Definition at line 67 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::mouseReleaseEmpty ( )
protectedvirtual

Called when the release event happened on an empty space.

Cleans the message. Empty spaces are not only actual empty spaces, but also associations.

Reimplemented from ToolBarState.

Definition at line 156 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::mouseReleaseWidget ( )
protectedvirtual

Called when the release event happened on a widget.

If the button pressed isn't left button or the widget isn't an object widget, the message is cleaned. If the release event didn't happen on the line of an object and the first object wasn't selected, nothing is done. If the first object was already selected, a creation message is made. If the event happened on the line of an object, the first object or the second are set, depending on whether the first object was already set or not.

Reimplemented from ToolBarState.

Definition at line 118 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::setCurrentElement ( )
protectedvirtual

Selects only widgets, but no associations.

Overrides base class method. If the press event happened on the line of an object, the object is set as current widget. If the press event happened on a widget, the widget is set as current widget.

Reimplemented from ToolBarState.

Definition at line 90 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::setWidget ( UMLWidget *  firstObject)
protected

Sets the first object of the message using the specified object.

The temporal visual message is created and mouse tracking enabled, so mouse events will be delivered.

Parameters
firstObjectThe first object of the message.

Definition at line 167 of file toolbarstateonewidget.cpp.

void ToolBarStateOneWidget::slotWidgetRemoved ( UMLWidget *  widget)
virtualslot

A widget was removed from the UMLView.

If the widget removed was the current widget, the current widget is set to 0. Also, if it was the first object, the message is cleaned.

Definition at line 78 of file toolbarstateonewidget.cpp.

WidgetBase::WidgetType ToolBarStateOneWidget::widgetType ( )
protected

Returns the widget type of this tool.

Returns
The widget type of this tool.

Definition at line 196 of file toolbarstateonewidget.cpp.

Member Data Documentation

UMLWidget* ToolBarStateOneWidget::m_firstObject
protected

The first object in the message.

Definition at line 47 of file toolbarstateonewidget.h.

bool ToolBarStateOneWidget::m_isObjectWidgetLine
protected

If there is a current widget, it is true if the press event happened on the line of an object, or false if it happened on a normal UMLWidget.

Definition at line 53 of file toolbarstateonewidget.h.


The documentation for this class was generated from the following files:
  • toolbarstateonewidget.h
  • toolbarstateonewidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 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