Re: Double-headed arrows

2000-08-02 Thread David Thompson

> > Do you need this for all arrow types (some new mechanism needed) or just the
> > 'standard' -> arrow (just one new arrow type)?
> I would need it for only 2 arrowtypes, the hollow-triangle arrow ( --|>|>  )
> and it's filled counterpart. The 'standard' -> arrow isn't used for my
> application.
> ...
> Why is it harder for all but the 'standard' arrow?

I think the point is: It's not any harder, but having a double-headed
version for every type of arrow adds clutter to the user interface.
If lots of double-headed versions are needed, it would be better to
rewrite the draw_ functions to accept an additional parameter
indicating double-headedness rather than make a whole new 
draw__doubleheaded function. Of course, then you have to put
a button somewhere on the user interface to set the value of the
double-headedness parameter passed to the draw_ function.

David




Re: Double-headed arrows

2000-08-02 Thread Rogier Thissen

sdteffen wrote:

> Hi,
>
> > would it be possible to create double-headed arrows in Dia? (lines with 2
> > arrows instead of only one?? :
> > --->> instead of --->)
>
> Do you need this for all arrow types (some new mechanism needed) or just the
> 'standard' -> arrow (just one new arrow type)?
>
> Steffen
>

I would need it for only 2 arrowtypes, the hollow-triangle arrow ( --|>|>  )
and it's filled counterpart. The 'standard' -> arrow isn't used for my
application.
But one would already be an improvement?

Why is it harder for all but the 'standard' arrow?

thanks a lot,

Rogier Thissen






Re: Double-headed arrows

2000-08-01 Thread sdteffen

Hi,

> would it be possible to create double-headed arrows in Dia? (lines with 2
> arrows instead of only one?? :
> --->> instead of --->)

Do you need this for all arrow types (some new mechanism needed) or just the
'standard' -> arrow (just one new arrow type)?

Steffen

__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com




Re: Double-headed arrows

2000-08-01 Thread Lars Clausen

On Tue, 01 Aug 2000, Rogier Thissen wrote:

> Hi,
> 
> would it be possible to create double-headed arrows in Dia? (lines with 2
> arrows instead of only one?? :
> --->> instead of --->)
> 
> Until now I just made one line with an arrow and another very short line
> with the same arrow just behind the first, so it appears there is just 1
> line with 2 arrows. But this is very tedious when i move the objects.
> 
> Is it hard to implement???
> 
> I'm willing to try myself if someone can give me a nice starting point
> for doing this which file to edit, with methods to use ..

The main file would be lib/arrows.c.  Each arrow type has a draw_
function, which is called from arrow_draw.  You'll also want to change the
arrow selection widgets DIAARROWSELECTOR in lib/widgets.c to include it,
and the DiaArrowPreview stuff in app/lineprops_area.c (which I am not
familiar with).

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | HÃ¥rdgrim of Numenor
"I do not agree with a word that you say, but I| Retainer of Sir Kegg
will defend to the death your right to say it."|   of Westfield
--Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne




Double-headed arrows

2000-08-01 Thread Rogier Thissen

Hi,

would it be possible to create double-headed arrows in Dia? (lines with 2
arrows instead of only one?? :
--->> instead of --->)

Until now I just made one line with an arrow and another very short line
with the same arrow just behind the first, so it appears there is just 1
line with 2 arrows. But this is very tedious when i move the objects.

Is it hard to implement???

I'm willing to try myself if someone can give me a nice starting point for
doing this which file to edit, with methods to use ..

thanks,
rogier thissen