236 Commits (84d599625f156f5a34e5d0d7ce331c0e11ed8c90)

Author SHA1 Message Date
Adriaan de Groot e83b4d33f8 [libcalamares] Another convenience config-extraction function 7 years ago
Adriaan de Groot f3eb557fdb [libcalamares] Provide some convenience functions for extracting configuration data 7 years ago
Adriaan de Groot 2d31e987c0 [libcalamaresui] Unrelated typedef for JobList 7 years ago
Adriaan de Groot 33f78b375d Merge branch 'master' into kcrash 8 years ago
Adriaan de Groot dcc66c2793 Clang: for gcc, don't produce empty COMPILE_FLAGS 8 years ago
Adriaan de Groot 6924bd7d23 Clang: produce fewer warnings (all caused by boost headers) 8 years ago
Adriaan de Groot 7f00073e7f Clang: warnings-- 8 years ago
Adriaan de Groot a4a05acc61 Remove more crashreporter references 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 34761c4214 Clang: reduce 0-as-nullptr warnings 8 years ago
Adriaan de Groot 337903db09 Clang: reduce warnings about overriden destructors 8 years ago
Adriaan de Groot 9693d7a5bd Memory: clean up interface used to get memory (RAM) size 8 years ago
Adriaan de Groot 0c129f2460 Reduce third-part warnings a better way.
Thanks to Kevin Kofler for pointing out what I'd forgotten about
source-file flags. While at it, introduce a generic mechanism for
suppressing warnings in third-party code.

Mostly reverts 4930484931
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 6d880b5631 Replace memory-size detection.
- drop use of dmidecode to determine exact physical memory size
 - use sysinfo() to find memory size (assumes linux 2.3.48 or later)
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 4930484931 CMake: massage build of libcalamares
- Build also two OBJECT libraries,
 - Allow changing Clang warnings for third-party code.
8 years ago
Adriaan de Groot eede92646d CMake: shuffle includes, drop useless (empty) QT_INCLUDE_DIR 8 years ago
Adriaan de Groot a266ecb133 CMake: simplify definitions, distinguish kinds of sources 8 years ago
Adriaan de Groot 03d9dbe099 Clean up CMakeLists, linking 8 years ago
Adriaan de Groot be2338ff08 Clang: reduce warnings 8 years ago
Adriaan de Groot 297e97da19 Clang: tidy up warnings in logger 8 years ago
Adriaan de Groot 9116718448 Clang: warnings-reduction 8 years ago
Adriaan de Groot a06911e9aa Clang: refactor units-converters, reduce warnings 8 years ago
Adriaan de Groot 106f18e074 Log process output of failed commands
FIXES #612
8 years ago
Adriaan de Groot 2c81fceacb Python: KeyError because pretty_name may not exist 8 years ago
Adriaan de Groot 5dc70ac261 Python-i18n: apply C++-coding style 8 years ago
Adriaan de Groot 538c59adb9 Python-i18n: add /usr/local/share/locale to search 8 years ago
Adriaan de Groot d6d5f54d00 Python-i18n: clarify debugging 8 years ago
Adriaan de Groot 22fd428664 Python-i18: avoid duplicate path entries 8 years ago
Adriaan de Groot 3a1d5ed533 Python-i18n: (inefficiently) search for suitable gettext dirs 8 years ago
Adriaan de Groot 78b3c8ed32 Python-i18n: allow None as a gettext path (searches default) 8 years ago
Adriaan de Groot 74be2fd098 Python-i18n: implement gettext functions in libcalamares.utils
- remove Job.gettextPath
 - add libcalamares.utils.gettext_path()
 - add libcalamares.utils.gettext_lang()
 - modify examples in main.py
 - add some gettext debug-output from dummypython
 - correct namespace mis-labeling
 - provide two forms of GlobalStorage
   - regular use, has a JobQueue with storage
   - testing use, creates GlobalStorage separately, provide
     independent access to that for Python.
8 years ago
Adriaan de Groot d4c714c400 Python: fix up testing script
- Didn't run at all (at least since v3.1) because of mismatch between
  GlobalStorage constructor arguments and use; special-case None
  in the C++ code to allocate a new GlobalStorage object.
8 years ago
Adriaan de Groot 6370898154 Python-i18n: make it compile again 8 years ago
Adriaan de Groot cbfdd8690d Python-i18n: WIP, moving API to libcalamares.utils 8 years ago
Adriaan de Groot b922d88b0f Python-i18n: add a gettext_path for python job modules 8 years ago
Adriaan de Groot 34b96148ae Python: at beginning of job, if pretty status has changed, emit progress to update it in the UI. 8 years ago
Adriaan de Groot 11e5a6cbe0 Python: trim description to the first line of run.__doc__ 8 years ago
Adriaan de Groot a72cc0eeb4 Python: use the module run().__doc__ as a pretty description. 8 years ago
Adriaan de Groot f12ae5db3b Python: get docstring from run() method 8 years ago
Adriaan de Groot 75b5303b49 i18n: stop trying to install Qt translations 8 years ago
Adriaan de Groot 5cd328dad3 Clang: if we're going to crash on purpose, crash the C++ way 8 years ago
Adriaan de Groot 0d884869e5 Clang: reduce warnings about code-documentation 8 years ago
Adriaan de Groot f2d2218070 Clang: fix warning about implict copy-ctor with explicit move-ctor 8 years ago
Adriaan de Groot 8ea14d7957 Release: add copyright to files I've touched 8 years ago
Adriaan de Groot 2148538fac Clang: reduce warnings 8 years ago
Adriaan de Groot d29acf4a06 Logging: add a global storage dump method 8 years ago
Teo Mrnjavac 6c7cdb5f50 Documentation++ 8 years ago
Teo Mrnjavac b1c67f429f Update headers. 8 years ago
Teo Mrnjavac 99ca3d768d Expose translator locale name. 8 years ago
Teo Mrnjavac 3170067089 Make JobResult inheritable and remove obsolete Status enum. 8 years ago
Teo Mrnjavac 0f734c8c5c Make sure to only call Py_Initialize if Python is not initialized. 8 years ago
Teo Mrnjavac 2c3b56c803 Link against PythonQt; new PythonQtViewModule stub. 8 years ago
Teo Mrnjavac ada620effc Find PythonQt. 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
Jonathan Carter c83ca9af44 Fix spelling mistake in kdsingleapplicationguard.cpp (#257)
s/emty/empty/g.
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 0684a761bd Copyright. 9 years ago
Teo Mrnjavac d99d7bfdff Expose CalamaresUtils::obscure as libcalamares.utils.obscure. 9 years ago
Teo Mrnjavac f8078be2fd Wrap CalamaresUtils::obscure in CalamaresPython. 9 years ago
shainer 2349f7125e Add conversion utilities from QHash to py dict. When translating from pydict, however, translate into a QMap as before to keep current behaviour. 9 years ago
Teo Mrnjavac 9fb9aaf6e4 Install CrashReporter handler. 9 years ago
Teo Mrnjavac fe1e1cb3c0 Export WITH_KCRASH in CalamaresConfig.h.in. 9 years ago
Teo Mrnjavac 576fdcc7a0 Print log file path. 9 years ago
Teo Mrnjavac e59418e880 Add crash utility to CalamaresUtils. 9 years ago
Teo Mrnjavac baa3553db5 Add CalamaresUtils::obscure. 10 years ago
Teo Mrnjavac 834299f785 There are no Phases any more, just a ModuleAction for a module. 10 years ago
Teo Mrnjavac 9cb4e60b31 Namespace fixage. 10 years ago
Teo Mrnjavac 1534b0a27c Try to fix dontChroot command execution. 10 years ago
Teo Mrnjavac a4ea7e65a2 Try running no-chroot commands in env rather than sh -c. 10 years ago
Rohan Garg ca393d0a44 Set the default rootMountPoint when not chroot'ing 10 years ago
Teo Mrnjavac 7212aaec74 Fix the last fix. 10 years ago
Teo Mrnjavac d8818e0280 Fix non-chroot target env call. 10 years ago
Teo Mrnjavac 42e465aa10 CalamaresUtils::System is now a class. 10 years ago
Teo Mrnjavac 0803d86c40 Don't duplicate code. 10 years ago
Teo Mrnjavac 2e3751ffa7 If dont-chroot is set, don't chroot target env calls. 10 years ago
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls. 10 years ago
Teo Mrnjavac 326671a3d6 Remove dead (unreachable) code. 10 years ago
Teo Mrnjavac b9dbf668f3 Initialize previously uninitialized scalar. 10 years ago
Teo Mrnjavac 30a840ceb0 Fix issue with changed() never being emitted on remove in GS. 10 years ago
Teo Mrnjavac eae237211f Add prettyStatusMessage to {Python,Process}Job. 10 years ago
Teo Mrnjavac b0d52fb928 Use it in JobQueue. 10 years ago
Teo Mrnjavac 18a9e0db48 Add optional prettyStatusMessage to Job. 10 years ago
Teo Mrnjavac 659a388688 Improve job status reporting. 10 years ago
Teo Mrnjavac 5e2f6ff2b8 Detect physical memory, with dmidecode and meminfo as backup. 10 years ago
Teo Mrnjavac 09ae0bcbd6 Add branding translations support to CalamaresUtils::installTranslator. 10 years ago
Teo Mrnjavac 8a02522d60 Add CALAMARES_RETRANSLATE_WIDGET 10 years ago
Teo Mrnjavac d45d436161 Add optional prettyDescription to Job. 10 years ago
Teo Mrnjavac 8b98b1cc24 Do not filter out LanguageChange events when in a RETRANSLATE functor. 10 years ago
Teo Mrnjavac 52528f650c JobQueue emits queueChanged. 10 years ago
Teo Mrnjavac edb21e05af New GlobalStoragePythonWrapper is passed to the Python API.
This allows us to make GlobalStorage a QObject, with disabled copy
constructor. And thanks to this change, GlobalStorage now emits
changed() every time an insert or remove is performed.
10 years ago
Teo Mrnjavac d1c4976ee6 Copyright. 10 years ago
Teo Mrnjavac d8ca5eee5b Friend DebugWindow to GlobalStorage for future use. 10 years ago
Gormogon e2d05cb9f2 Align Pointers 10 years ago
Teo Mrnjavac b8b41bdfdd Fix execution environment and error reporting in ProcessJob. 10 years ago
Teo Mrnjavac 9622888d1d Load QML modules in a central place + dummy QML slideshow. 10 years ago
Kevin Kofler 00604a8bca PythonHelper: Add support for bool.
Convert Python bool type from/to C++/QVariant bool (QVariant::Bool) in
PythonHelper::variantToPyObject and PythonHelper::variantFromPyObject.

This fixes the "override" option and any booleans in the "defaults" list
in grubcfg.conf.
10 years ago
Kevin Kofler 7478c1266b Point the lib/calamares/libcalamares.so symlink to the versioned so.
Point the lib/calamares/libcalamares.so symlink for the Python modules
directly to the versioned lib/libcalamares.so.VERSION library rather
than to the lib/libcalamares.so symlink. This allows distributions to
install the lib/libcalamares.so symlink to a development package and
only ship lib/libcalamares.so.VERSION and lib/calamares/libcalamares.so
in the runtime package. It is also marginally faster (because only one
level of symlinks has to be resolved instead of two).

(I know this works because I have been manually fixing up this symlink
in the Fedora specfile so far.)
10 years ago
Teo Mrnjavac 8575240b95 Capture by-val in Retranslator macro. 10 years ago