Re: [SailfishDevel] Setting application screen orientation from C++

2014-07-23 Thread Thomas Perl
Hey, 2014-07-17 23:05 GMT+02:00 Piotr Tworek tworaz...@gmail.com: Is there a way to lock application screen orientation to landscape directly from Qt/C++ code? I know it's possible from QML, but I can't find any docs how the same can be done from C++. You can e.g. subclass QWindow to a custom

Re: [SailfishDevel] SDL2_mixer mp3 files?

2014-06-24 Thread Thomas Perl
2014-06-23 8:41 GMT+02:00 Iosif Hamlatzis i.hamlat...@gmail.com: After updating to 1.0.7.16 I am having problems loading .mp3 files with SDL2_mixer Did it work with OS releases prior to 1.0.7.x? It might be a regression. The code fails to load a shared library libsmpeg2-2.0.so.0 and reports

Re: [SailfishDevel] Python in Jolla Harbour and repositories ?

2014-06-18 Thread Thomas Perl
Hi, 2014-06-11 7:43 GMT+02:00 Roberto Colistete Jr. roberto.colist...@gmail.com: So I want to be maintainer for python-sympy and python3-sympy. I've contacted w00t about it. Talked with Robin about it. I guess first step would be to set up the packaging using tar_git and get familiar with

Re: [SailfishDevel] Python in Jolla Harbour and repositories ?

2014-05-23 Thread Thomas Perl
Hi, 2014-05-23 1:39 GMT+02:00 Roberto Colistete Jr. roberto.colist...@gmail.com: Will Python applications be accepted in Jolla Harbour with the new update 6 / 7 planned for June ? The Together.Jolla.com topic :

Re: [SailfishDevel] Jolla release plan for high-level features - update 6 / 7

2014-05-18 Thread Thomas Perl
2014-05-15 21:21 GMT+02:00 Alejandro Exojo s...@badopi.org: El Thursday 15 May 2014, Iosif Hamlatzis escribió: Since you mention changes/additions in the BT stack what about the profiles A2DP for listening music through the hands-free headset and SPP for connecting maybe an external GPS

Re: [SailfishDevel] qtsvg imageformat not registered for first launch of app

2014-05-06 Thread Thomas Perl
Hi, On 2014-05-06 08:20, Simon Persson wrote: My game submission to harbour was recently rejected, I'm bringing up the issue here because I suspect the issue lies outside my app. Please help me either confirm this suspicion or point me to where my app could be missing something. The

Re: [SailfishDevel] Is support for commercial apps a TABOO subject?

2014-04-24 Thread Thomas Perl
On 2014-04-24 09:38, Iosif Hamlatzis wrote: May I request also that the SDL2 family libraries be allowed? VERY VERY useful for games pleaseee! Yes this is coming (as well as Python 3 QML Plugin support):

Re: [SailfishDevel] SDL_mixer: different behaviour between emulator and actual device

2014-04-18 Thread Thomas Perl
On 15 Apr 2014, at 18:40, Iosif Hamlatzis i.hamlat...@gmail.com wrote: Just verified it the sample from https://github.com/thp/sdl2-opengles-test regarding the mixer only works on the emulator. On the emulator every time you touch the screen a sound (.ogg file format) is played, but on

Re: [SailfishDevel] SDL_mixer: different behaviour between emulator and actual device

2014-04-16 Thread Thomas Perl
On 2014-04-15 18:40, Iosif Hamlatzis wrote: Just verified it the sample from https://github.com/thp/sdl2-opengles-test regarding the mixer only works on the emulator. On the emulator every time you touch the screen a sound (.ogg file format) is played, but on the actual device no sound comes

Re: [SailfishDevel] Where is the source code for the Sailfish OS version of fingerterm (and other GPL applications)

2014-04-13 Thread Thomas Perl
Hi, On 2014-04-12 22:53, Andrey Kozhevnikov wrote: Silica version not finished because of some design and implementation problems. Sailfish contains meego components ported to qt5, you may notice 2.0 version (instead of 1.0/1.1 in harmattan), its okay and means nothing except backward

Re: [SailfishDevel] Landscape mode in Sailfish?

2014-04-10 Thread Thomas Perl
Hi, On 2014-04-07 13:00, Iosif Hamlatzis wrote: ok I have managed to rotate my display and convert the touch co-ordinates but I have a lot flashes on the screen. I presume it has to do with the call to glScissor At some places in my code I call glScissor and glGetIntegerv modify and

Re: [SailfishDevel] Question creating full screen SDL window

2014-04-07 Thread Thomas Perl
Hi, I've submitted a patch for this to upstream SDL now: https://bugzilla.libsdl.org/show_bug.cgi?id=2481 For testing the changes, RPMs with the change applied are available here: http://repo.merproject.org/obs/home:/thp:/sdl2/1.0.4.20_armv7hl/armv7hl/ You can install RPM files with pkcon

Re: [SailfishDevel] Landscape mode in Sailfish?

2014-04-05 Thread Thomas Perl
On 05 Apr 2014, at 09:29, Iosif Hamlatzis i.hamlat...@gmail.com wrote: Is there a c/c++ (not Qt and QML) API that I can use to force landscape mode? Generally speaking is there an API (not Qt and QML) documentation anywhere? In general, you can use set_buffer_transform on the Wayland surface:

Re: [SailfishDevel] Question creating full screen SDL window

2014-04-05 Thread Thomas Perl
On 04 Apr 2014, at 18:57, Iosif Hamlatzis i.hamlat...@gmail.com wrote: I have different behaviour creating a full screen SDL window between Sailfish OS and other mobile platforms I have tested. I am using the same source code below: SDL_Window* pWindow = SDL_CreateWindow(, 0, 0, 0, 0,

[SailfishDevel] Nemo MW to Mer (was: Re: A kickoff meeting [...])

2014-04-05 Thread Thomas Perl
On 05 Apr 2014, at 10:21, Thomas B. Rücker tho...@ruecker.fi wrote: Reading this I can't help but wonder if Jolla now claims ownership of Mer/Nemo then. Even with fancy hat changing. Bringing this discussion up in a strictly Sailfish context implies this. Personally, I see it more like

Re: [SailfishDevel] app OrganizationName and harbour

2014-04-05 Thread Thomas Perl
On 05 Apr 2014, at 17:27, Thomas Tanghus tho...@tanghus.net wrote: On Saturday 05 April 2014 18:02 Kaj-Michael Lang wrote: Got denied application update as I set my org name properly with app-setOrganizationName() but that lead to a application update rejection as then the path given from

Re: [SailfishDevel] Folder permissions

2014-03-09 Thread Thomas Perl
On 09 Mar 2014, at 18:56, Iosif Hamlatzis i.hamlat...@gmail.com wrote: ok and the next logical question is: How to get the $HOME folder of the emulator or later the actual device in my .pro file? I think it shouldn't be hard-coded. The Harbour FAQ has several detailed answers about where to

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-26 Thread Thomas Perl
On 2014-02-26 11:48, antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters();

Re: [SailfishDevel] Python and Qt Widgets development possible?

2014-02-12 Thread Thomas Perl
Hi, On 2014-02-11 21:15, Dietmar Schwertberger wrote: I tried my Maemo/Fremantle app without a theme. As I would like to stay compatible to Maemo and Windows, I would prefer the QtWidgets solution for some time. Even if you were to use QtWidgets (which I strongly suggest not using), you

Re: [SailfishDevel] Page Status code

2014-02-12 Thread Thomas Perl
On 2014-02-12 20:36, Chris Walker wrote: In the past (Harmattan code), I would have done this sort of stuff :- onStatusChanged: { if (status==PageStatus.Activating) { but there is no 'onStatusChanged' option now. So what do I use now? I've looked here -

Re: [SailfishDevel] Silica issue on coverpage: Opacity value is ignored in CoverBackground if a label is truncated with fading

2014-02-06 Thread Thomas Perl
Hi, On 05 Feb 2014, at 23:50, Tigre-Bleu de...@tigre-bleu.net wrote: If in a cover, a label is truncated with truncationMode: TruncationMode.Fade then the opacity value is ignored. For code example and screenshot, see the following bug report:

Re: [SailfishDevel] Preventing deep sleep for a few seconds?

2014-02-03 Thread Thomas Perl
On 01 Feb 2014, at 21:32, Ove Kåven o...@arcticnet.no wrote: If a synchronization starts with the screen off, there's a chance that the phone enters deep suspend during the synchronization. If so, the other side might time out and the sync will fail. So I want prevent the CPU from

Re: [SailfishDevel] Update 1.0.3.8 changes LocalStorage location?

2014-02-01 Thread Thomas Perl
Hi, On 2014-01-31 23:59, Mikael Hermansson wrote: now can we instead be constructive and discuss what IS correct places to store data? Now question is does those changes follow some Linux directory standards? Yes, the directory standard that is followed is the XDG Base Directory

Re: [SailfishDevel] App own C++ plugin equivalent to Silica Theme

2014-01-28 Thread Thomas Perl
On 2014-01-28 10:59, christopher.l...@thurweb.ch wrote: I would like to create a C++ plugin for my app to export common UX settings as constants to the QML side (Things like font sizes, margin sizes that reoccur throughout the app.) In essence I want something very similar to the

Re: [SailfishDevel] Sharing a common OfflineStorage DB between multiple Sailfish apps.

2014-01-17 Thread Thomas Perl
Hi, On 16 Jan 2014, at 13:14, christopher.l...@thurweb.ch wrote: This gives the following Application Output: [D] main:42 - offlineStoragPath orig: /home/nemo/.local/share/CreateDBQt5/QML/OfflineStorage [D] main:44 - offlineStoragPath new:

Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Thomas Perl
Hi, On 09 Jan 2014, at 09:05, Wim de Vries wsvr...@xs4all.nl wrote: I am converting my aircraft navigation app to Sailfish. It comes (default) with OpenStreet based maps + 3D data files of Western Europe (in RPM). Most users will use this map, but some users may use their home made maps

Re: [SailfishDevel] Order of app icons in the launcher. What controls it? Changeable?

2013-12-29 Thread Thomas Perl
Hi, On 30 Dec 2013, at 02:15, Artem Marchenko artem.marche...@gmail.com wrote: Rearranging apps manually it tedious while with three screens of apps you have to do it somehow. I am thinking about a small utility app that would sort the icons alphabetically or by some criteria (e.g. app names

Re: [SailfishDevel] python development

2013-12-23 Thread Thomas Perl
2013/12/19 David Jensen davidjen...@usa.net: Nokia's original book on Meego featured, I think, Python as the development. I do not see this book on Amazon. However, almost none of the articles I have seen relating to Jolla mention Python. I assumed Nokia believed Python was an ideal language

Re: [SailfishDevel] Harbour news

2013-12-23 Thread Thomas Perl
2013/12/19 Matt Austin m...@mattaustin.me.uk: On 18 December 2013 22:33, Thomas Perl th.p...@gmail.com wrote: 2013/12/18 dcali...@free.fr: - libxml2. As far as I know, their API is quite stable now even if it was not the case in the past (I remember having some trouble with it in 2003

Re: [SailfishDevel] Harbour news

2013-12-18 Thread Thomas Perl
Hi again, 2013/12/18 dcali...@free.fr: - libxml2. As far as I know, their API is quite stable now even if it was not the case in the past (I remember having some trouble with it in 2003, but it's history now !). I've added it to the list of libs to be considered. Let's see... - gconf. I

Re: [SailfishDevel] qml and opengl/c++

2013-12-17 Thread Thomas Perl
Hi, 2013/12/6 Wim de Vries wsvr...@xs4all.nl: Some of you referred to the 'OpenGL Under QML' (http://qt-project.org/doc/qt-5.1/qtquick/scenegraph-openglunderqml.html) example. I got the example working in Sailfish. Only one problem. It doesn't show up within 'ApplicationWindow'. I have to

Re: [SailfishDevel] QtSensors support in Harbour

2013-12-17 Thread Thomas Perl
Hi, 2013/12/17 Kimmo Lindholm kimmo.lindh...@eke.fi: Is there any known workaround for acceleration sensor use? (or schedule when QtSensors 5.0 would be allowed in Harbour?) QtSensors 5.0 is scheduled to be available for Harbour apps soon, it's already been added to the list of approved QML

Re: [SailfishDevel] Harbour news

2013-12-17 Thread Thomas Perl
Hi, 2013/12/17 Damien Caliste dcali...@free.fr: think you need an API (library or QML import) for your Harbour app that is not yet approved, let us know on sailfish-devel. I posted before about the Glib stack with Cairo, that propose a stable API, that may help to port applications to

Re: [SailfishDevel] C++ and QML Integration: SetContextProperty with the latest SailfishOS Templates

2013-12-16 Thread Thomas Perl
Hi, 2013/12/12 christopher.l...@thurweb.ch: Thanks, that works! (except that you probably did not mean view to be 2nd param of setContextProperty). So taking your example I can do: int main(int argc, char *argv[]) { [...] QGuiApplication *app = SailfishApp::application(argc,

Re: [SailfishDevel] Using Python 3 and PyOtherSide repository on Sailfish device : one solution

2013-12-16 Thread Thomas Perl
Hi, 2013/12/16 Roberto Colistete Jr. roberto.colist...@gmail.com Ops, I think I've found the solution, the -G (--no-gpgcheck, Disable GPG verification for this repository) is needed : # zypper ar -G http://repo.merproject.org/obs/mer-python3/latest_armv7hl/mer-python3.repo So this and other

Re: [SailfishDevel] network statistics for sailfish

2013-12-16 Thread Thomas Perl
Hey, 2013/12/16 Martin Grimme martin.gri...@gmail.com: 2013/12/16, W. Dobbe winfried.do...@xmsnet.nl: Probably that will be the end conclusion, but Android is also Linux, so how do the Android network monitor apps get their information? Does the android stack/Dalvik give extra hooks for

Re: [SailfishDevel] opengl again..

2013-12-05 Thread Thomas Perl
Hi, On 05 Dec 2013, at 09:56, Wim de Vries wsvr...@xs4all.nl wrote: 1) using QML writing C++ items to integrate into the scene graph (see http://qt-project.org/doc/qt-5.0/qtquick/qquickitem.html for the base class) - this also means you’ll be able to use Silica in your application 2) using

Re: [SailfishDevel] QtWebKit module - shouldm't it be whitelisted?

2013-11-25 Thread Thomas Perl
Hi, 2013/11/26 Luciano Montanaro mikel...@gmail.com: On Nov 26, 2013 2:07 AM, Robin Burchell robin.burch...@jolla.com wrote: [...] My application too depends on it to scrape data from a web page. I need the QWebElement interface, otherwise I will need to parse the html on my own. [...]

Re: [SailfishDevel] Jolla Harbour. Application names conflicts

2013-11-13 Thread Thomas Perl
Hi, On 2013-11-12 20:40, Semuonov Basil wrote: Case 1 - Titles are the same: Dev1 submits application called Trains Europe about history of europe trains with binary trains_1.0.0_armv7hl.rpm Dev2 submits application called Trains Europe about online timetable for train transport called

Re: [SailfishDevel] App icons. How do you do them?

2013-09-28 Thread Thomas Perl
Hi, On Sep 28, 2013, at 6:03 PM, Artem Marchenko artem.marche...@gmail.com wrote: 1. What is a good path to deploy icon? /usr/share/AppName ? The standard[1] freedesktop.org path for application icons should be used: /usr/share/icons/hicolor/90x90/apps/appname.png 2. How do you refer to it

Re: [SailfishDevel] Persistent storage

2013-06-19 Thread Thomas Perl
On Jun 19, 2013, at 10:53 PM, Markus Svensson markus.svens...@me.com wrote: Does anyone know where the emulator stores the SQLite databases? I would like to inspect it manually for debugging purposes, but have not managed to find it yet (by logging into the emulator from the command line and