83 Commits (4ceaa5ffe7eee417b075216e7a08c91422dfa244)

Author SHA1 Message Date
Adriaan de Groot c44e221fb6 Merge branch 'issue-1107'
FIXES #1107
7 years ago
Adriaan de Groot 58aa9f4989 [libcalamares] Move LocaleLabel from libcalamaresui to libcalamares
- This isn't a UI-dependent class
 - Doesn't make much sense in CalamaresUtilsGui either
7 years ago
Adriaan de Groot 242d756731 [libcalamaresui] Add convenience name() to LocaleLabel 7 years ago
Adriaan de Groot bd0af4bb77 [libcalamaresui] Give LocaleLabel a default constructor
- Needed for use in containers
 - While here refactor building the english label
7 years ago
Adriaan de Groot cef2f50510 Reduce warnings about extra ;
- Trailing ; after Q_UNUSED
 - Trailing ; after CALAMARES_RETRANSLATE
7 years ago
Adriaan de Groot 620940c75b [libcalamaresui] Drop now-unused sortKey from LocaleLabel
- sortKey is unused
 - add englishLabel for reverse-i18n
7 years ago
Adriaan de Groot 5e951466df [libcalamaresui] Sort languages by ISO code
- this puts the Englishes together, and is less confusing than
   sorting with American first.
7 years ago
Adriaan de Groot e664370b28 [libcalamaresui] Use modern tr() annotation 7 years ago
Adriaan de Groot 6560c194ad [libcalamaresui] Reduce 0-for-nullptr warnings in 3rd party code
- replace = 0 with = nullptr to reduce warnings; not a meaningful
   or copyrightable change.
7 years ago
Adriaan de Groot 210965aca4 [libcalamaresui] Allow always-show-country setting in locale label 8 years ago
Adriaan de Groot 8790985fca [libcalamaresui] Code-formatting, remove dead code 8 years ago
Adriaan de Groot 3dda9ab860 [libcalamaresui] LocaleLabel doesn't need to inherit QObject
- Use static QObject::tr instead.
8 years ago
Adriaan de Groot 1f4ac45bb5 [libcalamaresui] Cleanup locale-labeling code
- Support translations of the "language (country)" format instead
   of forcing English parenthesis.
8 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.
8 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>
8 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.
8 years ago
Adriaan de Groot 3e24c3c58f [libcalamaresui] Provide standardised large font 8 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.
8 years ago
Adriaan de Groot 60f440f72b [libcalamaresui] Use new convenience logging methods
- Remove a few confusing Q_FUNCINFO
9 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 9 years ago
Adriaan de Groot 65cf28b716 [libcalamaresui] Provide access to the breeze SVGs 9 years ago
Adriaan de Groot 4d7f70a28f [kcrash] Remove duplicate 'Tools' tab 9 years ago
Adriaan de Groot e8e284f724 Merge remote-tracking branch 'origin/kcrash' 9 years ago
Adriaan de Groot 2d31e987c0 [libcalamaresui] Unrelated typedef for JobList 9 years ago
Adriaan de Groot e09f179d76 Coverity: repair previous commit 9 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.
9 years ago
Adriaan de Groot 33f78b375d Merge branch 'master' into kcrash 9 years ago
Adriaan de Groot b04a890798 Fix code using re-imported imageregistry 9 years ago
Adriaan de Groot 6010805935 Licensing: add header to imageregistry copyright
- mention that this is shipped as part of Calamares
         - SPDX info
9 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
9 years ago
Adriaan de Groot 24f26ee7c8 Licensing: add header to QJsonModel copyright
- mention that this is shipped as part of Calamares
 - SPDX info
9 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
9 years ago
Adriaan de Groot bd37572fd8 Clang: reduce warnings 9 years ago
Adriaan de Groot cb57de2e65 Clang: float -> qreal where it matches Qt API 9 years ago
Adriaan de Groot bd3786ebeb Clang: reduce warnings in various places 9 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
9 years ago
Adriaan de Groot 61c0ab4534 Clang: fix the right conversions (thanks KKofler) 9 years ago
Adriaan de Groot 6a3aa01564 Clang: reduce warnings 9 years ago
Adriaan de Groot 2add7f6f86 Clang: type-annotate float literal 9 years ago
Adriaan de Groot 8ea14d7957 Release: add copyright to files I've touched 9 years ago
Adriaan de Groot 12a0edfa50 Clang: reduce warnings 9 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.
9 years ago
Teo Mrnjavac 6c7cdb5f50 Documentation++ 10 years ago
Teo Mrnjavac 46787222c9 Fix ifdefs for WITH_PYTHONQT. 10 years ago
Teo Mrnjavac fb9d1fa339 Add PythonQtUtils.{h,cpp} with CalamaresUtils::lookupAndCall. 10 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.
10 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.
10 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)
10 years ago
Teo Mrnjavac 9d61420e4f Added toolbox page to Debug interface, with deliberate crash feature. 11 years ago
Teo Mrnjavac 9928124195 Added toolbox page to Debug interface, with deliberate crash feature. 11 years ago