491 Commits (d592a5bb947ee50b74a39c2d9d979c9653d2d1c8)

Author SHA1 Message Date
Adriaan de Groot 40a7082bfc [libcalamaresui] Handle no-requirements-to-check case
- If there's no requirements at all, none of the watchers
   will call finished(), so do it once extra.
6 years ago
Adriaan de Groot 0ad115732e [libcalamaresui] Report elapsed time as well.
- While waiting on modules, report the elapsed time in seconds
   based on the number of progress-ticks that have passed.
6 years ago
Adriaan de Groot 5ddf7b980b [libcalamaresui] Report progress also while waiting
- Ping the progress every 1.2 seconds, so the user sees more than
   just the throbber.
6 years ago
Adriaan de Groot ac652a2bc1 [libcalamaresui] Report module-name in italics 6 years ago
Adriaan de Groot 41fecf341b [libcalamaresui] Avoid metatype warnings at runtime
- Register the types with the Qt type system. This is needed
   because we're passing them as signal and slot parameters
   across threads.
6 years ago
Adriaan de Groot f1aa22d9e8 [libcalamaresui] Sort signals chronologically 6 years ago
Adriaan de Groot b169281b69 [libcalamaresui] Use convenience type 6 years ago
Adriaan de Groot 6090a464f8 [libcalamaresui] Switch requirementschecking to threaded mode
- Use QFuture and QFutureWatcher to spawn threads that do the actual
   checking of the requirements; collect results and report on
   them as they come in.
6 years ago
Adriaan de Groot c678cd80b4 [libcalamaresui] Refactor Requirements-Checking
- Move the actual checking into a separate object with some lifecycle-
   management signals.
 - Right now this is still single-threaded and blocking, so no net gain.
6 years ago
Adriaan de Groot bbb9ff0cbf [libcalamaresui] Remove useless #define 6 years ago
Adriaan de Groot ff10e1301d [libcalamaresui] Fix struct/class mismatch 6 years ago
Adriaan de Groot 5aa4e52452 [libcalamaresui] Improve debug-logging 6 years ago
Adriaan de Groot d33752c66c [libcalamaresui] Refactor Requirements classes
- improve naming of member variables
 - expand documentation
6 years ago
Adriaan de Groot 43eae0bc47 Merge branch 'master' into requirements-checking 6 years ago
Adriaan de Groot 667c0594a4
Merge pull request #1074 from a-wai/disable-cancel-button
Add a settings.conf option to disable "Cancel" button
6 years ago
Arnaud Ferraris db3d3a7d03 Add a settings.conf option to disable "Cancel" button
In some cases, e.g. when calamares is used as an "initial setup" tool,
we may want to user to go through all the configuration steps in order
to end up with a usable system.
Therefore, disabling the "Cancel" button can be useful in this case.

This commit adds an option to settings.conf which disables this button
when set to "true". If the option is not present in the settings file,
the default behavior ("Cancel" button enabled & visible) is enforced.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Adriaan de Groot 12665192ae [libcalamaresui] Defend against missing config settings 6 years ago
Adriaan de Groot ef94b1f689 [calamares] Support noexpand
- When in noexpand mode, just don't grow the window, and assume
   widgets elsewhere will get scrollbars automatically.
6 years ago
Adriaan de Groot 866797a6c9 [calamares] Support starting fullscreen 6 years ago
Adriaan de Groot 80569a746f [libcalamaresui] Relax validity check in branding
- A size of 64em has a value less than 1024, which is the minimum
   size **in pixels**. The check doesn't make sense as-is and would
   have to take the unit into account. Leave that to clients of
   branding (e.g. CalamaresWindow, which already does this).
6 years ago
Adriaan de Groot 32ab377e43 [libcalamaresui] Record branding window-size 6 years ago
Adriaan de Groot 819a57e458 [libcalamaresui] Store resize configuration
- Use the named enums code for simplicity.
6 years ago
Adriaan de Groot 210965aca4 [libcalamaresui] Allow always-show-country setting in locale label 6 years ago
Adriaan de Groot 8790985fca [libcalamaresui] Code-formatting, remove dead code 6 years ago
Adriaan de Groot 3dda9ab860 [libcalamaresui] LocaleLabel doesn't need to inherit QObject
- Use static QObject::tr instead.
6 years ago
Adriaan de Groot 1f4ac45bb5 [libcalamaresui] Cleanup locale-labeling code
- Support translations of the "language (country)" format instead
   of forcing English parenthesis.
6 years ago
Adriaan de Groot 084f4d2445 [libcalamaresui] Refactor: move LocaleLabel to UI library
- This is prep-work for making locale labels consistent everywhere.
 - While here, improve code documentation.
6 years ago
Adriaan de Groot 3b8d2835e0 [calamares] Use XDG_{DATA,CONFIG}_DIRS as appropriate
- Use DATA for the qml and branding directories (looks for qml/
   and branding/<name>/ in those directories).
 - Use CONFIG for the global settings and module settings (looks
   for settings.conf and module/<name>/ in those directories).

FIXES #941
7 years ago
Adriaan de Groot 869357a89c Merge branch 'master' into oem-resizer 7 years ago
Adriaan de Groot d752223d0b [libcalamaresui] When reporting failure, use full product name. 7 years ago
Adriaan de Groot 39a0d2315b [calamares] Better config-loading diagnostics
- Be more verbose when things go wrong while loading module-
   configuration files.
 - Allow more forms of paths to be specified. In debug mode, this
   is mostyle helpful for the module test-loader.
7 years ago
Adriaan de Groot 4602b30264 [libcalamaresui] Use PYTHONQT_INCLUDE_DIRS
- document new variable from the CMake module
 - use it in libcalamaresui to simplify #include'ing the
   header for the "all" extension.

Suggested by Denis Proskurin.
7 years ago
Adriaan de Groot bf40f3bd23 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot ae7700f2d7 [libcalamares] Refactor searching for module configurations
- Similar to the refactorings in Calamares proper, just split out
   collecting the search paths into a static function. This makes
   it a little easier to find places that will need expansion for
   more-than-one-config-directory.
7 years ago
Adriaan de Groot d66393f1ae [libcalamares] Fix early failure mode
- There is more to failing out of loadModules() than just
   emitting modulesFailed, so instead share the failure
   code with the code after loading modules -- but don't load any.
7 years ago
Adriaan de Groot 08966ff933 [libcalamaresui] Check module dependencies
- Module dependency-checking is done in two phases:
   first, catch any unknown modules that are listed
   in *requiredModules* and bail out before loading
   anything. Second, check that the modules required
   by X occur before X in the sequence.
7 years ago
Adriaan de Groot 731594fb40 [libcalamaresui] Remove the requiredModules setting
- The value set in module.desc was never stored for use,
   but isn't an attribute of the instance, either. It belongs
   with the descriptor, in ModuleManager.
7 years ago
Raul Rodrigo Segura f25d6b278d add support onLeave and onActivate to pythonqt plugins 7 years ago
Adriaan de Groot 1a097f8c49 Style: run modulesystem through the style guide 7 years ago
Adriaan de Groot 58121abf06 [libcalamaresui] Wasted spaces 7 years ago
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.
7 years ago
Adriaan de Groot 374a9bdca6 Merge branch 'emergency-modules'
Introduce the notion of emergency modules and emergency jobs.
Initial use will probably center around the preservefiles module,
and possibly umount.

FIXES #928
7 years ago
Adriaan de Groot 8387d5d81f [libcalamares] Allow emergency jobs
Any job can be an emergency job; emergency modules spawn
emergency jobs (but conversely, a non-emergency module
can spawn an emergency job explicitly).
7 years ago
Adriaan de Groot 3ed6f13fa8 [libcalamaresui] Adjust the emergency-ness of modules
A potentially emergency module is one that has EMERGENCY
(in CMake) or emergency: true (in module.desc) set.
Any such module must also set emergency: true in the
configuration of the module. This is to allow for
instances of a module that **don't** run as emergency
modules, alongside actual emergency ones.
7 years ago
Adriaan de Groot def459a29d [libcalamaresui] Read emergency setting from module.desc
- Read setting from the module descriptor
 - Document optional settings
 - Add EMERGENCY keyword to the CMake helper functions
7 years ago
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>
7 years ago
Adriaan de Groot 2d7eea6d73 Merge branch 'master' into emergency-modules 7 years ago
Adriaan de Groot 290559f8c1
Merge pull request #986 from raurodse/configurationPythonQt
Add configuration values into pythonqt modules
7 years ago
Raul Rodrigo Segura 448c5eae16 style code 7 years ago
Adriaan de Groot a8426730ca [libcalamaresui] Improve wording of modules failure warning 7 years ago
Adriaan de Groot 97a45db4bf [libcalamaresui] Reset font height when changing size
- defaultFontHeight() caches the result; clear cache
   when changing the default size, even though this happens
   only once in the current codebase.
7 years ago
Adriaan de Groot bb5ac0326d [libcalamaresui] Improve layout of "blank" view step 7 years ago
Adriaan de Groot 9918dfb95f [libcalamaresui] Reporting on failures
- Provide information on failed modules
 - Disallow further progress when configuration is borked
7 years ago
Adriaan de Groot 3e24c3c58f [libcalamaresui] Provide standardised large font 7 years ago
Adriaan de Groot 8b406cac9b [libcalamaresui] Improve module loading
- Add a TODO for allowing modules to come from somewhere other
   than the module loader (this would allow "internal" modules
   that are always present)
 - Warnings are warnings
7 years ago
Raul Rodrigo Segura d61b32aba6 Add configuration values into pythonqt modules 7 years ago
Adriaan de Groot 35124c149e [libcalamaresui] Drop the 'goodbye' message 7 years ago
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).
7 years ago
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.
7 years ago
Adriaan de Groot dccf6f16f5 [libcalamaresui] Lambdas are fun, but not always the solution 7 years ago
Adriaan de Groot a626e52bf3 [libcalamares] Introduce more descriptive type name 7 years ago
Adriaan de Groot b66d4856e7 [libcalamaresui] Use modern C++ for (auto)deleting failed modules 7 years ago
Adriaan de Groot eddee7d76a [libcalamaresui] No point in isLoaded() being virtual. 7 years ago
Adriaan de Groot a04915e6fa [libcalamaresui] Add 'emergency' concept to modules. 7 years ago
Adriaan de Groot cdadc2f003 [libcalamares] Improve error logging during module loading 7 years ago
Adriaan de Groot fdda0e14aa [libcalamaresui] Improve explainYamlException
- overloads for common kinds of label
 - improve error reporting when reading settings and branding files
7 years ago
Adriaan de Groot e5ca8e091f [libcalamaresui] Use refactored loadYaml 7 years ago
Adriaan de Groot f26ac63c07 [libcalamaresui] Make Python code const
- This is always loaded into the Python context, so it may as well
   be done only once.
7 years ago
Adriaan de Groot 2413180c67 Branding: update copyright notices 7 years ago
Adriaan de Groot 5bcfb32cf5 Branding: move the branding stylesheet to the Branding class 7 years ago
Adriaan de Groot 975004fc63 [libcalamaresui] Document accessors in Branding
- document accessors
 - put all path and directory accessors together
 - make simple accessors inline
 - rename "pathprefix" to "directory" to be consistent with others
7 years ago
bill auger b6673f6324 move thisModule->isLoaded assert to after it's warning message 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
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 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 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 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 3e30bb682e [libcalamaresui] Use cError() for logging errors, not cLog() 7 years ago
Adriaan de Groot f8bc195fb4 [libcalamaresui] Improve warning when branding has no translation 7 years ago
Adriaan de Groot c7629182e4 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot a72bdfac52 Merge branch 'master' into requirements-checking 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 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 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 3ae126f589 [modules] Use cError() as well
- Switch KPMHelpers to using Calamares logging instead of qDebug()
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 9c9486bb78 [libcalamares] When ViewManager is destroyed, reset instance pointer 7 years ago
Adriaan de Groot 845986d48f [libcalamaresui] Mark virtual QObject destructors override 7 years ago
Adriaan de Groot 308441ee3a Merge branch '3.1.x-stable' 7 years ago
Adriaan de Groot 41e6f0e06c [calamares] Allow WM close button
- remove hide-close-button hack
 - refactor code in viewmanager for confirming quit
 - hook up confirm-and-quit to WM close button
 - also works for alt-F4 and other quit methods
 - while here, update copyright year

FIXES #870
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot b6fed964ce [libcalamaresui] Defer requirements checking of ViewModules to their ViewSteps 7 years ago
Adriaan de Groot 27b921bde1 [libcalamaresui] Move requirements information out of welcome module.
- Move type and rename it; put in Calamares namespace
 - Emit signals from the viewmanager as results come in
 - Remove state changing from welcome view step based on its internal
   requirements checking (for now this breaks progressing past the
   welcome page)
 - Log checking of the requirements
7 years ago
Adriaan de Groot 24e04645b6 [libcalamaresui] Stub requirements checking.
Introduce a method checkRequirements() into the module system so that
individual modules can do their own checking (as opposed to stuffing
it all into the welcome module).
7 years ago
Adriaan de Groot 5a07f6ef8a Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 65cf28b716 [libcalamaresui] Provide access to the breeze SVGs 7 years ago
Adriaan de Groot fbe1976c11 [libcalamaresui] Add breeze SVGs under LGPLv3 7 years ago
Adriaan de Groot 4d7f70a28f [kcrash] Remove duplicate 'Tools' tab 7 years ago
Adriaan de Groot e8e284f724 Merge remote-tracking branch 'origin/kcrash' 7 years ago
Adriaan de Groot 2d31e987c0 [libcalamaresui] Unrelated typedef for JobList 8 years ago
Adriaan de Groot e09f179d76 Coverity: repair previous commit 8 years ago
Adriaan de Groot a138eb501c Coverity: fix issues reported in QJsonModel
- Also reported upstream, in the MIT-licensed version of same.

This is a re-hash of b348a45834,
adding memory-leak prevention when load() is called.
8 years ago
Adriaan de Groot fe0cb88d70 Linking: be a little more relaxed in linking to dependent libs 8 years ago
Adriaan de Groot 33f78b375d Merge branch 'master' into kcrash 8 years ago
Adriaan de Groot 8917d153da Drop the (inter-)module dependencies system.
- Was marked incomplete and unused; none of the existing modules
   set any requirements, and the descriptors are not set up to
   hold the requirements information anyway.
 - Dependencies are generally through globalStorage values, or if
   there are dependent jobs they should be created in-order by one
   source (e.g. though a View or a subclass of CppJob which overrides
   jobs() ).
 - It is the responsibility of deployers to formulate a settings.conf
   that includes all the required modules.
 - A 'real' dependency system is going to lead to the introduction
   of interface-definitions and a great deal of complexity, for a
   use case that can be handled with careful deployment instead.
8 years ago
Adriaan de Groot bd4ee9320d Clang: warnings--, drop unused WindowFlags parameter 8 years ago
Adriaan de Groot 866d338894 Clang: warnings-- 8 years ago
Adriaan de Groot 40c49bd50d Clang: be more explicit about marking third-party code.
- This is only a partial solution to warnings caused by third-party
   code, since #including the headers from other sources won't apply
   the warning-suppressions.
 - Flags are not applied when building the source as part of a larger
   target, but are on re-building just one object (it seems -- CMake
   issue to track down).
8 years ago
Adriaan de Groot 337903db09 Clang: reduce warnings about overriden destructors 8 years ago
Adriaan de Groot b04a890798 Fix code using re-imported imageregistry 8 years ago
Adriaan de Groot 6010805935 Licensing: add header to imageregistry copyright
- mention that this is shipped as part of Calamares
         - SPDX info
8 years ago
Adriaan de Groot a65bc7d756 Licensing: re-import ImageRegistry
- include full license headers,
 - copied from
   - repo: https://github.com/tomahawk-player/tomahawk/
   - rev:  00f602e10203b76fc28b4615868c567e6bd4ced4
   - path: src/libtomahawk/utils/ImageRegistry.cpp
8 years ago
Adriaan de Groot d23818b27c Fix code using re-imported spinner 8 years ago
Adriaan de Groot d2d59e6206 Licensing: add header to QtWaitingSpinner copyright
- mention that this is shipped as part of Calamares
     - SPDX info
8 years ago
Adriaan de Groot 553a66b326 Licensing: re-import QtWaitingSpinner
- include full license headers,
 - copied from
   - repo: https://github.com/snowwlex/QtWaitingSpinner
   - rev:  bb8f8987ca19406dc75704eb382ab52e981b773f

This revision *does not build* because the files have been renamed.
8 years ago
Adriaan de Groot 24f26ee7c8 Licensing: add header to QJsonModel copyright
- mention that this is shipped as part of Calamares
 - SPDX info
8 years ago
Adriaan de Groot e5c0854e66 Licensing: re-import GPLv3 version of QJsonItem
- include full license headers,
 - copied from
    - repo: https://github.com/dridk/QJsonmodel
    - rev:  fbd4fb3b1c1311f69cd8ada9bbb7a89fd6fe171e
8 years ago
Adriaan de Groot 13807ceabf Licensing: add self
- to all the files I've touched recently
 - to (very incomplete) AUTHORS list

Licensing: add license info to top-level CMakeLists.txt
8 years ago
Adriaan de Groot ddb6455365 Revert be2338ff0 (intended just to reduce warnings)
- keep the calamaresstyle formatting changes,
 - drop shadowing and nullptr changes.

FIXES #805
8 years ago
Adriaan de Groot ddf7b7fc90 CMake: remove superfluous indirection 8 years ago
Adriaan de Groot c6297f1db5 Clang: warnings-- 8 years ago
Adriaan de Groot edb1dbaa6e Clang: warnings-- 8 years ago
Adriaan de Groot da4fa6a63a Fix link / library name 8 years ago
Adriaan de Groot bd37572fd8 Clang: reduce warnings 8 years ago
Adriaan de Groot be2338ff08 Clang: reduce warnings 8 years ago
Adriaan de Groot cb57de2e65 Clang: float -> qreal where it matches Qt API 8 years ago
Adriaan de Groot 463615a1c0 Clang: don't shadow local variable names 8 years ago
Adriaan de Groot 764fb742ba Clang: clean up documentation markup 8 years ago
Adriaan de Groot bd3786ebeb Clang: reduce warnings in various places 8 years ago
Adriaan de Groot 7e25909e18 YAML: refactor YAML-exception reporting
- both NetInstall (group data) and Locale (GeoIP) use network
   data returned as a source of YAML data. Try to explain
   parsing errors for both.

FIXES #786
8 years ago
Adriaan de Groot 6c5199c9cc YAML: on error, report filename along with location 8 years ago
Adriaan de Groot 73a75e837b Auto-resize the main window.
If the summary widget is large, it gets a scrollbar. This looks really
weird, so prefer to grow the installer window instead. Discussed with
@sitter and settled on this solution.

ViewSteps can signal the ViewManager that they need more space (in pixels),
which may or may not be honored.

FIXES #778
8 years ago
Adriaan de Groot e26d5ab206 Don't leak memory for allocated modules 8 years ago
Adriaan de Groot a718eb76cb Docs: code-documentation about summary page 8 years ago
Adriaan de Groot 2fdccdf090 Merge branch 'simplify-module-desc' 8 years ago
Adriaan de Groot e3008657c4 Modules: accept 'viewmodule' as alias of 'view', improve logging on error. 8 years ago
Adriaan de Groot 594bc37d67 Coverity: uninitialized member 8 years ago
Adriaan de Groot 10eaf06f60 Python: Be more descriptive when modules can't be loaded. 8 years ago
Adriaan de Groot d3f624f818 FinishedPage: no modal pop-ups in a slot
Switch the failure popup to non-modal, and quit the application when
the pop-up is closed. This allows signals to be delivered to other
slots connected to JobQueue::failed.
8 years ago
Adriaan de Groot 44e6955f19 Feature: allow disable welcome-logo resizing 8 years ago
Adriaan de Groot c4f955874d QLabel::setPixmap() isn't virtual, don't make it so. 8 years ago
Adriaan de Groot ee4e4dfccc C++ trickery to make the code shorter to read. 8 years ago
Adriaan de Groot 43e7ea6265 Merge branch 'no-rcc' 8 years ago
Adriaan de Groot 9b3af4aac3 i18n: translate yes/no buttons, don't rely on Qt translations 8 years ago
Adriaan de Groot 61c0ab4534 Clang: fix the right conversions (thanks KKofler) 8 years ago
Adriaan de Groot 4561849c39 UI: add tooltip to Cancel / Quit button
Change 'Quit' at the end to 'Done', because we're done -- and Quit
is sometimes interpreted as cancelling. Tooltip for additional
explanation.
8 years ago
Adriaan de Groot 09b25ab3e9 Clang: make ViewManager instance a proper singleton. 8 years ago
Adriaan de Groot 6a3aa01564 Clang: reduce warnings 8 years ago
Adriaan de Groot 2add7f6f86 Clang: type-annotate float literal 8 years ago
Adriaan de Groot 3b5955900e Coverity: explicit initialization 8 years ago
Adriaan de Groot 8ea14d7957 Release: add copyright to files I've touched 8 years ago
Adriaan de Groot 12a0edfa50 Clang: reduce warnings 8 years ago
Adriaan de Groot 2148538fac Clang: reduce warnings 8 years ago
Adriaan de Groot d9ea22a486 Screensize: refactor, move screen-size constants into global constexpr
Also drop the minimum size a tiny bit, to 1024x520.
8 years ago
Adriaan de Groot ce6997d214 Coverity: fix some uninitialized members 8 years ago
Adriaan de Groot f1cfde36d6 Allow different welcome message.
FIXES #592
8 years ago
Adriaan de Groot 14912d6c63 Merge branch 'master' of https://github.com/AOSC-Dev/calamares into AOSC-Dev-master 8 years ago
Adriaan de Groot 14cba59ab3 Logging: distinguish different failures in module instantiation. 8 years ago
Adriaan de Groot 367fe716b3 Configs: empty config files are ok.
The default umount.conf contains no keys -- so it isn't a map,
but it is a valid config file. Avoid the warning by accepting
empty files.

FIX 707
8 years ago
Teo Mrnjavac 17962179bd Documentation++ 8 years ago
Teo Mrnjavac 6c7cdb5f50 Documentation++ 8 years ago
Teo Mrnjavac 99a1c2245f Documentation++ 8 years ago
Teo Mrnjavac de3c94fc97 Useless debug is useless. 8 years ago
Teo Mrnjavac f4696f22a1 Pass locale name to PythonQt module. 8 years ago
Teo Mrnjavac 0c36de68ff Attach retranslator to base widget of ViewStep. 8 years ago
Teo Mrnjavac d3845144bb Start from empty str for entry point annotation. 8 years ago
Teo Mrnjavac 46787222c9 Fix ifdefs for WITH_PYTHONQT. 8 years ago
Teo Mrnjavac ca7728cd34 Implement PythonQtViewStep::jobs as a wrapper for Python-provided jobs. 8 years ago
Teo Mrnjavac d425f71fdb Build it. 8 years ago
Teo Mrnjavac aad1c536d1 New PythonQtJob class. 8 years ago
Teo Mrnjavac f3fa124f8d Set configuration map in PythonQt module. 8 years ago
Teo Mrnjavac a3887d268a Expose global_storage and utils as objects in PythonQt.calamares. 8 years ago
Teo Mrnjavac 864109fd4e Build them. 8 years ago
Teo Mrnjavac 4648f5e8e0 Utils wrapper class, to expose libcalamares.utils under PythonQt. 8 years ago
Teo Mrnjavac 7791307e1e Wrapper for GlobalStorage, to make it available through PythonQt. 8 years ago
Teo Mrnjavac 25613d1bef Fix _calamares_module_basewidget check and improve readability. 8 years ago
Teo Mrnjavac 0f0a6ab18d PythonQtViewStep has no decorator. 8 years ago
Teo Mrnjavac 9aefeed648 Expose PythonQt.calamares.global_storage. 8 years ago
Teo Mrnjavac a54f217173 Use CalamaresUtils::lookupAndCall in PythonQtViewStep.
This is done to support both Pythonic and Qt style method names, i.e.
both "isNextEnabled" and "is_next_enabled" is ok in a Python module.
Also better documentation in PythonQtViewStep, and stub for
setConfigurationMap.
Finally, proper handling of PythonQtViewStep Python-facing basewidget:
with this change, a call to PQVS::widget() only triggers a widget
relayout if it's necessary, and leaves it alone otherwise.
8 years ago
Teo Mrnjavac fb9d1fa339 Add PythonQtUtils.{h,cpp} with CalamaresUtils::lookupAndCall. 8 years ago
Teo Mrnjavac 9570bd94e8 Nor this. 8 years ago
Teo Mrnjavac 53f687587b Add support for attaching a Python console in DebugWindow.
Also add support for showing module type/interface.
Also minor layout improvements.
8 years ago
Teo Mrnjavac c618999418 Properly load new PythonQtViewModule.
Only initialize Python if it's not initialized yet.
Inject @calamares_module decorator to fetch the entry class.
8 years ago
Teo Mrnjavac 2736ad6e09 User-visible Type and Interface strings in Module. 8 years ago
Teo Mrnjavac d526935001 Remove PythonQtConsoleViewStep, which was only there for testing. 8 years ago
Teo Mrnjavac b4002a716a New PythonQtViewStep. 8 years ago
Teo Mrnjavac 553062fc11 Fix build. 8 years ago
Teo Mrnjavac 8a90b89d25 Headers. 8 years ago
Teo Mrnjavac 0a5faa4888 PythonQtConsoleViewStep for testing purposes. 8 years ago
Teo Mrnjavac 2c3b56c803 Link against PythonQt; new PythonQtViewModule stub. 8 years ago
Teo Mrnjavac e2b2d761c2 Do not LINK_PUBLIC by default. 8 years ago
Kevin Kofler 00d9f211f5 Add support for C++/Qt batch job plugins
These job plugins work similarly to view modules, with the following
differences:

* These jobs need to link only libcalamares, not libcalamaresui. For
  this reason, PluginFactory was moved from libcalamaresui to
  libcalamares. (It depends only on QtCore.)

* Instead of deriving from ViewModule, derive from CppJob (which is a
  subclass of Job).

* Like process and Python jobs, a job plugin is a single job, whereas a
  ViewModule can generate a whole list of jobs.

The CppJob and CppJobModule classes are new. In Module::fromDescriptor,
the combination type=job, intf=qtplugin is now supported and mapped to
CppJobModule.
9 years ago
Teo Mrnjavac 4662c9c877 Remove irrelevant debug output. 9 years ago
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)
9 years ago
Teo Mrnjavac 9d61420e4f Added toolbox page to Debug interface, with deliberate crash feature. 9 years ago
Teo Mrnjavac 9928124195 Added toolbox page to Debug interface, with deliberate crash feature. 9 years ago
Teo Mrnjavac 1d8330f1eb Handle missing setting gracefully. 9 years ago
Teo Mrnjavac c1d1e7cb5a Prevent memory leak on bad module dir (fix Coverity defect 114172). 9 years ago
Teo Mrnjavac 27b27644c4 Initialize all members (fix Coverity defect 114173). 9 years ago