To: discussions about usage and development of dia <dia-list gnome org>
Subject: Re: Objects properties - Python console
Date: Tue, 15 Feb 2005 11:40:50 -0600
Ooh, I will chime in here.
Before I have thought of wanting a "Show Attributes" button in the
Properties dialog.
I use ext_attributes in my custom shapes as well as an extended
circuit shape set. This would be handy but would require then text
alignment properties as well?
The text would be something like: "id=VT2; type=12FK6" or "id=R3;
ohms=22; power=...", etc.
If this seams reasonable, I will submit a feature request. Otherwise,
if this is trivial, where should I start looking in the c to make
changes? and I will try to contribute a patch.
Thanks,
-Jeff
On Tue, 15 Feb 2005 20:30:41 +0100 (CET), Lars Clausen <lars raeder dk> wrote:
> Daniel de Almeida sagde:
> > Lars Clausen wrote:
> >
> >> The UML properties are currently hardcoded in C in a *very* hacky way
> >> that
> >> should certainly not be emulated. I don't think the Python plugin can
> >> handle adding similar things. Which exact properties are you looking
> >> for?
> >
> >
> > I have to use Dia for an electronical project.
> > I'd like to create new shapes with specific properties.
> > For example, I'd like to set in the properties of an adder how many bits
> > the
> > adder will manipulate.
> > So I'm looking for the best way to create a dialog-properties where I
> > could set
> > some basic information.
> > My first idea was to use python plugin (that's what my professor said) to
> > create
> > new properties. But if it's possible to implement this in C maybe it would
> > be
> > better.
> > So if someone has some information to help... I'm quite blocked for the
> > moment
>
> For such simple properties, the shape format has the ability to allow
> extra attributes using the ext_attributes tag. See the Circuit -
> hresistor shape for an example.
>
> -Lars
> _______________________________________________
> Dia-list mailing list
> Dia-list gnome org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.gnome.org/projects/dia/faq.html
> Main page at http://www.gnome.org/projects/dia
>
>