Re: Re: creating custom shapes for visual storytelling (dave boyle)

2007-10-28 Thread Lars Clausen

On Thu, 2007-10-04 at 20:50 -0400, dave boyle wrote:
 I see the xml in the *.shape files and the ext_attributes lines and
 have played with them. Where can I find a list of all the different
 types and their properties? Thanks!

Sorry about the long response time.

There's all the types listed in lib/properties.h: char, bool, int,
intarray, enum, enumarray, multistring, string, file, text, stringlist,
real, length, fontsize, point, pointarray, bezpoint, bezpointarray,
rect, endpoints, connpoint_line, linestyle, arrow, colour, font, static,
button, nb_begin, nb_end, nb_page, mc_begin, mc_end, mc_col, f_begin,
f_end, list.

However, not all of them make sense as ext_attributes, as some need data
that you cannot supply.  There's no page with descriptions of how they
work in ext_attributes yet.

-Lars

___
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: Re: creating custom shapes for visual storytelling (dave boyle)

2007-10-04 Thread dave boyle
I see the xml in the *.shape files and the ext_attributes lines and have 
played with them. Where can I find a list of all the different types and 
their properties? Thanks!



[EMAIL PROTECTED] wrote:

Send Dia-list mailing list submissions to
dia-list@gnome.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.gnome.org/mailman/listinfo/dia-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Dia-list digest...


Today's Topics:

   1. creating custom shapes for visual storytelling (dave boyle)
   2. Re: creating custom shapes for visual storytelling (Lars Clausen)
   3. Re: Now look what you made me do (Sameer Sahasrabuddhe)
   4. Re: Now look what you made me do (Lars Clausen)
   5. Re: Now look what you made me do (Lars Clausen)
   6. Re: Now look what you made me do (Sameer Sahasrabuddhe)
   7. Re: Now look what you made me do (Sameer Sahasrabuddhe)
   8. dia svg export: how do adjust size? (Zhang Weiwu)


--

Message: 1
Date: Mon, 01 Oct 2007 22:08:40 -0400
From: dave boyle [EMAIL PROTECTED]
Subject: creating custom shapes for visual storytelling
To: dia-list@gnome.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I want to use Dia to write a screenplay. I need to create a sheet of 
custom shapes with names like character, location, prop, costume, 
interaction, etc. Each shape will need custom dialog boxes that appear 
when Properties is clicked. These dialogs will allow the inputting of 
the necessary data that goes along with each story element-shape.


I've looked at the dialog box associated with the UML class shape which 
makes me think it might be possible, but is it? Can I create my own data 
objects and assign them to new shapes? Or is it just the UML class shape 
that has the ability to store extra information? With XML as the back 
end, what does it care about what I put in or where? As long as I 
conform to my DTD ...


I'm an experienced object oriented programmer with no experience in Dia. 
I'd like to know if what I want to do is even possible before making an 
investment on the learning curve. Thank you for your assistance!



--

Message: 2
Date: Tue, 02 Oct 2007 08:21:51 +0200
From: Lars Clausen [EMAIL PROTECTED]
Subject: Re: creating custom shapes for visual storytelling
To: discussions about usage and development of dia
dia-list@gnome.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain


On Mon, 2007-10-01 at 22:08 -0400, dave boyle wrote:
  
I want to use Dia to write a screenplay. I need to create a sheet of 
custom shapes with names like character, location, prop, costume, 
interaction, etc. Each shape will need custom dialog boxes that appear 
when Properties is clicked. These dialogs will allow the inputting of 
the necessary data that goes along with each story element-shape.


I've looked at the dialog box associated with the UML class shape which 
makes me think it might be possible, but is it? Can I create my own data 
objects and assign them to new shapes? Or is it just the UML class shape 
that has the ability to store extra information? With XML as the back 
end, what does it care about what I put in or where? As long as I 
conform to my DTD ...


I'm an experienced object oriented programmer with no experience in Dia. 
I'd like to know if what I want to do is even possible before making an 
investment on the learning curve. Thank you for your assistance!



It is decidedly possible, but the UML objects are not the place to
start, they are by far the most complex objects we have.  It is possible
that you can make do with shapes, i.e. XML-defined objects, take a look
at shapes/Circuit/hresistor.shape for how to add your own data --
simple, fixed-count data only, though.  If those are not enough, look to
objects/standard for how to make new objects, and look at
http://faemalia.org/wiki/view/Technical/ProgrammedObject. Please ask if
you have more questions.

-Lars



--

Message: 3
Date: Tue, 2 Oct 2007 11:57:08 +0530
From: Sameer Sahasrabuddhe [EMAIL PROTECTED]
Subject: Re: Now look what you made me do
To: discussions about usage and development of dia
dia-list@gnome.org
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

On 9/30/07, Lars Clausen [EMAIL PROTECTED] wrote:
  

So all this talk about delete key make me think more about how edit mode
would happen, and eventually I sat down and did the first essentials.
The current SVN uses edit mode, entering it automatically when an object
with text is created or on Enter or F2, and exiting on deselecting the
object or Escape.  It doesn't fix the menus or anything