103 Commits (d592a5bb947ee50b74a39c2d9d979c9653d2d1c8)

Author SHA1 Message Date
Adriaan de Groot 6b8c0129fd [libcalamaresui] Add one more icon (donate) from Breeze
- LGPLv3 like the others
6 years ago
Adriaan de Groot 6f74463a80 [libcalamaresui] Apply coding style to utils/ 6 years ago
Adriaan de Groot 8a7f32d3aa [libcalamaresui] Polish ImageRegistry
- do static initialization more carefully
 - float -> qreal (double) because that's what the Qt API expects,
   to reduce type-conversion warnings
 - apply current coding style
6 years ago
Adriaan de Groot 91d327b224 [libcalamaresui] Paste TCP port is quint16
- no sense in feeding in an int (and getting a compiler warning
   for narrowing) into something that by spec is a 16-bit value.
6 years ago
Adriaan de Groot e31a498c9b [calamares] Move DebugWindow
- This is a fairly specialized class, for use only in the
   whole-application where it ties in with the module system.
   Move it to the application directory and slim down the UI library.
 - Include it from the new location.
 - Add UIC to Calamares (the application) because there's now
   a designer-based widget in it.
6 years ago
Adriaan de Groot 85d28af1e2 [libcalamaresui] Don't include QJsonModel 6 years ago
Adriaan de Groot c83e95e66a [libcalamaresui] Chase 3rdparty move
- Widgets need to #include from different path
6 years ago
Adriaan de Groot 47dbf9ab0c [libcalamares] Move 3rd party code to separate dir 6 years ago
Adriaan de Groot 566be48f16 libcalamaresui: rename and document pastebin method 6 years ago
Adriaan de Groot d49ddf6463 libcalamaresui: factor out the pastebin functionality
- While called from the ViewManager (to post the debug log)
   this isn't really part of the ViewManager itself, so factor
   out the pasting code into its own file.
6 years ago
Adriaan de Groot e2028cf85b [libcalamaresui] Warnings--, no copy constructor for CDebug 6 years ago
Adriaan de Groot f64e55f0dc [libcalamaresui] Use meaningful asserts
- In debug mode, hitting assert(false) is meaningless,
 - In release mode, the assert is optimized out.
 - So assert the condition we're actually testing, for better messages.
6 years ago
Adriaan de Groot 18b111218a [libcalamaresui] Sort includes in DebugWindow.cpp 6 years ago
Adriaan de Groot 877cb0e999 [libcalamaresui] Debug-tool to dump widget tree
- Adds another tool to the debug window, which dumps (to the debug
   log) a tree-like view of all the widgets in the application.
   This can be used when writing stylesheets.
6 years ago
Adriaan de Groot b5625fc14d [libcalamares] Add a reload-stylesheet button
- This is a debugging-option to test stylesheet changes quickly.
 - Right now, the stylesheet is cached, so it doesn't even work.
6 years ago
Adriaan de Groot a99eccf19d [libcalamaresui] Fix PythonQt code w/ moved enums 6 years ago
Adriaan de Groot a482d7be44 [libcalamaresui] Don't expose build details in DebugWindow
- In a library class, don't include uic-generated headers inside
   the public headers.
6 years ago
Adriaan de Groot 8d0f076591 [libcalamares] Rename CalamaresUtils -> String
- The only remaining functions in the file are string-related, so
   rename to match their purpose.
 - Drop this include file from most places, since they don't actually
   use the string functionality at all.
6 years ago
Adriaan de Groot eaba696173 [libcalamares] Move the crash() function to the one place it's used 6 years ago
Adriaan de Groot 2907b48844 [libcalamaresui] Move RESPATH #define to the one place it's used 6 years ago
Adriaan de Groot c44e221fb6 Merge branch 'issue-1107'
FIXES #1107
6 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
6 years ago
Adriaan de Groot 242d756731 [libcalamaresui] Add convenience name() to LocaleLabel 6 years ago
Adriaan de Groot bd0af4bb77 [libcalamaresui] Give LocaleLabel a default constructor
- Needed for use in containers
 - While here refactor building the english label
6 years ago
Adriaan de Groot cef2f50510 Reduce warnings about extra ;
- Trailing ; after Q_UNUSED
 - Trailing ; after CALAMARES_RETRANSLATE
6 years ago
Adriaan de Groot 620940c75b [libcalamaresui] Drop now-unused sortKey from LocaleLabel
- sortKey is unused
 - add englishLabel for reverse-i18n
6 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.
6 years ago
Adriaan de Groot e664370b28 [libcalamaresui] Use modern tr() annotation 6 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.
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 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 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 3e24c3c58f [libcalamaresui] Provide standardised large font 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 60f440f72b [libcalamaresui] Use new convenience logging methods
- Remove a few confusing Q_FUNCINFO
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot 65cf28b716 [libcalamaresui] Provide access to the breeze SVGs 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 7 years ago
Adriaan de Groot e09f179d76 Coverity: repair previous commit 7 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.
7 years ago
Adriaan de Groot 33f78b375d Merge branch 'master' into kcrash 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