Adriaan de Groot
090aee9196
Modules: adjust to split-out utils/Variant.h
...
- Most modules only needed the variant support, not the "whole"
CalamaresUtils header.
- While here improve ordering of headers as well.
2019-04-29 06:14:21 -04:00
Adriaan de Groot
a68a381481
[license] Fix compiler warnings
...
- out-of-order and incomplete initialization
- documentation style
- missing assignment operator
2019-04-25 14:15:14 +02:00
Adriaan de Groot
58770037f4
[license] Allow more things locally
...
- If it says file:, it's local (don't require a specific file
extension).
- Report actual path loaded.
2019-04-24 07:04:38 -04:00
Adriaan de Groot
ca870a6d41
[license] Update example
...
- Explain that the GPLv3 isn't actually a proprietary license, but
is used as convenient text for the license page.
- Invent a Calamares, Inc.
2019-04-24 07:03:57 -04:00
Adriaan de Groot
3608f62ec0
[license] Adjust tooltip and button texts
...
- Handle various states of the link and tool buttons,
give them appropriate texts and tooltips.
2019-04-24 06:53:31 -04:00
Adriaan de Groot
4ce6fdbd90
[license] Make area scrollable
...
- Since the list of license entries may be long (especially
if the text is expanded) make it scrollable.
2019-04-24 06:43:00 -04:00
Adriaan de Groot
f0d26a74b7
[license] Set object names
...
- This is prep-work now that the CSS styling branch has merged
2019-04-23 17:05:44 -04:00
Adriaan de Groot
982a3fb372
[license] Apply stylesheet so displayed text is nicer.
2019-04-23 08:41:32 -04:00
Adriaan de Groot
4bdae0cab0
[license] Load full license text if local
...
- Load full text, toggle display
- Swap Up and Down arrow semantics on button, to match usual
text-editor display (down means it's expanded, displayed)
2019-04-23 08:29:32 -04:00
Adriaan de Groot
92a3666dce
[license] Simplify isLocal() by using Qt method
2019-04-23 08:16:54 -04:00
Adriaan de Groot
ddf541774b
[license] Make local and external links more consistent
...
- Capitalization of message
- Add a right-pointing "open" button to external links as well
2019-04-23 04:10:43 -04:00
Adriaan de Groot
c696b5c19d
[license] Add show-license toggle button
...
- Non-functional as yet
- Toggles expand / collapse arrow and tooltip
2019-04-21 20:36:11 +02:00
Adriaan de Groot
32ed3f6db6
[license] Add GPLv3 as an example in the license.conf
2019-04-21 14:23:56 +02:00
Adriaan de Groot
cb80d47682
[license] Move translation / retranslation to LicenseWidget
...
- Language change didn't otherwise apply to the license items
2019-04-21 13:50:06 +02:00
Adriaan de Groot
1235207ead
[license] Refactor LicenseWidget
...
- Move all the widget code into its own file
2019-04-21 13:36:28 +02:00
Adriaan de Groot
35f23c86c6
[license] Add stub LicenseWidget files
...
- Prepare for refactoring
- Clean up weirdness in the CMakeLists.txt
2019-04-21 12:43:04 +02:00
Adriaan de Groot
d2957fbad3
[license] Handle the case where all the licenses are optional
...
- If all of the licenses are optional, you should be able to
continue without accepting. Refactor to a single visible
slot to check the conditions.
- Always set the globalsettings value; to "false" on entry
to make sure it's there.
- When setting the list of entries, check the conditions
(because if the list is empty, or all of them are optional,
then it's ok to continue).
FIXES #1124
FIXES #1125
2019-04-20 15:27:00 -04:00
Adriaan de Groot
c245238b89
[license] Use standard algorithms, simplify code
...
- Introduce isRequired() for readability later
- Use std::any_of instead of rolling own loop
2019-04-20 11:58:01 -04:00
Adriaan de Groot
937f332441
[license] Refactor LicenseEntry
...
- Follow Calamares conventions for member naming
- Switch to struct since everything is public anyway
2019-04-20 11:53:16 -04:00
Adriaan de Groot
dc006d58b2
[license] Use NamedEnum
2019-04-20 11:43:19 -04:00
Adriaan de Groot
614bd3c6de
[license] Move logic to LicenseEntry class
2019-04-20 09:52:29 -04:00
Adriaan de Groot
81016667ae
[license] Change to enum class
...
- non-functional change, just chasing modern C++
2019-04-20 09:52:28 -04:00
Adriaan de Groot
f299b86a3b
[license] start to document license.conf
...
- document keys and values in a way consistent with other modules
- document **intended** use of local URLs.
2019-04-20 09:52:28 -04:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
6071489788
[libcalamaresui] Provide default implementations of next() and back()
...
- These methods are used for multi-page view-steps, which are rare.
For all the others, just drop the empty implementation and defer
to the base class.
2019-02-25 07:49:10 -05:00
Adriaan de Groot
08565b5f17
[libcalamaresui] Remove the signal done() from ViewStep
...
- The signal is emitted, generally from next(), but not actually used.
2019-02-25 07:34:40 -05:00
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>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
51ccd6be4d
[license] Warnings-- by making the one default case explicit
2018-03-06 16:23:29 +01:00
Adriaan de Groot
0b03d56a40
i18n: Massage code to help lupdate understand
2018-02-07 17:43:26 +01:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
337903db09
Clang: reduce warnings about overriden destructors
2017-09-20 09:11:18 -04:00
Adriaan de Groot
196b1567db
Modules: remove boilerplate module.desc
2017-08-02 11:05:32 -04:00
Teo Mrnjavac
e2b2d761c2
Do not LINK_PUBLIC by default.
2016-12-07 16:37:29 +01:00
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)
2016-09-01 16:46:14 +01:00
Teo Mrnjavac
ff9cf0880a
Fix QVariant type check (fix Coverity defect 114155).
2016-02-26 13:34:30 +01:00
Teo Mrnjavac
b2f1e08377
Prevent unnecessary switch fallthrough (fix Coverity defect 114171).
2016-02-26 13:24:13 +01:00
Teo Mrnjavac
4b57749945
Use PluginFactory in License module.
2015-09-15 17:21:19 +02:00
demmm
2372e45a8a
better spaced layout, most will use less then 3
2015-09-14 18:51:42 -04:00
demmm
031ff75630
Update License screenshot
2015-09-14 11:36:33 -04:00
Teo Mrnjavac
69b35da6bf
Fix up README.md.
2015-09-14 16:51:04 +02:00
demmm
c1ee36946c
New License module, based on KaOS license module.
...
See README.md for details.
2015-09-14 16:51:04 +02:00