TWikiDrawPlugin Patches

See also: DebianPatches

All changes are in release 1.2.

The Plugins/TWikiDrawPlugin has problems with moin--main--1.2 and saving files under Twisted, because Twisted can't pass the filename of a file attachment to the application. This can be fixed by getting the applet to sent a filename (it already does, but its empty!). I've added a basename param to the applet (basename == name of the file without extension) which will be used a base of the filename parameter when postion the changed drawing back to the MoinMoin server (so if basename is mytest, the applet will sent mytest.png, mytest.map, and mytest.draw as filenames).

Additionally I fixed the edit border in the image map created by the applet. This image map can be used to activate parts of the image as links. This edit border (invisible!) leads you to the edit page of the drawing.

The last change I've done is to add the capability to create indexed PNG images as output.

Changelog

Entries with an /!\ are new and not incorporated into moin--main--1.2

Downloads

Timestamp

2004-02-07 20:45:50

Sources

twikidraw-sources.zip

Plugin

twikidraw.jar

Patches

. versus T!WikiDrawPlugin sources of 29 Jan 2003 - 21:47 twikidraw-full.diff

Test

mytest.tdraw new.tdraw

? Edit drawing meintest.tdraw (opens in new window) Edit drawing meintest.tdraw (opens in new window) Edit drawing meintest.tdraw (opens in new window) Edit drawing meintest.tdraw (opens in new window) meintest.tdraw

Q & A

Did you contact with the original author and try to upstream it ? I want to use the Png Export ability with TWikiDrawPlugin --AnonymousDonor

Can you provide a recipe for compiling the source? I want to include it officially for Debian were it needs to be compiled from source. --JonasSmedegaard

Bug report

Patched Version for Embedded Newlines in Text

The following attachments modify the StorableOutput.java class to filter out embedded '\r' from the resulting *.draw file when text contains newlines. Before this change, attempts to reopen a *.draw file containing embedded newlines resulted in failure.

newline_fix_twikidraw.jar

newline_fix_twikidraw-sources.zip

-- TonyGarland 2005-09-12 16:35:50

TWikiDraw 1.103 with OliverGraf's adaptation for MoinMoin

The following is a TWikiDraw 1.103 version from original site with properly integrated OliverGraf's modifications.

Sources

TWikiDrawPlugin-1.103-OliverGraf-source.zip

Plugin

twikidraw-1.103-OliverGraf.jar

Patches

. versus T!WikiDrawPlugin 1.103 sources of 11 Mar 2005 - 16:46 twikidraw-1.103-full.diff

-- VoldemarLeGrand 2005-11-28 21:53:35

Patched Version for storing *.draw files using UTF-8 encoding

The following is a TWikiDrawPlugin version 1.103 patched with OliverGraf's modifications and added UTF-8 support. In this version *.draw files are stored using UTF-8 encoding. So all international characters are preserved. Attention: this version may, in some circumstances, incorrectly load international characters (non ASCII characters) from *.draw files created with original verion of the plugin.

Plugin

twikidraw-1.103-utf8.jar

Sources

TWikiDrawPlugin-1.103-utf8-source.zip

Patches

. versus T!WikiDrawPlugin 1.103 sources of 11 Mar 2005 - 16:46 twikidraw-1.103-utf8.diff

-- VoldemarLeGrand 2005-11-28 21:53:35

If someone has some spare time, we need the following:

Until this is done, there might be no debian twikidraw plugin as debian requires stuff built from source.

If someone can do this really fast, it might get into 1.5.0. If not, there is more time until 1.5.1.

While you're at it:

--

I've just made a ZIP with a directory tree based upon an OliverGraf's original source code, a very simple build.xml and README. It's enouth to extract ZIP in /contrib/TWikiDrawPlugin and run properly configured Ant in this directory to build the applet. TWikiDrawPlugin-OliverGraf-SourceTree.zip

I am ready to investigate TWikiDraw related bugs and make patchsets to integrate TWikiDraw sources into MoinMoin distribution directory tree. But I need some time to do it.

-- VoldemarLeGrand 2005-12-27 01:47:40

Thanks a lot, that's maybe exactly what we needed. I committed it to moin-1.5 archive. -- ThomasWaldmann DateTime(2005-12-28T00:11:44Z)

Makefile patch to build the TWikiDrawPlugin from source. It will only be built if you set the variable BUILD_TWIKIDRAW in your environment first.twikidrawbuild.patch

-- JoseQuinteiro 2009-02-26

What about using JGraphpad Community Edition in with MoinMoin instead of TWikiDraw?

Hi, I'm a professional java developer, but in my spare time I'm working on maintaining JGraphpad Community Edition (CE), a very powerfull open source java diagram editor based on the JGraph diagram visualization library. This java swing graph library is inspired from the design of the JTree API and is professionally supported by JGraph.com while being LGPL open source. JGraphpadCE is itself released under the GPL license so far.

You can try JGraphpad CE there: http://wiki.visualmodeller.org/JGraphpadCE

The main benefits of JGraphpad over TWikiDraw are:

minus:

Installation in the MoinMoin wiki: please read: http://wiki.visualmodeller.org/MoinMoinPlugin other demos can be found from: http://wiki.visualmodeller.org/ cheers, RaphaelValyi

Is JGraphpadCE the same thing you get from jgraph.com? -- DanGregory 2006-10-19 14:52:27

-> Not at this time. JGraph.com turned mainly commercial since late 2004 and is now selling JGraphpad Pro (which uses the same LGLP JGraph core library as JGraphpadCE but JGraphpad Pro is only distributed under a closed source commercial license). Differences between JGraphpadCE and JGraphpadPro are summed up here: http://wiki.visualmodeller.org/PadCEvsPadPRO -- RaphaelValyi

MoinMoin: OliverGraf/TWikiDrawPlugin (last edited 2018-08-18 12:48:02 by ThomasWaldmann)