[SailfishDevel] Detecting OS version

2014-06-10 Thread Luca Donaggio
Hi all,

recent update (1.0.7.16) added fast scrolling to Silica flickable QML
components (like SilicaListView).
Before, for long lists I added a pull up menu with an option to fast-scroll
back to the top, others (Together app for example) used a custom scroll
decorator with the same functionality.

Is there a way to detect at run-time (in QML would be perfect, but in C++
would do the same) if the new functionality is available, or,
alternatively, which OS version we are in?

This way I can avoid cluttering my app UI with elements which basically
duplicate the same functionality:

if OS version = 1.0.7.16 / system fast-scroll available: do nothing
else: enable custom fast-scroll

-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Andrey Kozhevnikov


10.06.2014 20:30, Luca Donaggio ?:

Hi all,

recent update (1.0.7.16) added fast scrolling to Silica flickable QML 
components (like SilicaListView).
Before, for long lists I added a pull up menu with an option to 
fast-scroll back to the top, others (Together app for example) used a 
custom scroll decorator with the same functionality.


Is there a way to detect at run-time (in QML would be perfect, but in 
C++ would do the same) if the new functionality is available, or, 
alternatively, which OS version we are in?


This way I can avoid cluttering my app UI with elements which 
basically duplicate the same functionality:


if OS version = 1.0.7.16 / system fast-scroll available: do nothing
else: enable custom fast-scroll

--
Luca Donaggio


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Jonni Nakari

On 10.06.2014 17:30, Luca Donaggio wrote:
This way I can avoid cluttering my app UI with elements which 
basically duplicate the same functionality:

CODeRUS and veskuh recently added something like this to Tweetian, see:

https://github.com/CODeRUS/Tweetian/commit/3d50e172455cf94f2dd8064f7078ff94fc430f9d

--
Jonni Nakari
jo...@egarden.fi
+358 50 4411 784

A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Andrey Kozhevnikov
check 
https://github.com/veskuh/Tweetian/commit/3d50e172455cf94f2dd8064f7078ff94fc430f9d


10.06.2014 20:30, Luca Donaggio ?:

Hi all,

recent update (1.0.7.16) added fast scrolling to Silica flickable QML 
components (like SilicaListView).
Before, for long lists I added a pull up menu with an option to 
fast-scroll back to the top, others (Together app for example) used a 
custom scroll decorator with the same functionality.


Is there a way to detect at run-time (in QML would be perfect, but in 
C++ would do the same) if the new functionality is available, or, 
alternatively, which OS version we are in?


This way I can avoid cluttering my app UI with elements which 
basically duplicate the same functionality:


if OS version = 1.0.7.16 / system fast-scroll available: do nothing
else: enable custom fast-scroll

--
Luca Donaggio


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Luca Donaggio
Thanks Andrey, that's what I was looking for!


On Tue, Jun 10, 2014 at 4:32 PM, Andrey Kozhevnikov coderusin...@gmail.com
wrote:

  check
 https://github.com/veskuh/Tweetian/commit/3d50e172455cf94f2dd8064f7078ff94fc430f9d


 10.06.2014 20:30, Luca Donaggio пишет:

Hi all,

  recent update (1.0.7.16) added fast scrolling to Silica flickable QML
 components (like SilicaListView).
  Before, for long lists I added a pull up menu with an option to
 fast-scroll back to the top, others (Together app for example) used a
 custom scroll decorator with the same functionality.

  Is there a way to detect at run-time (in QML would be perfect, but in C++
 would do the same) if the new functionality is available, or,
 alternatively, which OS version we are in?

  This way I can avoid cluttering my app UI with elements which basically
 duplicate the same functionality:

  if OS version = 1.0.7.16 / system fast-scroll available: do nothing
  else: enable custom fast-scroll

--
 Luca Donaggio


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org




-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Luca Donaggio
Thanks Jonni!


On Tue, Jun 10, 2014 at 4:33 PM, Jonni Nakari jo...@egarden.fi wrote:

 On 10.06.2014 17:30, Luca Donaggio wrote:

 This way I can avoid cluttering my app UI with elements which basically
 duplicate the same functionality:

 CODeRUS and veskuh recently added something like this to Tweetian, see:

 https://github.com/CODeRUS/Tweetian/commit/3d50e172455cf94f2dd8064f7078ff
 94fc430f9d

 --
 Jonni Nakari
 jo...@egarden.fi
 +358 50 4411 784

 A: Because it disrupts the natural way of thinking.
 Q: Why is top posting frowned upon?


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.
 sailfishos.org




-- 
Luca Donaggio
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Detecting OS version

2014-06-10 Thread Joona Petrell
Hi Luca,

We haven't yet started versioning Silica APIs (though we probably should soon), 
sorry, but you can check if quickScroll property on your flickable has been 
defined (myFlickable.quickScroll === undefined) to check if the quick scroll 
functionality is available.

Cheers,

Joona


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Luca Donaggio [donag...@gmail.com]
Sent: 10 June 2014 17:30
To: Sailfish OS Developers
Subject: [SailfishDevel] Detecting OS version

Hi all,

recent update (1.0.7.16) added fast scrolling to Silica flickable QML 
components (like SilicaListView).
Before, for long lists I added a pull up menu with an option to fast-scroll 
back to the top, others (Together app for example) used a custom scroll 
decorator with the same functionality.

Is there a way to detect at run-time (in QML would be perfect, but in C++ would 
do the same) if the new functionality is available, or, alternatively, which OS 
version we are in?

This way I can avoid cluttering my app UI with elements which basically 
duplicate the same functionality:

if OS version = 1.0.7.16 / system fast-scroll available: do nothing
else: enable custom fast-scroll

--
Luca Donaggio
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

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

2014-06-10 Thread Roberto Colistete Jr.

Em 23-05-2014 05:25, Thomas Perl escreveu:

 The wiki Sailfish/Python Development :
https://wiki.merproject.org/wiki/Sailfish/Python_Development
is updated, listing 14 Python applications released for Sailfish, available
at OpenRepos.net. It would be nice to also have them on Jolla Harbour.

 I also would like to be maintainer of some of these Python packages
(modules) :
https://build.merproject.org/project/packages?project=home%3Arcolistete
and include (mainly SymPy and IPython) in default Jolla repositories
(nemo:devel:mw ?) :
https://build.merproject.org/project/show?project=nemo%3Adevel%3Amw
What is the procedure ? Some months ago I was told by IRC : basically you
ask w00t to create a repo for you in nemomobile github and then setup a
webhook which builds it in mer OBS. Is it the same now ?

Yes, that's still the same procedure. For packages where nemo is not
upstream (e.g. SymPy and IPython), the Github organization to use is
https://github.com/nemomobile-packages/


Thanks, Thomas Perl.

So I want to be maintainer for python-sympy and python3-sympy. I've 
contacted w00t about it.



 python3-sympy package (30 MB after installation) is used by Integral,
Derivative (released today) and Limit, and can also be used by other future
applications. IPython 2.0 package is obviously a must for any developer
using Python on device.

For SymPy, do you know if the API is stable or does it change (in
incompatible ways) between releases? If you want to depend on it from
your app in Harbour, it has to have a stable API, and we have to have
a maintainer for the package (to get any security fixes and updates
packaged). For small, pure-python libraries, just packaging it with
the app is an option, but for big packages like SymPy (that probably
has some C extension modules), the repository is probably the best
way.


SymPy is very stable for API use. For example, my softwares Limit, 
Derivative and Integral (for Maemo 4, Maemo 5 and Sailfish OS) are 
compatible with SymPy from 2011 to 2014.



IPython (which you probably don't depend on in your app?) is less of a
problem API stability-wise - it can just be available in the
repositories to be installed from the command line.


If possible I would like to be maintainer of IPython, NumPy and 
MatPlotLib on Mer/NemoMobile/Sailfish.


But let me try SymPy at first.

Best regards,

Roberto
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org