6173 Commits (f088efdf848fd986a1f803e9554c804721ecf777)

Author SHA1 Message Date
Adriaan de Groot f088efdf84 [keyboard] Re-jig translation extraction
- Use classes to prompt lupdate to extract with a better
  context (e.g. the class name, rather than plain "QObject")
  so that the translation-lookup can use the named context.
- Add hard-coded "default" variant
- Add totally bogus Tajik translations, for testing purposes
4 years ago
Adriaan de Groot 1a5fa36fb6 i18n: build keyboard translations
This is the Wrong Thing To Do, but we'll do it for now: build the
keyboard translations into the executable. In the medium term
they should move to the modules that use them, with the re-vamp
of how translation changes are signalled.
4 years ago
Adriaan de Groot 4387b8061e [keyboard] Move responsibility for retranslation to Config
- only widgets get language change events, so we need to
  hook that up to the ViewSteps and inform the Config
  object so that it can (re)load translations for the
  keyboard data.
4 years ago
Adriaan de Groot 89a180ee58 [keyboard] Initial support for translated keyboard names 4 years ago
Adriaan de Groot b72eba8157 [libcalamares] Extend the Deleter-helper with "preserve"
Sometimes you want to keep the thing around after all.
4 years ago
Adriaan de Groot 7659dfdb9d [libcalamares] Expose a translations-loading function 4 years ago
Adriaan de Groot ac6c9fae4a [libcalamares] Do not use moved-from object 4 years ago
Adriaan de Groot 2e9a44269c [keyboard] Extracted strings from keyboard list 4 years ago
Adriaan de Groot 5a378090c2 [keyboard] Do not munge keyboard model name
The translation happens whenever this code is run, which may
not match the language the user subsequently selects.
It also causes general problems with the translation,
since we end up with a possibly-partly-translated name.
4 years ago
Adriaan de Groot 7ec8c454bd [keyboard] Ukranian needs a switcher, too 4 years ago
Adriaan de Groot 8457a00ad0 [keyboard] Fix group-switcher multiplying
FIXES #1556
4 years ago
Adriaan de Groot cd9c0ea781 [keyboard] Reduce debugging output 4 years ago
Adriaan de Groot 2e5301c5c9 [keyboard] Simplify back down to lambdas
- With debugging and untangling done, the lambdas are simple
  and short, so return to using them. One point of improvement
  might be to give the models suitable slots themselves,
  to avoid even this indirection.
4 years ago
Adriaan de Groot 0bf28b0b94 [keyboard] Sanity in setCurrentIndex() parameters 4 years ago
Adriaan de Groot 9e141636c5 [keyboard] Tidy up the debugging output, add docs 4 years ago
Adriaan de Groot 14a76a386a [keyboard] Replace broken-ish variants model with k-v list
- Use the just-refactored XKBListModel to store the xkb key-value
  pairs for variants, drop most of the complicated implementation,
  store just a single list of values.
4 years ago
Adriaan de Groot d536173d66 [keyboard] Factor out a 2-column k-v list 4 years ago
Adriaan de Groot 5afe54132b [keyboard] Use the models from Config
- Remove code that is duplicated in Config.
- Hook up UI for physical keyboard model, and back.
- For now, introduce some named slots with debugging output.
  This makes debugging a lot easier since we have function names
  to work with rather than anonymous lambdas
4 years ago
Adriaan de Groot 168be02c96 [keyboard] Hook up the model-selection again 4 years ago
Adriaan de Groot 87aafb2442 [keyboard] Tear up connections between widgets and model 4 years ago
Adriaan de Groot 193efe1710 [keyboard] Restore the notion of PC105 default index 4 years ago
Adriaan de Groot 6aedf4401f [keyboard] Apply coding style 4 years ago
Adriaan de Groot 365a2ad6fd [keyboard] Re-do the keyboard physical models model from scratch 4 years ago
Adriaan de Groot a1c70b46a1 [keyboard] Typo in comment 4 years ago
Adriaan de Groot 5f1d7b2e8d [keyboard] Rename UI widgets to make code clearer 4 years ago
Adriaan de Groot d464e98e89 [keyboard] Move remaining variables to Config
- Config already *has* everythind, but drop the useless copies
  and duplicated code from the Page
- Plug the models model into the Page
- While here, document the model / layout / variant distinctions

The code doesn't fill the UI properly, and the drop-down
for the models combobox is not right, but at least the data
is shared.
4 years ago
Adriaan de Groot fe5757c7d1 [keyboard] Matching of layouts is very suspect 4 years ago
Adriaan de Groot 4f0d6a8f25 Merge branch 'calamares' into fix-keyboardq 4 years ago
Adriaan de Groot dca9ae0c93
Merge pull request #1553 from LordTermor/calamares
Initial additional layout support for non-ASCII layouts
4 years ago
Artem Grinev 4434e85d4d [keyboard] Simplified variable name 4 years ago
Artem Grinev 3552233bf1 [keyboard] Minor logic rework 4 years ago
Artem Grinev 6667ea834f [keyboard] Adjusted indents 4 years ago
Artem Grinev 996c82160e [keyboard] fixed typo 4 years ago
Adriaan de Groot 4a3273d634 [keyboard] Remove superfluous variable (set to true, never changed) 4 years ago
Artem Grinev bfc60ad2cf [keyboard] Implemented X11 config writing for additional layout 4 years ago
Artem Grinev 0dd027af90 [keyboard] Fixed condition bug 4 years ago
Artem Grinev 19b1fb3358 [keyboard] Added explanatory comment for xkbmap_query_grp_option 4 years ago
Artem Grinev 384b1ba8c6 [keyboard] Swapped primary and additional layouts in selection 4 years ago
Artem Grinev 354dc1613a [keyboard] Removed unnecessary repacking in xkbmap_layout_args 4 years ago
Artem Grinev 09b5e42734 [keyboard] Minor additional layout info rework 4 years ago
Artem Grinev 17b9647016 [keyboard] Support for additional layout if current layout is not ASCII-
capable in live system
4 years ago
Adriaan de Groot 8cf3bd23b9 [keyboardq] Remove superfluous variable (set to true, never changed) 4 years ago
Adriaan de Groot 734dbece8a [keyboardq] Fix include style, remove unnecessary declarations 4 years ago
Adriaan de Groot 0947cd8354 [keyboard] Migrate to Config::onActivate() which is badly-named 4 years ago
Adriaan de Groot 0ffa500432 [keyboard] Remove unused code
- this has already migrated to Config but had not been removed locally
4 years ago
Adriaan de Groot 35a2bd3f0f [keyboard] Use Config's own finalize() 4 years ago
Adriaan de Groot 14c079d1d6 [keyboard] Replace own copy of status by the one from Config 4 years ago
Adriaan de Groot acb5190217 [keyboard] Use Config methods rather than own copy
- this continues the port of the keyboard module to use the Config
  object, which was horribly botched earlier.
4 years ago
Adriaan de Groot 679f613955 [keyboard] Rename mysterious Config::init() to descriptive name 4 years ago
Adriaan de Groot a940be2bb4 [keyboardq] Load configuration into Config object 4 years ago