Re: Welcome to the "dia-list" mailing list (Digest mode)

2010-08-12 Thread fitorec
I am fitorec, I am interested in develop a Dia-Python-Plugin for a dump sql
. I wrote the following code:

import sys, dia

class SqlRenderer :
def __init__ (self) :
self.f = None

def _open(self, filename) :
self.f = open(filename, "w")

def begin_render (self, data, filename) :
self._open (filename)
self.f.write('''-- DiaSql-Dump
-- version 0.01
--
''')
for layer in data.layers :
for o in layer.objects :
#types which are valid??
if o.type.name == "DATABASE - Class" :

def end_render (self) :
self.f.write('-- end Dump')
self.f.close()

dia.register_export ("SQL plain", "sql", SqlRenderer())

General problems that I had not know the models, their properties and
methods of DIA, I would like to see if they can send me some information API
--A plugin that works the Database Diagrams greatly help me--.

 I read the documentation  http://live.gnome.org/Dia/Python but, I did not
find any reference that could help.

thanks in advance.

PS sorry my english is very bad.


2010/8/12 

> Welcome to the dia-list@gnome.org mailing list!
>
> To post to this list, send your email to:
>
>  dia-list@gnome.org
>
> General information about the mailing list is at:
>
>  http://mail.gnome.org/mailman/listinfo/dia-list
>
> If you ever want to unsubscribe or change your options (eg, switch to
> or from digest mode, change your password, etc.), visit your
> subscription page at:
>
>  http://mail.gnome.org/mailman/options/dia-list/chanerec%40gmail.com
>
> You can also make such adjustments via email by sending a message to:
>
>  dia-list-requ...@gnome.org
>
> with the word `help' in the subject or body (don't include the
> quotes), and you will get back a message with instructions.
>
> You must know your password to change your options (including changing
> the password, itself) or to unsubscribe.  It is:
>
>  kaneodiz
>
> Normally, Mailman will remind you of your gnome.org mailing list
> passwords once every month, although you can disable this if you
> prefer.  This reminder will also include instructions on how to
> unsubscribe or change your account options.  There is also a button on
> your options page that will email your current password to you.
>
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Suggestion - a Web forum

2010-08-12 Thread one_elengr
Hello,

I wonder if anyone would be able to set up a Web forum for the same 
purpose as this mailing list.  Other open-source software projects 
have forums, and I find that to be a much more convenient way to 
browse discussions than a mailing list.  

Forums normally allow all new messages to be e-mailed automatically 
to subscribers who so choose, so that people can still get the 
discussion traffic in their e-mail inbox if they prefer.  

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



Re: Welcome to the "dia-list" mailing list (Digest mode)

2010-08-12 Thread fitorec
After spending a sleepless night I make the head of the table definition,
what I could do was the same body.

Please if anyone knows how to do this or have an idea for answer.

python code:

import dia, sys, os, string

class MySqlRenderer :
def __init__ (self) :
self.f = None
# the bintmap exporters calculate their ow margins from the bunding
box

def begin_render (self, data, filename) :
self.f = open(filename, "w")
name = os.path.split (filename)[1]
self.f.write ("-- DiaSql-Dump\n-- version 0.01\n--Filename: %s\n" %
(name,))
for layer in data.layers :
self.WriteTables (layer)

def WriteTables (self, layer) :
for o in layer.objects :
r = o.bounding_box
if o.properties.has_key ("name") :
url = o.properties["name"].value
elif o.properties.has_key ("text") :
url = o.properties["text"].value.text
else :
continue
if len(url) == 0 or string.find (url, " ") >= 0 :
continue
self.f.write ('\n--\nCREATE TABLE IF NOT EXISTS `%s` (\n' %
(url))
self.f.write ('\t\t...\n')
self.f.write (') ENGINE=InnoDB DEFAULT CHARSET=latin1
AUTO_INCREMENT=1 ;\n')

def end_render (self) :
self.f.write ('--end MySQL-Dump\n')
self.f.close()

# reference
dia.register_export ("MySQL Dump", "sql", MySqlRenderer())


2010/8/12 fitorec 

> I am fitorec, I am interested in develop a Dia-Python-Plugin for a dump sql
> . I wrote the following code:
>
> import sys, dia
>
> class SqlRenderer :
> def __init__ (self) :
> self.f = None
>
> def _open(self, filename) :
> self.f = open(filename, "w")
>
> def begin_render (self, data, filename) :
> self._open (filename)
> self.f.write('''-- DiaSql-Dump
> -- version 0.01
> --
> ''')
> for layer in data.layers :
> for o in layer.objects :
> #types which are valid??
> if o.type.name == "DATABASE - Class" :
>
> def end_render (self) :
> self.f.write('-- end Dump')
> self.f.close()
>
> dia.register_export ("SQL plain", "sql", SqlRenderer())
>
> General problems that I had not know the models, their properties and
> methods of DIA, I would like to see if they can send me some information API
> --A plugin that works the Database Diagrams greatly help me--.
>
>  I read the documentation  http://live.gnome.org/Dia/Python but, I did not
> find any reference that could help.
>
> thanks in advance.
>
> PS sorry my english is very bad.
>
>
> 2010/8/12 
>
> Welcome to the dia-list@gnome.org mailing list!
>>
>> To post to this list, send your email to:
>>
>>  dia-list@gnome.org
>>
>> General information about the mailing list is at:
>>
>>  http://mail.gnome.org/mailman/listinfo/dia-list
>>
>> If you ever want to unsubscribe or change your options (eg, switch to
>> or from digest mode, change your password, etc.), visit your
>> subscription page at:
>>
>>  http://mail.gnome.org/mailman/options/dia-list/chanerec%40gmail.com
>>
>> You can also make such adjustments via email by sending a message to:
>>
>>  dia-list-requ...@gnome.org
>>
>> with the word `help' in the subject or body (don't include the
>> quotes), and you will get back a message with instructions.
>>
>> You must know your password to change your options (including changing
>> the password, itself) or to unsubscribe.  It is:
>>
>>  kaneodiz
>>
>> Normally, Mailman will remind you of your gnome.org mailing list
>> passwords once every month, although you can disable this if you
>> prefer.  This reminder will also include instructions on how to
>> unsubscribe or change your account options.  There is also a button on
>> your options page that will email your current password to you.
>>
>
>
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Release schedule?

2010-08-12 Thread one_elengr
Hello, 

Compliments to the Dia maintainers for spending their time on this 
versatile program.  

Could someone please orient me as to when the next release is 
expected?  

Many thanks.  

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



Re: News version of DIA

2010-08-12 Thread Issa
hello,
now i m on the ML,
so what about the next releas of dia ?
what do u purpose for the next please.



Le dimanche 25 juillet 2010 à 22:31 +0200, Steffen Macke a écrit :
> Hi Issa,
> 
> thanks for your email.
> why do you think that the Dia development has stopped?
> What do you expect from the next Dia version?
> 
> Regards,
> 
> Steffen
> 
> Regards,
> 
> Steffen
> > DIA is very good program, please can u continue the developpement of
> > this program ?
> >   
> 


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



Object alignment does behave as expected

2010-08-12 Thread Jon Oesterheld
I was working with some objects; The command organ of relay (horizontal)
and Horizontally aligned diode, and I noticed that when using the
Objects, Align, Top, Middle or Bottom the two objects are not positioned
where I would expect them to be. When using the Align, Left, Center or
Right they seem to work correctly.

 

So I tried the same test with the vertical versions of the relay and
diode and now the problem is with the Left, Center and Right alignments
and the Top, Middle and Bottom seem to work OK.

 

I am only a user not a developer so is it possible that this would be
fixed in a future version of Dia? I like how quickly I can create a
diagram using Dia but having to mess around with the alignment to make
it presentable eats up a lot of time. This is also an issue addressed in
my other post about the objects snapping to the grid.

 

 

Kind Regards,

 

Jon Oesterheld

Automation Project Engineer

 

EROWA Technology, Inc.

2535 S. Clearbrook Dr.

Arlington Heights, IL 60005

 

E-Mail: jon.oesterh...@erowatech.com

Mobile: 224-622-0697 

 "Ask us about our MTS Promotion going on now through December 2010!"

Your opinions and suggestions are very important to us as we strive to
provide the Highest Quality Customer Service! Please send any
Compliments, Comments, or Complaints directly to Erowa Technology
management at chris.nor...@erowatech.com
 .

PPlease consider the environment before printing my email

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you have received this
transmission in error, please delete it from your system without copying
it, and notify the sender by reply email or contact: i...@erowatech.com
so that our address record can be corrected. Thank You.

 

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



pydia SQL

2010-08-12 Thread fitorec
Hello that such!, After a while of being programmed, finally finish
the sql dump.

My question now is: how I can extract relationships? In order to make
the foreign keys.

thanks in advance.

Source:
-
#PyDia MySQL.py : SQL dump.
#Copyright (c) 2010 fitorec  

import dia, sys, os, string

class MySqlRenderer :
def __init__ (self) :
self.f = None

def begin_render (self, data, filename) :
self.f = open(filename, "w")
name = os.path.split(filename)[1]
self.f.write ("-- DiaSql-Dump\n-- version 0.01\n-- Filename: 
%s\n" % (name,))
for layer in data.layers :
self.WriteTables (layer)

def WriteTables (self, layer) :
for o in layer.objects :
if o.type.name == 'Database - Table' :
if o.properties.has_key ("name") :
url = o.properties["name"].value
elif o.properties.has_key ("text") :
url = o.properties["text"].value.text
else :
continue
if len(url) == 0 or string.find (url, " ") >= 0 
:
continue
self.f.write ('\n-- %s --\nCREATE TABLE IF NOT 
EXISTS `%s` (\n' % (url,url))
atributes = o.properties['attributes'].value
numAtributes = len(atributes)
for i in range(0,numAtributes, 1):
a = atributes[i]
self.f.write ('\t`%s` %s ' % (a[0], 
a[1]) )
if a[3] == 1 :
self.f.write (' PRIMARY KEY ')
if a[4] == 0 :
self.f.write (' NOT NULL ')
if a[5] == 1 :
self.f.write (' UNIQUE ')
if i < (numAtributes-1):
self.f.write (',')
self.f.write ('\n')
print a
self.f.write (') ENGINE=InnoDB DEFAULT 
CHARSET=latin1 AUTO_INCREMENT=1 ;\n')
else:
"""self.f.write ("%s\n" % o.type.name)
k = o.properties.keys()
for i in k:
self.f.write ("%s\n" % i)"""


def end_render (self) :
self.f.write ('-- End MySQL-Dump\n')
self.f.close()
# reference
dia.register_export ("MySQL Dump", "sql", MySqlRenderer())
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Suggestion - a Web forum

2010-08-12 Thread Steffen Macke
Hi,

we definitely need a a forum for all them flamewars :-)
Jokes aside: A forum needs to be maintained and moderated,
plus it needs a sufficiently vibrant community.

A while ago, I had a "Dia forum" enabled as part of the dia-installer
Sourceforge project:

http://sourceforge.net/projects/dia-installer/

I switched it off because I ended up doing all the moderation and
answering all the questions.
It's not running the software, you need a sufficiently vibrant community.

Did you look at Dia's Facebook page:

http://www.facebook.com/diagramr

It's nothing else than a forum (Please don't start a Facebook flamewar now).

But all that shouldn't keep you or others from setting up and
maintaining a Dia forum.
Please announce it here on the mailing list if you do so.

Regards,

Steffen

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



Re: Suggestion - a Web forum

2010-08-12 Thread Michael Ross
Of course I have been in this forum for years (and other very safe - text
based mailing lists), I will state forthwith that I like this list the way
it is.  Maybe it is like an old shoe - no new one can quite compare.  It
requires a minimum of effort to review the messages and reply.  Having run
lists like it, I know that this format minimizes administrative duties, a
very good thing when time resources are short.  The time to set this list up
is a sunk cost, not recurring.

It is true that searching for past information is less easy, but honestly
the older messages won't reflect the subsequent good work that has gone on,
and fewer people than you might think ever do search archives.

Anyway, I wouldn't do it.  And wouldn't like having to use another forum.

On Thu, Aug 12, 2010 at 6:27 AM,  wrote:

> Hello,
>
> I wonder if anyone would be able to set up a Web forum for the same
> purpose as this mailing list.  Other open-source software projects
> have forums, and I find that to be a much more convenient way to
> browse discussions than a mailing list.
>
> Forums normally allow all new messages to be e-mailed automatically
> to subscribers who so choose, so that people can still get the
> discussion traffic in their e-mail inbox if they prefer.
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>


-- 
Michael E. Ross
  NC Solar Center Test Laboratory
=
   (919) 585-5118 best
  (919) 513-0418 desk
   michael_r...@ncsu.edu
 michael.e.r...@gmail.com
   =


NC Solar Center : www.ncsc.ncsu.edu
Professional Directory : www.greenprofessionals.org

"The information in this email is provided by the NC Solar Center at NCSU as
a public service. The Solar Center strives to provide accurate information,
but does not warrant or represent the accuracy, usefulness or reliability of
this information. For specific advice, we always recommend that you consult
with a professional in the appropriate profession for your needs." Email
correspondence to and from this address may be subject to the North Carolina
Public Record Law NCGS, Ch 132 and may be disclosed to third parties
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Dia-Python-Plugin for a dump sql (was: Re: Welcome to the "dia-list" mailing list (Digest mode))

2010-08-12 Thread Hans Breuer

At 12.08.2010 09:44, fitorec wrote:

I am fitorec, I am interested in develop a Dia-Python-Plugin for a dump sql
. I wrote the following code:

import sys, dia

class SqlRenderer :
[...]
dia.register_export ("SQL plain", "sql", SqlRenderer())

General problems that I had not know the models, their properties and
methods of DIA, I would like to see if they can send me some information API

There is a plug-in available in Dia to visualize *all* object properties.
Try: "/Help/Dia Object Types"
and Ctrl^F database


--A plugin that works the Database Diagrams greatly help me--.

The "Database - Table" is derived from the "UML - Class" object and there 
are some plug-ins using that one, e.g. codegen.py.



  I read the documentation  http://live.gnome.org/Dia/Python but, I did not
find any reference that could help.


Feel free to update it with information got from the mailing list ;-)

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
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Release schedule?

2010-08-12 Thread Steffen Macke
Hi,

> Could someone please orient me as to when the next release is 
> expected?  
>   
That's up to Hans to answer.
Looking back and considering that some people like to see a somewhat
fixed release schedule, I would say that Dia is roughly on a one release
every year scheme (And the last release happened in January).

Regards,

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



Re: Release schedule?

2010-08-12 Thread Hans Breuer

At 12.08.2010 13:18, one_ele...@hushmail.com wrote:

[...]
Could someone please orient me as to when the next release is
expected?


This depends on the number of interesting features added:
  http://git.gnome.org/browse/dia/log/
the number of open bugs:
  https://bugzilla.gnome.org/browse.cgi?product=dia
and/or closed bugs:
  http://bugzilla.gnome.org/buglist.cgi?product=dia&target_milestone=0.98

And of course it also depends on the availability of a big enough time slot 
to actually do a release ;)


BTW: patches accepted.

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
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: pydia SQL

2010-08-12 Thread Hans Breuer

At 12.08.2010 19:04, fitorec wrote:

Hello that such!, After a while of being programmed, finally finish
the sql dump.

My question now is: how I can extract relationships? In order to make
the foreign keys.


Same answer as before: look at codegen.py

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
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Object alignment does behave as expected

2010-08-12 Thread Steffen Macke
Hi Jon,

On 08/12/2010 03:55 PM, Jon Oesterheld wrote:
> I was working with some objects; The command organ of relay (horizontal)
> and Horizontally aligned diode, and I noticed that when using the
> Objects, Align, Top, Middle or Bottom the two objects are not positioned
> where I would expect them to be. When using the Align, Left, Center or
> Right they seem to work correctly.
>   
I played a little with these shapes and the only "unusual" behaviour I
could detect was with the relay (horizontal) from the Electric sheet. Do
you also have problems with other shapes? If yes,
please describe them in as much detail as possible. But please do not
report shapes that work
correctly.

Unfortunately, we cannot just change the behaviour of the relay
(horizontal) shape, because that would break backwards compatibility.
But it should be possible to provide an alternative horizontal relay
that behaves the way you expect it.
For the time being - as a workaround - you can simply group a rectangle
and a line into a relay shape of your own. You can copy and paste this
group like a shape. See the Dia manual for information
about grouping and ungrouping objects. If that works out for you, you
could try to create your own
shape(s): Just follow the step-by-step instructions

http://dia-installer.de/howto/create_shape/index.html.en

I don't think you have to be a developer in order to do this.

Regards,

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



Re: Generating a Dia File

2010-08-12 Thread Steffen Macke
Hi David,

On 08/11/2010 10:26 PM, David Ferry wrote:
> on a single node. Are there limitatis on how many objects can be present
> in a single diagram?
>   
Nothing in computing is unlimited. But you should be able to handle
thousands of objects.
I don't expect that you'll hit a hard limit, but things will get slow
and you'll have problems obtaining a meaningful diagram layout.
> Are there any sections of the source that might aid me in doing this? Would
> it be difficult to re purpose the code for saving a diagram to accept a
> different source of input?
>   
Which programming language do you use? Besides the Dia C sources,
there's a couple of other programs available that are capable of
producing Dia files:

http://live.gnome.org/Dia/Links

Maybe one of them matches your needs.
As you seem to be dealing with a fairly huge number of objects: Have you
thought about a program like GraphViz that specializes on the automatic
layout. Graphviz is able to output Dia files.

Regards,

Steffen

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



Re: Generating a Dia File

2010-08-12 Thread David Ferry
Hi Steffen,

The programs to which you referred look like they might be just what I need.
It's amazing that none of them came up in Google searches for DAG drawing
software. Thanks for your advice!

David

On Thu, Aug 12, 2010 at 4:06 PM, Steffen Macke  wrote:

> Hi David,
>
> On 08/11/2010 10:26 PM, David Ferry wrote:
> > on a single node. Are there limitatis on how many objects can be present
> > in a single diagram?
> >
> Nothing in computing is unlimited. But you should be able to handle
> thousands of objects.
> I don't expect that you'll hit a hard limit, but things will get slow
> and you'll have problems obtaining a meaningful diagram layout.
> > Are there any sections of the source that might aid me in doing this?
> Would
> > it be difficult to re purpose the code for saving a diagram to accept a
> > different source of input?
> >
> Which programming language do you use? Besides the Dia C sources,
> there's a couple of other programs available that are capable of
> producing Dia files:
>
> http://live.gnome.org/Dia/Links
>
> Maybe one of them matches your needs.
> As you seem to be dealing with a fairly huge number of objects: Have you
> thought about a program like GraphViz that specializes on the automatic
> layout. Graphviz is able to output Dia files.
>
> Regards,
>
> Steffen
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Generating a Dia File

2010-08-12 Thread Michael Ross
What is a DAG?

On Thu, Aug 12, 2010 at 5:35 PM, David Ferry  wrote:

> Hi Steffen,
>
> The programs to which you referred look like they might be just what I
> need. It's amazing that none of them came up in Google searches for DAG
> drawing software. Thanks for your advice!
>
> David
>
>
> On Thu, Aug 12, 2010 at 4:06 PM, Steffen Macke  wrote:
>
>> Hi David,
>>
>> On 08/11/2010 10:26 PM, David Ferry wrote:
>> > on a single node. Are there limitatis on how many objects can be present
>> > in a single diagram?
>> >
>> Nothing in computing is unlimited. But you should be able to handle
>> thousands of objects.
>> I don't expect that you'll hit a hard limit, but things will get slow
>> and you'll have problems obtaining a meaningful diagram layout.
>> > Are there any sections of the source that might aid me in doing this?
>> Would
>> > it be difficult to re purpose the code for saving a diagram to accept a
>> > different source of input?
>> >
>> Which programming language do you use? Besides the Dia C sources,
>> there's a couple of other programs available that are capable of
>> producing Dia files:
>>
>> http://live.gnome.org/Dia/Links
>>
>> Maybe one of them matches your needs.
>> As you seem to be dealing with a fairly huge number of objects: Have you
>> thought about a program like GraphViz that specializes on the automatic
>> layout. Graphviz is able to output Dia files.
>>
>> Regards,
>>
>> Steffen
>>
>> ___
>> dia-list mailing list
>> dia-list@gnome.org
>> http://mail.gnome.org/mailman/listinfo/dia-list
>> FAQ at http://live.gnome.org/Dia/Faq
>> Main page at http://live.gnome.org/Dia
>>
>>
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>
>


-- 
Michael E. Ross
  NC Solar Center Test Laboratory
=
   (919) 585-5118 best
  (919) 513-0418 desk
   michael_r...@ncsu.edu
 michael.e.r...@gmail.com
   =


NC Solar Center : www.ncsc.ncsu.edu
Professional Directory : www.greenprofessionals.org

"The information in this email is provided by the NC Solar Center at NCSU as
a public service. The Solar Center strives to provide accurate information,
but does not warrant or represent the accuracy, usefulness or reliability of
this information. For specific advice, we always recommend that you consult
with a professional in the appropriate profession for your needs." Email
correspondence to and from this address may be subject to the North Carolina
Public Record Law NCGS, Ch 132 and may be disclosed to third parties
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: Adding a Minus-Sign to an Arrowhead

2010-08-12 Thread Pooya
Hi Steffen, Hi Hans,

> * Take a box
> * Make the box match the background color

Yes, but how to get rid of its border? (I use for example "perfect sqare")


> * Make the box small
> * Snap text, arrow and box
>  * Move the box around
> 
> Grouping text and box might also be interesting, because it prevents
> accidential box resizes.
> Sounds complicated? You'll find that this solution will give you much
> more fine-grained
> layout control than a simple solution.

Ok, this sounds god. So I let my text snap to a box, which itself will snap to 
the arrow heads.


> If that doesn't work: A minus sign should be the simplest shape one can
> create.

Absolutely right. I guess, this is what I am going to to.


Hans Breuer wrote:
> You can connect text to a line, but only add connections points.
> To have it near the arrow you probably need to add some connectecion
> points to the line first (with the object context menu).

Hm. Yes, this works. But unfortunately not with zigzag-line.


> Another way could be dedicated lines e.g. from the UML sheet,
> but than you are restrcted to a small set of predefined arrows.
> See UML Aggregation for an example.

Which lines would that be from the UML-Sheet? I could not find out.


Thank you very much
cheers

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



Re: Dia escapes LaTeX in PGF Export

2010-08-12 Thread Pooya
Hi Steffen, thanks for your support.

> I assume that you've obtained your Mac version from
> http://dia-installer.de. It's build using
> MacPorts. The Port file can be found under
> 
> http://trac.macports.org/browser/trunk/dports/gnome/dia/Portfile
> 
> And the MacPorts page contains detailed step-by-step installations how
> to compile Dia
> and many other packages on Mac OS X. Be warned, though. There might be a
> bit of a learning curve.

Thats right. I installed Mac Ports and changed the source code.

How can I restrict the following command

"sudo port install "

to compile the dia-sources located on my machine instead of downloading the 
tar-ball from a server?


Cheers,
Pooya

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



Re: Generating a Dia File

2010-08-12 Thread David Ferry
DAG - Directed Acyclic Graph

http://en.wikipedia.org/wiki/Directed_acyclic_graph

David

On Thu, Aug 12, 2010 at 6:12 PM, Michael Ross wrote:

> What is a DAG?
>
>
> On Thu, Aug 12, 2010 at 5:35 PM, David Ferry  wrote:
>
>> Hi Steffen,
>>
>> The programs to which you referred look like they might be just what I
>> need. It's amazing that none of them came up in Google searches for DAG
>> drawing software. Thanks for your advice!
>>
>> David
>>
>>
>> On Thu, Aug 12, 2010 at 4:06 PM, Steffen Macke wrote:
>>
>>> Hi David,
>>>
>>> On 08/11/2010 10:26 PM, David Ferry wrote:
>>> > on a single node. Are there limitatis on how many objects can be
>>> present
>>> > in a single diagram?
>>> >
>>> Nothing in computing is unlimited. But you should be able to handle
>>> thousands of objects.
>>> I don't expect that you'll hit a hard limit, but things will get slow
>>> and you'll have problems obtaining a meaningful diagram layout.
>>> > Are there any sections of the source that might aid me in doing this?
>>> Would
>>> > it be difficult to re purpose the code for saving a diagram to accept a
>>> > different source of input?
>>> >
>>> Which programming language do you use? Besides the Dia C sources,
>>> there's a couple of other programs available that are capable of
>>> producing Dia files:
>>>
>>> http://live.gnome.org/Dia/Links
>>>
>>> Maybe one of them matches your needs.
>>> As you seem to be dealing with a fairly huge number of objects: Have you
>>> thought about a program like GraphViz that specializes on the automatic
>>> layout. Graphviz is able to output Dia files.
>>>
>>> Regards,
>>>
>>> Steffen
>>>
>>> ___
>>> dia-list mailing list
>>> dia-list@gnome.org
>>> http://mail.gnome.org/mailman/listinfo/dia-list
>>> FAQ at http://live.gnome.org/Dia/Faq
>>> Main page at http://live.gnome.org/Dia
>>>
>>>
>>
>> ___
>> dia-list mailing list
>> dia-list@gnome.org
>> http://mail.gnome.org/mailman/listinfo/dia-list
>> FAQ at http://live.gnome.org/Dia/Faq
>> Main page at http://live.gnome.org/Dia
>>
>>
>>
>
>
> --
> Michael E. Ross
>   NC Solar Center Test Laboratory
> =
>(919) 585-5118 best
>   (919) 513-0418 desk
>michael_r...@ncsu.edu
>  michael.e.r...@gmail.com
>=
>
>
> NC Solar Center : www.ncsc.ncsu.edu
> Professional Directory : www.greenprofessionals.org
>
> "The information in this email is provided by the NC Solar Center at NCSU
> as a public service. The Solar Center strives to provide accurate
> information, but does not warrant or represent the accuracy, usefulness or
> reliability of this information. For specific advice, we always recommend
> that you consult with a professional in the appropriate profession for your
> needs." Email correspondence to and from this address may be subject to the
> North Carolina Public Record Law NCGS, Ch 132 and may be disclosed to third
> parties
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>
>
___
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



RE: Object alignment does behave as expected

2010-08-12 Thread Jon Oesterheld
OK so far what I've found is that any vertically aligned shape from the
'Electric' sheet will not properly align with any vertically aligned
shape from the 'Circuit' sheet.

Run this test: open a new diagram, drop a 'Vertically aligned capacitor'
from the 'Circuit' sheet onto the diagram. Now drop a 'Relay (vertical)'
from the 'Electric' sheet onto the diagram. Select both objects and then
align them to 'Center', they aren't even close.

It appears that all of the shapes in the 'Electric' sheet work fine with
each other, and that all of the shapes from the 'Circuit' sheet work
fine together. The problem arises when you use shapes from different
sheets. I have only looked at these two sheets but I will check others
to see if the same problem exists.

I'm guessing that these two sheets of shapes were created by different
people and something in the way they were created is causing this
mismatch. That is why I asked in a previous post if there were some
instructions or guidelines on how to create shapes. I have created one
shape and it will align properly with the shapes from the 'Circuit'
sheet but not the ones from the 'Electric' sheet.

 
Kind Regards,
 
Jon
 
 
-Original Message-
From: dia-list-boun...@gnome.org [mailto:dia-list-boun...@gnome.org] On
Behalf Of Steffen Macke
Sent: Thursday, August 12, 2010 3:56 PM
To: discussions about usage and development of dia
Subject: Re: Object alignment does behave as expected

Hi Jon,

On 08/12/2010 03:55 PM, Jon Oesterheld wrote:
> I was working with some objects; The command organ of relay
(horizontal)
> and Horizontally aligned diode, and I noticed that when using the
> Objects, Align, Top, Middle or Bottom the two objects are not
positioned
> where I would expect them to be. When using the Align, Left, Center or
> Right they seem to work correctly.
>   
I played a little with these shapes and the only "unusual" behaviour I
could detect was with the relay (horizontal) from the Electric sheet. Do
you also have problems with other shapes? If yes,
please describe them in as much detail as possible. But please do not
report shapes that work
correctly.

Unfortunately, we cannot just change the behaviour of the relay
(horizontal) shape, because that would break backwards compatibility.
But it should be possible to provide an alternative horizontal relay
that behaves the way you expect it.
For the time being - as a workaround - you can simply group a rectangle
and a line into a relay shape of your own. You can copy and paste this
group like a shape. See the Dia manual for information
about grouping and ungrouping objects. If that works out for you, you
could try to create your own
shape(s): Just follow the step-by-step instructions

http://dia-installer.de/howto/create_shape/index.html.en

I don't think you have to be a developer in order to do this.

Regards,

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

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