6533 Commits (dd33cbfa360e556ab0cd625f8760611d8ba363a3)
 

Author SHA1 Message Date
Adriaan de Groot 8e2d257040 [welcomeq] Add QML machinery (uninitialized) 7 years ago
Adriaan de Groot 53b208e891 [welcomeq] Start new ViewStep for QML-based welcome 7 years ago
Adriaan de Groot 6c4efc1f9c [welcome] Add Branding object to QML demo 7 years ago
Adriaan de Groot 55f61fda35 [welcome] Create branding and settings objects 7 years ago
Adriaan de Groot 03ed308bd9 [welcome] Add QML model for translations 7 years ago
Adriaan de Groot d41d8df2a5 [welcome] Put Config object into context 7 years ago
Adriaan de Groot c59678594b [welcome] More QML support
- start of a class to hold configuration information; this can
   later be substituted into the WelcomeViewStep and filled from
   setConfigurationMap()

In the example application:
 - register the Config type
7 years ago
Adriaan de Groot 156d78feb3 [welcome] Add QML support
- test application to display the QML (this will be extended
   with adding the locale model to it)
 - sample QML that does nothing useful yet (will display the locale
   model once it's there)
7 years ago
Adriaan de Groot 549ba662f5 QML Branch
This branch is an experiment in doing more QML UI things in Calamares

TODO list:
 - Make Label (in libcalamares/locale) a QObject
 - .. and add properties to it corresponding to the data fields
 - Go over LabelModel to make sure it's usable
 - Add a QObject for configuration of the Welcome module,
   collecting all the settings and making them accessible as
   properties (this might not need to be a separate object;
   the WelcomeViewStep could be the object)
 - Add a QObject / property access to branding data
 - Add a QML test app that loads a QML file and the objects
   and models listed above and displays the QML. This allows
   experimenting with the welcome-page UI through QML (without
   GeoIP support or requirements-checking though)
7 years ago
Adriaan de Groot 0e7982ec37 [libcalamares] Don't force Hindi on India.
FIXES #1284
7 years ago
Adriaan de Groot 58786388d6 Merge branch 'zone-data' 7 years ago
Adriaan de Groot f5d7ef1bb7 Changes: document TZ translations 7 years ago
Adriaan de Groot 7bea19a62c [locale] Fix build with debugging enabled (API changes) 7 years ago
Adriaan de Groot 242b79e2e1 [locale] Remove old Location information
- all the TZ location information now lives in the Calamares
   locale service and the TZ list
 - replace the Location class that was local to the timezone
   widget by the TZZone class
 - chase a bunch of small API changes that this needs
7 years ago
Adriaan de Groot 4945408911 [libcalamares] Remove debugging cruft 7 years ago
Adriaan de Groot daa76080f1 [libcalamares] Add meaningful aliases for key() 7 years ago
Adriaan de Groot 0ed2a3e35f [libcalamares] Refactor translation-setting
- Split the actual loading of translations into classes
   to encapsulate the loading logic,
 - Build a collection of classes to do the different kinds
   of translation loading,
 - Build a generic function to load something and update a
   static pointer to the translation.

This makes installTranslator() much easier to read, and encapsulates
the type-specific loading somewhere else. While here, add a timezone-
translations loader so that the split-out TZ translations also work.
7 years ago
Adriaan de Groot 8fc94900d3 CMake: add the tz_ translation files to the i18n build 7 years ago
Adriaan de Groot 93826c3c2a i18n: Dutch TZ translations (provisional) 7 years ago
Adriaan de Groot 3e3334349b i18n: untranslated timezone names 7 years ago
Adriaan de Groot 93ae44e214 [libcalamares] Split translatable timezone data
- Hide the one file from lupdate by giving it a weird suffix
 - Call lupdate a second time for the timezone translations
 - While here, adjust so that the options precede the directories
   they are supposed to affect

I don't want to give the translation teams 444 new strings all
at once (about 90% of which don't need translation).
7 years ago
Adriaan de Groot e164f8d63a [locale] Fix build with DEBUG_TIMEZONE
- all the API changes were not reflected in the debugging code
7 years ago
Adriaan de Groot fb9d53909e [locale] Drop ZONES #define
- this was a "cheap" way to write a list, but going through
   QStringList::split() is just a long-way-around for static
   initialization
7 years ago
Adriaan de Groot 2dfbed40c5 [locale] Move defines
- Used in only one place, move to .cpp
 - Drop useless scaling all the images *are* that size already
 - Add debugging check that the images match expected size
7 years ago
Adriaan de Groot 9d9d9c361d [locale] Clean up constants
- move LOCALESDIR to the one place it's used
 - remove file with only unused #defines
7 years ago
Adriaan de Groot 7354d35faf [locale] Apply coding style to timezonewidget/ 7 years ago
Adriaan de Groot 1e04924224 [locale] Drop the TZ-widget's timezone database
- use the global TZ service instead
 - contains hacks to keep some of the API unchanged, which will be
   removed shortly
7 years ago
Adriaan de Groot 08dc9011d6 [libcalamares] Off-by-one folded the world in half
- Dropped the sign from longitudes, wrapping the west onto the east
7 years ago
Adriaan de Groot 1880eb5148 [libcalamares] Add accessors for TZZone 7 years ago
Adriaan de Groot 3f57b929ee [libcalamares] Make the zoneTab region list static
- there's only one zone.tab, it won't change during a run,
   load it only once (this allows for a single global list).
7 years ago
Adriaan de Groot 4089a01cb1 [locale] Create TZ model earlier 7 years ago
Adriaan de Groot a39c77dfaf [libcalamares] Store region name in each zone as well 7 years ago
Adriaan de Groot 226530cf6f [locale] Use model functions from locale service
- drop the home-grown combo-box filling, use model
7 years ago
Adriaan de Groot c75e870073 [libcalamares] CStringList::find() convenience function
- search for a key and return a type-cast pointer to the result
 - while here, simplify some other code
 - the find() function could be done with std::find_if but doesn't
   get any shorter or more elegant
7 years ago
Adriaan de Groot 6092172f8d [libcalamares] Regions and zones change to QList<Base*>
- By using QList< CStringPair* > consistently, we can save
   a bunch of model code at the cost of an occasional dynamic_cast;
   it's fairly rare for there to be a need for the derived pointer.
7 years ago
Adriaan de Groot fc8364ea54 [libcalamares] Store zones with each region
- move operator< to base class
 - add each zone to the list held by the region
 - sort zones at the end
7 years ago
Adriaan de Groot 1a8439069e [libcalamares] Extend TZ with location and country 7 years ago
Adriaan de Groot f4509f3380 [libcalamares] Move loading to TZRegion
- don't make the model load files, provide convenience functions
   for loading in the value classes
 - create model from lists of value pointers
7 years ago
Adriaan de Groot da277fa7ba [libcalamares] Drop superfluous enum 7 years ago
Adriaan de Groot 9a5e614172 [libcalamares] Build the TZRegion list in one pass
- read the file and create the regions on-the-fly, then sort the
   resulting list (instead of building a string list and then
   building the regions afterwards)
7 years ago
Adriaan de Groot 9f06903115 [local] Chase API change in TZRegionModel 7 years ago
Adriaan de Groot 01bba7b466 [libcalamares] Make explicit when a model comes from a file 7 years ago
Adriaan de Groot afb5430c42 [locale] Use TZRegionModel
- instead of populating combo box with texts, use the model
   read in from zone.tab
 - this **partly** deprecates the LocaleGlobal stuff
7 years ago
Adriaan de Groot 2625bb18df [libcalamares] TZRegionModel gets a data role 7 years ago
Adriaan de Groot 97235e9b3d [libcalamares] Switch CStringPair key to QString
- the key is used in various places as a key for Qt data structures,
   so it's more convenient to have QString than a bare char*
7 years ago
Adriaan de Groot 1d17cf5c77 [libcalamares] Accessors for key and complete region data 7 years ago
Adriaan de Groot b29b89579e [libcalamares] Present TZ regions in consistent order 7 years ago
Adriaan de Groot b2c2255f6a [libcalamares] Add a model of timezone regions 7 years ago
Adriaan de Groot 7d88b6d0cd [license] Show filenames as filenames
- Use File: to display filenames, rather than URL: plus a file:-scheme
 - Document the change in CHANGES
7 years ago
Adriaan de Groot ddc2f60768 Merge branch 'master' into zone-data 7 years ago