Decimal precision in custom attributes

2012-12-18 Thread Wojciech Gołębiowski
Hi all

I've created several shapes. Each of them has few custom (extended) attributes 
of various types ( tag in .shape file). I realized that with 
Dia interface I'm not able to enter values for 'real' type attributes with 
precision higher than 2 decimal places (i.e. I want to enter 12.3456, but I'm 
only able to write 12.34). Actually I want to enter values like 2.345e-6.
Is there a way to change the precision for extended attributes controls? I see 
that in .dia file values are stored with much greater precision.

vugie
___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Suggestions

2012-12-18 Thread Michael Ross
Dr. Raymond,

If you have a penchant for circles (or any other default for a basic
drawing tool) - double click on the ellipse icon and a property box will
come up.   Set the aspect ratio to Circle and close it.  Now when call up
this function it will always produce a circle.  This may be described in
the manual, though if you ask on the mailing list you may get help (that is
how I learned about it).


You have to understand that sheets of shapes are created by users and
donated to the cause.   Likewise, additions such as a context menu function
are created by users as well - working within the system (there is one,
bugzilla, etc.).   You will have to make the case for it, and get the code
right by the standards of the leading participants.

If context menus had been a great need by many users, they would exist in
Dia.  However much you are dependent on them, that seems not to have been
matched by past Dia participants; that dependence is going to drive how
much energy you can put towards creating them or persuading others to do it
for you.

To engage in the persuasion, you might want to present examples in other
software, be specific how you envision it in Dia, and so on.  Keeping in
mind that everyone using Dia probably has learned Dia well, and made their
peace with its function or left the fold.   You will need to be pretty good
at the convincing, or do it yourself.

Also, this is a totally volunteer effort so be nice.  Just saying, so you
aren't surprised.

Welcome to open source software.

Good luck,

Mike.

On Mon, Dec 17, 2012 at 10:26 PM, Raymond Kennington <
raymon...@optusnet.com.au> wrote:

>  Correction:
>
> I would really like circles instead of ellipses that I have to change the
> shape of every time.
>
> Raymond
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>
>


-- 
Put this question to yourself: should I use everyone else to attain
happiness, or should I help others gain happiness?
*Dalai Lama *

To invent, you need a good imagination and a pile of junk.
Thomas A. 
Edison

A public-opinion poll is no substitute for thought.
*Warren Buffet*

Michael E. Ross
(919) 550-2430 Land
(919) 576-0824  Google Phone
(919) 631-1451 Cell
(919) 513-0418 Desk

michael.e.r...@gmail.com

___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Decimal precision in custom attributes

2012-12-18 Thread Hans Breuer

Hi Wojciech,
At 18.12.2012 11:45, Wojciech Gołębiowski wrote:

Hi all

I've created several shapes. Each of them has few custom (extended)
attributes of various types (  tag in .shape file). I
realized that with Dia interface I'm not able to enter values for 'real'
type attributes with precision higher than 2 decimal places (i.e. I want
to enter 12.3456, but I'm only able to write 12.34). Actually I want to
enter values like 2.345e-6. Is there a way to change the precision for
extended attributes controls? I see that in .dia file values are stored
with much greater precision.

The ext_attributes user interface is created with Dia's standard property 
system. The RealProperty - also used in non-custom objects - is indeed 
hardcoded to have two digits. See:

http://git.gnome.org/browse/dia/tree/lib/prop_geomtypes.c#n74

So the change you are requesting is requiring compilation.

The precision used for storing values in the diagram file is independent.

Hans

 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to
get along without it.-- Dilbert
___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia