Adriaan de Groot
1a097f8c49
Style: run modulesystem through the style guide
2018-06-18 10:56:10 -04:00
Adriaan de Groot
58121abf06
[libcalamaresui] Wasted spaces
2018-06-18 10:44:28 -04:00
Adriaan de Groot
a64de3dbfe
[libcalamaresui] Assign the index to found
...
- Previous code assigns the result of the comparison to found,
instead of the index, resulting in the wrong configuration
map sent to each module.
2018-06-18 10:29:30 -04:00
Adriaan de Groot
dd8e53dc22
Copyright: update copyright lines on files touched in 2018
...
Contributions from:
Adriaan de Groot <groot@kde.org>
Gabriel Craciunescu <crazy@frugalware.org>
AlmAck <gluca86@gmail.com>
Andrius Štikonas <andrius@stikonas.eu>
Caio Carvalho <caiojcarvalho@gmail.com>
Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
9918dfb95f
[libcalamaresui] Reporting on failures
...
- Provide information on failed modules
- Disallow further progress when configuration is borked
2018-06-13 13:41:38 -04:00
Adriaan de Groot
35124c149e
[libcalamaresui] Drop the 'goodbye' message
2018-06-11 13:35:12 -04:00
Adriaan de Groot
a40c36ef49
[libcalamaresui] Report on failed module loading
...
- Collect the failed modules, instead of bailing out on the first one
(this also prevents crashes caused by quit() called from a timer).
- Introduce a slot to report on failed module loading (no UI yet).
2018-06-11 05:59:56 -04:00
Adriaan de Groot
1999e4e5c2
[libcalamaresui] Error out consistently when module loading fails
...
- Some module-loading failures were ignored and produce only a
warning, instead of erroring out.
2018-06-08 18:14:51 -04:00
Adriaan de Groot
dccf6f16f5
[libcalamaresui] Lambdas are fun, but not always the solution
2018-06-08 17:56:23 -04:00
Adriaan de Groot
a626e52bf3
[libcalamares] Introduce more descriptive type name
2018-06-08 17:36:29 -04:00
Adriaan de Groot
e5ca8e091f
[libcalamaresui] Use refactored loadYaml
2018-05-24 06:46:11 -04:00
bill auger
b6673f6324
move thisModule->isLoaded assert to after it's warning message
2018-05-22 03:39:16 -04:00
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).
2018-04-04 11:25:28 -04:00
Adriaan de Groot
60f440f72b
[libcalamaresui] Use new convenience logging methods
...
- Remove a few confusing Q_FUNCINFO
2018-02-12 11:58:34 -05:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
463615a1c0
Clang: don't shadow local variable names
2017-09-10 13:22:54 -04:00
Adriaan de Groot
e26d5ab206
Don't leak memory for allocated modules
2017-08-31 04:13:52 -04:00
Teo Mrnjavac
de3c94fc97
Useless debug is useless.
2017-02-28 18:08:20 +01:00
Andrius Štikonas
9f0ca042fe
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
...
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
2016-09-01 16:46:14 +01:00
Teo Mrnjavac
fb44fb97b6
Massive refactor of module loading, configuration, startup, management.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
3b56c5c9e8
Use safe QTimer::singleShot connection.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
506e51598d
Do not dereference a nullptr.
2015-06-21 01:39:28 +02:00
Teo Mrnjavac
11f5b729a8
Avoid dereferencing nullptr.
2015-06-14 01:10:50 +02:00
Teo Mrnjavac
df9daf8fec
Avoid accessing nullptr.
2015-06-14 01:02:50 +02:00
Teo Mrnjavac
dda7ea211d
Make ModuleManager accessible from outside CalamaresApplication.
2015-03-10 19:51:08 +01:00
Teo Mrnjavac
20bc34029d
Copyright.
2015-01-29 22:46:07 +01:00
Teo Mrnjavac
a670de3035
Add currentPhase to ModuleManager.
2015-01-29 22:46:07 +01:00
Teo Mrnjavac
fef448833e
And some more debug output readability improvements.
2014-10-30 17:36:56 +01:00
Teo Mrnjavac
f2f73b2e87
More meaningful debug output.
2014-10-30 17:30:13 +01:00
Teo Mrnjavac
9ebc881223
Prevent segfault on exit when module not found.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
8f10c21e5b
Big configuration overhaul.
...
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
2014-08-06 11:54:45 +02:00
Aurélien Gâteau
551a6ff9ba
Fix potential memleak
2014-07-30 22:37:05 +02:00
Teo Mrnjavac
8d28a2ea5d
Generalized code path for Phase switching. Also load install modules.
2014-07-12 14:38:33 +02:00
Teo Mrnjavac
84bfb2aa95
Fixes for loading modules by phase.
2014-07-12 13:13:15 +02:00
Teo Mrnjavac
2e47c248ac
Load modules by phase, in preparation for actually using new settings.
2014-07-11 14:40:15 +02:00
Teo Mrnjavac
a09ab36386
Better settings format, rename a bit of stuff in module loading.
2014-07-11 14:21:50 +02:00
Teo Mrnjavac
4ec72f4afb
Refactored calamares_bin into calamares_bin and libcalamaresui.
...
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00