4651 Commits (3f57b929ee2a2a6a0f7c04e4c3a33625b20bde73)

Author SHA1 Message Date
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).
5 years ago
Adriaan de Groot 4089a01cb1 [locale] Create TZ model earlier 5 years ago
Adriaan de Groot a39c77dfaf [libcalamares] Store region name in each zone as well 5 years ago
Adriaan de Groot 226530cf6f [locale] Use model functions from locale service
- drop the home-grown combo-box filling, use model
5 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
5 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.
5 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
5 years ago
Adriaan de Groot 1a8439069e [libcalamares] Extend TZ with location and country 5 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
5 years ago
Adriaan de Groot da277fa7ba [libcalamares] Drop superfluous enum 5 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)
5 years ago
Adriaan de Groot 9f06903115 [local] Chase API change in TZRegionModel 5 years ago
Adriaan de Groot 01bba7b466 [libcalamares] Make explicit when a model comes from a file 5 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
5 years ago
Adriaan de Groot 2625bb18df [libcalamares] TZRegionModel gets a data role 5 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*
5 years ago
Adriaan de Groot 1d17cf5c77 [libcalamares] Accessors for key and complete region data 5 years ago
Adriaan de Groot b29b89579e [libcalamares] Present TZ regions in consistent order 5 years ago
Adriaan de Groot b2c2255f6a [libcalamares] Add a model of timezone regions 5 years ago
Adriaan de Groot ddc2f60768 Merge branch 'master' into zone-data 5 years ago
Adriaan de Groot ac1c0d97d2 [license] Prevent single item from expanding
- the last item would expand vertically to fill the scroll area;
   add a spacer that pushes against it
5 years ago
Adriaan de Groot 59ea0417fc [license] Move a less-useful message to tooltip
- the message about setup continuing can be a tooltip
5 years ago
Adriaan de Groot c220220563 [license] Give stylesheets meaningful names 5 years ago
Adriaan de Groot 8a912e6ca1 [license] Fix the height of each item
- needs a qwidget to put the top-items (license name, button) in
 - fixes issue where the gap between the button and the hrule would
   change depending on what is expanded
5 years ago
Adriaan de Groot 7330afd96a [license] Massage display of buttons
- try to keep them the same height
 - show the URL that will be opened
5 years ago
Adriaan de Groot 6e1504fafc [license] Use just one button
- replace the text plus toolbutton (which has an ambiguous arrow in it)
   by a single button with text saying what it will do.
5 years ago
Adriaan de Groot 2d02290b91 Merge branch 'issue-1268'
FIXES #1268
5 years ago
Adriaan de Groot 9fa021e3c6 [license] Reduce margins hugely
- Move layouting code into the .ui file
 - Reduce margins hugely -- atop the title block, around the
   scroll area, etc -- so that more license is visible at once.
5 years ago
Adriaan de Groot 0b126b2c62 [license] Massage the messages some more
- split shared <h1> message off
 - do some string-concatenation, but only of whole sentences
 - shave off some vertical space by dropping the mainsubtext item
5 years ago
Adriaan de Groot 72ee9742f3 [tracking] Correct the example URLs 5 years ago
Calamares CI a034b1a9ab i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Adriaan de Groot 5cb0ee6cc5 [welcome] Simplify code
- Kevin Kofler pointed out there was a redundant else-if
 - Only use size for comparison if it's valid
5 years ago
Adriaan de Groot 7029c427f1
Merge pull request #1275 from bill-auger/patch-createusers-logging
housekeeping - logging for CreateUser Job
5 years ago
Adriaan de Groot 1a13704c71 [grubcfg] HOTFIX typo in function call 5 years ago
Adriaan de Groot 8b4bd52a26 [machineid][hostinfo] Reduce warnings
- stray ;
 - clang-tidy had re-ordered the moc-warnings.h header, needs to go
   **before** the .moc so split into its own group
5 years ago
Adriaan de Groot bd5b63b02e [summary][calamares] Chase deprecations in Qt (QWidget::background()) 5 years ago
Adriaan de Groot a70b7ad89e [welcome] Chase deprecations in Qt (screen geometry) 5 years ago
Adriaan de Groot c2ebfbf6ae [users] Remove unused parameter (reduces warnings) 5 years ago
Adriaan de Groot 3c1b0e6730 [libcalamares] Reduce warnings with Clang 9 (yaml.h) 5 years ago
Adriaan de Groot ac75c63001 [libcalamares] Reduce warnings with Clang 9 (Boost::Python)
- The boost headers fall foul of tons of Clang warnings, so introduce
   a mechanism like moc-headers for turning off most of those warnings.
5 years ago
bill-auger 344445b437 housekeeping - logging for CreateUser Job 5 years ago
Adriaan de Groot 2e22bdd7dc i18n: update the english translation files for once 5 years ago
Adriaan de Groot b4e9ec7eb1 [hostinfo] There is no config file for this module
- the empty config file would fail in tests
 - move the documentation part of it to CMakeLists.txt
5 years ago
Adriaan de Groot 1de6062233 [license] Add should-be-expanded display option to license entries
- In code, add the necessary bool
 - document meaning in the config file
 - actually expand the full text if the entry is local and set to expanding-
   by-default. This implementation is a bit lazy since it just pretends
   to click on the toggle button.
 - While here, reduce scope for UB by initializing POD members
5 years ago
Adriaan de Groot c870fca787 [license] Use more meaningful names for arrows
- The arrows Up, Down, Right are used on toolbuttons, but
   in the context of this module, those are directions with
   meaning; give them better names.
 - Because of #1268, the meaning of up- and down- may be swapped;
   I'm not sure of which look makes the most sense. This is prep-
   work for easily swapping the looks by using the meaningful names
   instead.

SEE #1268
5 years ago
Adriaan de Groot d322d783ea [license] Chase deprecations in Qt 5 years ago
Adriaan de Groot d8020e3574 [license] Tidy up setting-of-entries
- we loop over all the entries anyway, so calculate allLicensesOptional
   along the way (debatable whether std::none_of is clearer)
 - always un-check the accept-box when resetting entries.
5 years ago
Adriaan de Groot 5ed8ec9990 [license] Reduce translation overhead. 5 years ago
Adriaan de Groot 2a0716bf43 [license] Move the 'please review' text to the top. 5 years ago
Adriaan de Groot 2a45765b93 [license] Next depends not just on the checked box
- Toggling the checkbox could disable the next button
   because only the checked-state was used, instead of
   the next-is-enabled-if-everything-is-optional member variable.

FIXES #1271
5 years ago