giovedì 27 gennaio 2011

The challenge..

... today, is implementing drag&drop swapping and deleting of items in the new FTWidgetList widget!

When you tap for longer than 0.5sec  a widget you will get into "moving" state... Then you can move the widget before or after another or move it to a "dutbin" icon to delete it...

This is the idea...

Update: ok people...  i got it working! Its still a bit "rugged", but it works! You can reorder the widgets with drag&drop, and you can drag the widget to delete! Still a lot to do to have it working "nice", but its all fine-tuning.

Tomorrow i will release a BETA 9 with all these new UI goodies...

mercoledì 26 gennaio 2011

New UI on the way

Yesterday's work has been good, i like the resulst but there is some tuning to fix.

Anyway, today i am replacing QLabel with an incredibly simpler FTLabel and i plan to work on a cool kinetik enabled widget list...

Update: i managed to create my own FTLabel which is light and neat... i really like it! Also, i am working on a more complex FTWidgetList, something that let you do kinetik scrolling and drag&drop reorder on a list of widgets... The most difficult stuff is sorted out and at least the scrolling and adding is now working...

martedì 25 gennaio 2011

Today...

I have been quite busy... but not inactive!

I am hard-working on the new user-interface. Today i have fixed the new cool "kinetik scrolling" text viewer which i am in the process of deployng all around FreeTrack...

Next steps will see a custom widget also for lists (with kinetik scroll too!) and more!

domenica 23 gennaio 2011

Some testing done during the weekend on the field made me ralize that there is a bug in the drawing code, still. I like to blame this bug again on Nokia and the bad Qt drawing bug on pen's < 1, but anyway, i need to fix it again.

This time i will try to change approach. TrackTable will calculate the required transformation (Scale+Translation) but after that, it will not be applyed to the painter. Instead, the matrix will be passed to the paintLayer functions and THEY will have to apply it to the points to be drawn. This in theory could lead to some more slowlyness, but afterall there shouldnt be more calculations than having the matrix applied to the painter... We will see.

Update: the new track drawing code seems to be working pretty nice... Why didnt i tought about this before? Well, now its done... And i am working on the map drawing code.

Update: done also for the map drawing... And tested on device: looks nice and its also faster!

Now i am adding support for UTM imports on IMP files.

Update: Everything works not so bad... I am going to release BETA 8 soon...

Update: FreeTrack 1.3.0 BETA8  has been released NOW! Go get it! It has the new great drawing code!

Stay tuned!

giovedì 20 gennaio 2011

Testing in progress...

I spent some time yesterday testing the latets code and i am quite happy with it.

So, besides minimal fixing and improvements (like bigger icon for the waypoints...) all i will now do is implement a new help interface. I want to develop a custom widget to substitute the incredibly AWFUL tab widget (QTabWidget) which really really sucks on Symbian (slow, difficult to use, unfit for the screen interface...)...

Update: i wrote my first custom widget! (not true really, but for this scope yes)! Its calle FTPushButton and (as now) just replaces a QPushButton displaying a QIcon. It works great, its very lightweight too! I am replacing it in FreeTrack to let you test in in Beta 7 which, i hope, i will be releasing shortly, for your enjoyment over the weekend!

Update: FreeTrack 1.3.0 BETA 7 has been just released! Go grab it and test over the weekend! Your feedback is as always very much appreciated.

After BETA6

AS you know beta6 is out.
Doing some testing i found out a couple of nasty situations where the WaitDialog will get into a loop reloading itself, which is NOT good. So today i rewrote some of that code, improving also a bit the speed, and added a couple of nice things that crossed my mind.

Like, now, you can import IMP (CompeGPS/TwoNav) calibration files for maps and loading a map will automatically import any MAP or IMP file already existing if they have the same filename as the image file. Cool, uh?

Now back on tracks, i will keep working on the missing graphical goodies.

Update: after a lot of work i finally found out hot to print the waypoint name on the tracking table. Its simple.. how stupid i was! You just need to get the correct point to write it in screen coordinates:

  QPointF orig_pos = position * painter.combinedTransform();

Then you reset the painter transformation:

    painter.setTransform( QTransform(), false );

And, last, just print the text:

    painter.drawText( orig_pos + QPointF( 6.0, 6.0), name );

Update:

After a long struggle i decided to get rid of WaitDialog and do everything within WorkerProcess.. I hope, in this way, to be able to send the dialog full screen, as it seems i am not able to send WaitDialog full screen on the phone...

mercoledì 19 gennaio 2011

One step closer to 1.3.0...

Yesterday work was good. PNG support is implemented and operative... Also, i fixed one more bug in the extra_zoom of libjpeg, which is not bad.

The new chunk management code is simpler and faster, and this is good too... But not as good as i hoped. This make me more strong in advocating the map management changes i want for 1.4.0, so stay tuned about that!

Anyway, today i am struggling with a workaround for the annoyng "dots drawn as lines and lines drawn as squares" bug that keep hitting, and that Nokia is still investigating. Since this bug is inside Qt code, i cannot do much besides a couple of workarounds.

1) Find the "precision" that causes the problem and "force" lines to be longer than that. This might not be very nice, but if it works its the fastest workaround.

2) Rewrite the drawing code: do not apply trasnformation to the painter but to the drawing points instead. This can be arranged, but its more work and i am bit reluctant to go this way

Lets see... Stay tuned!

Update: i have solved the main problem using a QPainterPath instead of a QVector of QLinesF... Dont ask why, but this way it works and the Qt bug is not triggered...

Update: FreeTrack 1.3.0 BETA 6 is out! Go get it with all these great improvements!