Hi everybody,
Since now 4(5) Sparta packages are in the Release-candidate of 1.8 i thought it's time to ask for some information, documentation and examples for these packages.
The Author is known here as
hnb.
Since 1.6 (release) there is the
Sparta_DockedFormEditor that works like the (not so) new Delphi-Form-Editor.
Whenever there there is a Form-File in the editor you have a 2 tabs in the bottom to switch to Form-Designer and back to the Code-View.
You get the biggest advantage of this editor when you use it together with anchor-docking.
New in 1.8 (i think) is the
Sparta_SmartFormEditor that looks a little bit like the S_DockedFormEditor.
But also shows the Form-Frame of the window and also includes a Button that shows the Component-Tab on request on the top of the Form-Designer.
There will be a fast editor for form icons/border styles. Not usable(according to hnb)/finished yet.
But despite the actual building stage it looks very promising.
New in 1.8 is also the:
Sparta_MDI - Package
(no Information here) I think it is some sort of Multi-Document-Interface - Implementation (even if target widget doesn't supports MDI).
It is basing on code form Sparta_DockedFormEditor. Not usable/finished yet.
Then there is:
Sparta_toolsapi(no Information either) Some sort of API for Sparta tools
compatible interface with Delphi Open Tools API. Will be renamed. Not usable/finished yet.
Last but not least the:
Sparta_genericsThat one will be part of FPC-rtl as rtl-generics one day.
The good thing is, it comes with examples:
at <LazDir>\components\sparta\generics\examples there are several:
all work except the THashMapCaseInsensitive. (and they work (and don't work) with rtl & sparta - generics.) So looking into them gives you a head-start for the time when it's released.
My version of these examples are here:
https://github.com/joecare99/Public/tree/master/Examples/Source/Sparta * (the units)
and
https://github.com/joecare99/Public/tree/master/Examples/FPC T*.lp* (The Project-files)
and
https://github.com/joecare99/Public/tree/master/Examples Sparta_ex.lpg (The Project-Group)
... it comes with a Project-Group where all examples are bound together in one group.
rtl-generics (temporary added to Lazarus as sparta_generics package) is very stable. Generally compiler have ugly bug for "class var" (without simple workaround, so I can't fix this directly in rtl-generics):
https://bugs.freepascal.org/view.php?id=30433
https://bugs.freepascal.org/view.php?id=28911
(I am not the author, of those packages, so bug-reports are welcome but remember to also report to mantis ..)
You may also have a look into
http://newpascal.org/assets/modern_pascal_introduction.html which is a very brief documentation about Modern Pascal from the same author.
If you have any information/documentation/examples about those packages, please write here.
I'll try to update this first entry accordingly, and also use this as a template for a wiki (later).