Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Editing Structograms with the NassiShneiderman plugin

<< < (3/4) > >>

daplan:
Thank you Danselmi for your quick reply. Does that mean that it should be included in current version of Code::Blocks? Is it also included in the 64bit version? Becuase I cant find it nowhere. Installed Code:Blocks via a packet manager on Mint Linux 17.

danselmi:
You need to install the contrib plugins too.

scarphin:
If anyone's interested, I've submitted 3 patches for this plugin:

1- This patch allows the usage of editor colors instead of hardcoded colors to create the diagram. Thanks to Alpha for pointing me out how to get the actual editor colors. Unfortunately I couldn't pinpoint the piece of code responsible for editing the comments/sources on the diagram itself. So editing colors are still hardcoded. Please see screenshots below.
patch here -> https://sourceforge.net/p/codeblocks/tickets/124/
2- This patch enhances the Cparser to allow for more comments at various different places. Please see screenshots below.
patch here -> https://sourceforge.net/p/codeblocks/tickets/125/
3- A simple patch to insert a menu item for 'Create diagram' so that a shortcut can be assigned. Unfortunately I don't know how to disable the menu item if there is no code selected but it must be implemented as cb crashes when the menu item is activated with no selection.
patch here -> https://sourceforge.net/p/codeblocks/tickets/126/

Sample code:


Diagram:

oBFusCATed:
1. I've posted a comment on the sf.net about this.
2. Can you post a screenshot without this patch?
3. If you've set a menu id, then you can register an UpdateUI event which can be used to enable/disable the menu item.

scarphin:
Thanks for the feedback.
1- I've posted a new patch with some comments on sf.net.
2- I can't because the Cparser won't even parse it without the patch (because of some of the comments) and even if it could, the true condition comments won't be at the correct place. I forgot to say; the parser enhancements is not only limited to if/else if/else blocks but to all other structures the plugin can parse.
3- If you can point me to the exact location in cb's source where I can register an UpdateUI event, I'll see what I can do.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version