Changeset 68dfc58 in OpenModelica for OMEdit/OMEditGUI/ShapeAnnotation.cpp


Ignore:
Timestamp:
2011-03-06T04:24:22+01:00 (13 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
30eb505b
Parents:
b605a21
Message:
  • Changed the settings of all OM clients so that generatedfiles are created in a separate directories.
  • Few updates of OMEdit

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8115 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditGUI/ShapeAnnotation.cpp

    r58e39c4a r68dfc58  
    178178    this->setPos(this->pos().x(), this->mapFromScene(this->mapToScene(this->pos())).y()+1);
    179179    mpGraphicsView->scene()->update();
     180    emit updateShapeAnnotation();
    180181}
    181182
     
    188189    this->setPos(this->pos().x(), this->mapFromScene(this->mapToScene(this->pos())).y()-1);
    189190    mpGraphicsView->scene()->update();
     191    emit updateShapeAnnotation();
    190192}
    191193
     
    198200    this->setPos(this->mapFromScene(this->mapToScene(this->pos())).x()-1, this->pos().y());
    199201    mpGraphicsView->scene()->update();
     202    emit updateShapeAnnotation();
    200203}
    201204
     
    208211    this->setPos(this->mapFromScene(this->mapToScene(this->pos())).x()+1, this->pos().y());
    209212    mpGraphicsView->scene()->update();
     213    emit updateShapeAnnotation();
    210214}
    211215
     
    307311        {
    308312            setSelectionBoxActive();
     313            // we first need to disconnect just to make sure we don't make connections two times.
     314            /* since we dont do the disconnect when user click on corner item so selecting the item back can
     315               create two connections */
     316            disconnect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe()));
     317            disconnect(mpGraphicsView, SIGNAL(keyPressUp()), this, SLOT(moveUp()));
     318            disconnect(mpGraphicsView, SIGNAL(keyPressDown()), this, SLOT(moveDown()));
     319            disconnect(mpGraphicsView, SIGNAL(keyPressLeft()), this, SLOT(moveLeft()));
     320            disconnect(mpGraphicsView, SIGNAL(keyPressRight()), this, SLOT(moveRight()));
     321            disconnect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwise()));
     322            disconnect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwise()));
     323            // make the connections now
    309324            connect(mpGraphicsView, SIGNAL(keyPressDelete()), SLOT(deleteMe()));
    310325            connect(mpGraphicsView, SIGNAL(keyPressUp()), SLOT(moveUp()));
Note: See TracChangeset for help on using the changeset viewer.