1. 27 Jan, 2016 1 commit
  2. 19 Jan, 2016 1 commit
  3. 12 Jan, 2016 2 commits
  4. 11 Jan, 2016 2 commits
    • Bruno Coudoin's avatar
      activation, add an internal activation code (no inapp) · 13456f64
      Bruno Coudoin authored
      Replaced CMake WITH_ACTIVATION_CODE by ACTIVATION_MODE. It can take
      3 values, none, inapp or internal.
      Add support for entering an activation code in the config dialog.
      Add a new persistent config value named 'key' that holds the activation code.
      On startup the key is checked in internal mode the key is checked and the
      demo mode is set if the code does not match.
      The configuration includes an entry box to enter the activation code.
      Created another BuyMeOverlay dialog for to have one for inapp and one for
      internal mode.
      13456f64
    • Johnny Jazeix's avatar
  5. 03 Jan, 2016 1 commit
  6. 28 Dec, 2015 1 commit
  7. 20 Dec, 2015 1 commit
  8. 16 Dec, 2015 5 commits
  9. 15 Dec, 2015 2 commits
  10. 27 Nov, 2015 1 commit
  11. 22 Nov, 2015 2 commits
  12. 21 Nov, 2015 1 commit
  13. 17 Nov, 2015 1 commit
    • Holger Kaelberer's avatar
      Add jni-wrapper for dis/enabling screensaver on android · 76598876
      Holger Kaelberer authored
      ... and use it in balancebox. In normal playing mode we don't have
      many touch events, so better avoid the screen from turning off
      automatically on Android.
      
      Note: The window flags must be set from the ui thread in an Android
      activity, or it has no effect.
      76598876
  14. 13 Nov, 2015 1 commit
  15. 07 Nov, 2015 1 commit
  16. 31 Oct, 2015 1 commit
  17. 30 Oct, 2015 2 commits
    • Holger Kaelberer's avatar
      68e1417d
    • Holger Kaelberer's avatar
      core, add loading overlay and activate it while loading activities · 30afb581
      Holger Kaelberer authored
      The loading overlay is meant to signal heavy work to the user, and
      should be used whenever the ui feels like  frozen. Therefore it
      deactivates all ui-interaction (except key-handling).
      
      There should be only one instance of Loading in the whole application,
      which is a sibling of the stack-view. Therefore we pass it into the
      activities via the ActivityBase.loading property, as we do e.g. with
      audioEffects.
      
      For now we activate it always during activity loading through the
      activity-loader. Especially on (slower) Android devices the intial
      rendering of the activity-scene takes some time, and so far looked
      like a freezing ui to the user.
      
      We might want to activate the loading overlay only on mobile devices,
      as a desktop should render its scene pretty fast.
      30afb581
  18. 28 Oct, 2015 1 commit
  19. 27 Oct, 2015 1 commit
  20. 20 Oct, 2015 12 commits
    • Holger Kaelberer's avatar
      core, add function to ApplicationInfo for checking support for single QtSensor classes · 7c3aaabd
      Holger Kaelberer authored
      ... and bind activation of balancebox to support for "QTiltSensor" on
      mobile platforms.
      7c3aaabd
    • Holger Kaelberer's avatar
      main, regression, don't re-start() activity after leaving dialog · a522e154
      Holger Kaelberer authored
      This was introduced by changes to stackView interaction for
      balancebox.
      
      In stackView transitions we now honour an alwaysStart property that
      activities/dialogs can set to true to always enforce emission of the
      start() signal when becoming visible. So far this was only triggered
      if (!exitItem.isDialog).
      
      This is needed for special cases in view transitions (like config
      dialog to editor in balancebox) when the entering item always needs to
      be start()ed.
      a522e154
    • Johnny Jazeix's avatar
      8c034ad0
    • Holger Kaelberer's avatar
      balancebox, improve contact handling in editor · 0dc529a1
      Holger Kaelberer authored
      - update next contact value on level change
      - fix re-setting contacts
      - minor docu
      0dc529a1
    • Holger Kaelberer's avatar
      balancebox, change location of user level-file to make it readable by oher apps · 42b34976
      Holger Kaelberer authored
      The user levels file should be stored at a location where it can be
      read by other applications, because users might want to share/copy
      this file. Therefore we locate it under
      QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
      which resolves to
      
           * On Android (version?): /storage/emulated/0/GCompris
           * On Linux: $HOME/local/share/GCompris
      
      In ApplicationInfo we expose this location in getSharedWritablePath().
      This location is supposed to store application-data which can be
      shared with other applications (comparable to the 'My GCompris'
      directory in the gtk+ version).
      42b34976
    • Holger Kaelberer's avatar
      balancebox, add qml-box2d as git submodule and build target · fbe2ac11
      Holger Kaelberer authored
      Most distributions don't provide a packaged qml-box2d 2.0.
      Therefore and to simplify things we build the qml-box2d automatically
      as external target and install it under lib/qml/.
      
      Therefore also GCompris now searches also in the relative path
      ../lib/qml for its qml plugins on desktop.
      
      For android we add the module correspondingly.
      
      The git submodule for now points directly to the upstream repo on
      github.
      fbe2ac11
    • Holger Kaelberer's avatar
      balancebox: avoid starting with invalid user level set · 3a63f3ba
      Holger Kaelberer authored
      ... by cancelling saving a 'user' level set to configuration if user
      levels file does not yet exist.
      3a63f3ba
    • Holger Kaelberer's avatar
      core, activity config: provide a simple hook for validation · 47f9ef44
      Holger Kaelberer authored
      ... and cancel saving in case of invalid data
      47f9ef44
    • Holger Kaelberer's avatar
      balancebox: fix back-button on android · 910fe87f
      Holger Kaelberer authored
      - We left GCompris immediately due to disabled Keys.
      - Also need to handle Key_Back explicitly for page stack interaction
        in editor.
      - Also unlock screen orientation onStop.
      910fe87f
    • Holger Kaelberer's avatar
      balancebox: rework orientation locking · eda1562f
      Holger Kaelberer authored
      As both QTiltSensor and QRotationSensor on Android report
      isFeatureSupported(AxesOrientation) == false
      we honour swapped axes etc. in TiltSensor manually. To make it easy
      for now we force any mobile device into landscape orientation and swap
      axis if nativeOrientation is portrait.
      
      The corresponding native functions are now moved to the
      ApplicationAndroid module according to the new code structure.
      eda1562f
    • Holger Kaelberer's avatar
      balancebox: rework editor integration (2) · 3b23c7aa
      Holger Kaelberer authored
      - Factor out more stuff from balanacebox.js to common
      
      - Add configuration dialog.
      
      - Access editor through configuration dialog. Testing still can happen
      directly in the Balancebox qml scene.
      
      - Therefore, to switch views well between editor and balancebox (for
      testing) extend the page stack and allow to push+pop > 1 views.
      3b23c7aa
    • Holger Kaelberer's avatar
      balancebox: rework editor integration (1) · c61f77aa
      Holger Kaelberer authored
      - Factor out some common code and move editor-specific code to a
      dedicated js-file.
      (Note!!! Can't factor out map-grid approach of editor, because the
      cells containing Box2D bodies won't be on the same hierarchy level
      (coordinate system) as the World, which is required by Box2D)
      
      - Add a testing mode to allow for direct testing of an editor map.
      
      - Load, save and maintain a whole level-set in the editor.
      
      - Minor extensions to File API
      
      - Add some dialogs.
      c61f77aa