Re: Patch for a new feature : sozi

2011-09-25 Thread Hans Breuer

Hi Paul,
sorry for the delay, I wanted to doublecheck the result of applying your 
patch on Linux and than forgot about it.


At 14.09.2011 00:04, Paul Chavent wrote:
[...]

Hello mailing list.

I give you a new version of the sozi patch.

I fixed the long lines issue.
I replaced gsnprintf by gstrdup and g_ascii_formatd().

This looks good and I would have commited your patch to git, but it does 
not apply for me consistently on Windows and Linux:


"""
git apply --whitespace=fix 0002-Add-sozi-front-end.patch
0002-Add-sozi-front-end.patch:28: trailing whitespace.
tree.c \
0002-Add-sozi-front-end.patch:29: trailing whitespace.
sozi-frame.c
0002-Add-sozi-front-end.patch:38: trailing whitespace.
pixmaps/tree.xpm \
0002-Add-sozi-front-end.patch:39: trailing whitespace.
pixmaps/sozi-frame.xpm
0002-Add-sozi-front-end.patch:51: trailing whitespace.
extern DiaObjectType sozi_frame_type;
fatal: git apply: bad git-diff - expected /dev/null on line 66
"""

The error message from git isn't particular useful, because it has exactly 
that on line 66. Switching to "git am" does not work either:


"""
git am  0002-Add-sozi-front-end.patch
Patch format detection failed.
"""

So I'm out of ideas (except for manually merging it) ...


I hope new feedbacks.



 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: dia-list Digest, Vol 89, Issue 42

2011-09-25 Thread Ron Wilson
There used to be InkView, but that seems to have disappeared. (Of
course, Inkscape can be used as a viewer as well as an SVG editor.)

You can still get Adobe;s SVG viewer for Win XP:
http://www.adobe.com/svg/viewer/install/old.html

I haven't tried it with SVG files, but at work we use Swiftview for
many image types.

On Sat, Sep 24, 2011 at 8:00 AM,   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
>        dia-list-requ...@gnome.org
>
> You can reach the person managing the list at
>        dia-list-ow...@gnome.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dia-list digest..."
>
>
> Today's Topics:
>
>   1. Re: It is possible to change shape type without deleting and
>      recreating it? (Andrey Repin)
>
>
> --
>
> Message: 1
> Date: Sat, 24 Sep 2011 15:03:07 +0400
> From: Andrey Repin 
> To: Steffen Macke 
> Subject: Re: It is possible to change shape type without deleting and
>        recreating it?
> Message-ID: <9110496865.20110924150...@mtu-net.ru>
> Content-Type: text/plain; charset="us-ascii"
>
> Greetings, Steffen Macke!
>
>>> I could do it by hands inside the Dia document source (XML, after all, is 
>>> very
>>> flexible format...), but I'd like to have a more straightforward solution.
>> Something like this might be possible with the help of a Python plugin.
>> But "the devil is in the details".
>> Could you provide two "before and after" diagrams?
>
> Sure. I cut a part of it for an illustration. (Original is like 100 times
> bigger)
>
>> Tricky questions might be:
>
>> * How do you select the placeholder shapes?
>
> The default shape, that is most common.
>
>> * How do you select the replacement shapes?
>
> Well, when you know if it's different from common... :)
>
>> * Do the connectors match (somehow)?
>
> They are the same for all shapes in group. (The center point)
>
> P.S.
> Anyone know a fast and reliable SVG viewer for Windows? Pref. with text
> search.
> I'm running short of ideas for search query :/
>
>
> --
> WBR,
> Andrey Repin (anrdae...@freemail.ru) 24.09.2011, <14:59>
>
> Sorry for my terrible english...
> -- next part --
> A non-text attachment was scrubbed...
> Name: Before.svg
> Type: application/octet-stream
> Size: 4474 bytes
> Desc: not available
> URL: 
> 
> -- next part --
> A non-text attachment was scrubbed...
> Name: After.svg
> Type: application/octet-stream
> Size: 9061 bytes
> Desc: not available
> URL: 
> 
>
> --
>
> ___
> dia-list mailing list
> dia-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/dia-list
>
>
> End of dia-list Digest, Vol 89, Issue 42
> 
>
___
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-list Digest, Vol 89, Issue 42

2011-09-25 Thread Andrey Repin
Greetings, Ron Wilson!

> There used to be InkView, but that seems to have disappeared. (Of
> course, Inkscape can be used as a viewer as well as an SVG editor.)

Inkscape startup time is like... 2-3 min? Same with GIMP. Not an option.
Inkscape's inkview (it's still there) is just an example application, not a
usable program by any means.

> You can still get Adobe;s SVG viewer for Win XP:
> http://www.adobe.com/svg/viewer/install/old.html

Thanks. It's not perfect, and a little annoying, but it is, at least,
something I could use.


--
WBR,
Andrey Repin (anrdae...@freemail.ru) 26.09.2011, <03:45>

Sorry for my terrible english...

___
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: ABAP Export

2011-09-25 Thread Tveritinov, Alexey
Hello.
I subscribed to the list, so I hope it would work.
Actually I've not made any changes to java/c++ parts, at least I don't remember 
I did it :) May be "codegen.py" in windows package is out of date ? I added 
"class AbapRenderer(ObjRenderer)", or it was done wrong way ?

Script that I submitted works quite well. However it doesn't generate 
implementation section.

So, if class definition looks like this :
CLASS test_class_cont DEFINITION.
  PUBLIC SECTION.
data: name TYPE string,
  field_1 type i.
METHODS:
  constructor
IMPORTING
   i_name  TYPE string
   i_mx TYPE i.
.
ENDCLASS.   "test_class_for_cont

It should generate implementation section:
CLASS test_class_cont IMPLEMENTATION.
  METHOD CONSTRUCTOR.
  " TODO :: Add code
  ENDMETHOD.
ENDCLASS.   "test_class_for_cont

Comments in ABAP could be two types:
Line starting with "*" (should be first char of the line, no spaces, tabs, ect) 
threated as comment.
Any text after '"' (double quotes) threated as comment until the end of line.
There are no multiline comments.

Is there any way to debug python plugins ? I tried to use try blocks, but no 
luck :(

-Original Message-
From: Steffen Macke [mailto:d...@diagramr.biz] 
Sent: Friday, September 23, 2011 10:24 PM
To: Tveritinov, Alexey
Subject: Re: ABAP Export

Hi Alexey,

thanks for diagram and code.

would you mind subscribing to the Dia mailing list? That's the preferred 
way of communication for
the Dia development. Even if you don't want to subscribe to the list (or 
can't), please CC the list so that
the other users can keep up with the discussion.

I see that you've modified the C++ and Java renderers of codegen.py - I 
this just because you don't
know how to add a ABAP renderer?

My ABAP skills are very limited - could you post the ABAP code you would 
like to see generated (for one or two classes)

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