69 Commits (a3e528aae33275a75b1861e8add4d88d3284780b)

Author SHA1 Message Date
Adriaan de Groot a080e47f4b [locale] Add prettyStatus to Config
- this is present in the previous config, and helps make the modules
  consistent by returning prettyStatus in both ViewSteps.
5 years ago
Adriaan de Groot 42331f6e13 [locale] Move GeoIP lookup to config
- replace the weird synchronous-lookup-during-requirements-checking
  with a proper async lookup when the system is ready.
5 years ago
Adriaan de Groot 0c9480aa3f [locale] Move more business logic to Config
- writing *localeConf* settings to GS can be done always when the
  formats are set, rather than special-cased. The code
  that handles the "special case" of no widget existing for the ViewStep
  overlooks the other crashes that happen then.
- Since Config knows what jobs to create, just ask it rather than
  keeping a copy.
5 years ago
Adriaan de Groot f7c2e4a3e7 [locale] Sanitize Config signals and slots
- remove the weirdly-structured prettyStatus and similar:
  the Config object has human-readable status strings (three,
  for location, language, and LC-formats) which can be
  normal properties with signals.
- Implement prettyStatus in the view step by querying the Config.
5 years ago
Adriaan de Groot ef08ff6ac0 [locale] Move status strings from Page to Config
- the config knows the status and how to describe it,
  fetch the strings from there.
5 years ago
Adriaan de Groot 855b21a7db [locale] Remove redundant method
- configuration information lives in the Config object
5 years ago
Adriaan de Groot 98f912f80a [locale] Drop LocalePage:;init
- setting the initial location is something the Config-object should do
- setting up the combo-boxes can be done in the constructor
5 years ago
Adriaan de Groot 5a6a9a0d45 [locale] Move job-creation to Config
- since Config knows what settings there are, it should create the
  jobs to run later -- not the Page.
- this doesn't work yet, because the Config does **not** know what
  the selected timezone is yet.
5 years ago
Adriaan de Groot 8c21b59853 [locale] Remove unused localegen (moved to Config earlier) 5 years ago
Adriaan de Groot 25ba1bb767 [locale] Remove localeGenLines from page
- the Config object took over loading of the string list
- expose the list as a property
- drop loading code from the page.
5 years ago
Adriaan de Groot 338635146f [locale] Hand the Config object also to the page 5 years ago
Adriaan de Groot 8119c7e72a [locale] Reset Config object
The Config object wasn't being used at all in the locale module;
reset it to empty and start using it in locale, so that
configuration functionality can be added to it as-needed,
and with the necessary refactoring built-in.
5 years ago
Adriaan de Groot e804ad2488 [libcalamaresui] Rename enlarge()
- rename enlarge to ensureSize() and change the meaning from
  "make this much bigger" to "make sure this is displayed",
  which is easier on the caller to calculate.
6 years ago
Adriaan de Groot 4b65600c08 [locale] Remove useless localeglobal
- Although ::init() was called, none of the actual functionality
   from localeglobal was still in use.
6 years ago
Adriaan de Groot 1df6454cfe [locale] Tidy up types
- use JobList typedef where possible
 - remove unused forward type definitions
6 years ago
Adriaan de Groot 11d3f10e26 [locale] Dispose of waiting widget
- Do the async GeoIP checking in the async requirements-checking phase
 - Do not return any requirements results -- we just need the async bit
 - Drop the waiting widget, since it's not needed (done by the
   requirements phase)
6 years ago
Adriaan de Groot 41ece863de [locale] Create widgets when needed instead of at startup
- this blocks forever, since now the GeoIP lookup isn't done at all.
6 years ago
Adriaan de Groot 0a1dc77f9b [locale] Hang on to GeoIP::Handler just once
- replace configuration settings by putting them in an object
 - use unique_ptr to allow us to create one optionally.
6 years ago
Adriaan de Groot 5cac3ac6ad [locale] Apply coding style 6 years ago
Adriaan de Groot 0ee8427d5a [locale] Remove old-style GeoIP configuration 6 years ago
Adriaan de Groot 543e2d34fc [libcalamares] [locale] Remove unused includes 6 years ago
bill-auger 5642576cf3
cross-reference/clarify geoip documentation 6 years ago
Adriaan de Groot 8774b605fa [locale] Update to use newer configuration
- deprecate the old entries
 - use a geoip sub-map for GeoIP configuration
 - polish up documentation
 - drop mention of blank and "legacy" styles for GeoIP config,
   just update your URLs already.
7 years ago
Adriaan de Groot 25d97efe48 [locale] Use GeoIP Handler instead of own implementation 7 years ago
Adriaan de Groot 9bc8d28800 [libcalamares] Shuffle GeoIP into a namespace
- Use CalamaresUtils::GeoIP for GeoIP code
 - Name the public interface parts generically, while the
   implementation details retain GeoIP<foo> names.
7 years ago
Adriaan de Groot 73a5e7dd62 [libcalamares] Put GeoIP in namespace
- Use consistent include-guard style
 - Put things in namespace CalamaresUtils
7 years ago
Adriaan de Groot ce909f00cc [libcalamares] Drop unnecessary HAVE_XML
- Linking to QtXml gives us a -DQT_XML_LIB already, so use that.
7 years ago
Adriaan de Groot a1b1ebcd29 [locale] Compile with moved GeoIP handling 7 years ago
Adriaan de Groot f076dd76ad [libcalamares] Rename YamlUtils.h
- Since we have the utils/ filesystem namespace, and use CalamaresUtils::
   as C++ namespace, simplify naming.
7 years ago
Adriaan de Groot 090aee9196 Modules: adjust to split-out utils/Variant.h
- Most modules only needed the variant support, not the "whole"
   CalamaresUtils header.
 - While here improve ordering of headers as well.
7 years ago
Adriaan de Groot c83395ff6d Reduce warnings for yaml-cpp
- Use only utils/YamlUtils.h to pull in yaml-cpp and supporting code.
 - When compiling with clang, turn off warnings that the system header
   for yaml-cpp would generate.
7 years ago
Adriaan de Groot 6071489788 [libcalamaresui] Provide default implementations of next() and back()
- These methods are used for multi-page view-steps, which are rare.
   For all the others, just drop the empty implementation and defer
   to the base class.
7 years ago
Adriaan de Groot 08565b5f17 [libcalamaresui] Remove the signal done() from ViewStep
- The signal is emitted, generally from next(), but not actually used.
7 years ago
Adriaan de Groot 352b385b12 [locale] Make the selector configurable via the config file 8 years ago
Adriaan de Groot 79a6d7ccbd [locale] Make file and class consistent GeoIPXML
- Rename the class to match the filename.
8 years ago
Adriaan de Groot 2cd4461b57 [locale] Rename JSON handler
- The handler for JSON data should be called that, not named
   specially after the original provider it was implemented for.
 - Make filename and classname consistent, GeoIPJSON.
8 years ago
Adriaan de Groot ec113e3df3 [locale] Log GeoIP attempt URL, use possibly-modified form 8 years ago
Adriaan de Groot d6f082752d [locale] On GeoIP failure, log URL 8 years ago
Adriaan de Groot 47b7040897 [locale] Adjust to Calamares 3.2 idiom 8 years ago
Adriaan de Groot 3ea5a06157 Merge branch '3.1.x-stable' 8 years ago
Adriaan de Groot 6b7c8a694a [locale] Make the style of GeoIP retrieval selectable
- Unchanged config files will continue to use the weird addition
   of /json, and interpret JSON data.
 - Allow to specify full URL with data format through one of
     geoipStyle: json
     geoipStyle: xml
 - XML support is optional
8 years ago
Adriaan de Groot 5b98e58ae7 [locale] Refactor GeoIP handlers
- Read the data in the caller of the handler, instead of in the callers
8 years ago
Adriaan de Groot d5623af8ef [locale] Refactor geoip handling
- Configuration **must** be a complete URL. The implementation no
   longer appends /json to the URL.
8 years ago
Adriaan de Groot c0d5a153d4 [locale] Refactor GeoIP handler
- Move GeoIP to its own cpp file
 - Provide a default implementation of the URL mangler
8 years ago
Adriaan de Groot 445f181cc3 [locale] Start refactoring geoip handling
- Introduce a handler interface for GeoIP providers
 - Move the implementation of FreeGeoIP into a struct of its own
8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot 35f5612ec1 [locale] Fix GeoIP (reported by demm, crazy)
- data has already been read, don't try to read more from the QNM reply
 - regression introduced in 7e25909e
8 years ago
Adriaan de Groot 25de3aca6e Clang: don't shadow global int timezone 8 years ago
Philip d2964cc71c [locale] default to the states
- see also 239c7534d2
8 years ago
Adriaan de Groot 7e25909e18 YAML: refactor YAML-exception reporting
- both NetInstall (group data) and Locale (GeoIP) use network
   data returned as a source of YAML data. Try to explain
   parsing errors for both.

FIXES #786
8 years ago