Commit graph

54 commits

Author SHA1 Message Date
Eberhard Beilharz
ead69e7ee4
refactor(linux): Extract widgets to separate classes and files 2023-06-13 20:05:48 +02:00
Eberhard Beilharz
8b40330ed6
fix(linux): Fix display of installed keyboard version
Previously if there was a newer version available on keyman.com
we showed that version number instead of the version number of
the installed keyboard.
2023-06-07 18:58:07 +02:00
Eberhard Beilharz
a0af6de10a
chore(linux): Refactorings 2023-06-07 18:58:06 +02:00
Eberhard Beilharz
3b95bac798 fix(linux): Fix disabling of buttons
When we recently added the new column and changed the model we
didn't adjust all the existing references for the model fields.
This change fixes this and also extract some additional methods.
2023-06-07 18:57:20 +02:00
Eberhard Beilharz
4335923707 chore(linux): Refactorings 2023-06-07 18:57:20 +02:00
Eberhard Beilharz
f43f808a03
feat(linux): Rename column and add tooltip
Follow-up of #8631 where I forgot to add one of the changed files.
2023-06-02 17:31:48 +02:00
Eberhard Beilharz
fa66b42410
feat(linux): Add column for installation location
Closes #8631.
2023-05-31 17:40:35 +02:00
Eberhard Beilharz
7f9ef0d35b
feat(linux): Add option to disable Sentry
Closes #5027.
2023-05-30 18:32:28 +02:00
Eberhard Beilharz
4a0f061d4d
feat(linux): Use StackSidebar for km-config
This change displays tabs at the left. It also adds a dummy
"Options" page which isn't implemented yet.
2023-05-30 18:32:28 +02:00
Eberhard Beilharz
9c5718667c
fix(linux): Remove warning after pressing Close button
Fixes #8454.
2023-03-28 20:05:29 +02:00
Eberhard Beilharz
e1597914dd
fix(linux): Display error message for corrupt .kmp file
If the user tries to install a corrupt .kmp file we now display
an error message instead of just logging to the console and Sentry.

Fixes #8478.
2023-03-20 21:10:00 +01:00
Eberhard Beilharz
19a82a9ac8
Merge pull request #8006 from TheSchlunz/issue6288
feat(linux): Display error messages in the UI
2023-01-12 10:48:24 +01:00
Kevin Schluensen
6bc87991e0 feat(linux): Display error messages in the UI
Fixes #6288
2023-01-11 13:58:46 +01:00
Eberhard Beilharz
d54beee0ab
feat(linux): List fonts in the uninstall confirmation dialog
Fixes #3501
2023-01-09 16:52:09 +01:00
Eberhard Beilharz
ac763ed9bd
fix(linux): Implement refresh after keyboard installation
This will refresh the list of installed keyboards even when we
install a keyboard from a command line tool, or from a second
km-config instance.

Closes #6785.
2022-07-22 09:47:34 +02:00
Eberhard Beilharz
117ef77160
chore(linux): Sorting of imports 2022-07-18 15:19:50 +02:00
Eberhard Beilharz
0944d83f97
chore(linux): Code cleanup
Some reformatting.
2022-07-15 20:44:47 +02:00
Eberhard Beilharz
c8049a0cd2
fix(linux): Handle corrupt icon file
Fixes #5584.
2021-08-16 15:55:36 +02:00
Eberhard Beilharz
a2950bef7f
refactor(linux): Cleanup import of os.path
This change imports `os` instead of `os.path`. This is the
recommended way. It also reduces confusion whether to use
`os.path.whatever()` or just `path.whatever()`.
2021-08-04 12:24:07 +02:00
Eberhard Beilharz
35d506c977
refactor(linux): Centralize paths
Introduce methods to get paths instead of hard-coding the values.
This also deprecates four methods (`user_keyman_dir`,
`user_keyman_font_dir`, `user_keyboard_dir`, and `get_isntall_area_path`).

This change also fixes a crash trying to install a package in the
shared area.
2021-06-25 19:25:48 +02:00
Eberhard Beilharz
6b1cbb508d
fix(linux): Don't crash on invalid metadata
Fixes #5184
2021-05-28 18:30:24 +02:00
Eberhard Beilharz
1c8da049ab
feat(linux): Small UI improvements
- Remove "package" from the tooltips text since that might be
  confusing to users.
- Also make title of Welcome (Help) dialog optionally say "installed"
  instead of always so that we open that dialog via the Help button
  we just display the keyboard name.
- Refactor Keyboard Details dialog to remove an unnecessary box.
- Add padding after keyboard details in Keyboard Details dialog.
2020-08-20 15:22:50 +02:00
Eberhard Beilharz
11f018366b
feat(linux): Add i18n for Linux 2020-08-19 19:22:33 +02:00
Eberhard Beilharz
5618133d5d
Merge pull request #3376 from keymanapp/refactor/linux
refactor(linux): Small refactorings
2020-07-21 09:13:06 +02:00
Eberhard Beilharz
d86f381e03
fix(linux): Fix imports of GTK related modules
The version specification needs to come before importing methods.
2020-07-20 18:23:59 +02:00
Eberhard Beilharz
78b4187928
fix(linux): Use language from search when installing keyboard
When installing a keyboard install it under the language the user
searched for (if any).

This fixes #3282.
2020-07-20 11:10:05 +02:00
Eberhard Beilharz
5f214015c5
refactor(linux): cleanup code
This change adds a config file for flake8 Python linter and fixes
the problems the linter identified.
2020-06-23 17:15:23 +02:00
Eberhard Beilharz
8b9ad38767
fix(linux): Restart km-config after Install and Uninstall as well 2020-06-05 19:38:00 +02:00
Eberhard Beilharz
f848bf53ce
feat(linux): Make two more windows modal dialogs 2020-06-05 19:36:48 +02:00
Eberhard Beilharz
c18cfc7780
fix(linux): Restart km-config after installing keyboard
This fixes the problem where typing inside of km-config is not
possible after installing a keyboard.
2020-06-05 18:49:19 +02:00
Eberhard Beilharz
5659f6230c
feat(linux): Improve run methods 2020-06-04 19:42:30 +02:00
Eberhard Beilharz
1890016710
feat(linux): Make two windows modal dialogs
This change modifies DownloadKmpWindow and InstallKmpWindow so that
they are modal dialogs. This will cause them to show up in front of
the km-config window and will prevent accidentally open multiple
download windows.

This change also fixes an unused method in ibus_util that was using
a variable that got renamed previously.
2020-06-04 19:13:24 +02:00
Eberhard Beilharz
dabc1a84e4
fix(linux): Disable buttons if no keyboard installed
This change disables the uninstall, about, and help buttons in
km-config if the list of installed keyboards is empty.

This fixes #3181.
2020-05-28 17:09:55 +02:00
Darcy Wong
c83b390601 feat(linux): Add ability to configure keyboard options 2020-01-31 11:43:58 +07:00
Darcy
9f9df1fc0e Save icon as .bmp.png 2019-09-12 10:10:05 +07:00
Darcy
2beb0aa8f6 Save ico/bmp files to png 2019-09-11 10:06:44 +07:00
glasseyes
1a3217ec58 improve keyboard details
still very rough, needs ux advice
2018-11-26 16:11:18 +07:00
glasseyes
7651da276c refresh data for kmp installed manually
only happens when you open download window
which assumes you are online
2018-11-26 13:56:36 +07:00
glasseyes
a701eb3615 find either package or first keyboard icons
improve differentiating packageID and keyboardID in code
2018-11-23 11:18:43 +07:00
glasseyes
e1eaa91e3b [linux] add package name to tooltips 2018-10-05 09:29:34 +07:00
glasseyes
c4e9e52183 [linux] remove old km-config gui 2018-10-05 09:21:18 +07:00
glasseyes
a5af639dcb [linux] widget spacing tweaks 2018-10-05 09:16:14 +07:00
glasseyes
963df2489b [linux] new gui for km-config
based on look of ibus-setup
  listview of kmp on left
  buttons on right

tweak button positioning on the windows
title changed  to Keyman Configuration
after downloading and clicking install the download window now closes
2018-10-03 15:15:57 +07:00
glasseyes
afedf3ef7c [linux] WIP: new gui experiment
split ViewInstalledWindowBase from ViewInstalledWindow

plan for alt gui
2018-10-03 15:15:36 +07:00
glasseyes
46776bef10 [linux] WIP: gui review experimentation 2018-10-03 15:02:09 +07:00
glasseyes
89a2f7c559 [linux] install all files from kmp in shared install
i.e. install directly to /usr/local/share rather than
using temp dir
share more code between the user and shared installs

rename KM_KVK to KM_OSK for less typing confusion with KM_KMX
move user_keyman dir etc to get_kmp (avoids import problems)
2018-09-24 11:23:13 +07:00
glasseyes
ea1edfd79f [linux] user_keyboard_dir and user_keyman_dir
factor ~/.local/share/keyman location into a function

also keyman_cache_dir for the cache location
2018-09-24 09:53:22 +07:00
glasseyes
038af241d6 [linux] change to use enum InstallArea
to choose between user, shared and os
show keyboards from all 3 areas in km-config
but only allow uninstall from user area
2018-09-21 17:30:42 +07:00
glasseyes
7b6e971912 [linux] refactor keyman image search into a function
resize icons back to 16x16 on load to display in km-config
2018-09-18 10:58:55 +07:00
glasseyes
4def814908 [linux] install and use icons in local install 2018-09-17 15:13:46 +07:00