51 Commits (5cac3ac6ada4682e76c8d9a7c1a516dbfe926ece)

Author SHA1 Message Date
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 7 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
9 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
9 years ago
Teo Mrnjavac 3146d2093e Add support for freegeoip.net in locale module.
This is disabled by default. To enable, provide a geoipUrl setting in
locale.conf.
Relies on the RequirementsChecker output, in the welcome module.
10 years ago
Teo Mrnjavac 160d00a47a Write locales map into GS. 10 years ago
Teo Mrnjavac e120f2a74c PluginFactory in Locale module. 11 years ago
Teo Mrnjavac 171248ad4f Add isBackEnabled checks to all ViewSteps. 11 years ago
Teo Mrnjavac 5bb7755925 Remove unnecessary debug output. 11 years ago
Teo Mrnjavac 5fdca37db5 Focus fix in Locale page. 11 years ago
Teo Mrnjavac 472590669f Adding stuff to GlobalStorage works much better it is actually executed. 11 years ago
Teo Mrnjavac 925632800b Debug output for lcLocale 11 years ago
Teo Mrnjavac 6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
11 years ago
Teo Mrnjavac 8651b33843 Make the locale viewmodule use WaitingWidget. 11 years ago
Teo Mrnjavac 1bb6603998 Move spinner widget to libcalamaresui. 12 years ago
Teo Mrnjavac 271b0945c9 Create jobs in locale viewmodule. 12 years ago
Teo Mrnjavac e3741c4d26 Make the locale viewmodule load the initial timezone from config. 12 years ago
Teo Mrnjavac f1ba2e1270 Add prettyStatus to Locale module. 12 years ago
Teo Mrnjavac b98c071f94 Prepare for late enqueuing of jobs to the JobQueue. 12 years ago
Teo Mrnjavac 1efb4f1101 Added spinner widget to the loading timezone data view. 12 years ago
Teo Mrnjavac 81eafced2f Don't allow to go next if the timezone view hasn't loaded. 12 years ago
Teo Mrnjavac f9aa532d77 Load timezone data asynchronously so we don't block the GUI thread on
startup.
12 years ago