Adriaan de Groot
18ed4c74ef
[libcalamares] Move more into the locale service
...
- Use namespace CalamaresUtils::Locale consistently for this service.
- Move locale-related non-GUI support code from the Welcome module
to libcalamares; these are generally useful. Both Label (naming a locale)
and LabelModel (managing a bunch of those Labels) have been moved.
2019-05-10 11:46:20 -04:00
Adriaan de Groot
b490e30a5e
[welcome] Use the new locale lookup after GeoIP gets a 2-letter code
2019-05-10 11:03:01 -04:00
Adriaan de Groot
69f05bd34a
Merge branch 'master' into shuffle-geoip
2019-05-10 08:04:36 -04:00
Adriaan de Groot
2a448c057d
[welcome] Provide API for updating the country
...
- Changing country will pre-select the language most likely
for that country (it doesn't, yet, since we don't have the data).
2019-05-10 07:53:44 -04:00
Adriaan de Groot
cb7c38daba
[welcome] Support GeoIP country lookup
2019-05-09 15:15:03 -04:00
Adriaan de Groot
502d43d111
[welcome] [partition] Rename GlobalStorage variable used for storage
...
- Change name passed into GS to use "GiB" instead of "GB", for
consistency. This needs to be done in consumers as well.
2019-05-06 16:39:14 +02:00
Adriaan de Groot
599b34c70e
[welcome] Rename GB variable to GiB
...
- User visible string with GiB
- Update documentation in welcome.conf to match code
- Rename variable because it was always GiB just named wrong
2019-05-06 16:31:23 +02:00
Adriaan de Groot
30a306f1b4
[welcome] Make check consistent with verbiage
...
SEE #1129
2019-05-06 16:18:19 +02:00
Adriaan de Groot
f1ddd0c233
[welcome] Simplify configuration code
2019-05-02 14:00:32 -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
c44e221fb6
Merge branch 'issue-1107'
...
FIXES #1107
2019-04-19 16:27:19 +02:00
Adriaan de Groot
81acc496dc
[welcome] Introduce a delegate for drawing the languages list
...
- Show the native name left, English name right
2019-04-19 13:40:28 +02:00
Adriaan de Groot
0b833b1e75
[welcome] Switch model to a list model
...
- There doesn't seem to be a real benefit to providing the
name and label as separate columns.
2019-04-19 11:38:43 +02:00
Adriaan de Groot
53fd1590b8
[welcome] Don't use combobox itemdata for locale information
2019-04-19 10:24:10 +02:00
Adriaan de Groot
e5d1c0ae27
[welcome] Fix matched-with-a-locale
...
- Previously the matchLocale() function set the index in the
combobox; do it separately now.
2019-04-19 10:15:57 +02:00
Adriaan de Groot
57452b8c38
[locale] [welcome] Adjust to moved LocaleLabel
...
- Adjust #includes
- In [welcome], use find() on the model rather than querying
the combo-box.
2019-04-19 10:10:36 +02:00
Adriaan de Groot
0c868dbd17
[welcome] Another find() overload
...
- Also find a specific locale
- While here, apply Calamares coding style
2019-04-19 09:39:19 +02:00
Adriaan de Groot
314aee8d68
[welcome] Switch to QVector
...
- QVector is a better match with passing in QStringList, otherwise
you end up dealing with Qt's int indexes vs. std::vector's uint
indexes everywhere.
- Introduce find()
2019-04-19 09:31:16 +02:00
Adriaan de Groot
94765d40cd
[welcome] Switch to using LocaleModel for language combobox
...
- Use the model instead of inserting items
- While here, tidy includes and documentation
2019-04-18 23:17:49 +02:00
Adriaan de Groot
589168685e
[welcome] Complete LocaleModel implementation
...
- It's a table with two columns (localized name and english name)
2019-04-18 23:16:02 +02:00
Adriaan de Groot
7f8411c3b7
[welcome] Add standard language-chooser icon
...
- After discussion with Red Hat UI advice, switch to standard icon
- Tooltip as well
2019-04-18 22:38:12 +02:00
Adriaan de Groot
f04d084548
[welcome] Start on a model for the locale choices
2019-04-18 14:27:37 +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
520478847c
Make logging more consistent.
...
- Across all the C++ modules, use Logger::SubEntry for sub/continues
log lines, instead of somewhat-random indent strings.
2019-04-15 09:02:21 -04:00
Adriaan de Groot
6cfb5a9c88
[welcome] Reduce unused-parameter warnings
...
- Don't use this if we don't need it (QObject::tr is static).
- C++14 allows (copy) binding to arbitrary expresstions in lambda's,
so detach from this.
2019-04-11 12:29:17 +02:00
Arnaud Ferraris
866afcfe47
[welcome] Adjust checker-messages for setup mode
...
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2019-04-08 13:42:15 +02:00
Adriaan de Groot
8ee2375ee6
[welcome] Adjust welcome message to setup-mode
2019-04-01 06:16:37 -04:00
Adriaan de Groot
43f6405714
[welcome] Simplify team listing
...
- There are a lot more contributors who should be named, but
it's not going to fit here. Instead, link to the website.
2019-03-17 04:43:42 -04:00
Adriaan de Groot
bc26c3e009
[welcome] Remove unused method
...
- This **should** be used, though. See #1104 . It should be used
somewhere else.
2019-03-11 17:25:21 -04:00
Adriaan de Groot
4d8acdf425
[welcome] Code-formatting
...
- Update copyright headers
- Apply calamaresstyle
2019-02-26 06:26:20 -05: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
bfb5a4efb9
[welcome] Chase file renaming
...
- Rename classes inside
- Rename include guards
2019-02-26 06:05:34 -05:00
Adriaan de Groot
1240f63a39
[welcome] Rename files to reflect their purpose
2019-02-26 05:09:54 -05:00
Adriaan de Groot
ba9a6981b3
[welcome] Fix SEGV
...
- In the retranslate function, need to check if the waiting
widget still exists.
- Tighten up lifetime of the CheckerWidget.
2019-02-26 05:08:07 -05:00
Adriaan de Groot
33bd6c67c0
[welcome] Without libparted, don't even check size available
2019-02-25 10:07:21 -05:00
Adriaan de Groot
8cf3c217f7
Merge branch 'requirements-checking'
2019-02-25 10:00:43 -05:00
Adriaan de Groot
9889bd6cbe
[welcome] Be louder when libparted is disabled
2019-02-25 08:54:35 -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
987cf36f51
[welcome] Use convenience types
2019-02-25 07:05:12 -05:00
Adriaan de Groot
8a8ec01380
[welcome] Don't enable next early
...
- Next was enabled early; presumably to cover the case that no requirements
were checked and the requirements checker never emitted an update signal.
Drop that since the module manager is now responsible for doing that checking.
2019-02-25 07:00:22 -05:00
Adriaan de Groot
452b51304d
[welcome] Update next button when checking is complete
2019-02-25 06:11:14 -05:00
Adriaan de Groot
c508e3ed4d
[welcome] Show progress during requirements checking
2019-02-24 09:07:44 -05:00
Adriaan de Groot
2cdfe35430
[welcome] Avoid threading warnings
...
- The NAM is being created from a method call on the GeneralRequirements
object in the requirements-checking thread, while the GR object itself
was created in a different thread. This cross-thread parenting
produces a warning, and we don't need the parent relationship here
anyway.
2019-02-23 17:14:52 -05:00
Adriaan de Groot
a19d81e38c
[welcome] Chase renaming of files
...
- Rename the classes to match
- Drop some unused includes
2019-02-23 12:29:59 -05:00
Adriaan de Groot
c1cd88d5fa
[welcome] Rename files before class-rename
2019-02-23 12:22:08 -05:00
Adriaan de Groot
18efcf2200
[welcome] Drop unnecessary parameter
2019-02-18 09:42:22 -05:00
Adriaan de Groot
d33752c66c
[libcalamaresui] Refactor Requirements classes
...
- improve naming of member variables
- expand documentation
2019-02-15 20:53:55 +01:00
Adriaan de Groot
43eae0bc47
Merge branch 'master' into requirements-checking
2019-02-15 00:32:45 +01:00
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.
2018-12-14 10:52:55 +01:00