Adriaan de Groot
39bf2eb9aa
[welcome] Fix display of unsupported locales
...
- Some locales have no nativeLanguageName(), so instead display
the locale id (e.g. "eo") and the resulting language in English
(which, if it is really unsupported, will be "C").
2018-05-14 06:28:57 -04:00
Adriaan de Groot
42f5ed5d41
[welcome] Fix build, reduce redundancy
...
- constexpr isn't applicable because of non-trivial destructor
- May as well only create " (%1)" once.
FIXES #938
2018-04-23 10:47:31 -04:00
Adriaan de Groot
e5b599fbe3
[welcome] Drop accidental logging
2018-04-19 09:24:59 -04:00
Adriaan de Groot
a9ffd3351d
[welcome] Support sr@latin
...
- The QLocale constructor which takes a string (locale name) doesn't
understand sr@latin, and returns the Cyrillic locale. Fix that
by creating locales ourselves for @latin locales.
- sr and sr@latin now display correctly in the right script in the
native language dropdown.
2018-04-19 08:40:04 -04:00
Adriaan de Groot
7cc2b222d9
[welcome] Present RTL (country) annotations better
...
- The (RTL) text "Arabiy (Misr)" should be entirely RTL, so
make the parenthetical insert -- which would otherwise be LTR
and so mess up the placing of those parenthesis around the country --
explicitly RTL.
- Since there are no RTL languages in Calamares right now with
country-local translations, this isn't visible.
2018-04-19 07:42:43 -04:00
Adriaan de Groot
7c944760fc
[welcome] Only show (country) in list if the locale suggests it
...
- A locale suggests it is country-specific by having the form <lang>_<country>
- This mostly fixes locale "ar" being presented as "Arabiy (Misr)" when
there is no need to (and the RTL is messed up then, too).
2018-04-19 07:19:10 -04:00
Adriaan de Groot
59537d86d6
[welcome] Present languages in native format
...
- Introduce intermediate data class for building up the list
of languages to present.
- Sort on the English names, with en_US at the top (ugh).
- Show the native names.
2018-04-19 07:15:25 -04:00
Adriaan de Groot
6930400b67
DEBUG logging
2018-04-18 11:34:09 -04:00
Adriaan de Groot
4b7465696d
[welcome] Refactor the code that picks a locale to use
...
- Much like std::find_if, but slightly muddled because there's
no iterator that we can sensibly use.
- Scan the ComboBox for a locale that matches a predicate.
- Log more as the search for a good locale progresses.
- Don't mix matching the locale with filling the ComboBox
(even though that's slightly more efficient).
2018-04-18 11:33:49 -04:00
Adriaan de Groot
ddbb9eaebc
Merge branch 'improve-logging'
2018-04-04 11:10:51 -04:00
Adriaan de Groot
9fe85e592f
Merge branch '3.1.x-stable'
2018-04-04 11:10:34 -04:00
Adriaan de Groot
fd1279dbe3
[welcome] Make the example configuration less strict
2018-04-03 08:19:45 -04:00
Adriaan de Groot
240efd30f1
[libcalamares] Add support for formatted, table-like output
...
- Use DebugRow for one-row-at-a-time output with continuations.
- Use DebugList for one-item-per-line with continuations.
- Use DebugMap for one-row-at-a-time output of a QVariantMap.
2018-03-30 17:18:45 -04:00
Adriaan de Groot
e2b8fb0afe
[welcome] Log if no translations matched at all
2018-03-28 07:47:13 -04:00
Adriaan de Groot
c7629182e4
Merge branch 'master' into requirements-checking
2018-03-06 17:06:35 +01:00
Adriaan de Groot
defc7d4df8
[welcome] Compile warnings--
2018-03-06 16:10:53 +01:00
Adriaan de Groot
a72bdfac52
Merge branch 'master' into requirements-checking
2018-03-06 14:57:17 +01:00
Adriaan de Groot
3315df5df1
[modules] Use new convenience logging methods across the board
2018-02-13 11:07:12 +01:00
Adriaan de Groot
3f77fb1d16
[modules] Use new convenience logging methods
2018-02-12 11:58:34 -05:00
Adriaan de Groot
6335084aa3
[libcalamares] Determine what's checked and what's required first.
...
- warn for required checks that are not carried out.
2018-01-29 15:29:25 +01:00
Adriaan de Groot
2bc394656d
[welcome] Make libparted optional
...
- This turns off the space-available check in the welcome module;
without libparted, always fail that check.
- Allows running the welcome module on OS without libparted.
2018-01-13 21:41:07 +01:00
Adriaan de Groot
a7d7f3a83b
[welcome] Make link to Calamares site https
2018-01-03 04:20:21 -05:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
ee979d79ee
Merge branch '3.1-pinebook'
2017-12-04 11:45:01 -05:00
Adriaan de Groot
02dfe51d55
[welcome] Improve error reporting from requirements checker
2017-12-04 10:47:26 -05:00
Adriaan de Groot
c8e42e6909
[welcome] Implement requirements checking at module level.
...
- Hook up the requirements checker (which only checks) to the module-and-viewstep
method called to do the checking.
2017-12-02 11:30:26 -05:00
Adriaan de Groot
bd27dda474
[welcome] Restructure requirements checking
...
- Move widget behavior into its own container / widget class
- Change the RequirementsChecker class to just check the
requirements, returning a results list
- Connect from the module manager to the results widget.
2017-12-02 11:30:26 -05:00
Adriaan de Groot
27b921bde1
[libcalamaresui] Move requirements information out of welcome module.
...
- Move type and rename it; put in Calamares namespace
- Emit signals from the viewmanager as results come in
- Remove state changing from welcome view step based on its internal
requirements checking (for now this breaks progressing past the
welcome page)
- Log checking of the requirements
2017-12-02 10:59:33 -05:00
Adriaan de Groot
d63f8f6922
[welcome] Document welcome.conf
...
- explain requirements keys
- document show-buttons keys
2017-11-29 09:46:19 -05:00
Adriaan de Groot
0c0f0fc8b4
[requirements] Check window minimum size, not preferred size.
...
FIXES #863
2017-11-20 09:14:35 -05:00
Adriaan de Groot
1d18ea264d
[libcalamaresui] Switch to using three state icons for requirements
2017-11-20 09:04:26 -05:00
Adriaan de Groot
7d916f649d
[requirements] Document code
2017-11-20 08:18:39 -05:00
Gabriel Craciunescu
71da7b3a48
RequirementsChecker.cpp: rearrange cDebug() output
2017-10-30 20:11:11 +01:00
Adriaan de Groot
ad2edf4f82
Linking: Reduce library dependencies in welcome module
...
Welcome is only interested in checking partitions, not
in resizing them, so stick to one library. This will
become moot when the checks move to partitionmanager
and KPMCore can do the things.
2017-10-24 12:53:55 -04:00
Adriaan de Groot
d89b17a244
Clang: partman_devices.c is not, in fact, C++ code
2017-09-21 04:16:35 -04:00
Adriaan de Groot
34761c4214
Clang: reduce 0-as-nullptr warnings
2017-09-20 09:24:22 -04:00
Adriaan de Groot
337903db09
Clang: reduce warnings about overriden destructors
2017-09-20 09:11:18 -04:00
Adriaan de Groot
9693d7a5bd
Memory: clean up interface used to get memory (RAM) size
2017-09-20 09:11:02 -04:00
Adriaan de Groot
bd3786ebeb
Clang: reduce warnings in various places
2017-09-10 13:22:32 -04:00
Adriaan de Groot
a06911e9aa
Clang: refactor units-converters, reduce warnings
2017-09-10 13:22:32 -04:00
Adriaan de Groot
b22bd67a5f
Avoid race condition around libparted device use.
...
FIXES #782
2017-08-31 05:28:58 -04:00
Adriaan de Groot
d5dca07e22
Fix uninitialized values (valgrind report)
2017-08-31 04:13:18 -04:00
Adriaan de Groot
2fdccdf090
Merge branch 'simplify-module-desc'
2017-08-02 11:29:58 -04:00
Adriaan de Groot
445a7fc62a
CMake: remove welcome-module desc, since it's generated
2017-08-02 11:05:32 -04:00
Adriaan de Groot
4a5cee133f
About: adjust to the system font size.
...
FIXES #433
2017-07-12 07:43:47 -04:00
Adriaan de Groot
6fb40c517a
CMake: collect all the Find-modules at top-level
2017-07-11 06:26:56 -04:00
Adriaan de Groot
96ef18c2c4
CMake: help find libparted
2017-07-05 11:08:41 -04:00
Adriaan de Groot
d74627b705
CMake: remove superfluous module-path-setting
2017-07-05 10:21:25 -04:00
Adriaan de Groot
44e6955f19
Feature: allow disable welcome-logo resizing
2017-07-04 04:30:08 -04:00
Adriaan de Groot
ee4e4dfccc
C++ trickery to make the code shorter to read.
2017-07-03 18:07:18 -04:00
Adriaan de Groot
3ecd2f2ff6
Add self to copyright notice
2017-07-03 15:39:21 -04:00
Adriaan de Groot
90e8a6cff9
Shrink upper padding.
...
FIXES #591
2017-06-28 02:46:24 -04:00
Adriaan de Groot
cea9f0fb33
Clang: stick with integers
2017-06-27 09:28:32 -04:00
Adriaan de Groot
b0c4cc1481
Screensize: warn the user if the screen is too small to show the installer nicely.
...
Also document the welcome screen requirements-checks.
FIXES #751
2017-06-21 06:52:14 -04:00
Adriaan de Groot
f1cfde36d6
Allow different welcome message.
...
FIXES #592
2017-06-12 15:25:54 -04:00
Teo Mrnjavac
8215a633e2
Add fallback check for internet connection.
...
This only kicks in if QNAM's check is inconclusive. It sends a request
and tries to read data from a user-provided URL.
CAL-404 #close Should be fixed in master, please test.
2017-02-03 15:21:53 +01:00
Teo Mrnjavac
afd7ae3938
Update about text.
2017-01-20 16:18:23 +01:00
Teo Mrnjavac
f4dc81b0bc
Write hasInternet to GlobalStorage.
...
CAL-431 #close
2016-12-12 13:37:18 +01:00
Teo Mrnjavac
e2b2d761c2
Do not LINK_PUBLIC by default.
2016-12-07 16:37:29 +01:00
Kevin Kofler
f08739cd15
[welcome] Use QNetworkAccessManager in checkHasInternet.
...
Use QNetworkAccessManager instead of raw QtDBus queries to
NetworkManager in RequirementsChecker::checkHasInternet(). This is much
simpler (i.e., less error-prone) and should be more portable (to, e.g.,
ConnMan).
2016-11-05 22:11:57 +01:00
Kevin Kofler
6eb512ab49
[welcome] Fix RequirementsChecker::checkHasInternet().
...
The NetworkManager property is called "State", not "state". The call
was always failing, and the method was always returning true as a
result.
2016-11-05 20:34:13 +01:00
Teo Mrnjavac
a48dadf757
Warning in debug output when the RequirementsChecker is misconfigured.
...
CAL-390 #close
2016-09-16 10:54:39 +02: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
0521f8a3b9
Be sure to always write hasInternet into GlobalStorage.
2016-08-18 15:28:55 +02:00
Teo Mrnjavac
6926f239f7
Write hasInternet into GlobalStorage.
2016-08-18 11:27:53 +02:00
Teo Mrnjavac
a9c87e2f14
Fix bug with RAM/storage required settings being ignored if set as int.
2016-05-02 18:08:29 +02:00
Teo Mrnjavac
c54ab3aa59
Add translators credit.
2016-03-29 13:40:23 +02:00
Teo Mrnjavac
420c2cf7c4
PluginFactory in Welcome module.
2015-09-15 16:48:42 +02:00
Teo Mrnjavac
42e465aa10
CalamaresUtils::System is now a class.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
b636d69a45
Scale Welcome image correctly, adjust layouts throughout Welcome page.
2015-06-20 01:05:55 +02:00
Teo Mrnjavac
161046af43
Use ProductWelcome branding image, if available.
2015-06-20 00:19:12 +02:00
Teo Mrnjavac
3545e4fb86
Layout improvement.
2015-06-20 00:17:50 +02:00
Teo Mrnjavac
3bf0500f4e
Lay out optional Welcome buttons horizontally.
2015-06-19 23:24:34 +02:00
Teo Mrnjavac
bd7dd43c90
Hardcode Calamares logo in About.
...
CAL-241 #close
2015-06-16 02:38:07 +02:00
Teo Mrnjavac
83e368fbc4
Initialize all the things.
2015-06-14 02:19:34 +02:00
Teo Mrnjavac
003f8bb956
File descriptor must be positive.
2015-06-14 00:53:35 +02:00
Teo Mrnjavac
adad3535a8
Use the new physical memory checker.
2015-06-10 00:06:45 +02:00
Teo Mrnjavac
43698b18f5
Rearrange WelcomePage checker layout to make more space for reports.
2015-06-09 02:35:22 +02:00
Teo Mrnjavac
02f4ab1501
Check for root privileges.
2015-06-09 02:13:22 +02:00
Teo Mrnjavac
320a96423f
Add a 5% grace to the RAM check because Linux MemTotal is unreliable.
2015-06-08 19:28:52 +02:00
Teo Mrnjavac
994db0973f
Try removing the centered icon from CheckerWidget
2015-05-18 12:47:11 +02:00
Teo Mrnjavac
235d0058c9
Set dialog title.
2015-05-16 19:42:51 +02:00
Teo Mrnjavac
e09976d91c
Add details dialog to requirements widget.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
2fd84fc9f7
Layout fixes in Welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
51f74315f6
Refactor CheckerWidget for better integration with Welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7622abce94
Add negated text to requirement entries.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
f0dc3d5ae6
Layout fixes in welcome page.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
43992c5251
Hook up RequirementsChecker with the WelcomeViewStep.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
e19264632d
Merge prepare config file into welcome.conf.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
ceedc1166b
Merge prepare module into welcome, and repurpose it as a req checker.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
3dd1d7932f
Fix up identifiers + use QComboBox instead of QListView.
2015-05-15 18:15:22 +02:00
Teo Mrnjavac
7bcb060967
The greeting module is now welcome.
2015-05-15 18:15:22 +02:00