55 Commits (4c3c6f3f91128a33ba4811df89a9f49bc7c6016c)

Author SHA1 Message Date
bill-auger 4c3c6f3f91
eliminate magic number in src/modules/welcome/WelcomePage.cpp 6 years ago
Adriaan de Groot 119f84d6c1 [welcome] Remove setupLinks() method, use generic
- the generic (enum-based) setupButton() can handle all four
   of the buttons, so setupLinks() can go away. Only the
   (re)translation of the text on the button needs to be
   done, so move that to the main RETRANSLATE.
6 years ago
Adriaan de Groot 64d4b0a46c [welcome] Switch API for buttons to an enum + string
- Handle buttons and their URL-opening in a more
   general way with an enum; drop existing three-boot
   method and special setupDonateButton()
 - Doesn't compile because consumers haven't changed.
6 years ago
Adriaan de Groot 03e506a826 [welcome] Add a donate button
FIXES #1197
6 years ago
Adriaan de Groot f54b7dee9f [welcome] Use convenience image loader from Branding 6 years ago
Adriaan de Groot 07c638ed48 [welcome] Allow theming the international language-select icon 6 years ago
Adriaan de Groot f18f9dcd14 [welcome] Lookup GeoIP language and pass to language widget
- FIXES #934
 - Whether this is really wanted depends on the distro, and I'm not
   100% convinced the likely tags from Unicode are correct (or it'd
   take a lot more data). In any case, starting Calamares in "NL"
   gets me "nl_NL" as translation; presumably starting it in "BE"
   will get me that as well (what about Les Wallons?)
 - This also shows off that it's a real hack to have so much program
   logic in the *widget* parts of each ViewStep. Longer-term,
   a lot of functionality should go to the ViewStep itself, which
   will then control the UI.
6 years ago
Adriaan de Groot 1857952431 [libcalamares] Add convenience accessor for translations
- Which translations are available is a global property
   of Calamares itself, not of the plugins, so getting
   the model of available translations should live there.
   Move the relevant code (which is simple) from the
   Welcome module.
6 years ago
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.
6 years ago
Adriaan de Groot 08e4090354 Merge remote-tracking branch 'origin/raurodse-branding'
FIXES #961
6 years ago
Adriaan de Groot 81acc496dc [welcome] Introduce a delegate for drawing the languages list
- Show the native name left, English name right
6 years ago
Adriaan de Groot 53fd1590b8 [welcome] Don't use combobox itemdata for locale information 6 years ago
Adriaan de Groot e5d1c0ae27 [welcome] Fix matched-with-a-locale
- Previously the matchLocale() function set the index in the
   combobox; do it separately now.
6 years ago
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.
6 years ago
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
6 years ago
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.
6 years ago
Adriaan de Groot 8ee2375ee6 [welcome] Adjust welcome message to setup-mode 6 years ago
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.
6 years ago
Adriaan de Groot c508e3ed4d [welcome] Show progress during requirements checking 6 years ago
Adriaan de Groot a19d81e38c [welcome] Chase renaming of files
- Rename the classes to match
 - Drop some unused includes
6 years ago
Adriaan de Groot 43eae0bc47 Merge branch 'master' into requirements-checking 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.
7 years ago
Harald Sitter 311af6de5d [locale] prefer native language and country names when available
This basically means we talk about localization in the respective
localized variant. e.g. "German (Germany)" ➡ "Deutsch (Deutschland)".

If geoip lookup failed or isn't configured for whatever reason it's a
stretch to expect the user to know english enough to find their own
language. Preferring the localized strings resolves this issue.

Additionally this happens to bypass #712 respectively
https://bugreports.qt.io/browse/QTBUG-34287
as the native names are properly spelled. So, as long as Qt has localized
names the names will also be properly spelled.
7 years ago
Adriaan de Groot bf40f3bd23 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot 975004fc63 [libcalamaresui] Document accessors in Branding
- document accessors
 - put all path and directory accessors together
 - make simple accessors inline
 - rename "pathprefix" to "directory" to be consistent with others
7 years ago
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").
7 years ago
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
7 years ago
Adriaan de Groot e5b599fbe3 [welcome] Drop accidental logging 7 years ago
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.
7 years ago
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.
7 years ago
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).
7 years ago
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.
7 years ago
Adriaan de Groot 6930400b67 DEBUG logging 7 years ago
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).
7 years ago
Adriaan de Groot e2b8fb0afe [welcome] Log if no translations matched at all 7 years ago
Adriaan de Groot a72bdfac52 Merge branch 'master' into requirements-checking 7 years ago
Adriaan de Groot a7d7f3a83b [welcome] Make link to Calamares site https 8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
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.
8 years ago
Adriaan de Groot 4a5cee133f About: adjust to the system font size.
FIXES #433
8 years ago
Adriaan de Groot ee4e4dfccc C++ trickery to make the code shorter to read. 8 years ago
Adriaan de Groot 3ecd2f2ff6 Add self to copyright notice 8 years ago
Adriaan de Groot 90e8a6cff9 Shrink upper padding.
FIXES #591
8 years ago
Adriaan de Groot f1cfde36d6 Allow different welcome message.
FIXES #592
8 years ago
Teo Mrnjavac afd7ae3938 Update about text. 9 years ago
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)
9 years ago
Teo Mrnjavac c54ab3aa59 Add translators credit. 9 years ago
Teo Mrnjavac b636d69a45 Scale Welcome image correctly, adjust layouts throughout Welcome page. 10 years ago
Teo Mrnjavac 3545e4fb86 Layout improvement. 10 years ago
Teo Mrnjavac bd7dd43c90 Hardcode Calamares logo in About.
CAL-241 #close
10 years ago