Re: group_props.py import dia [was: stroke-width]

2006-08-24 Thread Robert Staudinger
On 8/24/06, Mike Dewhirst <[EMAIL PROTECTED]> wrote:
> Hans Breuer wrote:
> > Am 23.08.2006 15:48, Mike Dewhirst schrieb:
> >> Lars Clausen wrote:
> >>> Mike Dewhirst sagde:
> >> 
> >>
>  As an alternative, I am looking at group_props.py but it fails to import
>  dia.py. Google reveals a few dia.py results but none are apparently Dia
>  related.
> >>> That is Hans' area, I don't claim to understand the Python parts.  Hans?
> >> It appears from the all python scripts shown on the website, that there
> >> must be a module called dia.py.
> > There needs to be a module called 'dia' to somehow make dia functionality
> > accessible to Python. It has always been this way, but it is not 'dia.py'.
> > The Dia's Python bindings are written in C, the source code is in
> > plug-ins/python. Under windows it is compiled to dia.pyd; under *NIX it
> > is build if: ./configure --with-python; make; make install
>
> Hans
>
> Thank you - I found all that in the sources. I was looking for dia.py
> and missed it.
>
> Does anybody build Dia python bindings for Windows?
>
> Unfortunately I have no experience compiling C in Windows. Maybe it is
> time I learned. Could you point me at a how-to suitable for the tools
> you require?

AFAIK the official dia win32 build is created using msvc.
Another option is to use mingw/msys, which lets you reuse the *nix
build infrastructure.
Warning: dealing with the latter can cause questionable mental
conditions and should not be attempted by people not savy in using the
auto-tools. (Frankly: it's a pain)

That said i have built dia on win32 with msys/mingw some time ago, a
patch is available from
http://bugzilla.gnome.org/show_bug.cgi?id=341549 . If you manage
getting to the point where dia builds with said patch enabling python
support should be pretty easy.

Maybe trying to adapt the win32/msvc build system would be easier
though, no idea really.

> Would I need to compile the entire suite at the same time?

Yes.

> If so, and if I decided to stick with Dia would I need to keep in touch
> with CVS so I could repeat the process in future?

Yes.

Best,
Rob
___
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



Dia for Windows 0.95-1 missing export to EPS using Pango option?

2006-08-24 Thread David H. GUTTERIDGE
Hello,

I recently upgraded my installation of Dia on Windows from 0.94 to 0.95-1, 
and now I don't see an
option to export to EPS using Pango?  I was actually going to go back over a 
bug report that relates
to this functionality to see if I could still duplicate it in 0.95-1.  Is 
there likely something wrong with my
local installation (Pango is installed)?

Regards,

Dave


___
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



Re: PropDescription & extradata

2006-08-24 Thread ludovic mercier
Le mardi 22 août 2006 à 17:48 +0200, Lars Clausen a écrit :
> On Tue, 2006-08-22 at 17:20 +0200, lidiriel wrote:
> > Hi,
> > 
> > in the PropDescription structure can i put a gpointer as extradata ?
> > exemple :
> > GList *foo;
> > 
> > and in the table :
> > static PropDescription bar[] = {
> > ...,
> > { "fooValue", PROP_TYPE_STRINGLIST, PROP_FLAG_VISIBLE, N_("string
> > list"), NULL, foo},
> > ...
> > } 
> > 
> > and the foo pointer will be modify in the update_object function.
> > 
> > And how i made this ?? because the now i have an error "initializer
> > element is not constant"
> > Have you any idea ?
> 
> The initialization of bar is static, and so all its values must be
> static, but foo is not initialized statically.  You could go in in the
> class init section and replace the extradata value.
> 
> -Lars
Ok but if i write all data static : foo, bar i have already the error
initializer is not constant
In fact i don't make to pass a GList pointer in the PropDescription ! It
is possible to make it ?

Lidiriel


___
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



Creating Dia Stencils

2006-08-24 Thread SOTL
Hi All

I know this is very simple but I have not found a tutorial of explanation of 
How-To do what I need.

I have spent the better part of 4 hours goggling for procedures to create 
stencils and looked at the on line tutorials and procedures I could find with 
no results.

Lets assume I make a drawing say a giant "X" with a line through it. A very 
simple drawing. Now I would like to place this in a new Stencil file called 
"Stars" which is similar to the "Electrical" stencil file. 

Would some kind person either explain how this is done or point me to a How-To 
that contains such an explanation.

Thanks

SOTL
___
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



Re: PropDescription & extradata

2006-08-24 Thread lidiriel
Ok with the adress of Glist pointer it's work.
On Wed, 2006-08-23 at 16:43 +0200, ludovic mercier wrote:
> Le mardi 22 août 2006 à 17:48 +0200, Lars Clausen a écrit :
> > On Tue, 2006-08-22 at 17:20 +0200, lidiriel wrote:
> > > Hi,
> > > 
> > > in the PropDescription structure can i put a gpointer as extradata ?
> > > exemple :
> > >   GList *foo;
> > > 
> > > and in the table :
> > > static PropDescription bar[] = {
> > > ...,
> > >   { "fooValue", PROP_TYPE_STRINGLIST, PROP_FLAG_VISIBLE, N_("string
> > > list"), NULL, foo},
> > > ...
> > > } 
> > > 
> > > and the foo pointer will be modify in the update_object function.
> > > 
> > > And how i made this ?? because the now i have an error "initializer
> > > element is not constant"
> > > Have you any idea ?
> > 
> > The initialization of bar is static, and so all its values must be
> > static, but foo is not initialized statically.  You could go in in the
> > class init section and replace the extradata value.
> > 
> > -Lars
> Ok but if i write all data static : foo, bar i have already the error
> initializer is not constant
> In fact i don't make to pass a GList pointer in the PropDescription ! It
> is possible to make it ?
> 
> Lidiriel
> 
> 
> ___
> 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
> 

___
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



Re: Creating Dia Stencils

2006-08-24 Thread SOTL
Hi All

There is a supposed method of generating stencil in Dia. I say supposed 
because in the version in my version of Dia .94 SuSE 19,1 it does not work. A 
bug report (actually 2 as I screwed up) was sent to Bugzilla following Gia's 
crash when the stencil was being imported.

Thanks

SOTL


On Thursday 24 August 2006 15:13, SOTL wrote:
> Hi All
>
> I know this is very simple but I have not found a tutorial of explanation
> of How-To do what I need.
>
> I have spent the better part of 4 hours goggling for procedures to create
> stencils and looked at the on line tutorials and procedures I could find
> with no results.
>
> Lets assume I make a drawing say a giant "X" with a line through it. A very
> simple drawing. Now I would like to place this in a new Stencil file called
> "Stars" which is similar to the "Electrical" stencil file.
>
> Would some kind person either explain how this is done or point me to a
> How-To that contains such an explanation.
>
> Thanks
>
> SOTL
> ___
> 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
___
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



Re: group_props.py import dia [was: stroke-width]

2006-08-24 Thread Mike Dewhirst
Robert Staudinger wrote:
> On 8/24/06, Mike Dewhirst <[EMAIL PROTECTED]> wrote:
>> Hans Breuer wrote:
>>> Am 23.08.2006 15:48, Mike Dewhirst schrieb:
 Lars Clausen wrote:
> Mike Dewhirst sagde:
 

>> As an alternative, I am looking at group_props.py but it fails to import
>> dia.py. Google reveals a few dia.py results but none are apparently Dia
>> related.
> That is Hans' area, I don't claim to understand the Python parts.  Hans?
 It appears from the all python scripts shown on the website, that there
 must be a module called dia.py.
>>> There needs to be a module called 'dia' to somehow make dia functionality
>>> accessible to Python. It has always been this way, but it is not 'dia.py'.
>>> The Dia's Python bindings are written in C, the source code is in
>>> plug-ins/python. Under windows it is compiled to dia.pyd; under *NIX it
>>> is build if: ./configure --with-python; make; make install
>> Hans
>>
>> Thank you - I found all that in the sources. I was looking for dia.py
>> and missed it.
>>
>> Does anybody build Dia python bindings for Windows?
>>
>> Unfortunately I have no experience compiling C in Windows. Maybe it is
>> time I learned. Could you point me at a how-to suitable for the tools
>> you require?
> 
> AFAIK the official dia win32 build is created using msvc.

I don't possess msvc or any ms dev tools other than notepad.exe. I'm 
getting a feeling of déja vu. Yes - I think I've been here before. On 
that earlier occasion (forgotten what the app was) I elected to use 
Borland's C++ compiler rather than swallow the MS pill. It all failed 
dismally at some penultimate step just before I reached for the rusty 
razor blade.

> Another option is to use mingw/msys, which lets you reuse the *nix
> build infrastructure.

Googling as we speak.

Meanwhile, some questions for the community ...

1. Does anyone already build win32 Dia with python support AND who is 
prepared to post the binaries?

2. Is python support in Dia likely to be maintained in future?

3. Is Dia going to stay in CVS (vis-á-vis Subversion)?

> Warning: dealing with the latter can cause questionable mental
> conditions and should not be attempted by people not savy in using the
> auto-tools. (Frankly: it's a pain)
> 
> That said i have built dia on win32 with msys/mingw some time ago, a
> patch is available from
> http://bugzilla.gnome.org/show_bug.cgi?id=341549 . If you manage
> getting to the point where dia builds with said patch enabling python
> support should be pretty easy.

I see what you mean re Warning: above.

> Maybe trying to adapt the win32/msvc build system would be easier
> though, no idea really.

Out of the question.

Thanks Rob

Mike

> 
>> Would I need to compile the entire suite at the same time?
> 
> Yes.
> 
>> If so, and if I decided to stick with Dia would I need to keep in touch
>> with CVS so I could repeat the process in future?
> 
> Yes.
> 
> Best,
> Rob
> ___
> 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
> 
> 
> 

___
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