Adriaan de Groot
cdb613bf02
[libcalamares] Move module-related things into subdirectory
...
- Currently just moves a single enum, but this is prep-work for
moving the non-GUI parts of the module system into libcalamares,
to better support GUI-less operation.
2019-05-07 07:48:40 -04:00
Adriaan de Groot
169159f888
[libcalamaresui] Switch to enum classes for Type, Interface
...
- Somewhat gratuitous change, but brings more enums into modern style.
2019-05-07 06:33:31 -04:00
Adriaan de Groot
6b89ac8461
[libcalamaresui] Remove TODO
...
- I don't know what this would mean, so it's not a TODO any more.
2019-05-07 06:26:43 -04:00
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.
2019-04-29 06:49:16 -04:00
Adriaan de Groot
eaba696173
[libcalamares] Move the crash() function to the one place it's used
2019-04-29 06:49:16 -04:00
Adriaan de Groot
ac095d9ed0
[libcalamares] [libcalamaresui] [calamares] Adjust to moved Dirs.h
2019-04-29 06:49:16 -04:00
Adriaan de Groot
2907b48844
[libcalamaresui] Move RESPATH #define to the one place it's used
2019-04-29 06:14:21 -04:00
Adriaan de Groot
f076dd76ad
[libcalamares] Rename YamlUtils.h
...
- Since we have the utils/ filesystem namespace, and use CalamaresUtils::
as C++ namespace, simplify naming.
2019-04-29 06:14:21 -04:00
Adriaan de Groot
7149b80146
[libcalamares] Distinguish kinds of errors
...
- errors can now carry an integer what-am-I code apart from
the message; all errors have a code != 0 (and ok has code 0).
2019-04-28 14:34:39 -04:00
Adriaan de Groot
08e4090354
Merge remote-tracking branch 'origin/raurodse-branding'
...
FIXES #961
2019-04-23 16:41:22 -04:00
Adriaan de Groot
a216b5ca76
[libcalamaresui] Misplaced const
2019-04-22 00:18:28 +02:00
Adriaan de Groot
b7ddb39105
[libcalamaresui] Massage disable-cancel code
...
- Even when Cancel is hidden, also disable it (prevents DBUS
triggers, for instance),
- Re-enable it when exec is over, if it's disabled then.
- simplify code a little.
2019-04-21 17:32:05 +02:00
Adriaan de Groot
10727c7bd9
Merge pull request #1126 from feren/patch-3
...
Patch to add 'dont-cancel' setting to disable Cancel only during the installation phase
2019-04-21 17:02:21 +02:00
Adriaan de Groot
c44e221fb6
Merge branch 'issue-1107'
...
FIXES #1107
2019-04-19 16:27:19 +02:00
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
2019-04-19 10:04:49 +02:00
Adriaan de Groot
242d756731
[libcalamaresui] Add convenience name() to LocaleLabel
2019-04-19 09:55:51 +02:00
Adriaan de Groot
bd0af4bb77
[libcalamaresui] Give LocaleLabel a default constructor
...
- Needed for use in containers
- While here refactor building the english label
2019-04-19 09:18:26 +02: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
c83395ff6d
Reduce warnings for yaml-cpp
...
- Use only utils/YamlUtils.h to pull in yaml-cpp and supporting code.
- When compiling with clang, turn off warnings that the system header
for yaml-cpp would generate.
2019-04-18 12:06:09 +02:00
Adriaan de Groot
620940c75b
[libcalamaresui] Drop now-unused sortKey from LocaleLabel
...
- sortKey is unused
- add englishLabel for reverse-i18n
2019-04-16 23:49:27 +02:00
The feren OS Dev
a7ac046b3d
Update copyright headers
2019-04-16 18:27:51 +01:00
The feren OS Dev
825c92582a
Update ViewManager.cpp
2019-04-16 17:20:39 +01:00
Adriaan de Groot
5e951466df
[libcalamaresui] Sort languages by ISO code
...
- this puts the Englishes together, and is less confusing than
sorting with American first.
2019-04-16 15:38:06 +02:00
Adriaan de Groot
ef3b4c387c
[libcalamaresui] Remove unused AbstractPage
2019-04-15 09:20:08 -04:00
Adriaan de Groot
4fec6731ba
[calamares] [libcalamaresui] Improve includes
...
- avoid useless ../
- sort alphabetically and by kind
2019-04-15 09:20:08 -04:00
Adriaan de Groot
d6cf0617f6
[libcalamaresui] Make logging more consistent
2019-04-15 09:02:21 -04:00
Adriaan de Groot
e664370b28
[libcalamaresui] Use modern tr() annotation
2019-04-11 10:28:09 -04:00
Adriaan de Groot
5a95bf507f
[libcalamaresui] Improve WindowDimensions class
...
- Make sure the class knows its own suffixes
2019-04-11 15:14:31 +02:00
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.
2019-04-11 15:14:31 +02:00
Adriaan de Groot
1008a91eba
[libcalamaresui] Reduce warnings
...
- getting a (sensible) uint from an int is tougher than you might think
2019-04-11 15:14:31 +02:00
Adriaan de Groot
8dd22dcbbf
[libcalamaresui] bail() is a [[noreturn]] function
2019-04-11 15:14:31 +02:00
Adriaan de Groot
713370da55
Merge remote-tracking branch 'origin/issue-1100'
2019-04-11 11:47:00 +02:00
Adriaan de Groot
01f5ac22a0
CMake: use conventional method for setting version
...
- Using project() to set up the version is idiomatic for CMake
and more standardised than doing it by hand. Do retain the
RC flag, because that's used in other parts of versioning.
2019-04-04 15:58:07 +02:00
Adriaan de Groot
3a0bd254c0
[libcalamaresui] Adjust quit-messages to setup-mode
2019-04-01 06:16:37 -04:00
Adriaan de Groot
2b7832857c
[libcalamaresui] Simplify checking dependencies
...
- Avoid crash due to invalid iterator, when modules
are removed due to missing requirements.
- Simplify code, factor out the determination of
which required modules are missing.
2019-03-19 11:11:43 -04:00
Adriaan de Groot
5a8ed8583f
[libcalamaresui] Complain about missing config files
...
- When no config file is found, tell where it wasn't.
2019-03-19 05:42:28 -04:00
Adriaan de Groot
54ba0aaf13
[welcome] Use convenience function
...
- Introduce a hasDetails() for RequirementEntry, which is just
a short-cut, but makes code more readable.
2019-02-26 06:20:20 -05:00
Adriaan de Groot
8cf3c217f7
Merge branch 'requirements-checking'
2019-02-25 10:00:43 -05:00
Adriaan de Groot
c3d13e3451
[libcalamaresui] Add documentation to ViewStep methods
2019-02-25 08:15:01 -05:00
Adriaan de Groot
64ca9d0d5a
[libcalamaresui] Document multi-page support.
2019-02-25 08:11:03 -05: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
40a7082bfc
[libcalamaresui] Handle no-requirements-to-check case
...
- If there's no requirements at all, none of the watchers
will call finished(), so do it once extra.
2019-02-25 07:15:51 -05:00
Adriaan de Groot
0ad115732e
[libcalamaresui] Report elapsed time as well.
...
- While waiting on modules, report the elapsed time in seconds
based on the number of progress-ticks that have passed.
2019-02-25 06:39:50 -05:00
Adriaan de Groot
5ddf7b980b
[libcalamaresui] Report progress also while waiting
...
- Ping the progress every 1.2 seconds, so the user sees more than
just the throbber.
2019-02-25 06:33:46 -05:00
Adriaan de Groot
ac652a2bc1
[libcalamaresui] Report module-name in italics
2019-02-25 04:19:05 -05:00
Adriaan de Groot
41fecf341b
[libcalamaresui] Avoid metatype warnings at runtime
...
- Register the types with the Qt type system. This is needed
because we're passing them as signal and slot parameters
across threads.
2019-02-24 15:57:36 -05:00
Adriaan de Groot
f1aa22d9e8
[libcalamaresui] Sort signals chronologically
2019-02-24 09:08:02 -05:00
Adriaan de Groot
b169281b69
[libcalamaresui] Use convenience type
2019-02-23 17:41:24 -05:00
Adriaan de Groot
6090a464f8
[libcalamaresui] Switch requirementschecking to threaded mode
...
- Use QFuture and QFutureWatcher to spawn threads that do the actual
checking of the requirements; collect results and report on
them as they come in.
2019-02-23 11:12:55 -05:00