Skip to content

Commit

Permalink
Undo for shapes rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Oct 14, 2015
1 parent b037ac0 commit eb8a4c3
Show file tree
Hide file tree
Showing 19 changed files with 185 additions and 232 deletions.
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/BitmapAnnotation.cpp
Expand Up @@ -183,5 +183,4 @@ void BitmapAnnotation::duplicate()
pBitmapAnnotation->setCornerItemsPassive();
pBitmapAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/EllipseAnnotation.cpp
Expand Up @@ -216,5 +216,4 @@ void EllipseAnnotation::duplicate()
pEllipseAnnotation->setCornerItemsPassive();
pEllipseAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}
6 changes: 1 addition & 5 deletions OMEdit/OMEditGUI/Annotations/LineAnnotation.cpp
Expand Up @@ -677,7 +677,7 @@ void LineAnnotation::handleComponentRotation()
* \brief LineAnnotation::updateConnectionAnnotation
* Updates the connection annotation.
*/
void LineAnnotation::updateConnectionAnnotation(bool updateModelicaText)
void LineAnnotation::updateConnectionAnnotation()
{
if (mpGraphicsView->getModelWidget()->getLibraryTreeItem()->getLibraryType()== LibraryTreeItem::TLM) {
TLMEditor *pTLMEditor = dynamic_cast<TLMEditor*>(mpGraphicsView->getModelWidget()->getEditor());
Expand All @@ -690,9 +690,6 @@ void LineAnnotation::updateConnectionAnnotation(bool updateModelicaText)
OMCProxy *pOMCProxy = mpGraphicsView->getModelWidget()->getModelWidgetContainer()->getMainWindow()->getOMCProxy();
pOMCProxy->updateConnection(getStartComponentName(), getEndComponentName(),
mpGraphicsView->getModelWidget()->getLibraryTreeItem()->getNameStructure(), annotationString);
if (updateModelicaText) {
mpGraphicsView->getModelWidget()->updateModelicaText();
}
}
// make the model modified
mpGraphicsView->getModelWidget()->setModelModified();
Expand Down Expand Up @@ -721,7 +718,6 @@ void LineAnnotation::duplicate()
pLineAnnotation->setCornerItemsPassive();
pLineAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}

ConnectionArray::ConnectionArray(GraphicsView *pGraphicsView, LineAnnotation *pConnectionLineAnnotation, QWidget *pParent)
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Annotations/LineAnnotation.h
Expand Up @@ -103,7 +103,7 @@ class LineAnnotation : public ShapeAnnotation
public slots:
void handleComponentMoved();
void handleComponentRotation();
void updateConnectionAnnotation(bool updateModelicaText = true);
void updateConnectionAnnotation();
void duplicate();
};

Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/PolygonAnnotation.cpp
Expand Up @@ -272,5 +272,4 @@ void PolygonAnnotation::duplicate()
pPolygonAnnotation->setCornerItemsPassive();
pPolygonAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/RectangleAnnotation.cpp
Expand Up @@ -201,5 +201,4 @@ void RectangleAnnotation::duplicate()
pRectangleAnnotation->setCornerItemsPassive();
pRectangleAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}
151 changes: 27 additions & 124 deletions OMEdit/OMEditGUI/Annotations/ShapeAnnotation.cpp
Expand Up @@ -39,6 +39,7 @@
#include "ShapeAnnotation.h"
#include "ModelWidgetContainer.h"
#include "ShapePropertiesDialog.h"
#include "Commands.h"

/*!
* \brief GraphicItem::setDefaults
Expand Down Expand Up @@ -1098,70 +1099,17 @@ QImage ShapeAnnotation::getImage()
}

/*!
Rotates the shape clockwise.
\sa rotateAntiClockwise(),
applyRotation(),
rotateClockwiseKeyPress(),
rotateAntiClockwiseKeyPress(),
rotateClockwiseMouseRightClick(),
rotateAntiClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateClockwise()
{
qreal oldRotation = StringHandler::getNormalizedAngle(mTransformation.getRotateAngle());
qreal rotateIncrement = -90;
qreal angle = 0;
if (oldRotation == -270)
{
angle = 0;
}
else
{
angle = oldRotation + rotateIncrement;
}
applyRotation(angle);
}

/*!
Rotates the shape anti clockwise.
\sa rotateClockwise(),
applyRotation(),
rotateClockwiseKeyPress(),
rotateAntiClockwiseKeyPress(),
rotateClockwiseMouseRightClick(),
rotateAntiClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateAntiClockwise()
{
qreal oldRotation = StringHandler::getNormalizedAngle(mTransformation.getRotateAngle());
qreal rotateIncrement = 90;
qreal angle = 0;
if (oldRotation == 270)
{
angle = 0;
}
else
{
angle = oldRotation + rotateIncrement;
}
applyRotation(angle);
}

/*!
Applies the rotation on the shape and sets the shape transformation matrix accordingly.
\param angle - the rotation angle to apply.
\sa rotateClockwise(),
rotateAntiClockwise(),
rotateClockwiseKeyPress(),
rotateAntiClockwiseKeyPress(),
rotateClockwiseMouseRightClick(),
rotateAntiClockwiseMouseRightClick()
*/
* \brief ShapeAnnotation::applyRotation
* Applies the rotation on the shape and sets the shape transformation matrix accordingly.
* \param angle - the rotation angle to apply.
* \sa rotateClockwise() and rotateAntiClockwise()
*/
void ShapeAnnotation::applyRotation(qreal angle)
{
mTransformation.setRotateAngle(angle);
setTransform(mTransformation.getTransformationMatrix());
mRotation = angle;
mpGraphicsView->setAddClassAnnotationNeeded(true);
}

/*!
Expand Down Expand Up @@ -1504,67 +1452,23 @@ void ShapeAnnotation::sendBackward()
}

/*!
Slot activated when ctrl+r is pressed while selecting the shape.
\sa rotateClockwise(),
rotateAntiClockwise(),
applyRotation(),
rotateAntiClockwiseKeyPress(),
rotateClockwiseMouseRightClick(),
rotateAntiClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateClockwiseKeyPress()
{
rotateClockwise();
}

/*!
Slot activated when ctrl+shift+r is pressed while selecting the shape.
\sa rotateClockwise(),
rotateAntiClockwise(),
applyRotation(),
rotateClockwiseKeyPress(),
rotateClockwiseMouseRightClick(),
rotateAntiClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateAntiClockwiseKeyPress()
{
rotateAntiClockwise();
}

/*!
Slot activated when Rotate Clockwise option is choosen from context menu of the shape.\n
Emits the GraphicsView::updateClassAnnotation() SIGNAL.\n
Since GraphicsView::addClassAnnotation() sets the GraphicsView::mCanAddClassAnnotation flag to false we must set it to true again.
\sa rotateClockwise(),
rotateAntiClockwise(),
applyRotation(),
rotateClockwiseKeyPress(),
rotateAntiClockwiseKeyPress(),
rotateAntiClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateClockwiseMouseRightClick()
* \brief ShapeAnnotation::rotateClockwise
* Rotates the shape clockwise.
* \sa rotateAntiClockwise() and applyRotation()
*/
void ShapeAnnotation::rotateClockwise()
{
rotateClockwise();
emit updateClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
mpGraphicsView->getModelWidget()->getUndoStack()->push(new RotateShapeCommand(this, true));
}

/*!
Slot activated when Rotate Anti Clockwise option is choosen from context menu of the shape.\n
Emits the GraphicsView::updateClassAnnotation() SIGNAL.\n
Since GraphicsView::addClassAnnotation() sets the GraphicsView::mCanAddClassAnnotation flag to false we must set it to true again.
\sa rotateClockwise(),
rotateAntiClockwise(),
applyRotation(),
rotateClockwiseKeyPress(),
rotateAntiClockwiseKeyPress(),
rotateClockwiseMouseRightClick()
*/
void ShapeAnnotation::rotateAntiClockwiseMouseRightClick()
* \brief ShapeAnnotation::rotateAntiClockwise
* Rotates the shape anti clockwise.
\sa rotateClockwise() and applyRotation()
*/
void ShapeAnnotation::rotateAntiClockwise()
{
rotateAntiClockwise();
emit updateClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
mpGraphicsView->getModelWidget()->getUndoStack()->push(new RotateShapeCommand(this, false));
}

/*!
Expand Down Expand Up @@ -2026,12 +1930,12 @@ QVariant ShapeAnnotation::itemChange(GraphicsItemChange change, const QVariant &
connect(mpGraphicsView->getBringForwardAction(), SIGNAL(triggered()), this, SLOT(bringForward()), Qt::UniqueConnection);
connect(mpGraphicsView->getSendToBackAction(), SIGNAL(triggered()), this, SLOT(sendToBack()), Qt::UniqueConnection);
connect(mpGraphicsView->getSendBackwardAction(), SIGNAL(triggered()), this, SLOT(sendBackward()), Qt::UniqueConnection);
connect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateClockwiseMouseRightClick()), Qt::UniqueConnection);
connect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateAntiClockwiseMouseRightClick()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(mouseRotateClockwise()), this, SLOT(rotateClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(mouseRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressDuplicate()), this, SLOT(duplicate()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwiseKeyPress()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwiseKeyPress()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressUp()), this, SLOT(moveUp()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressShiftUp()), this, SLOT(moveShiftUp()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressCtrlUp()), this, SLOT(moveCtrlUp()), Qt::UniqueConnection);
Expand All @@ -2044,7 +1948,6 @@ QVariant ShapeAnnotation::itemChange(GraphicsItemChange change, const QVariant &
connect(mpGraphicsView, SIGNAL(keyPressRight()), this, SLOT(moveRight()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressShiftRight()), this, SLOT(moveShiftRight()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressCtrlRight()), this, SLOT(moveCtrlRight()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyRelease()), this, SIGNAL(updateClassAnnotation()), Qt::UniqueConnection);
}
}
} else if (!mIsCornerItemClicked) {
Expand All @@ -2062,12 +1965,12 @@ QVariant ShapeAnnotation::itemChange(GraphicsItemChange change, const QVariant &
disconnect(mpGraphicsView->getBringForwardAction(), SIGNAL(triggered()), this, SLOT(bringForward()));
disconnect(mpGraphicsView->getSendToBackAction(), SIGNAL(triggered()), this, SLOT(sendToBack()));
disconnect(mpGraphicsView->getSendBackwardAction(), SIGNAL(triggered()), this, SLOT(sendBackward()));
disconnect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateClockwiseMouseRightClick()));
disconnect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateAntiClockwiseMouseRightClick()));
disconnect(mpGraphicsView, SIGNAL(mouseRotateClockwise()), this, SLOT(rotateClockwise()));
disconnect(mpGraphicsView, SIGNAL(mouseRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()));
disconnect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe()));
disconnect(mpGraphicsView, SIGNAL(keyPressDuplicate()), this, SLOT(duplicate()));
disconnect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwiseKeyPress()));
disconnect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwiseKeyPress()));
disconnect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwise()));
disconnect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()));
disconnect(mpGraphicsView, SIGNAL(keyPressUp()), this, SLOT(moveUp()));
disconnect(mpGraphicsView, SIGNAL(keyPressShiftUp()), this, SLOT(moveShiftUp()));
disconnect(mpGraphicsView, SIGNAL(keyPressCtrlUp()), this, SLOT(moveCtrlUp()));
Expand Down
8 changes: 2 additions & 6 deletions OMEdit/OMEditGUI/Annotations/ShapeAnnotation.h
Expand Up @@ -176,8 +176,6 @@ class ShapeAnnotation : public QObject, public QGraphicsItem, public GraphicItem
QString getImageSource();
void setImage(QImage image);
QImage getImage();
void rotateClockwise();
void rotateAntiClockwise();
void applyRotation(qreal angle);
void adjustPointsWithOrigin();
void adjustExtentsWithOrigin();
Expand Down Expand Up @@ -206,10 +204,8 @@ public slots:
void bringForward();
void sendToBack();
void sendBackward();
void rotateClockwiseKeyPress();
void rotateAntiClockwiseKeyPress();
void rotateClockwiseMouseRightClick();
void rotateAntiClockwiseMouseRightClick();
void rotateClockwise();
void rotateAntiClockwise();
void moveUp();
void moveShiftUp();
void moveCtrlUp();
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/ShapePropertiesDialog.cpp
Expand Up @@ -852,7 +852,6 @@ bool ShapePropertiesDialog::applyShapeProperties()
mpShapeAnnotation->drawCornerItems();
mpShapeAnnotation->update();
mpShapeAnnotation->getGraphicsView()->addClassAnnotation();
mpShapeAnnotation->getGraphicsView()->setCanAddClassAnnotation(true);
}
return true;
}
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Annotations/TextAnnotation.cpp
Expand Up @@ -457,5 +457,4 @@ void TextAnnotation::duplicate()
pTextAnnotation->setCornerItemsPassive();
pTextAnnotation->update();
mpGraphicsView->addClassAnnotation();
mpGraphicsView->setCanAddClassAnnotation(true);
}
20 changes: 6 additions & 14 deletions OMEdit/OMEditGUI/Component/Component.cpp
Expand Up @@ -728,7 +728,6 @@ void Component::applyRotation(qreal angle)
mTransformation.setRotateAngle(angle);
setTransform(mTransformation.getTransformationMatrix());
emit rotationChange();
emit notifyTransformHasChanged(false);
emit transformHasChanged();
}

Expand All @@ -738,7 +737,7 @@ void Component::addConnectionDetails(LineAnnotation *pConnectorLineAnnotation)
connect(this, SIGNAL(transformChange()), pConnectorLineAnnotation, SLOT(handleComponentMoved()));
connect(this, SIGNAL(rotationChange()), pConnectorLineAnnotation, SLOT(handleComponentRotation()));
if (!pConnectorLineAnnotation->isInheritedShape()) {
connect(this, SIGNAL(notifyTransformHasChanged(bool)), pConnectorLineAnnotation, SLOT(updateConnectionAnnotation(bool)));
connect(this, SIGNAL(transformHasChanged()), pConnectorLineAnnotation, SLOT(updateConnectionAnnotation()));
}
}

Expand All @@ -747,7 +746,7 @@ void Component::removeConnectionDetails(LineAnnotation *pConnectorLineAnnotation
disconnect(this, SIGNAL(transformChange()), pConnectorLineAnnotation, SLOT(handleComponentMoved()));
disconnect(this, SIGNAL(rotationChange()), pConnectorLineAnnotation, SLOT(handleComponentRotation()));
if (!pConnectorLineAnnotation->isInheritedShape()) {
disconnect(this, SIGNAL(notifyTransformHasChanged(bool)), pConnectorLineAnnotation, SLOT(updateConnectionAnnotation(bool)));
disconnect(this, SIGNAL(transformHasChanged()), pConnectorLineAnnotation, SLOT(updateConnectionAnnotation()));
}
}

Expand Down Expand Up @@ -976,7 +975,6 @@ void Component::updatePlacementAnnotation()
OMCProxy *pOMCProxy = mpGraphicsView->getModelWidget()->getModelWidgetContainer()->getMainWindow()->getOMCProxy();
pOMCProxy->updateComponent(mpComponentInfo->getName(), mpComponentInfo->getClassName(),
mpGraphicsView->getModelWidget()->getLibraryTreeItem()->getNameStructure(), getPlacementAnnotation());
mpGraphicsView->getModelWidget()->updateModelicaText();
}
// set the model modified
mpGraphicsView->getModelWidget()->setModelModified();
Expand Down Expand Up @@ -1680,10 +1678,8 @@ QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
if (!mpGraphicsView->getModelWidget()->getLibraryTreeItem()->isSystemLibrary() && !isInheritedComponent()) {
connect(mpGraphicsView, SIGNAL(mouseDelete()), this, SLOT(deleteMe()), Qt::UniqueConnection);
connect(mpGraphicsView->getDuplicateAction(), SIGNAL(triggered()), this, SLOT(duplicate()), Qt::UniqueConnection);
connect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateClockwise()), Qt::UniqueConnection);
//connect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SIGNAL(transformHasChanged()), Qt::UniqueConnection);
connect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateAntiClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SIGNAL(transformHasChanged()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(mouseRotateClockwise()), this, SLOT(rotateClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(mouseRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()), Qt::UniqueConnection);
connect(mpGraphicsView->getFlipHorizontalAction(), SIGNAL(triggered()), this, SLOT(flipHorizontal()), Qt::UniqueConnection);
connect(mpGraphicsView->getFlipVerticalAction(), SIGNAL(triggered()), this, SLOT(flipVertical()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe()), Qt::UniqueConnection);
Expand All @@ -1702,7 +1698,6 @@ QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
connect(mpGraphicsView, SIGNAL(keyPressRight()), this, SLOT(moveRight()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressShiftRight()), this, SLOT(moveShiftRight()), Qt::UniqueConnection);
connect(mpGraphicsView, SIGNAL(keyPressCtrlRight()), this, SLOT(moveCtrlRight()), Qt::UniqueConnection);
//connect(mpGraphicsView, SIGNAL(keyRelease()), this, SIGNAL(transformHasChanged()), Qt::UniqueConnection);
}
} else {
if (!mpBottomLeftResizerItem->isPressed() && !mpTopLeftResizerItem->isPressed() &&
Expand All @@ -1718,10 +1713,8 @@ QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
if (!mpGraphicsView->getModelWidget()->getLibraryTreeItem()->isSystemLibrary() && !isInheritedComponent()) {
disconnect(mpGraphicsView, SIGNAL(mouseDelete()), this, SLOT(deleteMe()));
disconnect(mpGraphicsView->getDuplicateAction(), SIGNAL(triggered()), this, SLOT(duplicate()));
disconnect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateClockwise()));
disconnect(mpGraphicsView->getRotateClockwiseAction(), SIGNAL(triggered()), this, SIGNAL(transformHasChanged()));
disconnect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SLOT(rotateAntiClockwise()));
disconnect(mpGraphicsView->getRotateAntiClockwiseAction(), SIGNAL(triggered()), this, SIGNAL(transformHasChanged()));
disconnect(mpGraphicsView, SIGNAL(mouseRotateClockwise()), this, SLOT(rotateClockwise()));
disconnect(mpGraphicsView, SIGNAL(mouseRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()));
disconnect(mpGraphicsView->getFlipHorizontalAction(), SIGNAL(triggered()), this, SLOT(flipHorizontal()));
disconnect(mpGraphicsView->getFlipVerticalAction(), SIGNAL(triggered()), this, SLOT(flipVertical()));
disconnect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe()));
Expand All @@ -1740,7 +1733,6 @@ QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
disconnect(mpGraphicsView, SIGNAL(keyPressRight()), this, SLOT(moveRight()));
disconnect(mpGraphicsView, SIGNAL(keyPressShiftRight()), this, SLOT(moveShiftRight()));
disconnect(mpGraphicsView, SIGNAL(keyPressCtrlRight()), this, SLOT(moveCtrlRight()));
disconnect(mpGraphicsView, SIGNAL(keyRelease()), this, SIGNAL(transformHasChanged()));
}
}
} else if (change == QGraphicsItem::ItemPositionHasChanged) {
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Component/Component.h
Expand Up @@ -232,7 +232,6 @@ class Component : public QObject, public QGraphicsItem
void added();
void transformChange();
void transformHasChanged();
void notifyTransformHasChanged(bool updateModelicaText);
void displayTextChanged();
void rotationChange();
void deleted();
Expand Down
1 change: 0 additions & 1 deletion OMEdit/OMEditGUI/Component/CornerItem.cpp
Expand Up @@ -158,7 +158,6 @@ void CornerItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
if (!signalsBlocked()) {
emit cornerItemPositionChanged();
}
mpShapeAnnotation->getGraphicsView()->setCanAddClassAnnotation(true);
}
}
}
Expand Down

0 comments on commit eb8a4c3

Please sign in to comment.