| The Following User Says Thank You to Sasler For This Useful Post: | ||
|
|
2010-01-04
, 09:35
|
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#2
|
lay(fileName). This works fine in Windows, but I get no sound in N900.|
|
2010-01-04
, 10:04
|
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#3
|
2. I can't access the /home/user/MyDocs/.sounds directory with native dialog. With the following setting it works, but that dialog is not very finger friendly:
Code:QFileDialog::DontUseNativeDialog
3. I still have not figured out how to make a Debian package which includes a shortcut to the app.

5. And finally, could someone please make an icon for this app. I absolutely stink with anything that requires even only very basic drawing skills.

| The Following User Says Thank You to danielwilms For This Useful Post: | ||
|
|
2010-01-04
, 10:45
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#4
|
Hi,
There should be a directory called "Audio clips" in the file dialog, which is actually the MyDocs/.sounds directory.
You have to create a desktop-file and place it correctly. Have a look here how to do it. On the same page you will find a Qt packaging guide as well.
Haven't tried it yet, but in general you could try to add a debian/optify file and put "auto" there. No guarantee that this will work
Same problem here
Daniel

| The Following User Says Thank You to krk969 For This Useful Post: | ||
|
|
2010-01-04
, 12:20
|
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#5
|
You have to create a desktop-file and place it correctly. Have a look here how to do it. On the same page you will find a Qt packaging guide as well.

[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Name=Countdown Timer Exec=/usr/bin/timer Icon=myapp X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
TARGET = timer
HEADERS += src/form.h \
src/settings.h
SOURCES += qtmain.cpp \
src/form.cpp \
src/settings.cpp
FORMS += src/form.ui \
src/settings.ui
# LEXS#
LEXSOURCES +=
# YACCS#
YACCSOURCES +=
INCLUDEPATH +=
LIBS +=
DEFINES +=
# All generated files goes same directory
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
DESTDIR = build
TEMPLATE = app
DEPENDPATH +=
VPATH += src \
uis
CONFIG -=
CONFIG += debug
QT = core \
gui
MY_BIN_PATH = /usr/bin/
# Default installation overwritten because qmake and debian both
# uses DESTDIR in different purposes
install.commands = -$(INSTALL_PROGRAM) \
$(TARGET) \
\"$(DESTDIR)\"$$MY_BIN_PATH$(QMAKE_TARGET)
install.depends = $(TARGET)
desktop.path = $$DATADIR/applications/hildon
desktop.files += $${TARGET}.desktop
iconxpm.path = $$DATADIR/pixmap
iconxpm.files += ../data/maemo/$${TARGET}.xpm
icon26.path = $$DATADIR/icons/hicolor/26x26/apps
icon26.files += ../data/26x26/$${TARGET}.png
icon40.path = $$DATADIR/icons/hicolor/40x40/apps
icon40.files += ../data/40x40/$${TARGET}.png
icon64.path = $$DATADIR/icons/hicolor/64x64/apps
icon64.files += ../data/64x64/$${TARGET}.png
# Targets for debian source and binary package creation
debian-src.commands = dpkg-buildpackage \
-S \
-r \
-us \
-uc \
-d
debian-bin.commands = dpkg-buildpackage \
-b \
-r \
-uc \
-d
debian-all.depends = debian-src \
debian-bin
# Clean all but Makefile
compiler_clean.commands = -$(DEL_FILE) \
$(TARGET)
QMAKE_EXTRA_TARGETS += debian-all \
debian-src \
debian-bin \
install \
compiler_clean
RESOURCES =
mad dpkg-buildpackage
|
|
2010-01-04
, 12:23
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#6
|
OK, the this seems a bit too complicated for my limited brain capacity.
This is what I did now (with no success so far):
I created the CountdownTimer.desktop file in the /src directory (I also tried without the Icon line, since I don't have any icons yet):
This is how my pro looks:Code:[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Name=Countdown Timer Exec=/usr/bin/timer Icon=myapp X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
I use the following command in MADDE to make the package:Code:TARGET = timer HEADERS += src/form.h \ src/settings.h SOURCES += qtmain.cpp \ src/form.cpp \ src/settings.cpp FORMS += src/form.ui \ src/settings.ui # LEXS# LEXSOURCES += # YACCS# YACCSOURCES += INCLUDEPATH += LIBS += DEFINES += # All generated files goes same directory OBJECTS_DIR = build MOC_DIR = build UI_DIR = build DESTDIR = build TEMPLATE = app DEPENDPATH += VPATH += src \ uis CONFIG -= CONFIG += debug QT = core \ gui MY_BIN_PATH = /usr/bin/ # Default installation overwritten because qmake and debian both # uses DESTDIR in different purposes install.commands = -$(INSTALL_PROGRAM) \ $(TARGET) \ \"$(DESTDIR)\"$$MY_BIN_PATH$(QMAKE_TARGET) install.depends = $(TARGET) desktop.path = $$DATADIR/applications/hildon desktop.files += $${TARGET}.desktop iconxpm.path = $$DATADIR/pixmap iconxpm.files += ../data/maemo/$${TARGET}.xpm icon26.path = $$DATADIR/icons/hicolor/26x26/apps icon26.files += ../data/26x26/$${TARGET}.png icon40.path = $$DATADIR/icons/hicolor/40x40/apps icon40.files += ../data/40x40/$${TARGET}.png icon64.path = $$DATADIR/icons/hicolor/64x64/apps icon64.files += ../data/64x64/$${TARGET}.png # Targets for debian source and binary package creation debian-src.commands = dpkg-buildpackage \ -S \ -r \ -us \ -uc \ -d debian-bin.commands = dpkg-buildpackage \ -b \ -r \ -uc \ -d debian-all.depends = debian-src \ debian-bin # Clean all but Makefile compiler_clean.commands = -$(DEL_FILE) \ $(TARGET) QMAKE_EXTRA_TARGETS += debian-all \ debian-src \ debian-bin \ install \ compiler_clean RESOURCES =
I can install it, but it won't create the shortcut. Writing timer in the terminal runs the app just fine. I included the package here if someone wants to test it out.Code:mad dpkg-buildpackage
| The Following User Says Thank You to krk969 For This Useful Post: | ||
|
|
2010-01-04
, 12:26
|
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#7
|
did you copy the .desktop file to /usr/share/applications/hildon/ ?
thats where it should be.
And, Ive still not managed to add this as a widget, but I can add it as a shortcut to app on the home desktop.
|
|
2010-01-04
, 12:44
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#8
|
No I did not. What I want is to create a .deb package which would automatically install the shortcut. Isn't this possible?

| The Following User Says Thank You to krk969 For This Useful Post: | ||
|
|
2010-01-04
, 12:49
|
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#9
|
No I did not. What I want is to create a .deb package which would automatically install the shortcut. Isn't this possible?

|
|
2010-01-04
, 12:56
|
|
Posts: 31 |
Thanked: 18 times |
Joined on Oct 2009
@ Helsinki
|
#10
|

| The Following User Says Thank You to juxxxer For This Useful Post: | ||
Basically it is a simple countdown timer with 1 second precision that can countdown all the way from 60 minutes (60 minutes and 59 seconds to be precise
I still have some issues and I would appreciate any help.
1. SOLVED Sound doesn't work. EDIT: Using Phonon instead of QSound now.
2. SOLVED EDIT: This issue is only present when doing a run with MADDE. Once the app is properly installed there is no issue.
I can't access the /home/user/MyDocs/.sounds directory with native dialog. With the following setting it works, but that dialog is not very finger friendly:
4. SOLVED How to optify this app.
5. DONE Thanks to Juxxxer! And finally, could someone please make an icon for this app. I absolutely stink with anything that requires even only very basic drawing skills.
Countdwon Timer is now available in Extras-Devel.
Here are the source files.
Last edited by Sasler; 2010-01-13 at 18:53. Reason: Updated to the latest status