5586 Commits (560095d6f42474de851a0b2b9e2d73ac469bf197)

Author SHA1 Message Date
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.
5 years ago
Adriaan de Groot 38b4f45b92 [locale] Repair timezone graphics -- west-Africa and Pacific 5 years ago
Adriaan de Groot d511cc2f7a [locale] Norfolk Island gave up +11.5 in 2015 5 years ago
demmm a617dba85e [welcomeq]re-add the donate button example to welcomeq.conf 5 years ago
Adriaan de Groot 8c4b6e4804 Merge branch 'master' into issue-1287 5 years ago
Adriaan de Groot 35fb8dcc27 [mount] Warn if chcon is missing, rather than fail
FIXES #1429
5 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
5 years ago
Adriaan de Groot f68d0f0628 [welcome] Add a filtered model for unsatisfied requirements 5 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.
5 years ago
Adriaan de Groot 5b1e5a9e03 [welcome] Some API docs 5 years ago
Adriaan de Groot abe558f127 [libcalamares] Be more verbose when the requirements check is done 5 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
5 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*.
5 years ago
demmm 73eb718c08 adding needed geoip section to welcomeq.conf
see https://github.com/calamares/calamares/issues/1427#issuecomment-640531710
5 years ago
Adriaan de Groot 5e79176f47
Merge pull request #1422 from andy1247008998/patch-2
remove unnecessary period mark since it's a title
5 years ago
Adriaan de Groot 0e7c984854 [partition] Add missing includes for Qt 5.15 compatibility 5 years ago
Adriaan de Groot 1c598d769b [partition] Apply coding style (to just this one file) 5 years ago
Adriaan de Groot 25d36a8943 [netinstall] Improve documentation of translation framework
- Not country-code, but language-code

FIXES #1411
5 years ago
Adriaan de Groot 881187de8d
Merge pull request #1423 from Cal8031/t1
Update and add SPDX identifiers
5 years ago
Adriaan de Groot 67d7c700fd [locale] Update documentation to mention *fixed* style 5 years ago
Adriaan de Groot ac2a9c569e [libcalamares] Allow "fixed" as a GeoIP lookup type 5 years ago
Adriaan de Groot 672f506e72 [libcalamares] Add unittests for GeoIPFixed
- Ignores the data, just returns selector
5 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
5 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.
5 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
5 years ago
Adriaan de Groot 24653c1cc6 [locale] C&P code with repeated bugs from QML branches 5 years ago
Callum Farmer 210ce97bf6 [libcalamaresui] Update SPDX identifiers.
Update ImageRegistry.cpp
5 years ago
Callum Farmer 741b680513 [qml] Update SPDX identifiers.
Update Presentation.qml
5 years ago
Adriaan de Groot c6d147bde6 [keyboard] Give Canadian English the US keyboard layout, eh 5 years ago
AI Lion c6174b027c
remove unnecessary period mark since it's a title 5 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.
5 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
5 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.
5 years ago
Adriaan de Groot 1d143d95a0 [tracking] Setup UI in the .ui file 5 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.
5 years ago
Adriaan de Groot 689a65e107
Merge pull request #1414 from gportay/remove-unused-locals
[partition] Remove unused locals
5 years ago
Calamares CI bc9544bf14 i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Gaël PORTAY 629bb2e2f6 [partition] Remove unused locals
- Unused since commit 0d284759f5
5 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
5 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.
5 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.
5 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.
5 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.
5 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).
5 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.
5 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.
5 years ago
Adriaan de Groot 6dffec2730 [libcalamaresui] Move QML-related directory functions to Qml.cpp 5 years ago
Adriaan de Groot 4491fb8c27 [libcalamaresui] Name QML-wrangling functions consistently
- Use "Qml" in camel-cased names
5 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"]:
5 years ago
Adriaan de Groot 0947da3d41 [libcalamaresui] Report on QML errors
- If the slideshow fails to load entirely, say so
5 years ago
Adriaan de Groot ae861f7ec0 [calamares] Give slideshow-test some jobs to run 5 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.
5 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).
5 years ago
Adriaan de Groot 8db8752a41 [libcalamaresui] Remove spurious Q_FUNC_INFO 5 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
5 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.
5 years ago
Adriaan de Groot a7c4e2d203 [tracking] Remove widget-setting stuff not needed with Config 5 years ago
Adriaan de Groot dfd6bb6a8b [tracking] Massage the displayed explanation 5 years ago
Adriaan de Groot 49e66b11a2 [tracking] Refactor creation of jobs
- Let the jobs handle their own styling and handling, simplify
  the ViewStep code.
5 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.
5 years ago
Adriaan de Groot 5763799ba9 [tracking] Load all the tracking bits into the configuration 5 years ago
Adriaan de Groot 528b98c1c4 [tracking] Configurations for machine and user tracking 5 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.
5 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.
5 years ago
Adriaan de Groot 72857b75d0 [partition] Chase moving PrettyRadioButton to libcalamaresui
- Update includes
- Use exposed API instead of accessing internals of the button
5 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
5 years ago
Adriaan de Groot 3b7c3c4f5d [libcalamaresui] Coding style
- Apply coding style
- Place the widget classes in namespace Calamares
- Export symbols for widgets
5 years ago
Adriaan de Groot c4951d5090 [libcalamaresui] Move PrettyRadioButton from partition 5 years ago
Adriaan de Groot 8d4c7767d4 [libcalamaresui] Document ClickableLabel 5 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.
5 years ago
Adriaan de Groot 27d4fa675b [locale] remove unneeded this-> 5 years ago
demmm e2c99eeb5e [welcomeq] adjust spacing
make sure the listviews fit in the default window size without overlapping
the language bar
5 years ago
Gaël PORTAY 3d2b9053b0 [partition] Add the GPT label and UUID to global storage 5 years ago
Gaël PORTAY da6f728cd4 [partition] Add support for partition uuid 5 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)
5 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
5 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
5 years ago
demmm 153d605bb6 [welcomeq] use negatedText for better text on missing 5 years ago
demmm a85ff30ad4 [welcomeq] smaller font size
correct color order Requirements.qml
5 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
5 years ago
Adriaan de Groot 022045ae05 [libcalamaresui] Refactor loading slideshow
- split into a separate method
- when QML is disabled, warn about QML settings
5 years ago
Adriaan de Groot c83e5c57a4 [libcalamaresui] When QML is off, there is no Qml panel flavor 5 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
5 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.
5 years ago
Adriaan de Groot 0235245631 [libcalamares] #include-styling 5 years ago
Adriaan de Groot 2b0b873159 [welcome] Remove spurious logging 5 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
5 years ago
Adriaan de Groot 13ded5f005 [libcalamares] #include-styling 5 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