Changes between Version 17 and Version 18 of DiaVisViewPlugin
- Timestamp:
- Jul 28, 2015, 12:57:25 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DiaVisViewPlugin
v17 v18 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Render dia and vdx files =3 2 4 == Description == 3 = Render dia and vdx files 4 5 == Description 5 6 6 7 This plugin automatically creates a bitmapped render of [http://live.gnome.org/Dia Dia] and MS Visio VDX diagrams when attaching them to objects in Trac. … … 10 11 It has had very little testing. It has been set up as a separate hack to the original DiaViewPlugin so as not to break DiaViewPlugin for Trac < 0.11. 11 12 12 If the width was changed in the macro argument the displayed image would scale, however the source file stayed the same. To overcome this the width is checked using the image library, and if different it is re-rendered. Please see the link below for the image library.13 If the width was changed in the macro argument, the displayed image would scale, however the source file stayed the same. To overcome this issue, the width is checked using the image library, and if different it is re-rendered. Please see [http://www.pythonware.com/products/pil/ Python Imaging Library]. 13 14 14 http://www.pythonware.com/products/pil/ 15 16 == Bugs/Feature Requests == 15 == Bugs/Feature Requests 17 16 18 17 Existing bugs and feature requests for DiaVisViewPlugin are [query:status!=closed&component=DiaVisViewPlugin&order=priority here]. 19 18 20 19 If you have any issues, create a 21 [/newticket?component=DiaVisViewPlugin &owner=robert_martinnew ticket].20 [/newticket?component=DiaVisViewPlugin new ticket]. 22 21 23 == Download and Source == 22 [[TicketQuery(component=DiaVisViewPlugin&group=type,format=progress)]] 23 24 == Download and Source 24 25 25 26 Download the [download:diavisviewplugin zipped source], check out [http://trac-hacks.org/svn/diavisviewplugin using Subversion], or [source:diavisviewplugin browse the source] with Trac. 26 27 27 == Example ==28 == Installation 28 29 29 To install download the archive, then either 30 To install download the archive, then either run: 31 {{{#!sh 30 32 $ python setup.py install 31 or copy it to the plugins directory of the particular project 33 }}} 32 34 33 Do not forget to '''enable''' the '''macro''' in trac.ini in the components section like this: 34 {{{ 35 #!ini 35 or copy it to the plugins directory of the particular Trac project. 36 37 Do not forget to '''enable''' the '''macro''' in your `trac.ini` file in the components section like this: 38 {{{#!ini 39 [components] 36 40 diavisview.* = enabled 37 41 }}} 38 42 39 Also ensure that '''dia''' (diagram editor) and the '''Python Imaging Library''' (cf. link above)are installed.43 Also ensure that '''dia''' (diagram editor) and the '''Python Imaging Library''' are installed. 40 44 45 == Example 41 46 42 Attach a file you wish to display to the page as per normal. 47 Attach a file you wish to display to the page as per normal. The files can be either dia or vdx, compressed or uncompressed. 43 48 44 Make suitable macro entries in the page. If a number is given after the filename it will be taken as the width.Please see the main image macro for all the options.49 Make suitable macro entries in the page. If a number is given after the filename it will be taken as the width. Please see the main image macro for all the options. 45 50 46 ![[DiaVisView(Diagram1.dia)]] 51 {{{ 52 [[DiaVisView(Diagram1.dia)]] 47 53 48 ![[DiaVisView(Diagram2.vdx, border=5)]] 54 [[DiaVisView(Diagram2.vdx, border=5)]] 55 }}} 49 56 50 51 == Recent Changes == 57 == Recent Changes 52 58 53 59 [[ChangeLog(diavisviewplugin, 3)]] 54 60 55 == Author/Contributors ==61 == Author/Contributors 56 62 57 63 '''Author:''' [wiki:robert_martin] [[BR]]