Opened 8 years ago

Closed 8 years ago

#4320 closed enhancement (fixed)

OMEdit: Follow connector transformation from Diagram View to Icon View

Reported by: Jan Kokert Owned by: Adeel Asghar
Priority: normal Milestone: 1.12.0
Component: OMEdit Version:
Keywords: Connector transformation update Cc:

Description

When we place a connector (e.g. a RealInput) in the Diagram View and move it and rotate it a bit (and do nothing in the Icon View!) then the display in the Icon View should follow the transformation carried out in the Diagram View. This is convenient and default behavior in Dymola.

If afterwards one moves the connector in the Icon View, this relation is disabled.

I have no clue how this is realized in Dymola. I guess they check if the transformations of both Views are equal and keep the tracking procedure enabled until they differ.

Change History (11)

comment:1 by Jan Kokert, 8 years ago

Type: defectenhancement

comment:2 by Adeel Asghar, 8 years ago

Milestone: Future1.12.0
Resolution: fixed
Status: newclosed

Done in 6fbf5db/OMEdit.

comment:3 by Adeel Asghar, 8 years ago

The connector follow from diagram to icon view and vice versa as long as they have the same transformation.

comment:4 by Jan Kokert, 8 years ago

I like the idea of overloading the == operator. That's a very neat solution!

comment:5 by Jan Kokert, 8 years ago

Resolution: fixed
Status: closedreopened

comment:6 by Jan Kokert, 8 years ago

The problem with the current implementation is, that it is (graphically) not possible to set a connector in the Diagram View on a different location than in the Icon View.
And this can be actually desired by the user.
Example:
Shrink size to 50% of a connector or a bus in Diagram View - The size in the Icon View should be maintained.

So I recommend to just follow changes from Icon View to Diagram View (as in Dymola) and not vice versa.

comment:7 by Adeel Asghar, 8 years ago

Resolution: fixed
Status: reopenedclosed

Done in 4e66e43/OMEdit.

comment:8 by Jan Kokert, 8 years ago

So I recommend to just follow changes from Icon View to Diagram View (as in Dymola) and not vice versa.

I'm very sorry to tell you, but my last comment was incorrect, although I gave a half-reasonable explanation.

The correct use case is the following:
Users will work in the Diagram view, add submodels and connectors and arrange them nicely. At that stage the Icon is not so important, thus transformations are passed from Diagram View to Icon View (as the ticket name says and also how it is implemented in Dymola).

In the next step, users will cope with the icon - there it can happen that connectors (e.g. a bus) are too little. Furthermore, connectors may be too close to each other. Users will then scale and move the connectors in the IconView. But of course, they don't want that the diagram view changed.

So... Could you please flip the direction?

comment:9 by Jan Kokert, 8 years ago

Resolution: fixed
Status: closedreopened

comment:10 by Adeel Asghar, 8 years ago

:)

comment:11 by Adeel Asghar, 8 years ago

Resolution: fixed
Status: reopenedclosed

Done in 7a6ded6/OMEdit.

Note: See TracTickets for help on using tickets.