Adriaan de Groot
0bdc5b18f4
Merge branch 'no-config'
...
FIXES #1301
FIXES #1302
2020-01-24 23:19:24 +01:00
Adriaan de Groot
c555369766
Changes: document new *noconfig* behavior
2020-01-24 23:18:46 +01:00
Adriaan de Groot
cdd2b9cc79
Modules: set noconfig:true on Python modules
...
- hwclock, initramfs, localecfg and networkcfg don't have any
config file to work with, so set that explicitly in the module.desc
2020-01-24 23:10:41 +01:00
Adriaan de Groot
8d47751cb2
[libcalamares] Beautify debug output for InstanceKey
2020-01-24 22:53:14 +01:00
Adriaan de Groot
83ffbd5126
[libcalamaresui] Only load config file if there is one
...
- finally, no more warnings for modules that are NO_CONFIG
(or noconfig: true) and don't have a config file.
2020-01-24 21:47:54 +01:00
Adriaan de Groot
f366e3840f
[libcalamaresui] Chase stronger typing of ModuleDescriptor
2020-01-24 21:46:18 +01:00
Adriaan de Groot
5ad73681c2
CMake: actually write the NO_CONFIG setting
2020-01-24 20:58:23 +01:00
Adriaan de Groot
00deeec8c8
[libcalamaresui] Use InstanceKey instead of strings
...
- Replace return type of Module::instanceKey() by the structured
ModuleSystem::InstanceKey type
- Chase API breakage
2020-01-24 17:47:06 +01:00
Adriaan de Groot
b5d0acdf81
[luksbootkeyfile] Set NO_CONFIG
2020-01-24 13:13:50 +01:00
Adriaan de Groot
40f64f0c11
[hostinfo] Set NO_CONFIG and remove unused configuration methods
2020-01-24 13:12:25 +01:00
Adriaan de Groot
fd058302b8
[dracutlukscfg] set NO_CONFIG and coding style
2020-01-24 13:08:25 +01:00
Adriaan de Groot
6530c889f0
Merge remote-tracking branch 'origin/use-idkey' into no-config
...
- Join to a single branch that does a bunch of tidying
in the type-strictness of module interfaces.
2020-01-24 13:05:22 +01:00
Adriaan de Groot
155db29ccf
[libcalamares] Add a ModuleSystem::Descriptor
...
- this is currently just an alias for QVariantMap, which is
the type already in use.
- future plan is to tighten this up and have an actual
Descriptor class that carries only the information
actually needed for the module descriptor.
2020-01-24 12:59:35 +01:00
Adriaan de Groot
974d795390
[libcalamares] Shuffle module-loading logic
...
- group ifs by the state of thisModule
2020-01-21 19:57:16 +01:00
Adriaan de Groot
58931d99fa
[libcalamaresui] Support noconfig setting
...
- look up the descriptor and use its noconfig value
- return empty QString if noconfig is set; this does not
apply to custom instances
2020-01-21 19:57:16 +01:00
Adriaan de Groot
649eb94d24
[libcalamaresui] Type-alias for module descriptors
2020-01-21 19:29:47 +01:00
Adriaan de Groot
8fbe676280
[libcalamaresui] Refactor finding config file name
...
- check for broken custom instances earlier in the loop
- make free function for finding the config file name
2020-01-21 19:22:13 +01:00
Adriaan de Groot
a403f1e851
CI: allow plain clang-format (Tumbleweed)
2020-01-21 19:07:03 +01:00
Adriaan de Groot
d1f162f92a
Docs: describe *noconfig* module option
2020-01-21 18:31:13 +01:00
Adriaan de Groot
10d1c4cf5b
[unpackfs] Improve progress reporting
...
- don't rely on exactly 100 files being copied (thanks to Kevin Kofler)
2020-01-20 19:39:05 +01:00
Adriaan de Groot
fbb452f9bf
CMake: add support for NO_CONFIG
...
- A C++ module should set NO_CONFIG to flag that it doesn't have a
config file (this is an error if it secretly **does** have one)
2020-01-20 19:27:34 +01:00
Adriaan de Groot
fed0c46612
[libcalamaresui] Change return type of loadedInstanceKeys()
...
- Replace stringlist with a stronger-typed list of InstanceKey objects
- Move smashing-that-to-stringlist into consumers of the list
(just one, the debug window)
2020-01-19 18:07:27 +01:00
Adriaan de Groot
ed4127f661
[libcalamaresui] Shuffle the module interface
...
- introduce NamedEnum lookup tables for interface and type
- drop "final" and "virtual" from methods that don't make
sense as virtual
- shuffle declaration order so the virtual API for modules
sits together
2020-01-12 12:18:13 +01:00
Adriaan de Groot
f89c137c90
[libcalamaresui] Migrate module to using InstanceKey
...
- Trying to get away from untyped strings with special meaning.
- The "split identifier" branch tried the same thing, but
was duplicating the existing InstanceKey.h work.
2020-01-12 11:49:10 +01:00
Adriaan de Groot
a7e1a1f9fc
[libcalamaresui] Refactor Module::initFrom()
...
- generic initFrom() also sets the instance id
- subclass-specific initFrom() now pure virtual in base
- chase changes in subclasses
2020-01-12 11:37:22 +01:00
Adriaan de Groot
c482990bc5
CMake: fix find-boost
2020-01-07 11:38:18 +01:00
Adriaan de Groot
1bc8a28eac
CMake: Calamares doesn't want -p in automoc
...
FIXES #1286
2020-01-07 11:20:45 +01:00
Adriaan de Groot
1a8926181e
[locale] Warnings-- (initialization-order)
2020-01-07 10:46:26 +01:00
Adriaan de Groot
2dff2d9d70
[libcalamares] TZRegion is hard to copy
...
- delete the copy and move constructors
- adjust tests (which were just interested in simple tr() behavior) to use TZZone instead
2020-01-07 10:41:14 +01:00
Adriaan de Groot
5fbd0169ca
[libcalamares] Reduce clang warnings (only-inline-virtual, unused parameters)
2020-01-07 10:33:21 +01:00
Adriaan de Groot
1b62b2f66c
[libcalamares] Reduce warnings (extra ;, empty statement ..)
2020-01-07 10:19:22 +01:00
Adriaan de Groot
b4c0ebe8ab
[calamares] Use screen and window sizes, not position
2020-01-07 10:04:10 +01:00
Adriaan de Groot
fcb0109b7b
[calamares] Refactor center-placement
...
- Just move it to its own function where it can have more documentation
- Tested on multi-screen setups
SEE #1293
2020-01-07 09:56:13 +01:00
Adriaan de Groot
61b6d058d7
Changes: credits for packagechooser bits
2020-01-07 01:16:36 +01:00
Adriaan de Groot
3877151bd8
Merge branch 'issue-1293'
...
FIXES #1293
2020-01-07 01:14:28 +01:00
Adriaan de Groot
121013fd96
[calamares] Avoid deprecated desktop()
...
- Put Calamares on the first screen where it fits
- This is wordy and weird
2020-01-07 01:06:26 +01:00
Adriaan de Groot
43caf7b46a
[calamares] Restore functionality for 'center window'
2020-01-07 00:34:15 +01:00
Adriaan de Groot
60c659c82b
Changes: document new branding element
2020-01-07 00:28:52 +01:00
Adriaan de Groot
17d09342e9
[libcalamaresui] Add a setting for window placement
2020-01-07 00:27:11 +01:00
Adriaan de Groot
1625bb1dae
[locale] Support Qt 5.9
...
FIXES #1296
2020-01-07 00:09:04 +01:00
Adriaan de Groot
d21ed0cc7f
[packagechooser] Coding style
2020-01-06 17:55:13 +01:00
Adriaan de Groot
cefb66ab5b
Merge pull request #1276 from bill-auger/patch-packagechooser-default-selection
...
[packagechooser] pre-select default item in packagechooser
2020-01-06 17:49:10 +01:00
Adriaan de Groot
bb4771a12a
Changes: it's the locale module with translated zone names
2020-01-06 17:41:32 +01:00
Adriaan de Groot
25f0ba672c
i18n: fix spelling of Kyiv
...
- Add Ukranian translations of zone names. Since I don't write
Ukranian, add only a translation (er .. in this case, the
proper original spelling) of Kyiv.
- Fix spelling in English following UN resolution.
- Dutch remains unchanged, since as far as I can tell the Dutch
Government still sticks to the Soviet-era spelling.
FIXES #1298
2020-01-06 17:22:12 +01:00
Adriaan de Groot
dd5adc153f
Merge pull request #1291 from calamares/initcpiocfg-usr
...
[initcpiocfg] add usr hook if partition is separate
2020-01-06 14:41:24 +01:00
Adriaan de Groot
d12390bb62
Merge branch 'initcpio-plymouth'
...
FIXES #1290
2020-01-06 14:39:06 +01:00
Adriaan de Groot
fe64903d2f
[initcpiocfg] Polish PR #1290
...
- List discrete years in copyright
- Add docstrings
- Massage detect_plymouth() to return bool (easier in if() context)
2020-01-06 14:34:47 +01:00
Philip Müller
85d3f9e9b9
[initcpiocfg] add usr hook if partition is separate
2019-12-16 09:40:54 +01:00
Philip Müller
a3da47cd9c
[initcpiocfg] update plymouth check
2019-12-16 09:34:21 +01:00
Adriaan de Groot
0e7982ec37
[libcalamares] Don't force Hindi on India.
...
FIXES #1284
2019-12-11 18:33:24 +01:00