Page 1 of 3

MindMap

Posted: Mon Jun 11, 2012 12:15 am
by falsam
PB 5.20dated for 5.20+ (Window, Linux, MacOs) - Update : 18 Aout 2013

This code is the beginning of a Mind Mapping software which make it easy (I hope:p) to create mind maps, brain-storming diagrams, project timeline, life planner ...

:arrow: download:
MindMap V1.90 (Source)

Image
Insert a box and select the Insert key to insert a node. You can also insert a node from the context menu (menu PopPup).

Licence : Use As You Like

-Shortcut keys.

F11 Show horizontal toolbar.
S SnapGrid or not SnapGrid
B Insert new round box
T Insert new text
I Insert new image

Ctrl+N New Project
Ctrl+O Open Project
Ctrl+S Save Project
Ctrl+P Project Preference

Ctrl+A Select all entitiies. Move only
Ctrl+C Remember entity.
Ctrl+V Paste a previously stored entity.
Ctrl+X or Delete Delete an entity.

Ctrl+L Link one entity to another entity.
Ctrl+UUnLink one entity.

Ctrl+Return Edit long texte

F2 or Spacebar or Double Click Inspector entity.
The Enter key is used to validate each field of the Inspector and move from one field to another filed.

Escape closes the inspector.

This code works with version 4.61 of pure basic. the constants #PB_Cursor_LeftUpRightDown and #PB_Cursor_LeftDownRightUp are not recognized in version 4.60.

If you want to continue with version 4.60, replace #PB_Cursor_LeftUpRightDown and #PB_Cursor_LeftDownRightUp by #PB_Cursor_Cross.

Thank you for your Feedback.

Original thread on the French forum
:arrow: http://www.purebasic.fr/french/viewtopi ... =6&t=12885

Re: MindMap

Posted: Mon Jun 11, 2012 6:33 am
by jesperbrannmark
Wow.
This was really a bit of awakening.
I think I must learn french, because you have some neat stuff going on in the french forum (really liked your CanvasVariation as well, that should be the next cross platform visual designer!)

Nice work!

Re: MindMap

Posted: Mon Jun 11, 2012 10:49 am
by falsam
Thanks jesperbrannmark. I have to learn English too: p

I just saw that this code does not work with version 4.60 of Pure basic.
This code works from version 4.61 of pure basic. the constants #PB_Cursor_LeftUpRightDown and #PB_Cursor_LeftDownRightUp are not recognized in version 4.60.
If you want to continue with version 4.60, replace #PB_Cursor_LeftUpRightDown and #PB_Cursor_LeftDownRightUp by #PB_Cursor_Cross. Thank you for your Feedback

Re: MindMap

Posted: Mon Jun 11, 2012 3:25 pm
by Zebuddi123
Thanks falsam

Lots to learn from and just whats needed save me getting confused so much :lol:

Zebuddi. :)

Re: MindMap

Posted: Mon Jun 11, 2012 6:22 pm
by falsam
Update is out !
Add :
-Project Preference.

Re: MindMap

Posted: Mon Jun 11, 2012 7:30 pm
by Arctic Fox
Great work, falsam! :D
And a good demonstration of the CanvasGadget.

Nevertheless, in several places I think

Code: Select all

If SelectColor
should be replaced by

Code: Select all

If SelectColor <> -1
And you may want to use a temporary 32-bit transparent image for the triangle (Losange, model no. 5) because FillArea does not override the points of the snap grid. :)

Keep up the good work :D

Re: MindMap

Posted: Mon Jun 11, 2012 8:22 pm
by skywalk
Yes, very excellent example.
I would also expose the arrow keys to allow movement/placement of a selected entity.

Re: MindMap

Posted: Tue Jun 12, 2012 12:51 pm
by falsam
Arctic Fox wrote:"If SelectColor" should be replaced by "if SelectColor <> -1"
Noob mistake !! Update done. Thanks :)
Arctic Fox wrote:And you may want to use a temporary 32-bit transparent image for the triangle (Losange, model no. 5) because FillArea does not override the points of the snap grid.
I changed the color of grid points. But it is true that this is a problem with the use of FillArea ()

New version is done. Enjoy.

Re: MindMap

Posted: Fri Jun 15, 2012 10:18 pm
by falsam
New version 1.37 is done
Add
-Multiline text-entry.
Access from the context menu, the inspector of the entity or by pressing Ctrl + Return.
Do not use the enter key at the moment because the result is not perfect.

-Align text left, right and center.
The justification for both left and right while present in this version is a disaster.

Re: MindMap

Posted: Fri Jun 15, 2012 10:36 pm
by Arctic Fox
Hi falsam! Have you seen this one by c4s?
http://www.purebasic.fr/english/viewtop ... 12&t=45192

Re: MindMap

Posted: Fri Jun 15, 2012 11:08 pm
by falsam
Bonjour Arctic Fox, I did not know this code, really very good work. Thank you for showing this link.

Re: MindMap

Posted: Sat Jun 16, 2012 10:43 pm
by falsam
The source of MindMap version 1.50 is available.

Adding a toolbar only available with the F11 key.
I have a problem pointer. if you just create an entity, do not forget to select this entity before one action on it.

Since the inspector entity (F2 key or space bar or context menu) you can change the type of relationship from a parent entity.

Re: MindMap

Posted: Mon Jun 18, 2012 6:08 pm
by falsam
MindMap version 1.60 is available.

Add :
-Insert image (JPG and PNG).
-New shortcut keys.
B Insert new round box.
T Insert new text.
I Insert new image.

Enjoy:)

Re: MindMap

Posted: Mon Jun 18, 2012 8:22 pm
by MicroByte
HI

This is shaping up to be a really useful tool, thanks for all your hard work

Re: MindMap

Posted: Tue Jun 19, 2012 11:17 am
by falsam
Thanks MicroByte and welcome :)
On what operating system you have tested this code?