34 Commits (f38b518e861d154611461bf9740f0a7359082081)

Author SHA1 Message Date
Adriaan de Groot f38b518e86 [keyboard] Factor out lambdas to regular slots
- Long and complicated, nested, lambdas are not convenient for reasoning.
- The debug messages from the innermost lambda have a totally useless
  function name, which makes debugging harder.
5 years ago
Adriaan de Groot 18b805d43f [keyboard] Set initial values for model, layout, variant
When loading the lists, no initial string-value was being
set for the model, layout and variant; the configuration
could pass right through and pick up empty strings instead.
If the user does not change the model, the UI would show
"pc105" but the internal setting would still be empty.

FIXES #1668
5 years ago
Adriaan de Groot b191f39bdf [keyboard] Simplify config-loading
The machinery in `setConfigurationMap()` was just duplicating
checks already in place in the `getString()` and `getBool()`
methods, and there's no special need for efficiency here,
so prefer the more readable and short code.

("efficiency" here means "we're saving one method call in
case the configuration is not set")
5 years ago
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
6 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.
6 years ago
Adriaan de Groot 8457a00ad0 [keyboard] Fix group-switcher multiplying
FIXES #1556
6 years ago
Adriaan de Groot cd9c0ea781 [keyboard] Reduce debugging output 6 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.
6 years ago
Adriaan de Groot 87aafb2442 [keyboard] Tear up connections between widgets and model 6 years ago
Adriaan de Groot 365a2ad6fd [keyboard] Re-do the keyboard physical models model from scratch 6 years ago
Adriaan de Groot fe5757c7d1 [keyboard] Matching of layouts is very suspect 6 years ago
Adriaan de Groot 4f0d6a8f25 Merge branch 'calamares' into fix-keyboardq 6 years ago
Artem Grinev 4434e85d4d [keyboard] Simplified variable name 6 years ago
Artem Grinev 3552233bf1 [keyboard] Minor logic rework 6 years ago
Artem Grinev 6667ea834f [keyboard] Adjusted indents 6 years ago
Artem Grinev bfc60ad2cf [keyboard] Implemented X11 config writing for additional layout 6 years ago
Artem Grinev 0dd027af90 [keyboard] Fixed condition bug 6 years ago
Artem Grinev 19b1fb3358 [keyboard] Added explanatory comment for xkbmap_query_grp_option 6 years ago
Artem Grinev 384b1ba8c6 [keyboard] Swapped primary and additional layouts in selection 6 years ago
Artem Grinev 354dc1613a [keyboard] Removed unnecessary repacking in xkbmap_layout_args 6 years ago
Artem Grinev 09b5e42734 [keyboard] Minor additional layout info rework 6 years ago
Artem Grinev 17b9647016 [keyboard] Support for additional layout if current layout is not ASCII-
capable in live system
6 years ago
Adriaan de Groot 679f613955 [keyboard] Rename mysterious Config::init() to descriptive name 6 years ago
Adriaan de Groot c7c7e6a6c1 [keyboard] Move configuration to the Config object
- information from the configuration file -> Config object
- job creation -> Config object

Ignore keyboardq for now.
6 years ago
Adriaan de Groot 0f6602cad7 [keyboard] Improve xkb parsing 6 years ago
Adriaan de Groot ec42e3294f [keyboard] Refactor argument-lists for setxkbmap
- separate functions for model, and layout+variant settings
6 years ago
Adriaan de Groot b54273f904 [keyboard] Move all the keyboard (AbstractList)Models to the models file 6 years ago
Adriaan de Groot 1cd9b93a22 REUSE: Giant boilerplate cleanup
- point to main Calamares site in the 'part of' headers instead
  of to github (this is the "this file is part of Calamares"
  opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
  this is the 3-paragraph summary of the GPL-3.0-or-later, which has
  a meaning entirely covered by the SPDX tag.
6 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 6 years ago
Adriaan de Groot 192263cf9d [libcalamares][modules] Use compatibility for QString::split()
- Use the compatibility value, which has an enum value suitable
  for the Qt version in use.
6 years ago
Adriaan de Groot 24653c1cc6 [locale] C&P code with repeated bugs from QML branches 6 years ago
Camilo Higuita 835850c02a [keyboardq] apply the style script 6 years ago
Camilo Higuita 1a46e08cc2 [keyboard] changes to the keyboardmodel to work with qml 6 years ago
Camilo Higuita 0872de7910 [keyboard] Add Config object, split out a keyboardq
- Introduce new QML-ified module for the keyboard
- To share code, move *keyboard* module to a Config-object
6 years ago