View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#844
Originally Posted by petur View Post
Done for Dutch (Belgium & The Netherlands)
Thanks !

Originally Posted by 白い熊 View Post
... moment you implement offline routing...
I actually already played with the Monav Python bindings a bit, but just got a bunch of errors. I'll try to compile a more recent version if it is still broken fill a bug. Also, any help with figuring how to get this working (eq. to a state I pass it 2 coordinates + path to the routing data and it returns a route description) is much appreciated!

Originally Posted by don_falcone View Post
Btw Martin, i checked a bit of the source last night. Some questions:

1) /opt/modrana/os.path seems like Postscript or something? What's this file for?
I have absolutely no idea. I'd say that due to its name it might be related to the recent rewrite of modRana code to properly use os.path.join in place of simple string concatenations, but how imagemagick got involved... Maybe some transient path screwup during the rewrite caused it to be copied from some other directory ?

Originally Posted by don_falcone View Post
2) /opt/modrana/nbproject/project.properties lists "platform.active=Python_2.6.6"
As far as i remember, Python 2.6 was a bit of a break compatibility-wise, was it? We have no official 2.6 on the N900; so does make it any difference if you develop with 2.6 under NetBeans instead of 2.5?
Looks like there no (official) Python 2.5 anymore Ubuntu Natty which I use for development. I'm aware of the differences (no built in ordered dict, where needs to be imported from __future__, less collections, more flacky sqlite without extension support, etc.) and I also test on my N900 a lot, using a simple rsync + run script.

Originally Posted by don_falcone View Post
3) the theme.conf lists only the icons and the colors. What i also try to achieve is, changing the layout / the shape of the rounded "button" / "info" tiles. which file in /opt/modrana/modules/ is responsible for this?
The rounded icon backgrounds are generated at runtime, cached and drawn from cache.
Module that handles this is called mod_icons.py
excertp from documentation for the getCustomIconMethod:
Code:
there are five positional parameters:
fill color,fill opacity, outline color, outline opacity,
outline width (default 8) and corner radius (default 22)
to use default value, just don't fill in the positional parameter
( len(parameter) == 0 )
USAGE:
corner radius: default=22, 0 does right angle corners

EXAMPLE: generic:green;1.0;blue;0.5;10;15
The positional parameters create a unique hash that is used as a key in the icon cache.

ModRana also supports creating icons from multiple layers (both parametric and image based), using the > operator:
Code:
icon specifications are separated by >,
which should be seen as a pointing arrow in this context
we composite top -> down,
for example: "icon1>icon2"
icon1 will be drawn over icon2
For examples how this is used "in action" look in mod_turnByTurn.py into the drawScreenOverlay method.

BTW, it might be good to make also the default icon shape themable.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)

Last edited by MartinK; 2011-08-11 at 12:18.
 

The Following 4 Users Say Thank You to MartinK For This Useful Post: