/** * Move the object up on a sequence diagram. */ void ObjectWidget::tabUp() { int newY = y() - height(); if (newY < topMargin()) newY = topMargin(); setY(newY); adjustAssocs(x(), newY); }
/** * Calculates the size of the widget by calling * calculateDimensionsSynchronous(), * calculateDimensionsAsynchronous(), or * calculateDimensionsCreation() */ void MessageWidget::calculateDimensions() { if (m_sequenceMessageType == Uml::SequenceMessage::Synchronous) { calculateDimensionsSynchronous(); } else if (m_sequenceMessageType == Uml::SequenceMessage::Asynchronous) { calculateDimensionsAsynchronous(); } else if (m_sequenceMessageType == Uml::SequenceMessage::Creation) { calculateDimensionsCreation(); } else if (m_sequenceMessageType == Uml::SequenceMessage::Lost) { calculateDimensionsLost(); } else if (m_sequenceMessageType == Uml::SequenceMessage::Found) { calculateDimensionsFound(); } else { uWarning() << "Unknown message type"; } if (! UMLApp::app()->document()->loading()) { adjustAssocs(x(), y()); // adjust assoc lines } }
/** * This method set the name of the postText attribute */ void ActivityWidget::setPostconditionText(const QString& aPostText) { m_postconditionText = aPostText; updateGeometry(); adjustAssocs(x(), y()); }
/** * Move the object down on a sequence diagram. */ void ObjectWidget::tabDown() { int newY = y() + height(); setY(newY); adjustAssocs(x(), newY); }
void StateWidget::setName(const QString &strName) { m_Text = strName; updateComponentSize(); adjustAssocs( getX(), getY() ); }