MindMap

Share your advanced PureBasic knowledge/code with the community.
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

MindMap

Post 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
Last edited by falsam on Sun Aug 18, 2013 10:07 pm, edited 19 times in total.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

Re: MindMap

Post 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!
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post 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

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 794
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: MindMap

Post by Zebuddi123 »

Thanks falsam

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

Zebuddi. :)
malleo, caput, bang. Ego, comprehendunt in tempore
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post by falsam »

Update is out !
Add :
-Project Preference.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: MindMap

Post 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
User avatar
skywalk
Addict
Addict
Posts: 3997
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: MindMap

Post by skywalk »

Yes, very excellent example.
I would also expose the arrow keys to allow movement/placement of a selected entity.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post 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.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post 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.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: MindMap

Post by Arctic Fox »

Hi falsam! Have you seen this one by c4s?
http://www.purebasic.fr/english/viewtop ... 12&t=45192
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post by falsam »

Bonjour Arctic Fox, I did not know this code, really very good work. Thank you for showing this link.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post 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.

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post 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:)

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
MicroByte
New User
New User
Posts: 8
Joined: Tue May 08, 2012 11:06 pm

Re: MindMap

Post by MicroByte »

HI

This is shaping up to be a really useful tool, thanks for all your hard work
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: MindMap

Post by falsam »

Thanks MicroByte and welcome :)
On what operating system you have tested this code?

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
Post Reply