143 Commits (314282731b4a1cd75e4f65dc48eb3027db0784e2)

Author SHA1 Message Date
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
Teo Mrnjavac e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 10 years ago
Teo Mrnjavac 945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 10 years ago
Teo Mrnjavac 08b90e975b Add retranslator class to CalamaresUtils. 10 years ago
Teo Mrnjavac 8b343ace4a QTranslator switching in CalamaresUtils. 10 years ago
Teo Mrnjavac 8026a287d3 Shut up Qt lupdate warnings. 10 years ago
Teo Mrnjavac 633c8512c2 Try to make compile on Qt 5.4 10 years ago
Teo Mrnjavac a97297a3fe Attempt to fix #125 10 years ago
Teo Mrnjavac d97bb47f09 Add proper QResrouce system to libcalamaresui, finish up prepare checks
This also adds ImageRegistry, a SVG cache, a bunch of utility functions
for shared pixmaps in CalamaresUtilsGui and renames several qrc files
in viewmodules.
11 years ago
Pier Luigi Fiorini f0921a41b2 Try to find settings.conf from SYSCONFDIR
Honor SYSCONFDIR as specified by CMake arguments instead of
using a hard-coded path.

Since GNUInstallDirs set CMAKE_INSTALL_FULL_SYSCONFDIR to
CMAKE_INSTALL_PREFIX/etc we need to change the default ourselves.
11 years ago
Teo Mrnjavac ec7edc4b83 Improve diacritics transliteration. 11 years ago
Teo Mrnjavac 6295f48ab7 Add removeDiacritics function to CalamaresUtils. 11 years ago
Teo Mrnjavac 7a3ce363b3 Add option to run process jobmodules in chroot. 11 years ago
Teo Mrnjavac eb6b8ac613 Add check_chroot_output to Python interface. 11 years ago
Teo Mrnjavac f90bf469dd Add chrootOutput/check_chroot_output to libcalamares utils API. 11 years ago
Aurélien Gâteau 1c9265cd21 Merge branch 'wip/resize-partition' 11 years ago
Teo Mrnjavac 5400afa540 Fix settings.conf loading. 11 years ago
Aurélien Gâteau 249a28910a Make it possible to update message and details fields of a JobResult 11 years ago
Teo Mrnjavac 84ec430729 Add some Python API docs. 11 years ago
Teo Mrnjavac 01efeda801 Utils, not util. 11 years ago
Teo Mrnjavac c964093d7c Make libcalamares a proper package and utils a proper submodule. 11 years ago
Teo Mrnjavac c64e229142 By default, chrootCall should never time out. 11 years ago
Teo Mrnjavac 45ac91c784 Add check_chroot_call to libcalamares Python interface. 11 years ago
Aurélien Gâteau 26e5500e33 chrootCall: Log messages on failure, as well as command outputs 11 years ago
Aurélien Gâteau 6376e1daef Start the process before calling waitForStarted() 11 years ago
Aurélien Gâteau 70a13fc588 Make logging more useful
- Do not log progress percent but log job names.
- Log install failures.
11 years ago
Aurélien Gâteau 45101d15b0 Store log in ~/.cache by default 11 years ago
Aurélien Gâteau 1b695b7355 Fix crash when logging at exit time 11 years ago
Aurélien Gâteau 90670f8b46 Improve formatting of error messages 11 years ago
Teo Mrnjavac e7e57689d8 Make sure chrootCall with args list actually passes the args as list. 11 years ago
Teo Mrnjavac 63534f7154 Add mount and chrootCall utilities to libcalamares + Python wrappers. 11 years ago
Teo Mrnjavac fb328494b3 Make the libcalamares Python API better for PEP8 11 years ago
Teo Mrnjavac 845ae05f7e Added debug( str ) to the Python API. 11 years ago
Aurélien Gâteau d30b6300ab Unbreak locating of config file when run without --config 11 years ago
Aurélien Gâteau 289704ab90 Make it possible to override the config dir from the command line 11 years ago
Teo Mrnjavac 87ee2b8b8c Improve error reporting for Python jobs. 11 years ago
Teo Mrnjavac beafcd9cc4 Consistency: calamares_main ==> run; global_storage => globalStorage 11 years ago
Teo Mrnjavac 2a231b3532 Try to avoid passing GlobalStorage to Python by value. 11 years ago
Teo Mrnjavac da83ecfb13 libcalamares.job is of type libcalamares.Job 11 years ago
Teo Mrnjavac 78de11a412 Emit job progress from Python jobs. 11 years ago
Aurélien Gâteau 89fd6a950b Add support for per-job progress 11 years ago
Aurélien Gâteau e9da5cb6cb Change signature of JobQueue::progress, add finished() signal
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
11 years ago
Teo Mrnjavac 2636a1273f Add job.setprogress to Python API. 11 years ago
Teo Mrnjavac c6c2c67560 Rewrite Python error handling to show meaningful messages. 11 years ago
Teo Mrnjavac 0753e6ccde New GlobalStorage map. With Python API support. 11 years ago
Teo Mrnjavac d9f4c74537 Add support for config map to Python job API.
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
11 years ago
Teo Mrnjavac 2f03dfa43b CalamaresPrivate ==> CalamaresPython 11 years ago
Aurélien Gâteau 43f29b8058 Start working on tests for partition jobs 11 years ago
Teo Mrnjavac e33e9de6f6 Symlink lib/calamares/libcalamares.so to lib/libcalamares.so for Python. 11 years ago
Teo Mrnjavac a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
11 years ago
Teo Mrnjavac b924aeef2b Add optional Python jobs support to libcalamares. 11 years ago
Teo Mrnjavac 754ef7dbbc Fix prettyName. 11 years ago
Aurélien Gâteau 7096213206 Move partitionmanager code to src/modules/partition 11 years ago
Teo Mrnjavac 51e5976a99 Better error message. 11 years ago
Teo Mrnjavac 2e47c248ac Load modules by phase, in preparation for actually using new settings. 11 years ago
Aurélien Gâteau 22ff18f2cc Update partitionmanager submodule, fixing build without KIO 11 years ago
Aurélien Gâteau 784f07cbbc Update partitionmanager submodule: latest commits from the frameworks branch
@demm: This includes the btrfs fix
11 years ago
Aurélien Gâteau 2e3f1c655c Update partitionmanager submodule, necessary for next commit 11 years ago
Aurélien Gâteau b1ce4afc8c Update partitionmanager submodule 11 years ago
Teo Mrnjavac b3aae75bed Add working directory to ProcessJob 11 years ago
Aurélien Gâteau 165d28fc23 Abort installation when a job fails 11 years ago
Teo Mrnjavac fe7a64d5ab Add ProcessJob, a wrapper for external commands. 11 years ago
Teo Mrnjavac dbadbf69ec Const correctness. 11 years ago
Teo Mrnjavac d1151d87cf Move implementation to cpp file. 11 years ago
Aurélien Gâteau 6881fdab6e JobResult 11 years ago
Aurélien Gâteau 04743eb4be Basic JobQueue implementation 11 years ago
Aurélien Gâteau f10f2026ad Update partitionmanager submodule 11 years ago
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.
11 years ago
Aurélien Gâteau bcfbf3eda2 Dummy implementation of JobQueue so that I can call it 11 years ago
Teo Mrnjavac f1da3373a8 Added Typedefs.h and Job/JobQueue interfaces. 11 years ago
Teo Mrnjavac afa1d9dce0 To build with partitionmanager: cmake -DWITH_PARTITIONMANAGER=1 11 years ago
Teo Mrnjavac 6388171521 Stubs for JobQueue and Job. 11 years ago
Aurélien Gâteau 02af2dccb9 Introduce libcalapm
This adds a submodule pointing to a fork of KDE Partition Manager. All
Calamares-specific changes are in the "calamares" branch of this fork.
11 years ago
Aurélien Gâteau 3cc7fe3245 Rename config.h to CalamaresConfig.h
Avoid name clashes with partitionmanager's config.h
11 years ago
Teo Mrnjavac 6324feb2f3 Probably best to not even try to mkdir /usr/lib 11 years ago
Teo Mrnjavac ef48f36445 Add modules path in build dir if --debug.
Also fix config.h location.
11 years ago
Teo Mrnjavac ab5c818f4f Fix -Wnarrowing warnings in KDSingleApplicationGuard 11 years ago
Teo Mrnjavac d20e3ce598 Add DLLEXPORT_PRO definitions. 11 years ago
Teo Mrnjavac 13fcf387c7 A bunch of work on loading plugins.
Also switched to C++11.
11 years ago
Aurélien Gâteau 1da7ba446d Fix link error on Qt5 libs 11 years ago
Teo Mrnjavac 05d355f21f Config files are YAML, not JSON. We depend on yaml-cpp for parsing. 11 years ago
Teo Mrnjavac 4e14ec7834 Fixed defines for Logger 11 years ago
Teo Mrnjavac 6899b1f0fa Added CMake magic for plugin infrastructure.
Added ViewManager.
Added dummy Settings class.
Added dummy plugin interface (UI plugins only).
Added dummy greeting plugin.
Added DLLEXPORT macros for UI plugin interface and plugins.
11 years ago
Teo Mrnjavac b21dc4fe4c Added Utils, Logger, Translations, QCommandLineParser, init boilerplate 11 years ago
Teo Mrnjavac 2120685822 Fix error in headers. 11 years ago
Teo Mrnjavac 27cea281bc Added KDSingleApplicationGuard boilerplate because it's a singleton.
Also DllMacro.h
11 years ago
Teo Mrnjavac b5ec7c4702 CMake skeleton. 11 years ago