3079 Commits (c73d6e80f613df3d983d014d8f57b2ccd1d0e642)

Author SHA1 Message Date
Adriaan de Groot 0c1453ff18 [locale] Fix string value handled by XML parser 7 years ago
Adriaan de Groot eea421f499 [locale] Add tests for GeoIP handlers
- One sample JSON result
 - Two sample XML results
7 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
7 years ago
Adriaan de Groot 5b98e58ae7 [locale] Refactor GeoIP handlers
- Read the data in the caller of the handler, instead of in the callers
7 years ago
Adriaan de Groot 939cdff93b [locale] Add alternate GeoIP data format 7 years ago
Adriaan de Groot aaae1507cd [locale] Convenience function for TZ splitting 7 years ago
Adriaan de Groot 3636226425 [locale] Document change to the way GeoIPURL is handled. 7 years ago
Adriaan de Groot fe98b789f0 [locale] Document the settings in locale.conf
- The geoipUrl is weird, because it is not a complete URL.
   Document that, and what kind of data is expected.

FIXES #920
7 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.
7 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
7 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
7 years ago
Adriaan de Groot fa933b9a16 [plasmalnf] Search for theme screenshots
- Search in branding dir, and ., for relative paths,
 - Absolute paths used as-is.
 - Document search as such.
7 years ago
Adriaan de Groot bfb37e6b37 [plasmalnf] Avoid use of 'uint' 7 years ago
Adriaan de Groot cb616ec1bb [plasmalnf] Keep fixed size of screenshots (relative to font size) 7 years ago
Adriaan de Groot 5ab01eba9f [plasmalnf] Don't even try to load an empty filename for screenshot.
- Avoid one attempt-to-load if the filename is empty, and one
   re-creating of the Pixmap.
7 years ago
Adriaan de Groot 00a5baa3d9 [libcalamares] Improve process logging
- Don't insert a space before the output of a process
 - To do this, suppress space and quoting on the output, and to do
   that move the labeling-output for warnings and errors into
   the constructor (so that an idiomatic .nospace() does the right thing).
7 years ago
Adriaan de Groot b5c3fc8cf6 [libcalamares] Improve process logging
- Log output on crash
 - If debugging is on (-d) then also log output on success

FIXES #925
7 years ago
Adriaan de Groot 4d459f7fc0 [libcalamares] Move non-UI stuff from libcalamaresui
- Settings is just a settings class, no UI involved, so
   move to libcalamares where it can be used also from
   system helpers.
 - YAML utilities are useful at a lower level of the stack, too.
7 years ago
Adriaan de Groot 7e5c91aae6 [locale] Reduce debugging bla bla 7 years ago
Adriaan de Groot 032b33f56f [libcalamaresui] Improve logging.
- Put the (constant) 'Calamares will now quit' on its own debug line.
 - Tell the user what the search paths are if a module is not found
   (prompted by a mis-configuration in a Neon live image).
7 years ago
Adriaan de Groot ddbb9eaebc Merge branch 'improve-logging' 7 years ago
Adriaan de Groot 9fe85e592f Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot b8e6144553 [locale] Document how the locale entry in Global Storage works.
- Make the BCP47 value explicitly lower-case.
 - Add some constness and encapsulation.
 - Fix up documentation in the packages module explaining the
   format of the ${LOCALE} replacement (now forced to lower-case,
   but it is also only the language part, not e.g. en-UK).

FIXES #922
7 years ago
Adriaan de Groot 4c04260b97 [packages] Don't change the global package list.
- Count only the packages that will be changed, given the current
   locale settings.
 - Preserve global storage unchanged (don't remove any locale-packages).
7 years ago
Adriaan de Groot 36aede52ef [packages] Example configuration installs a localization package 7 years ago
Adriaan de Groot fd1279dbe3 [welcome] Make the example configuration less strict 7 years ago
Adriaan de Groot 9cdb6734bf [packages] If locale is empty, pretend it is 'en'.
- Otherwise packages like vi-$LOCALE will be retained in the
   package list, which will cause install problems.
7 years ago
Adriaan de Groot 240efd30f1 [libcalamares] Add support for formatted, table-like output
- Use DebugRow for one-row-at-a-time output with continuations.
 - Use DebugList for one-item-per-line with continuations.
 - Use DebugMap for one-row-at-a-time output of a QVariantMap.
7 years ago
Adriaan de Groot 20e9c2c8e3 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 32a1c84935 [locale] Document the settings in locale.conf
- The geoipUrl is weird, because it is not a complete URL.
   Document that, and what kind of data is expected.

FIXES #920
7 years ago
Adriaan de Groot fb93a8288e [plasmalnf] Simplify showAll handling
- Only need the showAll parameter once, when passing in the list
   of themes to show.
7 years ago
Adriaan de Groot b0828faadb [plasmalnf] New setting to show all installed LnF themes
- This enables working in three modes:
   - No themes listed; all are shown without screenshots,
   - Themes listed, showAll false; only those are shown,
   - Themes listed, showAll true; the installed-but-not-listed
     themes are shown after the listed ones, and have limited info.
7 years ago
Adriaan de Groot c2efae765d [plasmalnf] Add auto-detection of Plasma theme.
- Although it's not necessarily accurate for an extensively-modified
   Plasma configuration, we can read the Look-and-Feel from the
   configuration files. Allows auto-detection.
7 years ago
Adriaan de Groot 11652c5856 [plasmalnf] Add pre-selected theme
- For OEM modes where there is already a theme, add a preselect:
   key to pick a specific theme and have that one come up as already-
   selected in the list.
 - Don't re-run the lnftool if an already-selected theme is clicked
   again. Use toggled() instead of clicked().
7 years ago
Adriaan de Groot 94000b6847 [plasmalnf] Improve wording of LnF explanation. 7 years ago
Adriaan de Groot 6bb72d173d [libcalamares] Drop generic cLog()
- Use cWarning or cError() for errors
 - Use cDebug(level) for other uses (but there aren't any)
7 years ago
Adriaan de Groot ad6227ce21 [libcalamares] Remove internal functions from the logging API 7 years ago
Adriaan de Groot 3e30bb682e [libcalamaresui] Use cError() for logging errors, not cLog() 7 years ago
Adriaan de Groot e2b8fb0afe [welcome] Log if no translations matched at all 7 years ago
Adriaan de Groot cdf80615b8 [libcalamares] Rename the log file 7 years ago
Adriaan de Groot 0f289e2552 [calamares]: Improve startup logging
- Don't bother with the address of the main thread
 - Do put a marker on restart into the log file
 - Do put the Calamares version into the log file (previously, the version
   was printed through cDebug() before the log file was opened, so it was
   lost to the on-disk log).
7 years ago
Calamares CI 1791ac2d43 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 70fe023347 Merge branch 'branding'
Documentation lives both in Calamares and in the calamares-branding
repo. Whether a slideshow has navigation arrows or not is up to the
slideshow / branding component author, but Calamares now ships some
support QML to make that easy.

FIXES #841
FIXES #904
7 years ago
Adriaan de Groot 2f66aa9b07 [plasmalnf] Change to IgnoreAspectRatio
It is the distro's responsibility to produce screenshots that look
good; previously I chose to preserve the aspect ratio on the grounds
that this would keep the look of the screenshot even if the distro
had done one in a weird size. This makes the screenshot part
of the LNF selection look weird, though, since then you get
blank parts.

Switch to ignoring the aspect ration; distro's should produce
screenshots in a 12x8 (i.e. 3:2) aspect ratio, preferrably at
least 120x80 pixels -- but keep in mind hiDPI and the default
font sizes of the distro, which may make other sizes look better.

(this follows discussion with BlueStar Linux)
7 years ago
Adriaan de Groot 986c5f5a9a CMake: improve branding component macros
- document preferred component layout
 - simplify parameters to the branding macros
 - allow structured branding components with SUBDIRECTORIES
7 years ago
Adriaan de Groot f29da8e39e Branding: document preference for standalone branding 7 years ago
Adriaan de Groot 25b9663a40 Branding: remove fancy/ and samegame/ examples
The examples of branding have moved to the calamares-branding repo.
7 years ago
Adriaan de Groot e4cca9b830 Branding: document how to translate branding 7 years ago
Adriaan de Groot 75df6a4f88 Branding: add example translations to fancy/ 7 years ago
Adriaan de Groot f8bc195fb4 [libcalamaresui] Improve warning when branding has no translation 7 years ago
Adriaan de Groot c1bb5e708b QML: apply translation to the slide counter 7 years ago
Adriaan de Groot 97eff28383 QML: Remove binding for quit key in presentation 7 years ago
Adriaan de Groot 8125698696 Branding: expand documentation
- Auto-advance the default presentation
 - Add more example slides to the fancy presentation
 - Expand README.md explaining what the default classes can do
7 years ago
Adriaan de Groot e7849c5ed0 Branding: fix reference error 7 years ago
Adriaan de Groot 3b8673fb99 Branding: update example, use NavButtons 7 years ago
Adriaan de Groot 7ab79a944b Branding: add example SVGs from Quassel 7 years ago
Adriaan de Groot b6fd8de126 QML: Use QtQuick 2.5 consistently 7 years ago
Adriaan de Groot 3d89828fe1 QML: drop potentially confusing shortcuts
Removed these features that make sense in a presentation slideshow
(e.g. during a talk) but that are potentially confusing during
a passive slideshow like Calamares has:
 - Using 'c' blanks the slideshow.
 - Entering a slide number + enter changes slides.
7 years ago
Adriaan de Groot c116dba2e8 QML: add navigation items
- Add a NavButton, which shows a directional arrow, and fades in on hover.
   It can be used left- or right- by setting an image source
   and click handler.
 - Specialize NavButton to Forward and BackButton.
 - Add a SlideCounter navigation aid.
7 years ago
Adriaan de Groot 74080c31f5 Branding: add a fancy branding example 7 years ago
Adriaan de Groot 1e0ecbcc18 [contextualprocess] Warnings-- by dropping destructor 7 years ago
Adriaan de Groot 583cc06f7c [keyboard] Warnings-- for nullptr 7 years ago
Adriaan de Groot 51ccd6be4d [license] Warnings-- by making the one default case explicit 7 years ago
Adriaan de Groot e2f6d160f8 [tracking] Reduce compile warnings
The fallthrough construction in a switch is a bit confusing
to read, and generates compile warnings too, so break it up.
7 years ago
Adriaan de Groot defc7d4df8 [welcome] Compile warnings-- 7 years ago
Adriaan de Groot a9e751bb31 [users] Compile warnings-- 7 years ago
AlmAck 58952b685c the first character must be a comment
to original code would match both lines:
zen_US.UTF-8 UTF-8
#en_US.UTF-8 UTF-8

introducing "#" should check only the commented lines
7 years ago
AlmAck 382c193afa Enable the correct language in the locale.gen list
the original code does not distinguish the document comments inside the locale.gen file from the real locale list. The language was then enabled from the header comments of the file instead of the correct value in the list.

The new code verify tha the complete locale string is just after the first character of the string, enablig only the correct value of the locale list.
An example:
#  en_US.UTF-8 UTF-8 --> document header, should not be enabled
#en_US.UTF-8 UTF-8 --> correct section to enable

Related to this request:
https://code.chakralinux.org/tools/calamares-chakra/issues/2
7 years ago
Calamares CI 1762d5e5d6 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 09f30194d7 CMake: revert un-versioning of libcalamares*.so
The install-bits branch commit 83639b182b
dropped .so-versioning for libcalamares and the creation of the Python-
support symlink. This broke KDE Neon dev-unstable because the embedded
Python can no longer find libcalamares.

Installing unversioned .so's straight to LIBDIR is also not a good thing
(according to Debian), so revert to the original scheme with versioned
.so and a Python-support symlink.

Medium-term fix is to install unversioned straight into LIBDIR/calamares
and fix up the RPATH for the executable.
7 years ago
Adriaan de Groot 73a5e0bbcd [libcalamares] Fix up debugging
Using plain cLog() is weird, it doesn't attach a debugging level
so it seems like it's level 0, beyond-critical.
7 years ago
Adriaan de Groot 36ef4556b4 Merge branch 'install-bits'
FIXES #729
7 years ago
Adriaan de Groot 56ce22908e CMake: drop empty calamaresUi
- Empty variable and some unused wrappings doing nothing.
7 years ago
Adriaan de Groot db0c1ffd6d CMake: just install unversioned .so
- Applies to libcalamares and libcalamaresui.so, install with no
   version, just the bare .so. Since Calamares doesn't do versioning
   anyway, and its plugins should be re-compiled for any change,
   putting them in lib as unversioned .so's should make Calamares
   happy and silence lintian.
7 years ago
Adriaan de Groot de1710a9f3 [calamares] Refactor argument-handling
- Move parameter handling out of main
 - Give -D an argument (log level)
7 years ago
Adriaan de Groot a1cbb161ee [libcalamares] Make setup of log-level explicit
- Replace the implicit setting of a logging level
   (the first time logging is called) with explicit
   setupLogLevel().
7 years ago
Adriaan de Groot 247a0e3a56 [umount] Make a pretty_name() 7 years ago
Adriaan de Groot 060990bdd0 Python: use warning() method in modules 7 years ago
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
7 years ago
Adriaan de Groot dbbec4f76d [libcalamares] Use cDebug, polish messages 7 years ago
Adriaan de Groot d62c7b93c6 [libcalamares] Polish weird namespace use 7 years ago
Adriaan de Groot 0c16bf1179 [finished] Remove useless debugging 7 years ago
Adriaan de Groot cf02f7aab5 [libcalamares] Avoid nullptr crashes
- The Python testmodule script can end up calling in to System
   methods (via System::instance()). This is unusual, and the
   System instance has not been created at that point.
   Now, create an instance and warn about it.
7 years ago
Adriaan de Groot 94014a52d4 Merge branch 'context-wildcard'
FIXES #906
7 years ago
Adriaan de Groot 713add5795 [contextualprocess] Add tests
- Tests showed issues with memory management, fixed in previous commits.
7 years ago
Adriaan de Groot f0ec6c02a3 [shellprocess] ECM has already been searched-for 7 years ago
Adriaan de Groot 23a23a01f1 [contextualprocess] Cleanup destructors
- ValueCheck shouldn't own the pointer, since it's just a QPair
   and there are temporary copies made (e.g. in
   ContextualProcessBinding::append() ) and we get double-deletes.
 - Do deletion by hand; going full unique_ptr would be a bit overkill.
7 years ago
Adriaan de Groot 87e2f13dc2 [contextualprocess] Helper methods for counting checks 7 years ago
Adriaan de Groot 8664400ee9 [contextualprocess] Warn if (global) variable not found. 7 years ago
Adriaan de Groot 699b42a756 [contextualprocess] Add wildcard
- Re-build the structures for doing value-checks, is now more tree-like.
 - Document pointer ownership.
 - Introduce wildcard matches ("*")
 - Don't drop empty command-lists, since they can be used to avoid
   wildcard matches. (E.g. "in this case, do nothing, but don't
   fall through to wildcard").
7 years ago
Adriaan de Groot 2fa6361d63 [branding] Expand documentation
- Make CMakeLists a little more resilient
 - Format docs source
 - Add documentation for the examples
7 years ago
Adriaan de Groot 04de4a0b02 [plasmalnf] Properly scale the image
- Since the image size isn't known a priori (due to sizing based on fonts),
   load the image and then resize in all code paths.
 - Use the right resizing flags.
 - .. and actually use the resulting scaled pixmap.

Thanks to Jeff Hodd.
7 years ago
Adriaan de Groot 83639b182b CMake: try installing outside of regular lib/
- Install unversioned libraries
 - Install to lib/calamares instead of directly to lib/
7 years ago
Adriaan de Groot 958aee1d41 [libcalamaresui] Switch text on 'next' button
- If the next step will be an install-step (e.g. hit the optional
   confirmation step) then change the text on the 'next' button to
   'install'.
 - Do a little refactoring to make that more pleasant.

FIXES #905
7 years ago
Adriaan de Groot e9d9efce20 Merge branch 'sanitize-logging' 7 years ago
Adriaan de Groot 3ae126f589 [modules] Use cError() as well
- Switch KPMHelpers to using Calamares logging instead of qDebug()
7 years ago
Calamares CI b33e3294e1 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 3315df5df1 [modules] Use new convenience logging methods across the board 7 years ago
Adriaan de Groot 3f77fb1d16 [modules] Use new convenience logging methods 7 years ago
Adriaan de Groot 60f440f72b [libcalamaresui] Use new convenience logging methods
- Remove a few confusing Q_FUNCINFO
7 years ago