With such a nice weather I drive a little bit more bicycle, therefore the track function of MUIMapparium is more interesting at the moment.
First of course the export I added for the Route also is useful for the track and there even more, because we can print out some additional informations about the track.
Depending on the Program recording the track the data can be very noisy so I added a simple smoothing function.
To be honest, the YOURS route finding is very bad, I need to find a replacement for it, the openrouteservice looks nice but I guess to really use it I have to host it myself.
Besides that I’m working on PNG export for MUIMapparium and also export the Route as HTML with the overview (just the current view of window).
After a long time I decided that MUIMapparium has enough bugfixes and improvements to make a new release.
The biggest changes are the Manual, the faster network speed, an about window and route calculation.
BugFix: OS4 ToolType reading
BugFix: Track plot enabling
BugFix: Deleting Tiles
Amiga Guide manual
About MUI Menu Entry
Reopen Statistics Window on start if left open on quit
Set color for Tracks and Routes
Show Route Orders jump to position
Block redrawing when moving map (prevents map jumping)
I was working on the route creation, sadly it seems the OpenLS is not available anymore for routing, so only YOURS is left. Thats a little bit pity because YOURS calculate nicely the route and orders for it, but sadly it does not show where the orders take place. (OpenLS did that, even there the route calculation was a little bit odd sometimes, thats teh reason I supplied both in Mapparium).
Nevertheless, it works now with YOURS for now, need a little bit more tweaking (especially to get the start/end point from current map center for example)
The search I managed now to put into a PopObject, if you type the search press enter or search button it will do a search (like the main search) and open the popup with the list of results a double click on an entry set it as start/stop point
Working on a Installer script to installing FreePascal for Amiga using the official way. In the past I often used Installer scripts but never wrote one. It looks very close to LISP (brackets everywhere 😉 ) luckily the scripts are just saved as text. You can peek into other scripts, how to make some of the more difficult parts. For the basic structure I found a nice program in Aminet InstallerGen, it provides a nice MUI Gui to create the install steps, which also helps to understand the language.
The first version is finished now. You can select the installation type, minimal, typical, full and customized. On customized you can select the packages to install. (see image) Of course it also adds the needed entries for assign and path to the user-startup. The plan is to create some more such installers to install more packages, afterwards, like LCL, MUIClass or the FPU-enabled units.
For MorphOS and OS4 this should be easy to create from it. On AROS it will be a little bit different, there is no need to alter the user-startup, you only need to register it as a package.
Traveling is nice, but also nice to be back. As wrote in he travel blog entry I worked on the MUIIDE, especially on the Menu creating stuff, which is quiet difficult things, but prepares other stuff to come (like listview and lists). You can create now very easily Menus with Submenus with the IDE.
There seems to be a little bug, sometimes when I change a combobox active entry, the GUI does not follow it. I debugged it a little bit, and it seems like and updating problem, because after resizing the window everything seems to be normal. Needs some more investigation.
Finally I got it working saving and loading also works now for events, as I described before I had to relocate the complete Eventhandler routine to make that possible (in an abstract way).
Now it’s also possible to add multiple Windows. (But only the first one is open by default), I have to think about how to solve it, but of course you can open the other Windows in the OnShow Event of the MainWindow. Or as I show in the Video on Button Press.
A little demonstration (featuring “awesome drawing skills” icon 😉 ):
Notice to me, stop Delitracker before recording, or the mouse pointer whips with the Music 😉
After that is finished I guess the next one will be properties which are other classes, like Menu or List at the ListView.
I also have some ideas how to deal with special Values (like the Window inital position, MUIV_Window_LeftEdge_Centered and so on) but this will need a little bit more thinking and of course much work 😛 .
Back to topic, after this little Vampire excursion, I continued working on MUIIDE especially the loading and saving, atm. I just save/load a project file which is a simple XML very easy for Trees to handle in XML and also can save nearly every content. But of course with this it will be not possible to export the source code and reload it to add an additional item… especially if you changed the source. It will be very difficult to make that happen, of course Lazarus does this… but Lazarus is a code monster difficult to dig out how this is done and maybe thats even not transferable to my code. I’m not sure what to do here.
Loading and saving for the properties is already finished and working well, but at this position I noticed that I did the eventhandler keeping wrong this way I can not save them to the project file, seems need some more thinking.
After that is finished I will try to add class properties, like Menu (Window), List (on a ListView) and so on Also thinking about to make the project multi window compatible, so that it really can hold the complete application not just a window, then the root of my Tree should be application and not Window.
Wrote a little Makefile and added the MUIClass compilation to the Jenkins build server. On every change in the repository it will recompile MUIClass for all available platforms. At the occasion I noticed that I did some errors for 64 bit (Integer – PtrInt) also corrected this. The Jenkins compilation create a little archive with the compiled units, IDE and examples. If you download them together with FPC release archive for your platform it should be directly usable. It also creates the documentation directly and as archive on the build server.
The exception handling I mentioned yesterday is improved. To satisfy MUI/Zune I put a try, except into every hook function before calling the Eventhandler, it makes sure the program returns from the hook to MUI/Zune. Of course the basic function is still the same, if the User decide to break the program, it will be terminated or if you connect the OnException event is assigned it gets triggered.
When an exception appears which is not covered by any try/except the program will just end (and print the exception to Debugout) which is not very nice. Again take some idea from LCL and catch all exceptions in the Event handler and show to user as nice MessageBox. But MUI certainly does not like it if you leave the Eventhandler in such a rude way 😉 (at least Zune on AROS) so after it the Eventhandler is dead because Zune thinks this is a circular calling. It’s not true but it’s prevents you to call that event again. Best thing here is to end the application an restart. Therefore I ask the user what to do, ignore the exception, knowing that this will have strange effects, or leave the program directly.
The ignore could be interesting if you have the chance to save your data before closing the program. Of course the writer of program can also override the Exception handling (via OnException Event in MuiApp, as used to from Delphi/LCL.