[Qlandkartegt-users] Waypoint Icons - new concept
Brought to you by:
kiozen
|
From: Oliver E. <oli...@gm...> - 2011-02-03 18:53:43
|
Hi, triggered by a discussion with geocachers I changed the internal concept for waypoint icons. From the user's point of view there will be no difference visible. But the new system offers a lot more freedom. In general a waypoint icon is identified by it's name. The name can be everything. However if you want different software to cooperate one has to agree on certain names. In the real world Garmin defines the names and everyone has to cooperate. QLandkarte GT has a few icons built in. For all other, unknown icons it uses a default icon. Most users will use the custom icons, that can be defined freely. Of course Garmin defines a lot more icons. The reasons why QLGT does not offer these are: * I am too lazy to do the hideous work adding all icons * I lack nice icons with an acceptable license. There are many icons in the source tree from the GPSMan project. And the author allowed their usage. (Thanks :)). But many of these icons do not really look like the ones on the devices. And ripping the icons from the devices to be spread by QLGT is a no go. Ok, that is the situation. Now the big change. After starting the new version in SVN the first time a new folder will be created ~/.config/QLandkarteGT/WaypointIcons/ If you place a bitmap in this path, the icon will be listed in QLGT with the name of the file. E.g: "Parking.png" will be listed as "Parking" and "Small City.png" as "Small City". By that you can add your favorite icon set to QLGT. And if you stick to Garmin's name dictation you will even get the right icon on the device. In CGarminDevice.cpp there is a list of known icon names. A second change is in the DBus API. I added a function to send an icon to QLGT. The icon will be stored in the path and added to the list. Existing icons will be replaced (!). What's the use of that? Well, the idea is to allow other programs to synchronize their icons with QLGT. For example OpenCacheManager can configure QLGT to use exactly the same icons for the different cache types. Of course the user can configure QLGT manually right now, but adding a bit of automation might help. And if OCM decides to use other icons it can synchronize with QLGT without bothering the user. I am not sure if that is a good concept, but let's see. Oliver |