It would be fantastic if we could have an easy-to-implement Undo-Redo library for PB.
Since the PB IDE has Undo-Redo, perhaps the job is already done?
Missing weapon from the PB Arsenal: Undo-Redo
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Missing weapon from the PB Arsenal: Undo-Redo
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Missing weapon from the PB Arsenal: Undo-Redo
I never tried it, but I remember this -> http://www.purebasic.fr/english/viewtop ... 52#p328352 by srodIdeasVacuum wrote:It would be fantastic if we could have an easy-to-implement Undo-Redo library for PB.
I suppose the editor use what provided by Scintilla -> http://www.scintilla.org/ScintillaDoc.html#UndoAndRedoIdeasVacuum wrote:Since the PB IDE has Undo-Redo, perhaps the job is already done?
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
Re: Missing weapon from the PB Arsenal: Undo-Redo
Here is a german tutorial, how to manage undo/redo functions:
Verwaltung für Undo-/Redo-Funktionen
A library for PB isn't "easy",
because you have to create anyway callbacks for any Do, Undo and Redo,
depending on the topic: text editor, graphics editor, file management, games
and what should be redo or undo (full versions, only changes)
Verwaltung für Undo-/Redo-Funktionen
A library for PB isn't "easy",
because you have to create anyway callbacks for any Do, Undo and Redo,
depending on the topic: text editor, graphics editor, file management, games
and what should be redo or undo (full versions, only changes)
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Missing weapon from the PB Arsenal: Undo-Redo
Not saying it is easy for Fred/Freak to make the library, but that we would want it to be easy to use.easy-to-implement
I did take a look at sRod's effort. At the time it was a Beta and I didn't really understand it well enough to trust my implementation of it -so I wrote my own, specifically for the app I was working on, but not really suitable for different types of apps.
I think you are probably right Luis, current PB IDE is likely to be using the Scintilla Undo Redo.
For C++ there is a lib I only recently heard of: GeMS++. This is used by Kubotek for their CAD file viewer KeyView - an application that has a lot of possible User actions to track for Undo-Redo, so I assume that GeMS++ is the business.
http://sourceforge.net/projects/gems-pp/
Edit
Owch! Google Chrome completely messes-up the code sections of a post if translation is used!
I understand the theory StarGate - nice intro to that in your post, but it seems like the wheel has to be re-invented for each specific app. I don't know, perhaps I wish for too much. It's one of those things where I don't enjoy writing the code - when that is the case I sometimes lack patience.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Missing weapon from the PB Arsenal: Undo-Redo
I did one here:
http://purebasic.fr/english/viewtopic.p ... lowlvedits
http://purebasic.fr/english/viewtopic.p ... lowlvedits
BERESHEIT