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.
6 years ago
Adriaan de Groot
338635146f
[locale] Hand the Config object also to the page
6 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.
6 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
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.
10 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