maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps (https://talk.maemo.org/showthread.php?t=85353)

sony123 2012-07-15 23:52

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1237907)
Hah, so I dumped the routingModel and guidanceModel structures, and it turns out that guidanceModel apparently has a member which appears to be exactly what we want and gets updated when DestinationDistance changes, namels timeToArrival (we did not find it earlier because it is not referenced in the QML source).

New patch (supersedes the other one): http://paste.debian.net/download/179234

With this patch the duration value updates, however, it is raining outside so I have not tested whether it really works correctly, feedback welcome. It could well be that timeToArrival is broken somewhat and therefore was not exposed in the user interface before.

The user interface has not changed (see last screenshot), I think it would be more elegant to make the distance/duration widget be a button which would switch between the two, but I won't have any more time to work on this, hopefully somebody else can pick it up.

Excellent job, mbanck! How to you dump the structures btw??

For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

mbanck 2012-07-16 01:40

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I did have another look at the day-to-night mode switch. The following patch at least ensures the map mode is updating everytime one returns to the map from the settings (main) menu or the preferences menu (in map browser mode). Same goes for navigation mode, and for starting/ending navigation. WIthout it, I believe one has to restart the application (or change the day/night settings specifically) to get the map changed.

Still no update during navigation.

Patch: http://paste.debian.net/179280/

taviman 2012-07-16 04:39

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by praveenchand (Post 1237888)
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename

already tried this, doesn't work.

PhatApteryx 2012-07-16 09:14

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by praveenchand (Post 1237888)
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename

Thanks, worked for me

mbanck 2012-07-16 09:35

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by sony123 (Post 1237992)
Excellent job, mbanck! How to you dump the structures btw??

Something like
Code:

for (var member in <object>) { console.log(member); }
This prints out the members of the object on the console if you start Drive in debug mode.

Quote:

Originally Posted by sony123 (Post 1237992)
For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

That would be awesome!

colin.stephane 2012-07-16 09:44

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1238020)
I did have another look at the day-to-night mode switch. The following patch at least ensures the map mode is updating everytime one returns to the map from the settings (main) menu or the preferences menu (in map browser mode). Same goes for navigation mode, and for starting/ending navigation. WIthout it, I believe one has to restart the application (or change the day/night settings specifically) to get the map changed.

Still no update during navigation.

Patch: http://paste.debian.net/179280/

Hi,

I have added this one to my full patch, in stable and unstable, since it doesn't hurt anything ...

A++

colin.stephane 2012-07-16 10:18

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by sony123 (Post 1237992)
Excellent job, mbanck! How to you dump the structures btw??

For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

May I suggest you to provide unified patch file of your modifications, then, I can include your work in my full patch ...

A++

Morpog 2012-07-16 10:33

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
You should have wait for Sony123s additional UI fix.

colin.stephane 2012-07-16 10:54

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by Morpog (Post 1238158)
You should have wait for Sony123s additional UI fix.

This is why there is 2 different patches Stable and Unstable ...

A++

Morpog 2012-07-16 10:59

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Nevermind, I didn't follow your link and assumed you added it to both :D


All times are GMT. The time now is 12:12.

vBulletin® Version 3.8.8