24 Commits (35a2bd3f0fd1ba1a46f0c08ec21a1f23cd577d79)

Author SHA1 Message Date
Adriaan de Groot 35a2bd3f0f [keyboard] Use Config's own finalize() 5 years ago
Adriaan de Groot 14c079d1d6 [keyboard] Replace own copy of status by the one from Config 5 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.
5 years ago
Adriaan de Groot 2126be6d6d Warnings-- (~T() override)
Consistently use
	~T() override;
in class declarations (so no virtual in front, and avoid
warnings due to the missing override in back).
5 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.
5 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 5 years ago
Camilo Higuita 835850c02a [keyboardq] apply the style script 5 years ago
Adriaan de Groot 9331a25905 [libcalamares] Remove Typedefs.h
- This small header file contained a few unrelated typedefs.
   Move those typedefs to the classes they relate to. This
   **does** mean that some consumers need to #include something
   else instead.
 - Use type names more consistently.

Editorial: why are **pages** responsible for creating the jobs?
6 years ago
Adriaan de Groot 0d56b9b9c5 Merge branch 'master' into i689-kayboard-layout 8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot ea07d9e1d8 Merge branch 'master' into i689-kayboard-layout 8 years ago
Adriaan de Groot 3527c82327 Clang: make private internal class less visible 8 years ago
Adriaan de Groot 88715b9a0f Keyboard: guess at layout based on locale
Split locale into <language>_<country> and go looking for keyboard
layouts that match. Do that in reverse, so look for country first.

- known weakness is el_CY (should get layout gr) because CY and el
  don't name any keyboard layout.
- known weakness are Hausa, Igbo .. which are ha_NG and ig_NG. They select
  keyboard layout ng, which is labeled "English (Nigeria)"; they ought
  to select ng(hausa) and ng(igbo), which are the right variant keyboard
  layouts to use.
- similar selecting a locale in Canada (en_CA, fr_CA, iu_CA ...) will
  select keyboard layout ca, which is for French-speaking Canada.
  Locale en_CA should select keyboard en -- e.g. en(us). But iu_CA
  (Inuktituk) needs layout ca(ike).
8 years ago
Teo Mrnjavac 5bf4bb8787 Make writeEtcDefaultKeyboard an option in keyboard.conf. 9 years ago
Teo Mrnjavac 09f650ecf5 Use KeyboardLayoutModel+QListView instead of QListWidget, and defer setxkbmap until keyboardSearch is over. 9 years ago
Gormogon e2d05cb9f2 Align Pointers 11 years ago
Kevin Kofler 9b75999706 keyboard: Preselect the current keyboard layout variant. 11 years ago
Teo Mrnjavac 52a1a28696 Fix focus handling in Keyboard page. 11 years ago
Kevin Kofler 86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
11 years ago
Kevin Kofler bfdcf0dbc0 keyboard: Coding style fixes. 11 years ago
Kevin Kofler 4f9f7d7858 keyboard: Write the keyboard model and layout settings to the root mount point.
This is implemented as a new SetKeyboardLayout job that does the work.

Portions of the code are adapted from systemd-localed's source code,
which is under a compatible license (LGPLv2.1+, can be converted to our
GPLv3+ license). I ported it from C to to C++/Qt and made some minor
tweaks to the mapping logic (from X11 to vconsole layouts) though.

Fixes #31.

Tested on a Fedora Remix (Kannolo 21) with the default module settings
(finds the converted X11 keymaps for the virtual console) and with
convertedKeymapPath: "" (does the legacy keymap conversion as expected).
11 years ago
Teo Mrnjavac cc2e49c6ae Store keyboard layout information in GlobalStorage. 11 years ago
Teo Mrnjavac e622fe4f99 Add prettyStatus to Keyboard module. 11 years ago
Teo Mrnjavac 7a99214ddb New keyboard viewmodule, based on the one from Manjaro's minst. 11 years ago