maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt Project: Countdown timer (https://talk.maemo.org/showthread.php?t=39202)

Jaffa 2010-01-08 12:48

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459029)
But I get this result:

Code:

dpkg-genchanges: warning: unknown information field 'Build-Depends' in input data in package's section of control info file

Build-Depends needs to be on in the first part of the file (the "source" bit, rather than the "package" bit).

Sasler 2010-01-08 13:37

Re: Qt Project: Countdown timer
 
2 Attachment(s)
Quote:

Originally Posted by Jaffa (Post 459067)
Build-Depends needs to be on in the first part of the file (the "source" bit, rather than the "package" bit).

This is what I did now:
Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5), libqt4-phonon
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A simple countdown timer
 <insert long description, indented with spaces>

Here is the latest package, but it still gives an error:

krk969 2010-01-08 13:53

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459139)
This is what I did now:
Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5), libqt4-phonon
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A simple countdown timer
 <insert long description, indented with spaces>

Here is the latest package, but it still gives an error:

dpkg doesnt install automatically all dependencies.
apt-get install does that.

not sure if there is any option to dpks , will have to check that, so when you upload to extras-devel that will be taken care , dont worry.

for now just do

apt-get install libqt4-phonon on you N900 to install the dependency.

Jaffa 2010-01-08 13:57

Re: Qt Project: Countdown timer
 
Yes, as krk969 says, dpkg -i will not pull down additional dependencies. The Build-Depends is a red-herring.

If your package was in a repository, the Application Manager, or apt-get would install libqt4-phonon automatically. However, you need to install it yourself ahead of time:

Code:

apt-get install libqt4-phonon
Again, this isn't something someone using your package from Extras would need to do. Finally, if you're a PR1.1 tester, running 2.2009.51-1, beware of #7742.

juxxxer 2010-01-08 14:16

Re: Qt Project: Countdown timer
 
Hi,

I did the apt-get install libqa4.phonon and installation was successful after that. But it doesn't show the logo/icon in applications/More... folder or Application manager - only the default blue-square one.

But otherwise it looks working ok.

If it works for you can I deliver some information which could help you to solve this... my countdowntimer version is 0.3-1.

Sasler 2010-01-08 14:29

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by juxxxer (Post 459194)
Hi,

I did the apt-get install libqa4.phonon and installation was successful after that. But it doesn't show the logo/icon in applications/More... folder or Application manager - only the default blue-square one.

But otherwise it looks working ok.

If it works for you can I deliver some information which could help you to solve this... my countdowntimer version is 0.3-1.

Try to restart your N900, it should show it after that. This is a known bug with icons. At least, this is what I understood. :)

juxxxer 2010-01-08 14:33

Re: Qt Project: Countdown timer
 
Hi,

Some more testing:
* When 00:00 you press 'Start' the timer starts
* Then if you for example wait 10s and press stop
* the label in button is 'Continue' at this point

So don't know what people generally think but when pressing 'Continue' I would assume that it goes onwards from this 00:10. But it starts to go down... 00:-09, 00:-08...

So this is a little bit wierd behaviour. Althought I think the idea is good and maybe someone would need that kind of functionality. But maybe the 'Continue' label should be changed or there could be 2 button 'Continue' and something like 'go to 0' or so... So this is usability issue in my mind.

And the minus sign goes a little bit funny place... maybe -00:09, -00:08... or then just leave the minus out. You don't have the minus when pressing for reset - 1 min - Start.

(Altought I'm not sure if you are going to develop this further than just to get the idea to build a sw to N900 or if you want people to test this - but this just came to my mind)

Cheers,
Jux

juxxxer 2010-01-08 14:38

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459214)
Try to restart your N900, it should show it after that. This is a known bug with icons. At least, this is what I understood. :)

Hmm... no help :)

At least other installed applications added the icon (Firefox, eCoach, Hermes, ...). Or do you mean that this is QT specific issue?

Sasler 2010-01-08 14:40

Re: Qt Project: Countdown timer
 
Thanks a lot lads of all your invaluable help an patience. :) I'm progressing rather well with this app and I'm learning many things that are useful for further Maemo development. :)

Anyway, my current issue is Optification. This is what I've done:

src.pro
Code:

QT += phonon
TARGET = countdowntimer
TEMPLATE = app
SOURCES += qtmain.cpp \
    settings.cpp \
    form.cpp
HEADERS += settings.h \
    form.h
FORMS += settings.ui \
    form.ui
PREFIX = ../debian/countdowntimer/usr

unix {
BINDIR = $$PREFIX/opt/maemo
DATADIR =$$PREFIX/share

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop icon64

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += countdowntimer.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += ../data/64x64/countdowntimer.png

}

countdowntimer.desktop:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.3
Type=Application
Name=Countdown Timer
Exec=/usr/opt/maemo/countdowntimer
Icon=countdowntimer
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

This seems to install countdowntimer in the "correct" (I'm not at all sure if this is the place where it should be) location. But the shortcut won't work and when I try to run it from the terminal, I get the following error even when I'm in the same directory and I can see it there:

Code:

/bin/sh: countdowntimer: not found

Sasler 2010-01-08 14:43

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by juxxxer (Post 459233)
Hmm... no help :)

At least other installed applications added the icon (Firefox, eCoach, Hermes, ...). Or do you mean that this is QT specific issue?

I have noticed that in some apps I only get the proper icon after I install/update something else. It's weird, I know... :confused:

Jaffa 2010-01-08 14:46

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459243)
I have noticed that in some apps I only get the proper icon after I install/update something else. It's weird, I know... :confused:

https://bugs.maemo.org/show_bug.cgi?id=6931

Sasler 2010-01-08 14:56

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by juxxxer (Post 459227)
Hi,

Some more testing:
* When 00:00 you press 'Start' the timer starts
* Then if you for example wait 10s and press stop
* the label in button is 'Continue' at this point

So don't know what people generally think but when pressing 'Continue' I would assume that it goes onwards from this 00:10. But it starts to go down... 00:-09, 00:-08...

So this is a little bit wierd behaviour. Althought I think the idea is good and maybe someone would need that kind of functionality. But maybe the 'Continue' label should be changed or there could be 2 button 'Continue' and something like 'go to 0' or so... So this is usability issue in my mind.

And the minus sign goes a little bit funny place... maybe -00:09, -00:08... or then just leave the minus out. You don't have the minus when pressing for reset - 1 min - Start.

(Altought I'm not sure if you are going to develop this further than just to get the idea to build a sw to N900 or if you want people to test this - but this just came to my mind)

Cheers,
Jux

Thanks for trying this out and reporting the issues. :)

I originally had it only countdown and the stop at 00:00. However ,yesterday I added a feature that it would start counting up afterwards, so that one could see the amount of the overtime. But I obviously did not think of my "clever" Continue feature, so they are not working nicely together. :rolleyes:

What I'm going to do now, is that I will restrict the Continue feature only for countdown. This should also fix the strange minus signs. :)

juxxxer 2010-01-08 14:58

Re: Qt Project: Countdown timer
 
Hi, yep, after installing new application after Countdown timer and restarting it started to appear :)

danielwilms 2010-01-08 15:04

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459237)
countdowntimer.desktop:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.3
Type=Application
Name=Countdown Timer
Exec=/usr/opt/maemo/countdowntimer
Icon=countdowntimer
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable


There is the wrong path in the exec. It should just be /opt/... not /usr/opt...

Quote:

Originally Posted by Sasler (Post 459237)
This seems to install countdowntimer in the "correct" (I'm not at all sure if this is the place where it should be) location. But the shortcut won't work and when I try to run it from the terminal, I get the following error even when I'm in the same directory and I can see it there:

Code:

/bin/sh: countdowntimer: not found

If you want to start your app from the command line use the full path or add a symlink to /usr/bin/. The symlink you can create the following command:

Code:

ln -s /opt/maemo/countdowntimer /usr/bin/
to add this functionality to your package you have to add that to the postinst file in the debian folder.

Daniel

nicky napkins 2010-01-08 15:06

Re: Qt Project: Countdown timer
 
Silly question (maybe) can we send pictures messages from this phone?..

Nicky..

danielwilms 2010-01-08 15:24

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by nicky napkins (Post 459281)
Silly question (maybe) can we send pictures messages from this phone?..

Nicky..

at least by far the wrong thread :) but if you mean MMS, then not by default, but check the news section of maemo.org...there were some post about community projects, which aim that.

Daniel

Sasler 2010-01-08 15:33

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by nicky napkins (Post 459281)
Silly question (maybe) can we send pictures messages from this phone?..

Nicky..

Not at least with this app... ;)

Sasler 2010-01-08 15:35

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459264)
Thanks for trying this out and reporting the issues. :)

I originally had it only countdown and the stop at 00:00. However ,yesterday I added a feature that it would start counting up afterwards, so that one could see the amount of the overtime. But I obviously did not think of my "clever" Continue feature, so they are not working nicely together. :rolleyes:

What I'm going to do now, is that I will restrict the Continue feature only for countdown. This should also fix the strange minus signs. :)

OK, it should be now fixed. The new package is on the first post as usual. :)

Sasler 2010-01-09 23:57

Re: Qt Project: Countdown timer
 
I'm trying to upload this to Extras, but I got the following error from the autobuilder:
Code:

*** No rule to make target `../../../sysroots/fremantle-qt-arm-sysroot-0942/usr/share/qt4/mkspecs/default/qmake.conf', needed by `Makefile'.  Stop.
What does it mean? What should I do?

Here is the link to see more details and the source files.

Thanks :)

Sasler 2010-01-10 18:49

Re: Qt Project: Countdown timer
 
Hmm... I was all excited about finally succeeding to upload this app to Extras-devel. In my euphoria I even wrote this thread. But now I find out while this app seems to install OK, there is no shortcut or anything. Everything seems to be installed under /home/builder1/maemo-fremantle-armel-extras-devel/work/. I wonder what is wrong this time?:confused:

Here is the source.

Sasler 2010-01-10 21:10

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 462664)
Hmm... I was all excited about finally succeeding to upload this app to Extras-devel. In my euphoria I even wrote this thread. But now I find out while this app seems to install OK, there is no shortcut or anything. Everything seems to be installed under /home/builder1/maemo-fremantle-armel-extras-devel/work/. I wonder what is wrong this time?:confused:

Here is the source.

OK, I figured out that by looking at some source files. ;)

Anyway, Countdown Timer is now available in Extras-devel. :D

juxxxer 2010-01-11 08:54

Re: Qt Project: Countdown timer
 
Hi,

I could update it from Extras-devel witout a problem. And now even the application manager was showing the 48X48 icon (thought it has a little bit different color scheme than the 64x64 but maybe it goes?).

But I could think using this for example when making food or so. And I changed the default sound from beep to some song. So that I could clearly notice when the time is up.

But... with that long sound there is couple things: when I start the clock from 00:00 it starts to play the song and when the time for example 3 minutes goes off it starts the song - but there's no way to stop the song?

So it's a little bit annoying that only way I can stop the song is to stop the whole application. So I think there could be additional features:
* To define start sound and end sound
* To stop the end sound when pressing 'Stop' (when using timer from for example minute to zero).

Again, just my opinions :D

Cheers,

Jux.

Sasler 2010-01-11 11:37

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by juxxxer (Post 463603)
Hi,

I could update it from Extras-devel witout a problem. And now even the application manager was showing the 48X48 icon (thought it has a little bit different color scheme than the 64x64 but maybe it goes?).

But I could think using this for example when making food or so. And I changed the default sound from beep to some song. So that I could clearly notice when the time is up.

But... with that long sound there is couple things: when I start the clock from 00:00 it starts to play the song and when the time for example 3 minutes goes off it starts the song - but there's no way to stop the song?

So it's a little bit annoying that only way I can stop the song is to stop the whole application. So I think there could be additional features:
* To define start sound and end sound
* To stop the end sound when pressing 'Stop' (when using timer from for example minute to zero).

Again, just my opinions :D

Cheers,

Jux.

1. Yes, the colour scheme is different, but I don't think it matters. Thanks again. :)

2. This app is mostly meant to be an countdown time timer. So if you want use it, for example baking something for 35:00, you should set the time to 35 minutes before pressing Start. Then it will play the sound when reaching 00:00. But yes. If you for some reason want to count up, it shouldn't play the sound when pressing Start. I will look into it.

3. I agree. Pressing Stop should stop the audio file. I will try to add this as soon as possible. Thank you for pointing out this. :)

Sasler 2010-01-11 11:39

Re: Qt Project: Countdown timer
 
Anyone knows how to override the silent profile? That is, play the audio file (using Phonon) even when the device is in the silent mode.

Cheers :)

danielwilms 2010-01-11 11:50

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 463900)
Anyone knows how to override the silent profile? That is, play the audio file (using Phonon) even when the device is in the silent mode.

have a look at this bug, and the discussion about it. It is not solved yet.

Daniel

Sasler 2010-01-12 17:46

Re: Qt Project: Countdown timer
 
A new version is now available in Extas-devel. Pressing Stop stops the sound too now.

Sasler 2010-01-13 14:15

Re: Qt Project: Countdown timer
 
The version 0.4-5 is now available. It's now supposed to be optified. Also it doesn't play a sound any more when counting up from 00:00. There are some other fixes and changes too. :)

Sasler 2010-01-13 20:26

Re: Qt Project: Countdown timer
 
Coundown Timer version 0.4-5 is now in Extras-testing! :D Please vote for here. :)

BTW, does anyone know how to make the Icon appear in that page?

Larswad 2010-01-15 08:49

Re: Qt Project: Countdown timer
 
Nice app., really.
To be honest, I was a little disapointed finding it, because I wanted to do the same application. I'm also learning Qt right now, and was disturbed the other day when I was cooking dinner and didn't find a countdown timer in the n900. How did they miss that?
But I guess this is the whole point of the n900, if anything is missing it won't take long before the community provide it!

Isn't the name of the app little bit dry though?
How about 'Al buddy' maybe?
It's almost like the idiot in "married with children", but with some reference to being an 'alarm buddy' instead...:p
Nah, I don't know. Good work btw.

Sasler 2010-01-15 09:04

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Larswad (Post 473497)
Nice app., really.
To be honest, I was a little disapointed finding it, because I wanted to do the same application. I'm also learning Qt right now, and was disturbed the other day when I was cooking dinner and didn't find a countdown timer in the n900. How did they miss that?
But I guess this is the whole point of the n900, if anything is missing it won't take long before the community provide it!

Isn't the name of the app little bit dry though?
How about 'Al buddy' maybe?
It's almost like the idiot in "married with children", but with some reference to being an 'alarm buddy' instead...:p
Nah, I don't know. Good work btw.

Thanks. :)

About the name, I could of course always change the name to something like "The Ultimate Flip Flop", "Artificial Intelligence Time Calculating System" or just simply "Mr Smith", but I think the name would be just misleading at best. :D Besides, might as well use up all the dead obvious names before there are all those zillions of competing apps for Maemo. :p

snowyte 2010-10-11 15:08

Re: Qt Project: Countdown timer
 
Hi,

this is truly a great app, I use it a lot, but now I found out that when I play music on my N900 and use the app, there is no sound? Could it be possible to fix this or just use vibrate? Thanks

Sasler 2010-10-11 16:16

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by snowyte (Post 838448)
Hi,

this is truly a great app, I use it a lot, but now I found out that when I play music on my N900 and use the app, there is no sound? Could it be possible to fix this or just use vibrate? Thanks

Thanks for pointing this out. I will need to look into it. Unfortunately I'm quite busy now with other projects, so it might take some time. But I do have some improvement plans for this app and I hope that I can eventually release a new and better version.

Cheers :)


All times are GMT. The time now is 03:49.

vBulletin® Version 3.8.8