Closed polch closed 13 years ago
Hi.
It's a good thing to have different fron-ends to Sozi. I fully support your idea. (But actually, my agreement is not necessary as long as you comply with the license of Sozi.)
Please let me know if you need help.
I have released a first patch with a demo here : http://paul.chavent.free.fr/sozi.html
Hi Dia users.
Just a little message to give an updated patch of the sozi front-end.
It is rebased on master and it has a new aspect option (fixed, free).
For those who don't know sozi, here is a page with impressive presentations done with sozi : http://sozi.wikidot.com/presentations
I still maintain a mini how to use sozi in dia : http://paul.chavent.free.fr/sozi.html
Regards.
Paul. From 0ebf478ea1e7698a5c625d595de879c2522c4b85 Mon Sep 17 00:00:00 2001 From: Paul Chavent paul.chavent@fnac.net Date: Sun, 16 Dec 2012 23:42:56 +0100 Subject: [PATCH] Add sozi front end
configure.in | 12 + objects/Misc/Makefile.am | 9 +- objects/Misc/libmisc.c | 2 + objects/Misc/pixmaps/sozi-frame.xpm | 196 +++++++ objects/Misc/sozi-frame.c | 1087 +++++++++++++++++++++++++++++++++++ objects/Misc/sozi.h | 317 ++++++++++ sheets/Misc.sheet.in | 3 + 7 files changed, 1624 insertions(+), 2 deletions(-) create mode 100644 objects/Misc/pixmaps/sozi-frame.xpm create mode 100644 objects/Misc/sozi-frame.c create mode 100644 objects/Misc/sozi.h
diff --git a/configure.in b/configure.in index 9dce17f..7e9197c 100644 --- a/configure.in +++ b/configure.in @@ -184,6 +184,18 @@ AC_SUBST(XSLT_DIR) AC_SUBST(XSLT_LIBS) AC_SUBST(XSLT_CFLAGS)
+# Find where are the sozi.version, sozi.js and sozi.css files +AC_ARG_WITH(sozi-path,
AC_ARG_WITH(xslt-prefix, [ --with-xslt-prefix=DIR Specify where to find the optional XSLT libraries diff --git a/objects/Misc/Makefile.am b/objects/Misc/Makefile.am index 306fae4..bf76918 100644 --- a/objects/Misc/Makefile.am +++ b/objects/Misc/Makefile.am @@ -7,8 +7,12 @@ libmisc_objects_la_SOURCES = \ diagram_as_object.c \ grid_object.c \ measure.c \
+if WITH_SOZI_PATH +libmisc_objects_la_CFLAGS = -DSOZI_PATH="\"$(SOZI_PATH)\"" +endif
libmisc_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
@@ -23,7 +27,8 @@ EXTRA_DIST = \ pixmaps/grid_object.xpm \ pixmaps/measure.xpm \ pixmaps/newgroup.xpm \
diff --git a/objects/Misc/libmisc.c b/objects/Misc/libmisc.c index e72ea9a..65b75a9 100644 --- a/objects/Misc/libmisc.c +++ b/objects/Misc/libmisc.c @@ -33,6 +33,7 @@ extern DiaObjectType grid_object_type; extern DiaObjectType tree_type; extern DiaObjectType measure_type; extern DiaObjectType diagram_as_element_type; +extern DiaObjectType sozi_frame_type;
DIA_PLUGIN_CHECK_INIT
@@ -48,6 +49,7 @@ dia_plugin_init(PluginInfo *info) object_register_type(&tree_type); object_register_type(&measure_type); object_register_type(&diagram_as_element_type);
object_register_type(&sozi_frame_type);
return DIA_PLUGIN_INITOK; } diff --git a/objects/Misc/pixmaps/sozi-frame.xpm b/objects/Misc/pixmaps/sozi-frame.xpm new file mode 100644 index 0000000..e5f3ed3 --- /dev/null +++ b/objects/Misc/pixmaps/sozi-frame.xpm @@ -0,0 +1,196 @@ +/* XPM / +static char * sozi_framexpm[] = { +"22 22 171 2", +" c #FFFFFF", +". c #FEFEFE", +"+ c #FDFDFD", +"@ c #F7F7F8", +"# c #D2D2D2", +"$ c #939393", +"% c #8A8A8A", +"& c #BEBEBE", +" c #F2F2F2", +"= c #FCFCFC", +"- c #F3F3F3", +"; c #FBFBFB", +"> c #FEFEFF", +", c #FCFCFB", +"' c #FAF4F1", +") c #FAF1EB", +"! c #F8F5F2", +"~ c #BFBFBF", +"{ c #E4E4E4", +"] c #F1F1F1", +"^ c #ADADAD", +"/ c #F5F5F5", +"( c #BEBABE", +" c #99909A", +": c #EDEAED", +"< c #ECDCD2", +"[ c #C3682D", +"} c #C64500", +"| c #98562A", +"1 c #BBB6B2", +"2 c #F8F8F9", +"3 c #FBFCFB", +"4 c #FBFCFC", +"5 c #E8BC9E", +"6 c #F55A00", +"7 c #F05F00", +"8 c #E4BCA1", +"9 c #F3F8FC", +"0 c #F6F6F6", +"a c #DCDCDC", +"b c #CACACA", +"c c #CDCDCD", +"d c #CBCBC9", +"e c #D8D8D7", +"f c #FBFBFC", +"g c #E7B99A", +"h c #F25600", +"i c #DD7A39", +"j c #E7DDD6", +"k c #D0D0D0", +"l c #C8C8C8", +"m c #989898", +"n c #CACBCC", +"o c #A3A298", +"p c #BFB483", +"q c #EEE8D1", +"r c #FBFBFA", +"s c #FAFBFC", +"t c #E6BA9E", +"u c #EB5400", +"v c #ECA372", +"w c #F8FBFD", +"x c #ECECEC", +"y c #FBFCFE", +"z c #D3D1C7", +"A c #DDB617", +"B c #C4A423", +"C c #EFECE1", +"D c #FBFDFF", +"E c #E5C3AD", +"F c #DD5A03", +"G c #E8AD85", +"H c #F9FFFF", +"I c #E6E6E6", +"J c #E9E9EA", +"K c #CFCECD", +"L c #DEBF2D", +"M c #C99E00", +"N c #EDE9D1", +"O c #E4D5CC", +"P c #AE6636", +"Q c #E2BCA3", +"R c #FFFFFE", +"S c #E5E5E5", +"T c #C8C8C9", +"U c #D9DBE5", +"V c #DBBD39", +"W c #B79A21", +"X c #EDEADF", +"Y c #ECEAE9", +"Z c #A98C7A", +"`c #D3B8A6", +" . c #E3E3E3", +".. c #C7C7C7", +"+. c #F1F3FC", +"@. c #A5965C", +"#. c #BDB496", +"$. c #BEBBB8", +"%. c #B3ACA7", +"&. c #E9E7E7", +"*. c #B6B4B4", +"=. c #92939A", +"-. c #DFDFE3", +";. c #ADAEAF", +">. c #CCCDCE", +",. c #7D898D", +"'. c #DCDBDA", +"). c #EDEDED", +"!. c #DADADA", +"~. c #9B9B9B", +"{. c #DEDEDE", +"]. c #FFFEFE", +"^. c #B4CBD2", +"/. c #389CB5", +"(. c #6E9CA8", +". c #DDDDDD", +":. c #EAEAEA", +"<. c #CECECE", +"[. c #B6B6B6", +"}. c #E7E7E7", +"|. c #B2D0D8", +"1. c #1BB6DE", +"2. c #00A7D3", +"3. c #82AFBB", +"4. c #EEEEEE", +"5. c #999999", +"6. c #F0F0F0", +"7. c #E0E0E0", +"8. c #F9FCFC", +"9. c #1194B5", +"0. c #00CEFF", +"a. c #23BAE1", +"b. c #C3D0D4", +"c. c #D4D4D4", +"d. c #FAFCFC", +"e. c #2E8FA8", +"f. c #00BDEF", +"g. c #3AB4D3", +"h. c #F8F2F1", +"i. c #EBEBEB", +"j. c #C6C6C6", +"k. c #A8A8A8", +"l. c #F4F4F4", +"m. c #DBE7EB", +"n. c #6894A0", +"o. c #6C8288", +"p. c #A3A1A0", +"q. c #949494", +"r. c #8F8F8F", +"s. c #E2E2E2", +"t. c #BABABA", +"u. c #CBCACA", +"v. c #9A9898", +"w. c #F3F2F1", +"x. c #E9E9E9", +"y. c #E8E8E8", +"z. c #F9F9F9", +"A. c #F7F7F7", +"B. c #A9A9A9", +"C. c #C1C1C1", +"D. c #D7D7D7", +"E. c #F7F6F6", +"F. c #FAFAFA", +"G. c #5F5F5F", +"H. c #B2B2B2", +"I. c #F8F8F8", +"J. c #D8D8D8", +"K. c #909090", +"L. c #7D7D7D", +"M. c #858585", +"N. c #B4B4B4", +" . . . . . + + . . . . . ", +" . @ # $ % & . = - ; . ", +" > , ' ) ! ~ { ] ^ / ( _ : ", +" < [ } | 1 2 . . ~ 3 . . ", +" 4 5 6 7 8 9 = . 0 a b c ; d e > . ", +" f g h i j . 0 k l m n o p q r . . ", +" s t u v w . x y z A B C > . ", +" D E F G H . . = I J K L M N ", +" O P Q R . S T U V W X > ", +" . Y Z` > . . ...+.@.#.2 ", +" R $.%. . . . . &..c =.-. ", +" . n ;.= . . >.,.'.a ). . . ", +" . !.~.{. . . ].^./.(. . # . ", +" . :.<.[.}. . + |.1.2.3. 4...5.= ", +" * 6.c 7.+ 8.9.0.a.b. . 6.<.+ ", +" . c.7.# - . . d.e.f.g.h. ", +" . i.j.k.l. > m.n.o.p.$ q.r.s.. ", +" . . I & t.0 ; ] u.v.w.).x.x.y.z.. . ", +" . + A.B.c C.<.D.E. . . ", +"F.G.H.i.I. 4.C./ z.; ; . . ", +". / J.~ K.L.M.N.l.. . . ", +" . . + + + . . . . . "}; diff --git a/objects/Misc/sozi-frame.c b/objects/Misc/sozi-frame.c new file mode 100644 index 0000000..e88b52d --- /dev/null +++ b/objects/Misc/sozi-frame.c @@ -0,0 +1,1087 @@ + +/_ Dia -- an diagram creation/manipulation program
I was wondering if the Dia port was still maintained.
You are posting this announcement in a thread that was closed a year ago. The discussion group would be a better place for this. https://groups.google.com/group/sozi-users
Hi.
I'm ready to submit to the Dia project (http://live.gnome.org/Dia) a patch for "including Sozi support in Dia".
Before doing so, i wonder if the Sozi team would agree with this submission.
I can send you the patch before submitting it to the Dia ml.
Thank you for Sozi.
Paul.