5950 Commits (42417ed3b2c633c4f1dc514c4e5c77f8f74c07ef)

Author SHA1 Message Date
Adriaan de Groot 09020d68b0 [libcalamaresui] Make dox of ModuleManager signals more explicit 6 years ago
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.
6 years ago
Adriaan de Groot 07c096673d [localeq] Report summary before install 6 years ago
Adriaan de Groot a4ed160060 [localeq] Offer a Config setting to set location from region/zone
- already had methods for various kinds of broken-up data, but
  not one for plain "region/zone" strings; having this makes
  it easier for QML to report a zone.
- use the region/zone method from QML, so that clicking on the
  world map updates the actual TZ in Config.
6 years ago
Adriaan de Groot e78cde7ccb [locale] Update GS when the LC value changes (not just location) 6 years ago
Adriaan de Groot 00e9454344 [localeq] Hook up to Config object
- get network status from the global Network object; document that
- get the strings describing the language and LC settings from
  the config-object instead of roll-our-own
- use the model of supported locales from Config to populate listboxes
- connect selection of language or LC to the Config object
6 years ago
Adriaan de Groot 75da1bece4 [locale] Add properties for language and LC codes
- we already had the human-readable status strings, but also want the
  actual code (particularly for being able to **update** the code
  from QML)
6 years ago
Adriaan de Groot fdbfbfe284 [localeq] Fix build, missed one case of removed member variable 6 years ago
Adriaan de Groot fb927c9763 [localeq] Use network-connected property to direct map-loading 6 years ago
Adriaan de Groot 36fb1124be [libcalamares] Export network status as Q_PROPERTY and to QML 6 years ago
Adriaan de Groot 51e743a67f [libcalamares] Give GlobalStorage a parent 6 years ago
Adriaan de Groot 4b7403d115 [localeq] Re-do with new Config
- remove stray and useless TODOs
- remove unnecessary empty overrides
- clean up includes
- drop all the code that is now in Config

Since the business logic (setting locations, maintaining GS, ...)
is all in the Config object, the ViewStep is remarkably simple:
hook up a UI to the Config, which in the case of QML is done
automatically.
6 years ago
Adriaan de Groot d90d451f42 [locale] Remove unnecessary includes 6 years ago
Adriaan de Groot 1f3cb32486 [locale] Apply coding style 6 years ago
Adriaan de Groot 824cb4d4b8 [locale] As the Page is constructed, it shouldn't change the location
- since the Page hooked up a model and changed the region-selection
  **after** connecting to signals, it would reset the location
  to Africa/Abijan (alphabetically the first timezone) during
  construction. Don't do that.
6 years ago
Adriaan de Groot 4f684be83d [locale] Avoid crashes in the map widget if there is no current location 6 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.
6 years ago
Adriaan de Groot a25d61077f [locale] Add GeoIP settings to Config
- this doesn't do the lookup **yet**
- while here, refactor setConfigurationMap so it reads like a story,
  with chunks bitten out into a handful of static inline void methods.
6 years ago
Adriaan de Groot f64a1eb16a [libcalamaresui] Document the signals from ModuleManager 6 years ago
Adriaan de Groot b607cf3f98 [locale] Get starting TZ in Config
- read the *region* and *zone* settings; this duplicates what
  the ViewStep does and is currently unused, but ..
- add new support for using the system's TZ (rather than
  the fixed values from *region* and *zone*). This complements
  GeoIP lookup.

This is the actual feature that started the long rewrite of
the Config object (so that all the business logic would be in
one place, usable for both widgets and QML).

FIXES #1381
6 years ago
Adriaan de Groot 781d76c9e5 [locale] Avoid nullptr if there is no location 6 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.
6 years ago
Adriaan de Groot f6419d5de1 [locale] New setting *adjustLiveTimezone*
- allow finer-grained control over whether-or-not to adjust the
  timezone in the live system.
- handle some special cases at the point of loading-configuration.
- document the setting in locale.conf
- correct some documentation bugs
- adjust the YAML schema for locale.conf so it's legal YAML syntax
  **and** validates the current file.
6 years ago
Adriaan de Groot 995ebd5c83 [locale] Remove unused #includes 6 years ago
Adriaan de Groot 1de2210d29 [locale] Move the GS updating to the Config object
- since all locale changes need to be entered into GS anyway, this
  is something the Config object can do because it is the source
  of truth for locale settings.
- drop all the GS settings from the Page.
6 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.
6 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.
6 years ago
Adriaan de Groot 855b21a7db [locale] Remove redundant method
- configuration information lives in the Config object
6 years ago
Adriaan de Groot abc98cfa79 [locale] Simplify allocation, guard against crashes if the dialog is deleted. 6 years ago
Adriaan de Groot 66eacce654 [locale] Move localeconfiguration to Config object
- the language and LC settings migrate from page to config
- add API for explicitly setting language (which is then preserved
  when clicking new locations)
6 years ago
Adriaan de Groot a307217d83 [locale] Tidy LocaleConfiguration
- expand API documentation
- minor coding-style adjustments
6 years ago
Adriaan de Groot 81520bbbf9 [locale] Chase RAII conveniences
- several early-return paths would leave the TZ widget blocked
- use the zones data from config
6 years ago
Adriaan de Groot 0645a46b42 [libcalamares] Expand RAII conveniences 6 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
6 years ago
Adriaan de Groot 726f882185 [locale] Move current-location to Config 6 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.
6 years ago
Adriaan de Groot 8c21b59853 [locale] Remove unused localegen (moved to Config earlier) 6 years ago
Adriaan de Groot f0cac7d669 [locale] Hook tz widget up to the Config's data 6 years ago
Adriaan de Groot 4d5ff6d5c4 [locale] Make the Page use the region model from Config 6 years ago
Adriaan de Groot 88d1d255f6 [locale] Add regions & zones models to Config
- The models are constant pointers, even if their contents aren't.
- Make the top-level (region) model point to the global TZ list.
6 years ago
Adriaan de Groot 51b7ec875f [locale] Don't need own copy of zones list 6 years ago
Adriaan de Groot 439f828d9b [locale] Document TZ widget 6 years ago
Adriaan de Groot 931ce20f30 [locale] Reduce API surface
- getLocationPosition doesn't need to be a method, since it calls out
  to a static function of TimeZoneImageList anyway.
6 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.
6 years ago
Adriaan de Groot 338635146f [locale] Hand the Config object also to the page 6 years ago
Adriaan de Groot b6b5c44996 [locale] Load supported locales in Config 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 0d5db2dd06 [localeq] Config-handling is a total bodge-job, disable 6 years ago
Adriaan de Groot 724b92ee60 [partition] Drop documentation of vanished parameter 6 years ago
Adriaan de Groot e1f4224bed [libcalamaresui] Fix slideshowAPI loading
In 022045ae05 a regression was introduced: if no *slideshowAPI*
is specified in the branding file, Calamares refuses to start, with
a YAML failure.

Before the refactoring, we had `YAML::Node doc` and looked up
the *slideshowAPI* in it with `doc["slideshowAPI"]`. After the
refactoring, we had `const YAML::Node& doc`. The `const` makes
all the difference:
 - subscripting a non-existent key in a mutable Node silently
   returns a Null node (and possibly inserts the key);
 - subscripting a non-existent key in a const Node returns an
   invalid or undefined node.

Calling IsNull() or IsScalar() on a Null node works: the functions
return a bool. Calling them on an invalid node throws an exception.

So in the **const** case, this code can throws an exception that it
doesn't in the non-const case:
    `doc[ "slideshowAPI" ].IsScalar()`

- Massage the code to check for validity before checking for scalar
- Add a `get()` that produces more useful exception types when
  looking up an invalid key
- Use `get()` to lookup the slideshow node just once.
6 years ago
Adriaan de Groot a58d59d86c [libcalamares] Minor documentation on Yaml.* 6 years ago
Adriaan de Groot da1cc7c3a5 [libcalamaresui] Don't clear the map when inserting strings
- the documentation doesn't say the map is cleared, and the one
  place this function is used doesn't need that either.
- make type of config explicit
6 years ago
Adriaan de Groot a91edfef89 [netinstall] auto-resize the columns
- previously, the first column (name) was sized to show the
  names **that were visible at startup**, which fails when
  there are long names hidden in groups that are not expanded
  immediately.
- change the columns to resize according to the contents; this makes
  the descriptions jump to the right as the name column gets wider.

FIXES #1448
6 years ago
Adriaan de Groot 240c703549 [partition] Don't leak the PM core object 6 years ago
Adriaan de Groot 7f1a59f02b [partition] Fix typo 6 years ago
Adriaan de Groot 313531bc4b [partition] Remove unused parameter
- there are no consumers for checking-the-capacity-of-the-drive

This parameter was introduced in 3cd18fd285 as "preparatory work"
but never completed. The architecture of the PartitionCoreModule
makes it very difficult to get the necessary parameters to
the right place, and it would probably be better to put
a SortFilterProxyModel in front of a partitioning model anyway.

Since the display code can already filter on size, just drop this one.
6 years ago
Adriaan de Groot 948c078e1a [partition] winnow floppy drives
- don't list floppy drives

FIXES #1393
6 years ago
Adriaan de Groot a78c368367 [calamares] Tweak default QML sidebar
- make the rectangles slightly larger
- align text to center of the rectangle
- make the rectangle fill out the column; without this, the
  width would collapse back to 0 after a change in the model,
  which would draw 0-width rectangles.

FIXES #1453
6 years ago
Adriaan de Groot 2b2a69631f [libcalamaresui] Suggestions for better naming of enum values 6 years ago
Adriaan de Groot 3565b6806a [libcalamares] Massage the logger output
- continuations, for the console, no longer print the date + level,
  which makes things easier to visually group and read.
- the file log is mostly unchanged, except it contains more spaces now.
6 years ago
Adriaan de Groot 631923abf8 [libcalamares] Console-logging follows -D flag exactly
- Don't always log LOGEXTRA and below.
6 years ago
Adriaan de Groot 67aa34c4a4 [calamares] Center the progress texts 6 years ago
Adriaan de Groot 43ebcf8b61 [packages] Keep package-manager list alphabetized 6 years ago
Vitor Lopes c16866fb88 pep8 302 6 years ago
Vitor Lopes e29462bc05 [pamac] rework db_lock 6 years ago
Vitor Lopes d78cbfc644 update example configurations and schema 6 years ago
Vitor Lopes 2c76106a66 Merge branch 'calamares' of https://github.com/calamares/calamares into calamares 6 years ago
Adriaan de Groot 46ad704ede [partition] Fix build for old KPMCore
SEE #1444
6 years ago
Adriaan de Groot 36a9088480
Merge pull request #1444 from gportay/add-parttype-partattrs-to-global-storage
[partition] Add the GPT type and attributes to global storage
6 years ago
Adriaan de Groot 0be6f63d2a
Merge pull request #1443 from gportay/add-default-value-to-variant-helpers
[libcalamares] Add default value to variant helpers
6 years ago
Adriaan de Groot d3f9415bc1 [packages] Expand schema to cover the operations
- Not complete, since the items in the operations aren't done
6 years ago
Adriaan de Groot 8aa8ac2d26 [packages] Tidy up configuration
- fix the schema so the schema is valid json-schema
- the schema doesn't actually validate the *operations* yet
- sort the named backends (needs a double-check that the
  list covers all the ones we currently support)

SEE #1441
6 years ago
Adriaan de Groot 08aa362c5c [license] Warnings-reduction
- Don't do in code what is already done in the designer (.ui) file
- setFrameStyle() is difficult because it mixes different enums
  into an int, which causes the warning from clang.
6 years ago
Adriaan de Groot 3b5c4839e3 [libcalamaresui] Warnings-- 6 years ago
Adriaan de Groot 31a1b710bc Docs: say something about QML modules 6 years ago
Adriaan de Groot 6735ff1cd0 Docs: give up on PythonQt modules 6 years ago
Adriaan de Groot fa2f91aa46 [libcalamaresui] Minor documentation improvements 6 years ago
Adriaan de Groot 8ced67680d [calamares] Allow get/set of panel-sides
- Add access to the panel-sides membe of the view manager, and
  calculate which sides are populated by panels (if any).
- Pass the calculated panel-sides to the view manager before it
  starts adding viewpages, so they get consistent margins.
6 years ago
Adriaan de Groot 68aecf6a26 [libcalamaresui] Special margins for QML view steps
If there are no surrounding panels, drop the margin around the QML on
the assumption it needs to be full screen under special circumstances.
6 years ago
Adriaan de Groot d952faf909 [libcalamaresui] Set margins based on viewstep suggestion 6 years ago
Adriaan de Groot d7ed450dbf [libcalamaresui] Give ViewManager data about side-panels 6 years ago
Adriaan de Groot 1648f311fe [libcalamaresui] apidox touch-up 6 years ago
Adriaan de Groot 748d76df4f [libcalamaresui] Add support for steps with own margins 6 years ago
Adriaan de Groot 347a25d13d [libcalamaresui] Avoid nullptr deref
- there's a check already there, and probably this means things are hopelessly
  broken anyway, but let's not crash here.
6 years ago
Adriaan de Groot 4a6ee39f8b [libcalamaresui] Blanket unmargin the content area 6 years ago
Adriaan de Groot bfbb0f1c49 [libcalamaresui] Mark some TODO for 3.3, in passing 6 years ago
Adriaan de Groot 8a9e85db71 Branding: shuffle around a bit, expand documentation 6 years ago
Adriaan de Groot e206eb086b [partition] Missing includes for Qt-compatibility 6 years ago
Adriaan de Groot c3ff9edfa2 [tracking] Add a test executable
- just a stub, hardly tests useful functionality
6 years ago
Adriaan de Groot 3ee53435c5 [libcalamares] Fix constness issue (gcc reported) 6 years ago
Adriaan de Groot 1dfb25372b [tracking] Warnings-reduction
- Give classes a virtual destructor that need them
- Remove spurious ;
- Refactor addJobs() because that doesn't need to be in a class
- Remove redundant intermediate base-classes
6 years ago
Adriaan de Groot 0bede0692a [locale] Warnings-- on static_cast with no message 6 years ago
Adriaan de Groot daf9451e69 [welcome] Warnings-- 6 years ago
Adriaan de Groot 22fdca8f44 [libcalamares] Use Logger::Pointer for logging void-pointers 6 years ago
Adriaan de Groot 8a14316e16 [calamares] be less chatty in startup
- without the SubEntry part, the function name is printed each time.
6 years ago
Adriaan de Groot 916c10816b [libcalamares] Logging-convenience for pointers
- This reduces the amount of (void*) C-style casts in the code,
  and formats generic pointers more consistently.
6 years ago
Adriaan de Groot 192263cf9d [libcalamares][modules] Use compatibility for QString::split()
- Use the compatibility value, which has an enum value suitable
  for the Qt version in use.
6 years ago
Adriaan de Groot d6b0583bad [libcalamares] Compatibility-layer for QString::split
- QString::split() api changed in 5.14, in 5.15 generates warnings,
  so introduce a compatibility value.
6 years ago
Gaël PORTAY 9392473fec [partition] Add the GPT type and attributes to global storage 6 years ago
Adriaan de Groot e24f812b2d [libcalamares] Chase Permissions move
- Fix include names in *preservefiles*
- Tidy up include guards
- Fix CMakeLists in *perservefiles* and *libcalamares*
- Use SPDX license headers
6 years ago
Adriaan de Groot 4473d7f5dd [preservefiles] Move permissions classes to libcalamares 6 years ago
Gaël PORTAY c9f942ad67 [libcalamares] Add default value to variant helpers
- Some variant helpers take a default parameter if the map does not
  contains the given key or if the type mismatches. Make all helpers
  behave the same.
6 years ago
Gaël PORTAY 4974d86932 [partition] Fix missing initialization of the attribute partAttributes
- Initialize the attribute partAttributes to 0; it is a primitive type
  and it is not initialized in some constructors.
  Fixes commit c1b5426c6 ([partition] Add support for partition attributes).
- Move implementation of default constructor to cpp.
6 years ago
Adriaan de Groot fde1aad465 CMake: add support for USE_*=none (from the os-modules branch) 6 years ago
Adriaan de Groot bff0bed07e [users] Apply coding style (only CreateUserJob.cpp though)
- use ci/calamaresstyle
- SPDX licensing
6 years ago
Vitor Lopes 976150bc1e
simplify install code 6 years ago
Vitor Lopes ddfd120197
add missing self 6 years ago
Vitor Lopes 5bb49e252d
Update main.py 6 years ago
Vitor Lopes 75bba349be
Update main.py 6 years ago
Vitor Lopes f8db15adc4
add pamac support 6 years ago
demmm ccff4edd91 [keyboard] fully functional QML module
added missing components listed as ResponsiveBase, ListItemDelegate & ListViewTemplate
parts of which were on nitrux
keyboard.qml no longer uses buttons within ListView, can't work as buttons and have them visible
see https://doc.qt.io/qt-5/qml-qtquick-listview.html#footerPositioning-prop
set ListView as actually visible within a normal calamares window size
6 years ago
Adriaan de Groot 5da2012465 [users] Expand schema to support the keys documented in users.conf
- Now the documentation in the file and the source is leading
  to update the schema, but in future those should go hand-in-hand
6 years ago
Adriaan de Groot 463545290e [users] Fix up schema syntax
- Remove schema items *availableShells* and *avatarFilePath* because
  those have no implementation.
6 years ago
Adriaan de Groot c284024b0e i18n: Update English translations 6 years ago
Adriaan de Groot b9b79f11a4 [unpackfs] Prevent accidental 0777 permissions on /
FIXES #1418
6 years ago
Adriaan de Groot 0305476f8a Merge branch 'issue-1287' into calamares
Major update to the 'tracking' module with improved wording,
functionality, QML-preparation, and a working kuserfeedback mode.

FIXES #1287
6 years ago
Adriaan de Groot 1b11cc90c4 [tracking] Polish the phrase for 'none' a bit 6 years ago
Adriaan de Groot 6365b7a362 Merge branch 'calamares' into issue-1287 6 years ago
Adriaan de Groot 2cad90d9ca
Merge pull request #1437 from gportay/handle-integers-with-octal-or-hexa-prefix
[libcalamares] Handle integers prefixed with 0 or 0x
6 years ago
demmm fc91b4ce60 [localeq] use js to get the hasInternet status
switching between Map.qml & Offline.qml now happens properly
6 years ago
Adriaan de Groot 8ad221311d [tracking] Can't uncheck 'none' box by itself
- If the 'no tracking' box is checked, then the way to uncheck
  it is to tick some **other** box.
- It doesn't make sense to unselect 'none' and then have .. none
  selected.
6 years ago
Adriaan de Groot 47b0fa5d55 [tracking] Get username from gs 6 years ago
Adriaan de Groot 9b8d591b5d [tracking] Configure user-tracking areas 6 years ago
Adriaan de Groot e834ce532c [libcalamares] Add variant-map getStringList() convenience 6 years ago
Adriaan de Groot 98ab4330c4 [tracking] expand documentation of configuration 6 years ago
Adriaan de Groot 3f55d415e9 [tracking] Make names of user-tracking styles consistent
- use kuserfeedback instead of "kde", to name the technology,
  not the community
6 years ago
Adriaan de Groot 5623d8086b [tracking] Apply coding style
- massage trackingSetup macro to look like a function call
6 years ago
Adriaan de Groot 789561be6a [tracking] Apply coding style 6 years ago
Adriaan de Groot 8c1685d2cf [tracking] Connect UI to configuration
- policy buttons open the policy URL
- hide tracking levels that are not configurable
6 years ago
Adriaan de Groot 756e3084dc [tracking] Simplify updatemanager job
- sed all the URI lines with a simple replacement
- document policy requirements
6 years ago
Adriaan de Groot 9433311f24 [tracking] Explain which tracking style is disabled by URL-validation 6 years ago
Adriaan de Groot 48d0c5beeb [tracking] Do user tracking in the job queue 6 years ago
Adriaan de Groot cb2909f6d8 [tracking] Rename "neon" tracking
KDE neon does not do this kind of tracking -- although it was originally
requested by KDE neon, no server roll-out was done once the
privacy policy was thought out.
6 years ago
Adriaan de Groot 4d6a5d0cb5 [tracking] Use KMacroExpander instead of homebrew for install-URL 6 years ago
Adriaan de Groot c797a30a72 [tracking] Bold more relevant parts of level-descriptions 6 years ago
Adriaan de Groot dda4ab0b2e [tracking] Improve naming
- give the on-some-checkbox-state-changed slots better names
- while here, refactor is-any-actual-tracking-option-checked
- improve other debug messages, to be a whole sentence
6 years ago
Gaël PORTAY e68723f1c7 [libcalamares] Handle integers prefixed with 0 or 0x
- QString to-integer members detect if an integer string begins with
  "0x" (base 16) or "0", base 8; but QVariant members do not.
- QString: the C language convention is used is base is set to 0.
- Convert to QString and use its member toLongLong() and set base to 0
  to detect integer strings begin with a prefix.
6 years ago
Adriaan de Groot 635f53a804 CI: add a BUILD_SCHEMA_TESTING
- ON by default, so if tests are built and the script works,
  those tests will run as well.
- Check that the script works by invoking it once.
6 years ago
Adriaan de Groot e3b8570d61 Merge remote-tracking branch 'origin/master' into calamares
Pick up some older MRs that apply to the older branch.
6 years ago
Adriaan de Groot bfefbd117d
Merge pull request #1435 from gportay/partition-attributes
Partition Attributes
6 years ago
Adriaan de Groot 91f87ba838
Merge pull request #1409 from gportay/partition-uuid
Partition UUID
6 years ago
Adriaan de Groot 0cd8940363 [bootloader] Fix up schema 6 years ago
Adriaan de Groot 066acdbbc6 Merge branch 'yaml-schemata' into calamares 6 years ago
Adriaan de Groot 4a07bd4ae3 CI: import all the rest of the YAML schema
- These have **not** been fixed for validation, so the schema's themselves
  will fail to load. This is a consequence of variations in JSON-Schema
  representations through various drafts. Fixing the schemata is
  fairly straightforward.

This gives us 19 new tests, all of which fail.
6 years ago
Adriaan de Groot df183d4026 [welcome] Add schema for welcome config
- Note that this is missing *languageIcon* so if that gets uncommented,
  it will fail validation.
- While here decide that  should be
  right up front in object (mappings) declaration.
6 years ago
Adriaan de Groot b48c2745c1 CI: apply schema-validation to the example config files
- Any config file with a schema gets a test (validate-<module>)
  to test the file.
6 years ago
Adriaan de Groot 62e7128ff6 CMake: document WITH_ and BUILD_ a little more
- also mark TODO:3.3: for incompatible / surprising changes for 3.3
6 years ago
Adriaan de Groot deec0b862f [finished] Add schema for config
- Original schema from artoo@manjaro.org, modified for current JSON-Schema use
6 years ago
Gaël PORTAY c1b5426c66 [partition] Add support for partition attributes 6 years ago
Adriaan de Groot 55abe0247b [libcalamares] Fix tests on 32-bit platforms
- The size of a 2GiB partition (in bytes) is larger than the largest
  32-bit signed integer; we hit signed overflow while calculating
  2^11 * 2^10 * 2^10 and the test fails.
- Switch the whole table of sizes to qint64 instead.
- For testing purposes only, introduce a _qi suffix for qint64.

FIXES #1430
6 years ago
Calamares CI ba89b9f7f2 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Pablo Ovelleiro Corral f034b55da2
[packages] add xbps package manager 6 years ago
Adriaan de Groot dc0ed24f1a [libcalamaresui] Install libcalamaresui headers
- All the headers go to relevant subdirs, but we don't keep
  libcalamares and libcalamaresui apart.
- While here, remove unused variable from libcalamares CMake
6 years ago
Adriaan de Groot 23c93904df CMake: put CMake-level ABI settings in CalamaresConfig
- drop the BuildTreeSettings, it was not usefully used
- make CalamaresConfig repeat the WITH_* settings, so that
  consumers can know the ABI offered
6 years ago
Adriaan de Groot 6c272bc8be [libcalamares] Link yamlcpp privately
- link the library privately -- the public API uses QVariantMap
- install FindYAMLCPP just in case
- add yamlcpp explicitly in the few places that really need it
  (e.g. netinstall testing the parsing of netinstall.yaml)
6 years ago
Adriaan de Groot 3c770b79b3 CMake: install all the libcalamares subdir-headers 6 years ago
Adriaan de Groot 14ff681106 CMake: give libcalamares IMPORTED includes
- Set the interface-include path for libcalamares, so that
  linking to it (as one would from an external repo) pulls in
  all the includes.
6 years ago
Adriaan de Groot dc16afac4a CMake: massage IMPORTED targets and module path
- Add the Calamares CMake-modules to the search path automatically
- Export to CalamaresTargets.cmake and use namespace Calamares::
- Document imported targets
- Find Qt, because the translations machinery will need macros from that
- The installed lib links to IMPORTED libraries from KF5, so we need
  to find them (again) as well.
6 years ago
Adriaan de Groot 38b4f45b92 [locale] Repair timezone graphics -- west-Africa and Pacific 6 years ago
Adriaan de Groot d511cc2f7a [locale] Norfolk Island gave up +11.5 in 2015 6 years ago
demmm a617dba85e [welcomeq]re-add the donate button example to welcomeq.conf 6 years ago
Adriaan de Groot 8c4b6e4804 Merge branch 'master' into issue-1287 6 years ago
Adriaan de Groot 35fb8dcc27 [mount] Warn if chcon is missing, rather than fail
FIXES #1429
6 years ago
Adriaan de Groot d22178ca5e [welcomeq] Show filtered list of requirements
- only the unsatisfied ones are shown; no need to filter and
  fiddle about in QML
6 years ago
Adriaan de Groot f68d0f0628 [welcome] Add a filtered model for unsatisfied requirements 6 years ago
Adriaan de Groot d1165bea56 [welcomeq] Use just one component to display requirements
- Do all the status indication in one component, but vary
  the top-level message based on whether the mandatory
  requirements are satisfied.
- Vary color and icon based on each requirement's *mandatory* setting.
6 years ago
Adriaan de Groot 5b1e5a9e03 [welcome] Some API docs 6 years ago
Adriaan de Groot abe558f127 [libcalamares] Be more verbose when the requirements check is done 6 years ago
Adriaan de Groot f35fab24ac [welcome] Remove name-tangle
- use useful, not-single-letter, variable names
- don't rename inconsistently in the lambda capture
6 years ago
Adriaan de Groot 8255bc3fc1 [welcome] Sanitize example configurations
- remove all duplicated documentation from ; it's the same as
  `welcome.conf` in all respects except for *qmlSearch*.
6 years ago
demmm 73eb718c08 adding needed geoip section to welcomeq.conf
see https://github.com/calamares/calamares/issues/1427#issuecomment-640531710
6 years ago
Adriaan de Groot 5e79176f47
Merge pull request #1422 from andy1247008998/patch-2
remove unnecessary period mark since it's a title
6 years ago
Adriaan de Groot 0e7c984854 [partition] Add missing includes for Qt 5.15 compatibility 6 years ago
Adriaan de Groot 1c598d769b [partition] Apply coding style (to just this one file) 6 years ago
Adriaan de Groot 25d36a8943 [netinstall] Improve documentation of translation framework
- Not country-code, but language-code

FIXES #1411
6 years ago
Adriaan de Groot 881187de8d
Merge pull request #1423 from Cal8031/t1
Update and add SPDX identifiers
6 years ago
Adriaan de Groot 67d7c700fd [locale] Update documentation to mention *fixed* style 6 years ago
Adriaan de Groot ac2a9c569e [libcalamares] Allow "fixed" as a GeoIP lookup type 6 years ago
Adriaan de Groot 672f506e72 [libcalamares] Add unittests for GeoIPFixed
- Ignores the data, just returns selector
6 years ago
Adriaan de Groot d9effb4ba7 [libcalamares] Add GeoIPFixed to the test-tool for GeoIP lookup
- Allow format "fixed"
- Allow specifying the selector in the test-tool
6 years ago
Adriaan de Groot d37ec35592 [libcalamares] GeoIP that always returns a fixed value
- Value is configurable (through the "selector" which is passed
  to GeoIP lookups). This is convenient for tests so you can "fix"
  the value that the lookup will return.
6 years ago
Callum Farmer 0c4dc71d5c [libcalamares] Update SPDX identifiers.
Update CppJob.h

Update CalamaresConfig.h.in

Update DllMacro.h

Update GlobalStorage.cpp

Update GlobalStorage.h

Update Job.cpp

Update Job.h

Update JobExample.cpp

Update JobExample.h

Update JobQueue.cpp

Update CalamaresConfig.h.in

Update CppJob.cpp

Update CppJob.h

Update DllMacro.h

Update GlobalStorage.cpp

Update GlobalStorage.h

Update Job.cpp

Update Job.h

Update JobExample.cpp

Update JobExample.h

Update JobQueue.h

Update ProcessJob.cpp

Update ProcessJob.h

Update PythonHelper.cpp

Update PythonJob.cpp

Update PythonJob.h

Update PythonHelper.h

Update PythonJobApi.cpp

Update PythonJobApi.h

Update Settings.cpp

Update Settings.h

Update GeoIPJSON.cpp

Update GeoIPJSON.h

Update GeoIPTests.cpp

Update GeoIPTests.h

Update GeoIPXML.cpp

Update GeoIPXML.h

Update Handler.cpp

Update Handler.h

Update Interface.cpp

Update Interface.h

Update test_geoip.cpp

Update CountryData_p.cpp

Update Label.cpp

Update Label.h

Update LabelModel.cpp

Update LabelModel.h

Update CountryData_p.cpp

Update CountryData_p.cpp

Update Lookup.cpp

Update Lookup.h

Update Tests.cpp

Update Tests.h

Update TimeZone.cpp

Update TimeZone.h

Update TranslatableConfiguration.cpp

Update TranslatableConfiguration.h

Update ZoneData_p.cxxtr

Update cldr-extractor.py

Update zone-extractor.py

Update Actions.h

Update Actions.h

Update Descriptor.h

Update InstanceKey.cpp

Update Module.cpp

Update Module.h

Update Requirement.cpp

Update RequirementsChecker.h

Update RequirementsModel.cpp

Update RequirementsModel.h

Update Tests.cpp

Update Manager.cpp

Update Manager.h

Update Tests.cpp

Update FileSystem.cpp

Update FileSystem.h

Update KPMManager.cpp

Update KPMManager.h

Update KPMTests.cpp

Update FileSystem.cpp

Update FileSystem.cpp

Update FileSystem.h

Update KPMManager.cpp

Update KPMManager.h

Update Mount.cpp

Update Mount.h

Update PartitionIterator.cpp

Update PartitionIterator.h

Update PartitionIterator.h

Update PartitionQuery.cpp

Update PartitionQuery.h

Update PartitionSize.cpp

Update PartitionSize.h

Update Sync.cpp

Update Sync.h

Update Tests.cpp

Update Tests.h

Update BoostPython.h

Update CalamaresUtilsSystem.cpp

Update CalamaresUtilsSystem.h

Update CommandList.cpp

Update CommandList.h

Update Dirs.cpp

Update Dirs.h

Update Entropy.cpp

Update Entropy.h

Update Entropy.cpp

Update Logger.cpp

Update Logger.h

Update NamedEnum.h

Update NamedSuffix.h

Update PluginFactory.cpp

Update PluginFactory.h

Update RAII.h

Update RAII.h

Update Retranslator.cpp

Update Retranslator.h

Update String.cpp

Update String.h

Update TestPaths.cpp

Update Tests.cpp

Update Tests.h

Update UMask.cpp

Update UMask.h

Update Units.h

Update Variant.cpp

Update Variant.h

Update Yaml.cpp

Update Yaml.h

Update moc-warnings.h
6 years ago
Adriaan de Groot 24653c1cc6 [locale] C&P code with repeated bugs from QML branches 6 years ago
Callum Farmer 210ce97bf6 [libcalamaresui] Update SPDX identifiers.
Update ImageRegistry.cpp
6 years ago
Callum Farmer 741b680513 [qml] Update SPDX identifiers.
Update Presentation.qml
6 years ago
Adriaan de Groot c6d147bde6 [keyboard] Give Canadian English the US keyboard layout, eh 6 years ago
AI Lion c6174b027c
remove unnecessary period mark since it's a title 6 years ago
Adriaan de Groot 60e12174fd [tracking] Switch out Radio for CheckBox
- The Radio's are replaced by CheckBoxes and some logic, so
  that different tracking styles can be enabled independently.
  None of the settings end up in the Config yet, though.
6 years ago
Adriaan de Groot fab3ff2c41 [tracking] Implement KUserFeedback configuration
- write config files to turn on KUserFeedback (for known areas)
- TODO: get the right home directory to write in
6 years ago
Adriaan de Groot bed884c971 [tracking] Move setup of initial-tracking states to Config
- the *default* level from the config, can be handled inside
  the Config object as well; remove TrackingPage method that
  does the same.
6 years ago
Adriaan de Groot 1d143d95a0 [tracking] Setup UI in the .ui file 6 years ago
Adriaan de Groot 935f443a4d [tracking] Simplify policy display
- Don't need an own slot for this, just connect to signals from Config
  and the label, neither of which need any state.
6 years ago
Adriaan de Groot 689a65e107
Merge pull request #1414 from gportay/remove-unused-locals
[partition] Remove unused locals
6 years ago
Calamares CI bc9544bf14 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Gaël PORTAY 629bb2e2f6 [partition] Remove unused locals
- Unused since commit 0d284759f5
6 years ago
Adriaan de Groot 69c2d089f2
Merge pull request #1413 from gportay/rawfs-fix-crash-if-bogus-is-unset
[rawfs] Fix crash if bogus is unset
6 years ago
Adriaan de Groot 738a6a9019 [calamares] Make module-tester configurable in slideshow mode
- Uses global storage to steer the jobs that are created, in case
  the slideshow needs to be tweaked by percentages or whatever.
- While here, add some code docs and apply coding style.
6 years ago
Adriaan de Groot d51a545fcf [calamares] onInitComplete() already activates first step
- In the test application, there is only one viewstep, so it is
  already activated; avoid double-activation.
6 years ago
Adriaan de Groot 39b5dd4e6e [libcalamaresui] Avoid deadlock
- When loading QML V2, both loadQmlV2Complete() and changeSlideShowState()
  lock the same mutex, introduced in e7f4479df1.
- Explicitly unlock when loading is done and we need to change the state
  immediately.
6 years ago
Adriaan de Groot 376cb3c042 [calamares] Give the fake ExecutionViewModule a name
- This is needed for addModule() so the module manager knows there
  is a module by the name x@x.
- Tell the ExecutionViewStep to run jobs from x@x.
6 years ago
Adriaan de Groot 28500de2f8 [calamares] Register modules in test-loader
- When a viewmodule is loaded, register it with the module manager
  (especially relevant for the slideshow module).
6 years ago
Adriaan de Groot c7d0df223a [libcalamaresui] Expose registering-a-single-module
- For testing purposes, it's useful to load a module externally
  and then register it to the ModuleManager (this hands off ownership).
- Refactor overall module loading to use the exposed single-module method.
6 years ago
Adriaan de Groot 1fec95ac48 [libcalamares] Move QML search-path initialization
- QML files need to be searched in specific places; this was initialized
  by Calamares, but not for the text application. Move initialization
  into the library.
6 years ago
Adriaan de Groot 6dffec2730 [libcalamaresui] Move QML-related directory functions to Qml.cpp 6 years ago
Adriaan de Groot 4491fb8c27 [libcalamaresui] Name QML-wrangling functions consistently
- Use "Qml" in camel-cased names
6 years ago
Gaël PORTAY 40dd34c7d0 [rawfs] Fix crash if bogus is unset
- fixes:
	12:44:25 [6]: Python Error:
	 <class 'TypeError'>
	 'builtin_function_or_method' object is not subscriptable
	 File "/usr/lib/calamares/modules/rawfs/main.py", line 188, in run
	    item.copy(filesystems.index(item), len(filesystems))

	  File "/usr/lib/calamares/modules/rawfs/main.py", line 99, in copy
	    if libcalamares.job.configuration["bogus"]:
6 years ago
Adriaan de Groot 0947da3d41 [libcalamaresui] Report on QML errors
- If the slideshow fails to load entirely, say so
6 years ago
Adriaan de Groot ae861f7ec0 [calamares] Give slideshow-test some jobs to run 6 years ago
Adriaan de Groot bd73981c5f [calamares] Add -s option to module-tester
- The -s will run the slideshow with a bogus job-queue, allowing easier
  testing of the slideshow. This is more convenient than having a Calamares
  with an empty show and a bogus exec section.
- The -s option for running the slideshow / execution phase of
  Calamares needs to create a bogus Module for the ExecutionViewStep.
6 years ago
Adriaan de Groot ec2fc5a763 [libcalamaresui] Better default font size
- Previously, unless setDefaultFontSize() was called explicitly,
  the default size would be 0, leading to unexpected and weird
  displays (and a warning on stderr).
- If setDefaultFontSize() is not called, get a sensible size instead
  (like defaultFontHeight() was already trying to do).
6 years ago
Adriaan de Groot 8db8752a41 [libcalamaresui] Remove spurious Q_FUNC_INFO 6 years ago
Adriaan de Groot 3e51fe4651 [partition] Remove spurious Q_FUNC_INFO from logging
- The Q_FUNC_INFO was integrated into regular logging with commit
  5248a37eb3
6 years ago
Adriaan de Groot 8465dcbc19 [calamares] Don't crash in test-loader
- When loading *view* modules, we always need a QApplication for GUI
  bits, because the widget for a module is created is very early.
- If it's a view module, replace the application object with one
  that supports GUIs; without the --ui flag, though, it will just
  run the jobs.
6 years ago
Adriaan de Groot a7c4e2d203 [tracking] Remove widget-setting stuff not needed with Config 6 years ago
Adriaan de Groot dfd6bb6a8b [tracking] Massage the displayed explanation 6 years ago
Adriaan de Groot 49e66b11a2 [tracking] Refactor creation of jobs
- Let the jobs handle their own styling and handling, simplify
  the ViewStep code.
6 years ago
Adriaan de Groot 309b2f872d [tracking] Drop configuration fields from ViewStep
- All the configuration lives in the Config object (or the
  tracking objects that it exposes).
- Get data from the config object for the jobs; TODO: give the
  jobs a less-clunky interface.

The UI isn't hooked up to the Config object yet, though.
6 years ago
Adriaan de Groot 5763799ba9 [tracking] Load all the tracking bits into the configuration 6 years ago
Adriaan de Groot 528b98c1c4 [tracking] Configurations for machine and user tracking 6 years ago
Adriaan de Groot f97a0756a9 [tracking] Introduce configuration for install-tracking
- subclass of TrackingStyleConfig holds the URL that is pinged with
  information when the installation is done.
6 years ago
Adriaan de Groot d9fb9c19a8 [tracking] Refactor the information for one tracking type
- a single tracking type can be enabled for configuration in the
  config file; each must have a policy URL. Class TrackingStyleConfig
  is a base class for that kind of configuration.
6 years ago
Adriaan de Groot 68bb066755 [partition] Consolidate SwapChoice handling
- pickOne() may be useful, given a set of swap choices; expose it
- move type definitions to PartitionActions, where some of them
  come from.
6 years ago
Adriaan de Groot 4ae398c18d [partition] Move swap choices into config 6 years ago
Adriaan de Groot a381d6794f [partition] Migrate required-storage setting to Config object
- Create and use the config object in the view step
- Add setConfigurationMap() to Config
6 years ago
Adriaan de Groot c7857b7749 [partition] Coding style on tests 6 years ago
Adriaan de Groot b33e54abb9 [partition] Stub of a Config object
- Even though this isn't a QML'able module, work towards
  a decoupled Config object anyway
- Not actually used yet.
6 years ago
Adriaan de Groot ca59c8419c [partition] Goal of this branch: configurable default action 6 years ago
Adriaan de Groot 6d07527123 [partition] Comment-out unsupported swap options
- I notice they get copied into distro configurations a lot,
   leading to warnings in the logs
6 years ago
Adriaan de Groot 72857b75d0 [partition] Chase moving PrettyRadioButton to libcalamaresui
- Update includes
- Use exposed API instead of accessing internals of the button
6 years ago
Adriaan de Groot 17231ae41f [libcalamaresui] Sanitize API of PrettyRadioButton
- Don't expose internals
- Drop unnecessary virtual
- Offer new API to do the things, for which internals were exposed
6 years ago
Adriaan de Groot 3b7c3c4f5d [libcalamaresui] Coding style
- Apply coding style
- Place the widget classes in namespace Calamares
- Export symbols for widgets
6 years ago
Adriaan de Groot c4951d5090 [libcalamaresui] Move PrettyRadioButton from partition 6 years ago
Adriaan de Groot 8d4c7767d4 [libcalamaresui] Document ClickableLabel 6 years ago
Adriaan de Groot 4c0a212b68 [partition] Warnings-- (Qt 5.14)
QVariant::fromValue doesn't have *since* documentation, so I expect it to be 5.6-and-later.
6 years ago
Adriaan de Groot 27d4fa675b [locale] remove unneeded this-> 6 years ago
demmm e2c99eeb5e [welcomeq] adjust spacing
make sure the listviews fit in the default window size without overlapping
the language bar
6 years ago
Gaël PORTAY 3d2b9053b0 [partition] Add the GPT label and UUID to global storage 6 years ago
Gaël PORTAY da6f728cd4 [partition] Add support for partition uuid 6 years ago
Gaël PORTAY 33f6bd5699 [bootloader] Remove unused variable root_mount_point
- root_mount_point was used initially for logging c1a139995 (adding new
  bootloader job options are to use grub for BIOS, gummiboot for efi set
  extra mountpoint when efi is found)
- the trace was removed since 533031b3c ([bootloader] print() does not
  log)
6 years ago
Adriaan de Groot c3d8112187 CMake: allow fine-tuning tests
- The Python configuration tests sometimes need extra setup, so
  do that through a CMakeTests.txt file in the test directory.
- Patch up existing tests:
  - grubcfg needs /tmp/calamares/etc/default to exist
  - rawfs won't work on FreeBSD because of differences in /proc
6 years ago
Adriaan de Groot fe069bdb23 [fstab] Add some discussion about *discard* option
- drop the *discard* from filesystems-on-SSD in the standard example
  configuration.
- keep the table **with** *discard* around for referece and explanation.

Remember that the example configurations are intended as **examples**,
to document available settings, and do not reflect a sensible
production configuration.

FIXES #1395
6 years ago
demmm 153d605bb6 [welcomeq] use negatedText for better text on missing 6 years ago
demmm a85ff30ad4 [welcomeq] smaller font size
correct color order Requirements.qml
6 years ago
demmm fed89badd4 [welcomeq] connected to RequirementsModel
clean up obsolete lines in welcomeq.qml
add requirement section from welcome.conf to welcomeq.conf
data shows correctly in Recommended.qml, fails to show any in Requirements.qml if run without admin rights
6 years ago
Adriaan de Groot 022045ae05 [libcalamaresui] Refactor loading slideshow
- split into a separate method
- when QML is disabled, warn about QML settings
6 years ago
Adriaan de Groot c83e5c57a4 [libcalamaresui] When QML is off, there is no Qml panel flavor 6 years ago
Adriaan de Groot 736f99768a [libcalamaresui] Don't build QML bits if they're not wanted
When WITH_QML is off (by explicit choice)

- don't build the QmlViewStep
- don't build the QML slideshow
6 years ago
Adriaan de Groot 47979555fe CMake: optionally disable QML
This makes it possible to remove QML from Calamares, possibly yielding
a smaller, lighter installer; it takes with it the nice slideshow,
modern configurable navigation and the QML UIs built for various modules.

By default, WITH_QML is on and the "normal" feature set is retained.

- look for Qml modules only when WITH_QML is on (the default)
- look for Network, since that's pulled in only implicitly
- disable the QML Calamares models (modules/*q) if no QML is
  enabled; longer-term plan is to merge the **pages** back to
  the "upstream" modules, and have things be run-time switchable,
  but that's not here yet. Also disable the notesqml module when
  QML is off.
6 years ago
Adriaan de Groot 0235245631 [libcalamares] #include-styling 6 years ago
Adriaan de Groot 2b0b873159 [welcome] Remove spurious logging 6 years ago
Adriaan de Groot cdb99ad887 CMake: shuffle WITH_* settings for calamares executable
- reminder to make all the ABI-relevant WITH_* settings available as #defines
- move the compilation of KDSAG to the calamares executable, not the library
- when DBus activation is on, drop all of kdsingleapplicationguard
6 years ago
Adriaan de Groot 13ded5f005 [libcalamares] #include-styling 6 years ago
Adriaan de Groot c90ebb5d82 [libcalamares] Apply Qt defines consistently
- Move some definitions that influence Qt compilation
  up to the top-level.
6 years ago
Adriaan de Groot c3c4b79147 Merge branch 'fix-slideshow' 6 years ago
Adriaan de Groot 6248c6d032 [branding] Document slideshow options 6 years ago
Adriaan de Groot 20c1ae246d [libcalamaresui] Center slideshow pictures 6 years ago
Adriaan de Groot 5aafa0f4c4 [libcalamaresui] Expose slideshow image names for API -1
- Branding shows the slide pathnames or the slide QML, depending
  on selected API (which depends on the config-file).
- Use one slideshow or the other.
6 years ago
Adriaan de Groot df74604755 [libcalamaresui] Implement non-QML Slideshow 6 years ago
Adriaan de Groot e7f4479df1 [libcalamaresui] Move all the slideshow code out of ExecutionViewStep
- The SlideshowQML now handles all the bits that were in
  the viewstep.
- The viewstep uses the abstract Slideshow API.
6 years ago
Adriaan de Groot 3f9878afc1 [welcomeq] Use the model properties to show recommendations and requirements 6 years ago
Adriaan de Groot 1a1fde1885 [welcome] [welcomeq] Chase API change for requirements progress 6 years ago
Adriaan de Groot 5c8a99c77b [libcalamares] After running the checker, re-compute satisfaction
- If nothing is added to the model (e.g. it is empty) then the satisfaction
  still needs to be re-calculated (to true).
6 years ago
Adriaan de Groot f856c07b04 [libcalamares] Move progress signal to RequirementsModel
- It is the requirements model (checking) that reports progress, and now
  the model is accessible (ask for it with requirementsModel(), make the
  messages come from there.
6 years ago
Adriaan de Groot 90f8e748ef [welcome] Improve debugging of general requirements
- distinguish 'this has not been checked' from 'checked and failed'
6 years ago
Adriaan de Groot 9e0aa76375 [welcome] Order member pointers
- Create config before the page
- .. and in doing so, create the page in the initializer list instead
6 years ago
Adriaan de Groot e930c74e85 [welcomeq] Coding style
- Apply coding style tool
- Remove commented-out cruft
- Drop TODO's that don't apply anymore
6 years ago
Adriaan de Groot ed71b2fbf5 [tracking] Only accept valid policy URLs 6 years ago
Adriaan de Groot 044f5ce2b5 [tracking] Use the config object
- right now only holds the global policy URL (as a string)
6 years ago
Adriaan de Groot a69d47c115 [tracking] Add a Config object 6 years ago
Adriaan de Groot 8ed8b5dfa3 [tracking] Reduce compiler warnings
- Newly added enum value NoTracking needs explicit handling
  in some switch()es, although it will never be passed in.
6 years ago
Adriaan de Groot fd2853b2cf [tracking] Switch setTrackingLevel() to use enum 6 years ago
Adriaan de Groot 6d744374db [tracking] Use enum-conveniences 6 years ago
Adriaan de Groot c0fa212fa9 [welcome] Be slightly more verbose in reporting missed req's 6 years ago
Adriaan de Groot 09b73dce06 [libcalamares] Implement the HasDetails role 6 years ago
Adriaan de Groot 7d00f7e0dc [welcome] Explain in the debug log what failed 6 years ago
Adriaan de Groot fabe5ec439 [welcome] Config should not have its own RequirementsModel
- Use the one from ModuleManager
6 years ago
Adriaan de Groot 153757933a [libcalamares] Stop emitting signals with RequirementsList
- The architecture of letting someone build up a list of requirements
  from data emitted by the ModuleManager is broken: if it gets loaded
  later, it will miss data; passing around complicated objects is
  no fun anyway. Get rid of it, on the way to "ModuleManager has
  its own model of requirements".
6 years ago
Adriaan de Groot 9b0ea3f63d [libcalamares] Remove runaround through free function
- Call into a method directly to do the work of adding
  results from a single module.
6 years ago
Adriaan de Groot b7c60cec66 [libcalamares] Re-vamp RequirementsChecker
- Give the ModuleManager a RequirementsModel -- that is the source
  of truth about the module-requirements of the modules managed
  by that particular ModuleManager.
- Let the RequirementsChecker operate on a given RequirementsModel.
6 years ago
Adriaan de Groot 039065ee4a [libcalamares] Minor debugging support in RequirementsModel 6 years ago
Adriaan de Groot 8306de731a [welcome] Setting requirements from own reqs is totally wrong
- The requirements are collected by ModuleManager, checked
  by an internal RequirementsChecker and changes to the
  requirements state are all signalled from ModuleManager.

By connecting the requirements in the welcome modules' Config
only to their own configs -- and immediately checking them,
which is bad on its own -- we end up with a disconnect between
what the ModuleManager says about requirements, and what
the welcome modules report on.
6 years ago
Adriaan de Groot d87d714b8d [libcalamares] Make the requirements model more adaptable
- Either replace the list of results, or add to them
- Lock model while adding rows
6 years ago
Adriaan de Groot 0f5db0ba5e [libcalamares] Remove direct access to model internals
- This was just for the ResultsListWidget, which can also use
  normal role-based model access.
6 years ago
Adriaan de Groot 616fbb08f3 [libcalamares] Improve docs of RequirementsModel 6 years ago
demmm 32ae0a7bf6 set a bogus username in Map.qml 6 years ago
Adriaan de Groot df1f9f1b56 [libcalamaresui] Prep-work for image-slideshow
Doesn't compile (but I need to get it off this machine)

- Prepare to implement a picture-based slideshow alongside QML
- Split QML loading into the slideshow component

This might be good prep-work for moving QML loading out of the QMLViewStep as well.
6 years ago
demmm 34e7b06cc9 [localeq] move to QtLocation map based module
fully implemented:
* loading of a live map, ESRI based, zooming & dragging possible
* IP address is translated to map coordinates
* loading of the map centers to the obtained coordinates, with a marker set
* coordinates are translated to a timezone, label visible at bottom of the map
* mouse movement will show changing coordinates
* clicking on new location will center map there, marker moved too, timezone label adjusted
* hasInternet switch set to either load Map.qml or Offline.qml

not done:
* get hasInternet status
* fill the fine-tune 181n.qml with proper locale & language data
* connect the obtained timezone to globalstorage

comments are left in the various files for what needs attention/changes
6 years ago
Adriaan de Groot 36a1d60c0e Merge branch 'rawfs-compat'
Improve testing framework while adding tests to rawfs to double-
check that the conversion (for Python 3.3 compatibility) of
capture_output is correct.
6 years ago
Adriaan de Groot 1ae38c8ebc CMake: add tests when there are test-configs
- If a module has tests/#.global or tests/#.job, these are used
  as arguments to a test-run of loadmodule (which reads them
  and runs the module with that configuration).
- This makes the old python-loading test and test-runner entirely
  obsolete, so remove them too.
6 years ago
Adriaan de Groot 91f88cebf0 [calamares] Move testing application out of intermediate dir
- src/modules doesn't seem like a really good place for stray sources
  for a testing application. Move it.
6 years ago
Adriaan de Groot 74fb88f9ac [rawfs] Minor testing support
- set *bogus* to do no harm
- add some test configurations
6 years ago
Adriaan de Groot dc87c11ac4 [rawfs] Slightly more debugging 6 years ago
Adriaan de Groot 7ff97bbb94
Merge pull request #1398 from demmm/master
start of adding requirements to welcomeq
6 years ago
Adriaan de Groot 55fb7565d4
Merge pull request #1396 from FLVAL/master
Add files via upload
6 years ago
Adriaan de Groot 175082e3ad [rawfs] Make compatible with Python 3.3 6 years ago
Adriaan de Groot 4e3f9fb6b3 Merge branch 'simplify-unique'
- Use DBus service / activation to ensure uniqueness of Calamares
  instances, and **don't** require debug-instances to be unique.
6 years ago
Adriaan de Groot b7214b8ede [calamares] Switch over to DBus unique activation
- By default, try to use DBus service to keep Calamares unique
- The older implementation via KDSingleApplicationGuard is still
  available, just not used by default.
6 years ago
Adriaan de Groot 5af2a87709 [calamares] Remove redundant KF5/ in includes
- We link to these frameworks, which gives us a KF5 include path already
6 years ago
Adriaan de Groot 15cbdf2a18 [calamares] Allow multiple instances if -d is given
- Calamares doesn't like to run multiple instances, since they would
  interfere with each other (stealing disks from each other, for instance).
  The single-application code tries to prevent that.
- For -d runs, for developers where presumably they know what they are
  doing, the single-application restriction is annoying: especially if
  you need two instances at once for some kind of visual comparison.

Drop the single-app requirement if -d is given.
6 years ago
demmm 1ece171597 start of adding requirements to welcomeq
just QML, no real connections yet
hardcoded to not visible
not clear if requirementsModel is available to welcomeq
6 years ago