1. 19 Apr, 2015 9 commits
    • Bruno Coudoin's avatar
      core, add support for a full.rcc local pre downloaded resource file · 0069246c
      Bruno Coudoin authored
      If present locally the resource file 'full.rcc' is loaded (but never
      downloaded). This file is present on gcompris.net/data2 as the other
      resource files.
      
      This implies that a data from an rcc can be loaded from either the 'full.rcc'
      or a specific one like 'words.rcc'.
      
      Now the resource files are normalized and must include the prefix
      'gcompris/data' with <qresource prefix="/gcompris/data"\>.
      
      All the voices are now located under 'voices-ogg' instead of 'voices'
      to allow us to support'voices-aac' for other platforms without having
      special cases.
      
      This patch replaces the 'isResourceRegistered' api entry by
      'isDataRegistered'. We no more check a resource file is registered but if
      the needed data is loaded.
      0069246c
    • Johnny Jazeix's avatar
      fix focus on Qt before 5.4 · 2782e31a
      Johnny Jazeix authored
      2782e31a
    • Johnny Jazeix's avatar
      core, gcompris first use, replace system locale by the real one (else it tries... · 0ee477b5
      Johnny Jazeix authored
      core, gcompris first use, replace system locale by the real one (else it tries to download voice-system)
      0ee477b5
    • Johnny Jazeix's avatar
    • Johnny Jazeix's avatar
      core translation, add missing qsTr() · d27c8707
      Johnny Jazeix authored
      d27c8707
    • Holger Kaelberer's avatar
      core, silence some doxygen warnings · 8d032900
      Holger Kaelberer authored
      8d032900
    • Bruno Coudoin's avatar
      minor code cleanup, useless code. · a38c5126
      Bruno Coudoin authored
      a38c5126
    • Holger Kaelberer's avatar
      core: add initial version of doxygen/kapidox documentation · 3fb84ea7
      Holger Kaelberer authored
      Documents the most important files from core subdeviding logically
      into "Infrastructure" (like ApplicationSettings, etc.) and "QML
      Components" (e.g. GCText, etc).
      
      Basic ideas while documenting:
      
      - For .cpp files exposed to the QML layer document the Q_PROPERTY
        definitions only (not also all getter and setter), plus internal
        methods where considered important. The rest has been marked
        INTERNAL_DOCS.
      
      - For QML components defined in .qml documents all properties that are
        part of the public interface (not the ones used internally only). All
        properties that have been considered purely internal have been marked
        INTERNAL_DOCS.
      
      - Restructured all documented files slightly to group public
        documented members together, preferably at the top of the class
        defininition.
      
      Mainpage.dox defines the "Main page" plus the
      
      Build by running kgenapidox at the top level directory.
      
      ToDos/Issues:
      
      - How to include core.js to the documented files?
      - How to eliminate the doxyqml error for GCSingletonFontLoader?
      - Some missing .qml files in core/.
      - Refine public interface if necessary: Are additional properties
      - Shall we suppress to generate files for all activities?
      - Need to address something from doxygen-warnings.log?
      3fb84ea7
    • Bruno Coudoin's avatar
  2. 11 Feb, 2015 1 commit
    • Bruno Coudoin's avatar
      core, new internal dialog system instead of Qt Dialogs. · 9f51be34
      Bruno Coudoin authored
      Qt Dialogs brings several issues for us:
      - On desktop create external floating window
      - On Android, brings the system toolbar that overrides our bar and
        never get away.
      - Hard to port on some platforms
      - Hard to translate YES / NO Button
      - Cannot customize button with children aware icons
      
      This implementation implemented our specific dialog system that are
      easy to customize the way we need.
      9f51be34
  3. 04 Feb, 2015 1 commit
    • Holger Kaelberer's avatar
      core: fix locale handling for voices · 556df29c
      Holger Kaelberer authored
      For voices we need to be more specific with locale-names as we provide
      some voices-packages that are territory/country-specific. So far we
      used pt for pt_BR and could not resolve zh_CN correctly.
      
      Therefore we added a new helper, ApplicationInfo::getVoicesLocale()
      that returns a correct voices locale name and expects as input a
      locale of the form <language>_<country>.
      
      This is used then for voices-downloads as well as for
      getAudioFilePath().
      556df29c
  4. 29 Jan, 2015 1 commit
  5. 17 Jan, 2015 1 commit
  6. 08 Jan, 2015 1 commit
  7. 30 Dec, 2014 1 commit
  8. 25 Dec, 2014 1 commit
  9. 15 Dec, 2014 1 commit
  10. 22 Oct, 2014 2 commits
  11. 19 Oct, 2014 1 commit
  12. 18 Oct, 2014 1 commit
  13. 05 Oct, 2014 1 commit
  14. 21 Sep, 2014 1 commit
  15. 18 Sep, 2014 1 commit
  16. 27 Aug, 2014 1 commit
    • Bruno Coudoin's avatar
      core, audio refactoring · 83192a9c
      Bruno Coudoin authored
      We now have 2 global audio items, one for the voices, one for the effects.
      
      They both can be mutted from our configuration dialog
      
      They are both passed to the ActivityBase of the activity and they must be used
      there instead of creating a GCAudio in the activity itself.
      
      This patch does not include the refactoring of all activities.
      83192a9c
  17. 28 Jul, 2014 2 commits
  18. 27 Jul, 2014 1 commit
  19. 30 Jun, 2014 1 commit
  20. 19 Jun, 2014 1 commit
    • Holger Kaelberer's avatar
      core: handle quit centrally and inform user of running downloads · 25534256
      Holger Kaelberer authored
      For all events that lead to application quit we trigger now quit() in
      core.js which informs the user if downloads are in progress.
      
      Note, that connecting to QQmlApplicationEngine::quit() does not work
      because a popup dialog does not block the quit process on android.
      Therefore we need to trigger Qt.quit() manually *after* the download
      dialog has finished.
      25534256
  21. 14 Jun, 2014 1 commit
  22. 01 May, 2014 1 commit
  23. 28 Apr, 2014 1 commit
  24. 20 Apr, 2014 1 commit
  25. 13 Apr, 2014 2 commits
  26. 06 Apr, 2014 1 commit
  27. 05 Apr, 2014 2 commits
  28. 22 Mar, 2014 1 commit
    • Bruno Coudoin's avatar
      normalized imports. · f0339052
      Bruno Coudoin authored
      Now all import are QtQuick 2.2, QtQuick.Controls 1.2, QtQuick.Window 2.2
      
      I found out that adding a ComboBox was crashing GCompris. Could
      not reproduce on a simple independant program so did not made a
      Qt bug report..
      f0339052