Re: Restricting possible connections

2002-10-25 Thread Alan Horkan


On Thu, 24 Oct 2002, ml wrote:

> Date: Thu, 24 Oct 2002 22:10:16 +0200
> From: ml <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Restricting possible connections
>
> On Thu, Oct 24, 2002 at 12:21:22PM -0500, Lars Clausen wrote:
> > On Thu, 24 Oct 2002, [EMAIL PROTECTED] wrote:
> > > 2. Of course, this must be an option to the user.  Maybe a
> > >diagram specific or a global option?
> >
> > Hmmm... good question.  Global options are easier to make and do away
> > with.  I really don't know which is better.
>
> Let's go for a global option first, and make it more
> advanced if the need is there.  Other idea: Allow user
> the connection always if a modifier key is used (Escape/
> Meta/Alt/Control/Shift).

Again i ask for people to please explain to me in pedantic and simplistic
detail what exaclty you mean so that i can get some comparative behaviour
information.  By comparing to other programs we will be able to more
easily choose sensible interfaces and keybindings.
A bug report to track this might also be useful.

Sincerely
Alan Horkan


___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Autodia

2002-10-25 Thread Philip Stolz
Hello,
I'm having troubles to load a UML diagram XML-file generated by Autodia into 
Dia...
the file can't be read. Does someone have any idea, what I could be doing 
wrong?

this is the XML file:


http://www.lysator.liu.se/~alla/dia/";>
  

  


  

  #A4#


  


  


  


  


  


  


  

  


  

  


  


  


  

  


  


  

  
  
 



Regards,
 Phil.
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Autodia

2002-10-25 Thread Alan Horkan

It looks like a very blank document.
I would suggest you produce a blank document in Dia and compare.

sorry dont have time to think of anything more intelligent.

Later
Alan

On Fri, 25 Oct 2002, Philip Stolz wrote:

> Date: Fri, 25 Oct 2002 19:15:22 +0200
> From: Philip Stolz <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Autodia
>
> Hello,
> I'm having troubles to load a UML diagram XML-file generated by Autodia into
> Dia...
> the file can't be read. Does someone have any idea, what I could be doing
> wrong?
>
> this is the XML file:
>



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Autodia - got it

2002-10-25 Thread Philip Stolz
Hello,
I solved the problem:
Autodia outputs uncompressed XML files whereas Dia expects gzipped
XML files by default. When I gzipped my class diagram it worked fine.

regards,
   Phil.
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Restricting possible connections

2002-10-25 Thread ed . hunter
On Thu, Oct 24, 2002 at 06:36:19PM +0200, ml wrote:
> OK, I try to resume:
> 
> 1. A restriction on possible connections seems to be a good
>idea.  Think of network diagrams, not to speak of
>UML/Database/SDL/... code generation.
> 
> 2. Of course, this must be an option to the user.  Maybe a
>diagram specific or a global option?
> 
> 3. The method to check has to be a new object function.
>Something like:
> 
>typedef gboolean (*AllowConnectFunc) (Object* obj_me,
>  Object* obj_other,
>  ... /* ? */ );

It should also say whether the called object is the source or the destination.
e.g. gboolean is_source

Now thinking of it 

The problem is even more hairy, since also the connection can be an object, right?
So in general, the function has to be called three times and their args should 
contain all three objects and their handles

Not pretty :)

But, maybe, the function could be called only once - for the connection object. If the
connection object wants, it can call some function in the two connected objects.
(But that would mean that it has to be able to find about objects' classes. Can it do
it now?)

so e.g.:

gboolean can_connect_objects (Object *self, Object *from, Handle *from_h, Object *to, 
Handle *to_h)


Jarda Benkovsky

-- 
GCM/IT d- s:+ a- C++(+++) ULOI$ P++ L+++> E+ W++
N w--- PS+ PE++ Y+ PGP R+ tv- b+++ D+ e+++ y+

___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Autodia - got it

2002-10-25 Thread Alan Horkan

thats weird

i turn off the gzip compression and i have never had a problem with
uncompressed dia

On Fri, 25 Oct 2002, Philip Stolz wrote:

> Date: Fri, 25 Oct 2002 19:53:31 +0200
> From: Philip Stolz <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Autodia - got it
>
> Hello,
> I solved the problem:
> Autodia outputs uncompressed XML files whereas Dia expects gzipped
> XML files by default. When I gzipped my class diagram it worked fine.
>
> regards,
>Phil.
> ___
> Dia-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
> Main page at http://www.lysator.liu.se/~alla/dia
>

___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Chemistry Library For Dia

2002-10-25 Thread Robert Smith
I am gradually producing a library of chemistry shapes for Dia. These include basic 
structures such as bonds (double, triple, single, double single dotted etc.), small 
numbers, basic greek characters, arene shapes, angled bonds for making shapes such as 
kekules benzene etc. The library almost halves the time that it takes me to produce 
chemical diagrams.

When it is finished is there any place specifically that I can place this library on 
the web or in the cvs tree etc so that it can be accessed by other people, or even 
perhaps integrated into the progams libraries as standard?

If anyone can think of things to put in this library then please contact me.

Robert

--
Message From : Robert Smith
E-mail : [EMAIL PROTECTED]
Web : http://www.surf-u.co.uk
---
"Money couldn't buy friends but you got a better class of enemy."
- Spike Milligan : Puckoon (1963)
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Autodia - got it

2002-10-25 Thread James K. Lowden
On Fri, 25 Oct 2002 19:12:43 +0100 (IST), Alan Horkan <[EMAIL PROTECTED]>
wrote:
> 
> i turn off the gzip compression and i have never had a problem with
> uncompressed dia

Perhaps he hadn't turned it off.  Is it supposed to autodetect?  

--jkl

> On Fri, 25 Oct 2002, Philip Stolz wrote:
> 
> > Date: Fri, 25 Oct 2002 19:53:31 +0200
> > From: Philip Stolz <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: Autodia - got it
> >
> > Hello,
> > I solved the problem:
> > Autodia outputs uncompressed XML files whereas Dia expects gzipped
> > XML files by default. When I gzipped my class diagram it worked fine.
> >
> > regards,
> >Phil.
> > ___
> > Dia-list mailing list
> > [EMAIL PROTECTED]
> > http://mail.gnome.org/mailman/listinfo/dia-list
> > FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
> > Main page at http://www.lysator.liu.se/~alla/dia
> >
> 
> ___
> Dia-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
> Main page at http://www.lysator.liu.se/~alla/dia
> 
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Chemistry Library For Dia

2002-10-25 Thread Lars Clausen
On Fri, 25 Oct 2002, Robert Smith wrote:
> I am gradually producing a library of chemistry shapes for Dia. These
> include basic structures such as bonds (double, triple, single, double
> single dotted etc.), small numbers, basic greek characters, arene shapes,
> angled bonds for making shapes such as kekules benzene etc. The library
> almost halves the time that it takes me to produce chemical diagrams.
> 
> When it is finished is there any place specifically that I can place this
> library on the web or in the cvs tree etc so that it can be accessed by
> other people, or even perhaps integrated into the progams libraries as
> standard?

If you post a pointer to the files here, we can certainly include it in the
standard distribution.  So far, we just add sheets in, though in the near
future we will have to come up with something smarter.  I'd love to see
chemical shapes in Dia.

-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   |
will defend to the death your right to say it."   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia




Re: Autodia - got it

2002-10-25 Thread Lars Clausen
On Fri, 25 Oct 2002, James K. Lowden wrote:
> On Fri, 25 Oct 2002 19:12:43 +0100 (IST), Alan Horkan <[EMAIL PROTECTED]>
> wrote:
>> 
>> i turn off the gzip compression and i have never had a problem with
>> uncompressed dia
> 
> Perhaps he hadn't turned it off.  Is it supposed to autodetect?  

Yes, it will read either kind automatically, at least in 0.90 and forward,
and most likely also earlier.

-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   |
will defend to the death your right to say it."   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia