achuanle / umlet

Automatically exported from code.google.com/p/umlet
0 stars 0 forks source link

Override global default #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After setting "fontsize=16" in global properties it would be nice to override 
single elements by specifying another fontsize, e.g.
"'  PANEL ATTRIBUTES ELEMENT
--
*fontsize=28*"

What version of the product are you using?
12.2

Original issue reported on code.google.com by NotDiffi...@googlemail.com on 10 Dec 2013 at 1:20

GoogleCodeExporter commented 9 years ago
This feature is already available for all improved elements (basically the 
elements in the "Default - improved main elements" palette or all elements 
which have a light blue background if they are selected)

I will set the status to WontFix, because we don't plan to implement the 
feature for the old elements for technical reasons (there is too much 
copy&paste code in them and we don't want to introduce bugs), but as time goes 
by we try to port all of the old elements to improved ones.

Original comment by AFDiaX on 10 Dec 2013 at 6:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
For me it does not work with those improved elements either.

First, it clicked on the background of the canvas and set properties to 
"fontsize=14".
As shown here: http://snag.gy/DfxqA.jpg

Next, I added the rectangle class from "Default - improved main elements" and 
added "fontsize=48" as property.
Shown here: http://snag.gy/pL6d2.jpg

Still the output is not fontsize 48.

Resulting XML code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="12.2">
  <help_text>fontsize=14</help_text>
  <zoom_level>10</zoom_level>
  <element>
    <id>UMLClass</id>
    <coordinates>
      <x>20</x>
      <y>20</y>
      <w>530</w>
      <h>120</h>
    </coordinates>
    <panel_attributes>fontsize=48

Class from "Default - improved main elements"

This should be fontsize 48.

</panel_attributes>
    <additional_attributes/>
  </element>
</diagram>

Original comment by notdiffi...@gmx.net on 11 Dec 2013 at 5:39

GoogleCodeExporter commented 9 years ago
Thanks for the clarification, this was indeed an error :)

I've fixed it in r805

Original comment by AFDiaX on 11 Dec 2013 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by AFDiaX on 3 May 2014 at 11:11