3247 Commits (dbcc419218b2409f925d059b030d79d4eca1bea3)

Author SHA1 Message Date
Adriaan de Groot ca03dad67b [partition] Refactor setting the flags UI
- Setup the lsit of flags consistently, by providing the available
   and to-be-checked flags.
 - In CreatePartitionDialog, assume that ~0 is all the flags.
7 years ago
Adriaan de Groot 4f451eece5 [partition] Refactor getting the checked flags 7 years ago
Adriaan de Groot 950cc9070d [partition] Rename MountPoints to PartitionDialogHelpers
This file is full of helper functions for the partition-editing
dialogs. At first it was just mount-point helper functions,
but there is other functionality that can be refactored.
7 years ago
Adriaan de Groot 336b8c758a [partition] Consider the future flags when checking EFI bootability
- If we're changing the flags to enable EFI boot, then that's
   enough to satisfy the (future) EFI bootability check.
   This is for issue #622 as well. Fixes #884.
7 years ago
Adriaan de Groot 0df304b206 [partition] Preserve desired partition flags
- Use the desired (future) flags, if set, to initialize the
   flags checkboxes. If there are no future flags set, this
   returns active flags as before.
 - This fixes the situation where editing a partition, changing
   flags, then editing it *again* re-starts with the original
   flags instead of the modified flags.
7 years ago
Adriaan de Groot 6739b81c2a [partition] Tell PartitionInfo about desired flags
- When creating a partition, or changing flags, tell
   the PartitionInfo about those desired flags.
7 years ago
Adriaan de Groot 7df143f64a [partition] Add flags to PartitionInfo
- PartitionInfo maintains information on "what is desired" for
   a given Partition. Now we can set desired flags, alongside
   the flags already supported by Partition (where activeFlags()
   gives you the flags currently set on that partition).
7 years ago
Adriaan de Groot 5b4668822d [partition] Also update combo box index when setting up
- Avoids case where you edit a partition with a mountpoint
   set; previously, calling setText() would update the text
   but leave the selected index unchanged (usually 0), so that
   later calling selectedMountPoint() would return empty.
7 years ago
Adriaan de Groot 323d20d1a5 [partition] Avoid sneaking an empty string into the mount points combo 7 years ago
Adriaan de Groot 255a99d714 [partition] Drop now-unneeded debugging 7 years ago
Adriaan de Groot 310555f16b [partition] Add /srv to standard mount-points list. 7 years ago
Adriaan de Groot 4402198b37 [partition] Centralize setting-of-mountpoint
- map empty to the 0'th index
 - add new entries as needed

This avoids having selected index 0, but a different text.
7 years ago
Adriaan de Groot a49c39bb53 [partition] Unmap mount-point special strings
- Reverse "(no mount point)" to the empty string
 - Provide convenience pointer-taking function
7 years ago
Adriaan de Groot a4997c4be8 [partition] Convenience for selecting default mount point
- map blank to the "(no mount point)" string for UI purposes
7 years ago
Adriaan de Groot fda2e54e0f [partition] Refactor filling combobox with moint points
- Move to one place which handles the standard mount points
 - While here, introduce explicit "(no mount point)" string
   into the combo box. This is prep-work for issue #951.
7 years ago
Adriaan de Groot 39bf2eb9aa [welcome] Fix display of unsupported locales
- Some locales have no nativeLanguageName(), so instead display
   the locale id (e.g. "eo") and the resulting language in English
   (which, if it is really unsupported, will be "C").
7 years ago
Calamares CI 03c2329093 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 29848e0279
Merge pull request #950 from cjlcarvalho/master
[partition] Only bootloader model should ignore devices that are not of Disk_Device type
7 years ago
Caio Carvalho f72f7bd8fe [partition] Only bootloader model should ignore devices that are not of Disk_Device type. 7 years ago
Adriaan de Groot ccdfe53201
Merge pull request #945 from cjlcarvalho/master
- Switch to enum types
 - Ignore LVM
 - Check LUKS support

Builds locally in my Manjaro test-box and kpmcore 3.3.0
7 years ago
Adriaan de Groot 2da09f7648 [libcalamaresui] Fix build
- Include all headers for types that need to be fully-defined
   (e.g. return types). This guards against uses in contexts where
   those headers have not been implicitly or previously included.

FIXES #948
7 years ago
Caio Carvalho 77d2667b53 [partition] Checking if there is LUKS creation support and if partition is not Extended before enabling encryption in CreatePartitionDialog. 7 years ago
Adriaan de Groot 96887e754c i18n: drop es_ES, add tooling 7 years ago
Adriaan de Groot ff43752f47 i18n: pl_PL has merged into pl 7 years ago
Adriaan de Groot a38a2a54f7 [locale] Check all XML TimeZone elements if needed
- reduce warnings about loop-executed-only-once
 - if there is more than one TimeZone element, use the virst valid one
 - warn if nothing is found
7 years ago
Calamares CI 0fc30d6cd6 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Caio Carvalho f561f04591 [partition] Changing PartUtils::getDevices to ignore devices that aren't of Disk_Device type. 7 years ago
Caio Carvalho 8726b70574 [partition] Ignoring LVM devices in PartUtils::getDevices to prevent installing bootloader in LVM VG. 7 years ago
Adriaan de Groot 42f5ed5d41 [welcome] Fix build, reduce redundancy
- constexpr isn't applicable because of non-trivial destructor
 - May as well only create " (%1)" once.

FIXES #938
7 years ago
Adriaan de Groot e5b599fbe3 [welcome] Drop accidental logging 7 years ago
Adriaan de Groot 0c5590c2e4 Merge branch 'language-selection'
Display the name of each translation in the language of that translation.

FIXES #935
7 years ago
Adriaan de Groot a47b3f8d14 [libcalamares] Document special-case translations 7 years ago
Adriaan de Groot b9ed96d4f8 [libcalamares] Special case sr@latin
QLocale::name() doesn't include script information, and if it did
it would probably use sr_RS@Latin; when searching for translation
files it won't consider dropping just the country.
7 years ago
Adriaan de Groot a9ffd3351d [welcome] Support sr@latin
- The QLocale constructor which takes a string (locale name) doesn't
   understand sr@latin, and returns the Cyrillic locale. Fix that
   by creating locales ourselves for @latin locales.
 - sr and sr@latin now display correctly in the right script in the
   native language dropdown.
7 years ago
Adriaan de Groot 7cc2b222d9 [welcome] Present RTL (country) annotations better
- The (RTL) text "Arabiy (Misr)" should be entirely RTL, so
   make the parenthetical insert -- which would otherwise be LTR
   and so mess up the placing of those parenthesis around the country --
   explicitly RTL.
 - Since there are no RTL languages in Calamares right now with
   country-local translations, this isn't visible.
7 years ago
Adriaan de Groot 7c944760fc [welcome] Only show (country) in list if the locale suggests it
- A locale suggests it is country-specific by having the form <lang>_<country>
 - This mostly fixes locale "ar" being presented as "Arabiy (Misr)" when
   there is no need to (and the RTL is messed up then, too).
7 years ago
Adriaan de Groot 59537d86d6 [welcome] Present languages in native format
- Introduce intermediate data class for building up the list
   of languages to present.
 - Sort on the English names, with en_US at the top (ugh).
 - Show the native names.
7 years ago
Adriaan de Groot b8b607c421 [locale] Fix QString-vs-char* confusion 7 years ago
Andrius Štikonas 1b21668bff [partition] Switch to scoped Device enums. 7 years ago
Adriaan de Groot 6930400b67 DEBUG logging 7 years ago
Adriaan de Groot 4b7465696d [welcome] Refactor the code that picks a locale to use
- Much like std::find_if, but slightly muddled because there's
   no iterator that we can sensibly use.
 - Scan the ComboBox for a locale that matches a predicate.
 - Log more as the search for a good locale progresses.
 - Don't mix matching the locale with filling the ComboBox
   (even though that's slightly more efficient).
7 years ago
Adriaan de Groot 522adf766a [locale] Switch HTTP GET test to KDE servers
- Use the official name of the KDE GeoIP service
 - Log the URL *before* the check, in case one fails
7 years ago
Adriaan de Groot 5acf67a057 [locale] Fix tests with spaces in zone names
- "North Dakota" -> "North_Dakota" following the change that fixes up
   dodgy names automatically.
7 years ago
Adriaan de Groot b4e4b691fd [locale] Accomodate more dodgy GeoIP providers
- Force spaces to _
 - Document the bits

FIXES #933
7 years ago
Adriaan de Groot 3ef0fbe892 [locale] Add tests for a bunch of GeoIP providers
- Since these tests use network resources, they are not enabled by default.
   Set the environment variable TEST_HTTP_GET to actually do them.
 - Do one request for each provider and check that they are all consistent.
   (This works for me, yielding Europe/Amsterdam for all).
7 years ago
Adriaan de Groot 0f5e061c4a [locale] Support multi-level selection from JSON data
- Some providers don't provide a single flat JSON object
   (e.g. "{time_zone: foo}") but a nested structure
   (e.g. "{location: {time_zone: foo}}"), so allow dots
   in the selector to do multi-level selection.
7 years ago
Adriaan de Groot 6545d5d022 Merge branch 'expand-geoip'
- Allow configurable TZ selector string, to allow for more variation in providers
7 years ago
Adriaan de Groot d04e243c4e [locale] Auto-clean up time zone data
- Some providers return weirdly escaped data; strip out useless
   escaping before splitting (there are no characters in correct
   time zone names that need escaping)
 - Add some tests for TZ splitting
7 years ago
Adriaan de Groot fa5d40006c [locale] Fix interpretation of configured selector
- In GeoIP handler constructors that take a string (to configure the
   selector to use), interpret the empty string (which generally isn't
   a meaningful selector) as meaning "use the default".
 - Drop the no-argument constructors in favor of a default-argument
   which is empty.
7 years ago
Adriaan de Groot 352b385b12 [locale] Make the selector configurable via the config file 7 years ago
Adriaan de Groot b1b59b27b2 [locale] Expand tests for alternate selectors
- Check that the alternate selectors are used
7 years ago
Adriaan de Groot fe20416a54 [locale] Make the selector configurable
- GeoIP gets a string selector; the interpretation is up to derived classes.
 - GeoIPXML and GeoIPJSON use the selector to select an element by tag
   or an attribute, respectively.
7 years ago
Adriaan de Groot 79a6d7ccbd [locale] Make file and class consistent GeoIPXML
- Rename the class to match the filename.
7 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.
7 years ago
Calamares CI 8ba4de6d0a i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot ec113e3df3 [locale] Log GeoIP attempt URL, use possibly-modified form 7 years ago
Adriaan de Groot d6f082752d [locale] On GeoIP failure, log URL 7 years ago
Adriaan de Groot 47b7040897 [locale] Adjust to Calamares 3.2 idiom 7 years ago
Adriaan de Groot 3ea5a06157 Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 14fcc2fad6 [plasmalnf] Continue fighting with layout
- The screenshot stays one size, but different ThemeWidgets may overlap
   partially when you shrink the screen or have more than three / four
   themes listed.
 - Probably needs work in the surrounding container and overall better
   page-scrollbar support.
7 years ago
Adriaan de Groot c9928c99c8 Merge remote-tracking branch 'origin/3.1.x-stable' into 3.1.x-stable 7 years ago
Adriaan de Groot 1340613ef5 [locale] Additional test application for GeoIP processing 7 years ago
Adriaan de Groot 76e37402b3 [locale] Extend tests with negative results 7 years ago
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
Adriaan de Groot 789bbe48f8 Merge branch 'master' into secureboot 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
Adriaan de Groot 903e77a908 [bootloader] Adjust documentation 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 06536b6a66 [bootloader] Refactor method for safe efi label 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 7f53e970fc [bootloader] Add secure-boot efiBootLoader
- add configuration option
 - check for sensible combinations of firmware, bootloader,
   and complain if it isn't.
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 092529da45 [partition] WIP: EFI partition search
- Add some logging (not even sure it compiles) because
   my openSUSE Krypton Secureboot-enabled VM says
   "no EFI system partitions found".
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
Adriaan de Groot df0d9dcb88 [libcalamares] Provide convenience functions for warning and error 7 years ago
Adriaan de Groot 79d81700b3 [libcalamares] Use -D for just debug-level setting
- Original flag -d sets debugging but also changes behavior
 - New -D just sets debugging
 - Simplify QStringList (use C++ 11)
7 years ago
Adriaan de Groot ae5511c2f3 [libcalamares] Rationalize logging
- Move logging-levels to an enum
 - (re-)Order logging-levels so that the normal debug statement is
   not the most-important (lowest level).
 - Drop using namespace std;
7 years ago
Adriaan de Groot 6693f81375 [plasmalnf] Document configuration
- Improve documentation, explain necessity of theme: and image: keys
 - Scale screenshot up with font size (numbers picked arbitrarily)
7 years ago
Adriaan de Groot 874514a4e4 i18n: drop orphaned #undefs (thanks Kevin Kofler) 8 years ago
Adriaan de Groot f49e0f6d92 i18n: update extracted English message files 8 years ago
Adriaan de Groot 0b03d56a40 i18n: Massage code to help lupdate understand 8 years ago
Adriaan de Groot d27675d660 i18n: drop superfluous QObject* parent
These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
8 years ago
Adriaan de Groot c71385e93f i18n: fix broken translation in CommandList 8 years ago
Adriaan de Groot f954496acf i18n: avoid translation tricks, use QCoreApplication::translate
Instead of using tr and some macro hacks to get lupdate to
recognize the translation, instead use QCoreApplication::translate()
which takes its own context for translation.
8 years ago
Calamares CI 7c8a70c9a1 [dummypythonqt] Automatic merge of Transifex translations 8 years ago
Adriaan de Groot ad89dd7cc4 [interactiveterminal] Document config 8 years ago
Adriaan de Groot 051edb462f [packages] Add pisi package manager (based on some guesses) 8 years ago
Adriaan de Groot 533031b3ca [bootloader] print() does not log
- use the right logging method; print just vanishes.
8 years ago
Adriaan de Groot f869a0f263 [bootloader] Log the EFI fallback action 8 years ago
Adriaan de Groot 78108c5cda [bootloader] Allow skipping the EFI fallback 8 years ago
Adriaan de Groot aed904e3b4 Merge branch 'i897-timeout'
FIXES #897
8 years ago
Adriaan de Groot 9a7e766391 Merge branch 'i895-setroot-context'
FIXES #895
8 years ago
Adriaan de Groot c2aca1f5c6 [shellprocess] Implement timeout setting
- For both shellprocess and contextualprocess, add a top-level key
   "timeout" that defaults to 10 seconds (which it already did).
 - Allows setting "global" timeout for command-lists, while still
   allowing individual timeouts per-command.
 - Setting timeout per global variable in contextualprocess is not
   supported; that would restrict the possible space of comparisions,
   while not supporting a global setting timeout seems reasonable enough.
   Use instances if you need wildly variable timeouts and don't want to
   set them individually.
8 years ago
Adriaan de Groot 2da430fa36 [libcalamares] Allow CommandLine to have unset timeout
- Introduce enum for the appropriate constant
 - If the timeout isn't set, then defer to the timeout set
   on the commandlist when running the commands.
8 years ago
Adriaan de Groot c641f5dec6 [libcalamares] Implement object-style command line
- handle command: and timeout: entries
 - test for setting the values
8 years ago
Adriaan de Groot 72bac332be FIXUP document 8 years ago
Adriaan de Groot 4917b5c778 [shellprocess] Add test for future feature
- proposed syntax for command+timeout configuration, both for single-
   entry and for lists.
 - test it already
8 years ago
Adriaan de Groot fe2be46d3f [libcalamares] Extend command-list with timeouts
- Replace plain StringList with a list of <String, timeout> pairs,
   and run that instead. All code paths still use the default 10sec
   timeout and there's no way to change that.
8 years ago
Adriaan de Groot ea179eaef4 [contextualprocess] Document command lists
- Show that a command list is also allowed, not just a single
   command. Refer to shellprocess for more documentation.
8 years ago
Adriaan de Groot 6335084aa3 [libcalamares] Determine what's checked and what's required first.
- warn for required checks that are not carried out.
8 years ago
Adriaan de Groot 778feb50e8 [libcalamares] Additional convenience for doubles 8 years ago
Adriaan de Groot 54a9bbb949 [libcalamares] Don't eat output on timeout.
- Copy stdout from timed-out process into the output variable,
   instead of just dumping it into the log file. This will
   improve the user experience, too, because they will get some
   feedback / explanation of what the process has done.
8 years ago
Adriaan de Groot d6731efdfd [packages] fix typo in docs 8 years ago
Adriaan de Groot 1d6dca062c [users] Make state of 'reuse password for root' available in globals. 8 years ago
Adriaan de Groot 26dfd56f6d [libcalamares] Additional convenience function extracting int 8 years ago
Adriaan de Groot 188a434a10 [dummycpp] more verbose debug log 8 years ago