Opened 8 years ago

Closed 8 years ago

#4256 closed enhancement (fixed)

Text size on input connectors and other MSL components

Reported by: ceraolo Owned by: adeas31
Priority: high Milestone: 1.12.0
Component: OMEdit Version:
Keywords: Cc:

Description

A long time ago I noticed that the text around some MSL components was shown very small in OM.
One of such cases was: Modelica.Blocks.Interfaces.RealInput

When I studied the situation I understood that in the considered cases in the text extent annotation we had x1=x2. For the example of Real Input it is:

Text(lineColor={0,0,127},extent={{-10.0,60.0},{-10.0,85.0}},textString="%name")}),

so here x1=x2=-10

I checked the Modelica Specification and found that nothing was said about this case, opened a ticket (#1636 on Modelica track) and received a satisfying answer (comment 8 on that ticket).

So it is now decided how to manage cases in which x1=x2, even though specification 3.4 is not delivered yet.
Since comment 8 specifies an addition to spec 3.3, that does not reverse anything existing,

I think it's good to start implementing it in OM already (as far as I can understand it should be an easy task).

This would bring the immediate benefit to have larger, and more readable, size of text non MSL components for which x1=x2.

Attachments (1)

OME.png (102.1 KB) - added by ceraolo 8 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by ceraolo

  • Summary changed from Text size on input connectors ond other MSL components to Text size on input connectors and other MSL components

comment:2 Changed 8 years ago by ceraolo

Just to show wha I men I enclose OME.png.
If this ticket is accepted, text on input and output connectors would be the same size of gains'.
If it is not, connectors' texts remain as they are now: input's too small, output's so small that cannot be read.

Last edited 8 years ago by ceraolo (previous) (diff)

Changed 8 years ago by ceraolo

comment:3 Changed 8 years ago by anonymous

According to comment 15 in #1636 on the Modelica track, now the new interpretation of text having x1=x2 is implemented.

comment:4 Changed 8 years ago by adeas31

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 60127a8/OMEdit.

Note: See TracTickets for help on using tickets.