|
|
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * *************************************************************************
| FloatingText (UMLView * view, UMLWidgetData *pData)
| FloatingText |
Constructs a FloatingText instance.
Parameters:
| view | The parent of this FloatingText. |
| pData | The CFloatingText to represent. |
| FloatingText (UMLView * view, Text_Role role, QString text = "")
| FloatingText |
Constructs a FloatingText instance.
Parameters:
| view | The parent of this FloatingText. |
| role | The role this FloatingText will take up. |
| text | The text to display. |
| FloatingText (UMLView * view)
| FloatingText |
Constructs a FloatingText instance.
Parameters:
| view | The parent of this FloatingText. |
| ~FloatingText ()
| ~FloatingText |
Standard deconstructor.
| void setLinePos (int x, int y)
| setLinePos |
Called to set the position of the FloatingText.
Parameters:
| x | Vertical co-ordinate of the point. |
| y | Horizontal co-ordinate of the point. |
| void setText (QString t)
| setText |
Set the text to display.
Parameters:
| t | The text to display. |
| void setSeqNum (QString sn)
| setSeqNum |
Set the sequence number to display.
Parameters:
| sn | The sequence number to display. |
| QString getSeqNum ()
| getSeqNum |
Return the sequence number.
Returns: The sequence number.
| void setOperation (QString op)
| setOperation |
Set the operation to display.
Parameters:
| op | The operation to display. |
| QString getOperation ()
| getOperation |
Return the operation that is displayed.
Returns: The operation that is displayed.
| QString getText ()
| getText |
Use to get the text currently displayed by the widget.
Returns: Returns the text currently being displayed by the widget.
| void startMenu (AssociationWidget * a, QPoint p)
| startMenu |
If this object is associated with a Association object then this method will be called by that association when it thinks this object has been right clicked on.
Parameters:
| p | The point at which the right button was clicked. |
| void init ()
| init |
Initializes key variables of the class.
Reimplemented from UMLWidget.
| void changeTextDlg ()
| changeTextDlg |
Displays a dialog box to change the text.
| void setMessage (MessageWidget * m)
| setMessage |
Sets the message to the MessageWidget that this class may represent.
Parameters:
| m | The MessageWidget that may be represented. |
| MessageWidget * getMessage ()
| getMessage |
Returns the MessageWidget this floating text is related to.
Returns: Returns the MessageWidget this floating text is related to.
| void mouseDoubleClickEvent (QMouseEvent * )
| mouseDoubleClickEvent |
Overrides a method. Used to pickup double clicks.
Reimplemented from UMLWidget.
| void setAssoc (AssociationWidget * a)
| setAssoc |
Sets the assoc to the Association to represent.
Parameters:
| a | The Association to represent. |
| bool isText ()
| isText |
Returns wether this is a line of text. Used for transparency in printing.
Returns: Returns wether this is a line of text.
Reimplemented from UMLWidget.
| AssociationWidget * getAssoc ()
| getAssoc |
Returns the Association this object is related to.
Returns: Returns the Association this object is related to.
| bool Activate ( IDChangeLog* ChangeLog = 0 )
| Activate |
[virtual]
Activate the FloatingText after the serialized data has been loaded
Reimplemented from UMLWidget.
| void SynchronizeData ()
| SynchronizeData |
[virtual]
Synchronizes the Widget's m_pData member with its display properties, for example: the X and Y positions of the widget, etc
Reimplemented from UMLWidget.
| void SetRole (Text_Role Role)
| SetRole |
Sets the role type of this FloatingText
| Uml::Text_Role getRole ()
| getRole |
Return the role of the text widget
| bool isTextValid (QString text)
| isTextValid |
[static]
| void calculateSize ()
| calculateSize |
Calculates the size of the widget.
Reimplemented from UMLWidget.
| void draw (QPainter & p, int offsetX, int offsetY)
| draw |
Overrides defalt method
Reimplemented from UMLWidget.
| void setSelected (bool _select)
| setSelected |
Sets the state of whether the widget is selected.
Parameters:
| _select | The state of whether the widget is selected. |
Reimplemented from UMLWidget.
| void slotMenuSelection (int sel)
| slotMenuSelection |
[slot]
Called when a menu selection has been made. This method is public due to called by MessageWidget when this is text for a MessageWidget.
Parameters:
| sel | The selection that has been made. |
Reimplemented from UMLWidget.
| Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54. |