umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <signalwidget.h>
Public Types | |
enum | SignalType { Send = 0 , Accept , Time } |
Enumeration that codes the different types of signal. More... | |
![]() | |
enum | FontType { FT_NORMAL = 0 , FT_BOLD = 1 , FT_ITALIC = 2 , FT_UNDERLINE = 3 , FT_BOLD_ITALIC = 4 , FT_BOLD_UNDERLINE = 5 , FT_ITALIC_UNDERLINE = 6 , FT_BOLD_ITALIC_UNDERLINE = 7 , FT_INVALID = 8 } |
enum | AddWidgetOption { NoOption = 0 , SetupSize = 1 , SwitchDirection = 2 , ShowProperties = 4 , Default = SetupSize | ShowProperties } |
![]() | |
enum | WidgetType { wt_Min = 299 , wt_UMLWidget , wt_Actor , wt_UseCase , wt_Class , wt_Interface , wt_Datatype , wt_Enum , wt_Entity , wt_Package , wt_Object , wt_Note , wt_Box , wt_Message , wt_Text , wt_State , wt_Activity , wt_Component , wt_Artifact , wt_Node , wt_Association , wt_ForkJoin , wt_Precondition , wt_CombinedFragment , wt_FloatingDashLine , wt_Signal , wt_Pin , wt_ObjectNode , wt_Region , wt_Category , wt_Port , wt_Instance , wt_Max } |
Public Slots | |
virtual void | slotMenuSelection (QAction *action) |
![]() | |
virtual void | updateWidget () |
virtual void | slotMenuSelection (QAction *action) |
virtual void | slotWidgetMoved (Uml::ID::Type id) |
virtual void | slotFillColorChanged (Uml::ID::Type viewID) |
virtual void | slotLineColorChanged (Uml::ID::Type viewID) |
virtual void | slotTextColorChanged (Uml::ID::Type viewID) |
virtual void | slotLineWidthChanged (Uml::ID::Type viewID) |
void | slotSnapToGrid () |
![]() | |
virtual void | slotMenuSelection (QAction *trigger) |
Protected Slots | |
void | slotTextDestroyed () |
Protected Attributes | |
int | m_oldX |
int | m_oldY |
FloatingTextWidget * | m_pName |
SignalType | m_signalType |
Type of signal. | |
![]() | |
QString | m_instanceName |
instance name (used if on a deployment diagram) | |
bool | m_isInstance |
holds whether this widget is a component instance (i.e. on a deployment diagram) | |
Uml::ShowStereoType::Enum | m_showStereotype |
if and how the stereotype should be displayed | |
bool | m_startMove |
QPointF | m_startMovePostion |
QSizeF | m_startResizeSize |
int | m_nPosX |
UMLDoc * | m_doc |
shortcut for UMLApp::app()->document() | |
bool | m_resizable |
QFontMetrics * | m_pFontMetrics [FT_INVALID] |
QSizeF | m_minimumSize |
QSizeF | m_maximumSize |
bool | m_activated |
true if the activate function has been called for this class instance | |
bool | m_ignoreSnapToGrid |
bool | m_ignoreSnapComponentSizeToGrid |
bool | m_fixedAspectRatio |
QString | m_oldStatusBarMsg |
The text in the status bar when the cursor was pressed. | |
QPointF | m_pressOffset |
QPointF | m_oldPos |
The X/Y position the widget had when the movement started. | |
qreal | m_oldW |
The width/height the widget had when the resize started. | |
qreal | m_oldH |
bool | m_shiftPressed |
If shift or control button were pressed in mouse press event. | |
bool | m_inMoveArea |
bool | m_inResizeArea |
bool | m_moved |
bool | m_resized |
![]() | |
UMLScene * | m_scene |
QPointer< UMLObject > | m_umlObject |
QString | m_Doc |
Only used if m_umlObject is not set. | |
QString | m_Text |
QRectF | m_rect |
Widget size. In this rectangle, the x and y coordinates are always 0. | |
Uml::ID::Type | m_nId |
Uml::ID::Type | m_nLocalID |
QColor | m_textColor |
Color of the text of the widget. Is saved to XMI. | |
QColor | m_lineColor |
Color of the lines of the widget. Is saved to XMI. | |
QColor | m_fillColor |
color of the background of the widget | |
QBrush | m_brush |
QFont | m_font |
uint | m_lineWidth |
Width of the lines of the widget. Is saved to XMI. | |
bool | m_useFillColor |
flag indicates if the UMLWidget uses the Diagram FillColour | |
bool | m_usesDiagramFillColor |
bool | m_usesDiagramLineColor |
bool | m_usesDiagramLineWidth |
bool | m_usesDiagramTextColor |
bool | m_usesDiagramUseFillColor |
bool | m_autoResize |
bool | m_changesShape |
The widget changes its shape when the number of connections or their positions are changed. | |
![]() | |
bool | m_calledFromItemChange {false} |
Additional Inherited Members | |
![]() | |
void | sigWidgetMoved (Uml::ID::Type id) |
![]() | |
static QString | toString (WidgetType wt) |
static QString | toI18nString (WidgetType wt) |
static Icon_Utils::IconType | toIcon (WidgetType wt) |
static bool | widgetHasUMLObject (WidgetBase::WidgetType type) |
![]() | |
static const QSizeF | DefaultMinimumSize |
static const QSizeF | DefaultMaximumSize |
static const int | defaultMargin = 5 |
static const int | selectionMarkerSize = 4 |
static const int | resizeMarkerLineCount = 3 |
Represents a Send signal, Accept signal or Time event on an Activity diagram.
|
explicit |
Creates a Signal widget.
scene | The parent of the widget. |
signalType | The type of Signal. |
id | The ID to assign (-1 will prompt a new ID.) |
|
virtual |
Destructor.
|
virtual |
Loads a "signalwidget" XMI element.
Reimplemented from UMLWidget.
|
protectedvirtual |
|
virtual |
|
virtual |
Overrides the standard paint event.
Reimplemented from UMLWidget.
|
virtual |
Creates the "signalwidget" XMI element.
Reimplemented from UMLWidget.
Sets the name of the signal.
Reimplemented from WidgetBase.
void SignalWidget::setSignalType | ( | SignalType | signalType | ) |
Sets the type of Signal.
|
virtual |
SignalWidget::SignalType SignalWidget::signalType | ( | ) | const |
Returns the type of Signal.
QString SignalWidget::signalTypeStr | ( | ) | const |
Returns the type string of Signal.
|
protectedslot |
Called if user deletes text widget
|
protected |
Save the value of the widget to know how to move the floatingtext
|
protected |
|
protected |
This is a pointer to the Floating Text widget which displays the name of the signal widget.
|
protected |
Type of signal.