Peter F. Patel-Schneider
c07c30baef
device: handle error return on root feature
2024-08-23 19:41:10 -04:00
MattHag
af12f8df52
Remove incomplete developer docs
...
Auto generated code documentation is incomplete, remove it.
Related #2503
2024-08-23 18:44:52 -04:00
MattHag
48ff85ab94
Publish GitHub pages only on push to master
...
Avoid draft documentation from being published.
2024-08-23 18:44:14 -04:00
Peter F. Patel-Schneider
64a9aac0d5
docs: add information about Onboard Profiles overriding some settings
2024-08-10 10:42:28 -04:00
Peter F. Patel-Schneider
ce197b7093
doc: add wording to README.md that Solaar is not a device driver
2024-07-24 07:19:24 -04:00
IskandarMa
7b797f40f7
i18n: Chinese translations in .desktop files ( #2554 )
...
* translation(v1.1.13): update solaar.pot; fix missing zh_CN translation; fix some mis-leading translation in zh_CN
* fix translation error
* i18n: zh_CN/zh_TW/zh_HK in .desktop files
---------
Co-authored-by: IskandarMa <zhenghe.mt@alibaba-inc.com>
2024-07-15 23:49:37 -04:00
MattHag
67829c5807
Clean up imports ( #2537 )
...
* Remove import as _ in solaar startup
Related #2273
* Remove import as _ in listener
Related #2273
* Remove import as _ in cli init
Related #2273
* Remove import as _ in gtk
Related #2273
* Remove import as _ in show
Related #2273
* Remove import as _ in tray
Related #2273
* Remove import as _ in profiles
Related #2273
* Remove import as _ in config
Related #2273
* Remove import as _ in config panel
Related #2273
* Remove import as _ in window
Related #2273
* Remove import as _ in pair
Related #2273
* Remove import as _ in pair window
Related #2273
* Remove import as _ in cli package
Related #2273
* Remove import as _ in ui package
Related #2273
* Remove commented out code
Related #2273
* Use constant for Logitech ID
2024-07-15 08:37:18 -04:00
Peter F. Patel-Schneider
d9d67ed738
device: handle unknown device kinds
2024-07-02 10:59:16 -04:00
Peter F. Patel-Schneider
71d2a50cb4
docs: fix broken links to Solaar logo
2024-07-02 07:57:00 -04:00
IskandarMa
25b9ba70d2
po: Update zh_CN translation ( #2541 )
...
* translation(v1.1.13): update solaar.pot; fix missing zh_CN translation; fix some mis-leading translation in zh_CN
* fix translation error
---------
Co-authored-by: IskandarMa <zhenghe.mt@alibaba-inc.com>
2024-07-01 08:04:34 -04:00
MattHag
59b30706b8
docs: Use mkdocs for public documentation ( #2527 )
...
* Add mkdocs config
Build and debug docs locally:
mkdocs serve
* Add mkdocs config
* Introduce GitHub action for mkdocs
* Delete outdated doc files
* Generate Python documentation
* Clean up docs
- Remove ToDos from public docs
2024-07-01 08:03:50 -04:00
MattHag
f40a5cc7a9
Clean up setup.py ( #2536 )
...
- Indent description
- Remove commented code
Related #2273
2024-06-29 15:23:38 -04:00
proletarius101
6d4cf80c89
docs: dead links in the AppStream file ( #2539 )
2024-06-29 15:22:25 -04:00
Anderson Silva
8ab8cb0225
docs: Update about.py ( #2535 )
...
Update copyright date in about page to reflect current year (2024)
Follow-up to #2074
2024-06-23 17:56:52 -04:00
Peter F. Patel-Schneider
3aa064b40f
settings: finish change to new constants
2024-06-13 10:01:50 -04:00
Peter F. Patel-Schneider
db93e9ab10
hidapi: remove check on driver
2024-06-13 07:44:47 -04:00
Peter F. Patel-Schneider
a7784b40ab
cli: finish change to show.py for new constants
2024-06-13 05:54:36 -04:00
MattHag
86b55b9c25
Introduce Enum BusID
...
Distinguishes Bluetooth and USB devices.
2024-06-03 08:37:02 -04:00
MattHag
7f5e156fa1
Introduce constant for Logitech vendor ID
...
The Vendor ID for Logitech is 0x46D = 1133.
2024-06-03 08:37:02 -04:00
MattHag
d67466298b
Introduce Enum for notification types
2024-06-03 08:37:02 -04:00
MattHag
9726b93a78
Improve base module
...
Use clearer names and type hints.
2024-06-03 08:37:02 -04:00
MattHag
e316ed1bc2
Remove unnecessary receiver info 'hid_driver'
...
The same constant is used everywhere.
2024-06-03 08:37:02 -04:00
MattHag
a5ded24057
Convert HIDPPNotification to dataclass
...
Replaces the very last namedtuple.
2024-06-03 08:37:02 -04:00
Peter F. Patel-Schneider
2113e63a75
device: be defensive when converting battery status to string
2024-06-03 08:33:11 -04:00
MattHag
104556e7a3
Automatically detect packages in /lib
...
Automate handling of internal packages.
2024-06-02 10:42:57 -04:00
MattHag
be83dac209
hid: Convert definition of HID registers to enum
...
* Refactor HID Register definitions
Use enums for distinct type hints, easy discovery of registers.
Make constants uppercase and benefit from enum auto-completion.
Related #2273
* Improve type hints: Registers
2024-06-02 10:34:00 -04:00
MattHag
c23ebcd267
Use double quotes for module level docstrings
...
Make module level docstrings distinguishable from license text.
Related #2273
2024-06-02 09:54:21 -04:00
MattHag
5a63e44d58
Remove empty comment lines
...
Remove hashtags solely used for structuring.
Related #2273
2024-06-02 09:54:21 -04:00
MattHag
244d0ee88a
solaar: clean up locale code
...
Usage example for German:
LC_ALL=de_DE.UTF-8 solaar
Related #2507
2024-06-01 12:09:55 -04:00
Peter F. Patel-Schneider
089b85676f
docs: update built-in rules
2024-06-01 11:59:57 -04:00
MattHag
cece723ea4
docs: Improve rules documentation
...
- Page heading
- Fix heading levels
- Improve some names
2024-05-27 12:50:42 -04:00
MattHag
c29231bc6b
refactor: Creation of devices ( #2493 )
...
* Refine interfaces for testability
* Reenable fixed device tests
2024-05-27 11:58:16 -04:00
MattHag
faf27ca323
docs: Add headings to structure rules.md
...
Allow users to find relevant information without reading a
long wall of text.
2024-05-27 09:55:41 -04:00
MattHag
815dce07be
Unify imports in logitech package
...
Related #2273
2024-05-23 16:42:18 -04:00
Peter F. Patel-Schneider
90b0db6c3b
device: don't ping device when getting name or codename
2024-05-22 21:22:08 -04:00
Matthias Hagmann
c9dc232951
Refactor: Use dataclasses and enums
...
Replace unnecessary NamedInts in favour of default data types.
Simplify interfaces by reducing possible input from strings to members
of an enum.
2024-05-22 21:14:41 -04:00
Matthias Hagmann
469c04faaf
Introduce Device protocol and type hints
2024-05-22 21:14:41 -04:00
Matthias Hagmann
675cd6ee34
Add typing_extensions dependency
2024-05-22 21:14:41 -04:00
Matthias Hagmann
193dbfda21
hidpp10: Move independent functions to module level
2024-05-22 21:14:41 -04:00
Matthias Hagmann
7d171b1d09
Refactor: Use dataclasses and enums
...
Replace NamedTuples with more flexible dataclass, which also support
type hints. Introduce enums to replace constant strings, which need to
be kept in sync. Also enhances interfaces by limiting it to the enum
values. Remove unused variables.
2024-05-22 21:14:41 -04:00
MattHag
500b9998c5
Fix macOS compatibility and reenable CI tests
...
* Fix CI for macOS
* Fix error message for missing hidapi
* Skip some device and receiver tests on macOS
Tests fail on macOS, enable them when unit tests are
refined to only test the module without dependencies.
* Safe guard dbus import
2024-05-22 18:45:40 -04:00
MattHag
a9ce033cc8
docs: Update README.md
...
Related #2485
2024-05-16 17:48:33 -04:00
MattHag
9882d99125
docs: Add high-level graph of components
...
Gives an overview of the main components of Solaar and
their connections.
2024-05-16 15:59:41 -04:00
MattHag
d0a3e474c7
hidapi: Unify imports in hidapi package ( #2487 )
...
Remove all 'import xyz as _xyz' and favor import of module name to
get more context in the code.
Related #2273
2024-05-16 15:58:22 -04:00
MattHag
f15a50b4b2
docs: Move screenshots into dedicated folder
...
Clean up docs folder.
2024-05-16 15:55:44 -04:00
david_david
9d2cedbefe
po: Update French translation (for release 1.1.13)
...
- by David Geiger david.david@mageialinux-online.org
2024-05-12 09:58:51 -04:00
MattHag
b321167304
Drop support for end-of-life Python 3.7
...
* Drop support for end-of-life Python 3.7
* Remove handling of code for Python 3.7 and older
2024-05-11 11:48:32 -04:00
Peter F. Patel-Schneider
ea77335ecf
release 1.1.13
2024-05-11 11:35:41 -04:00
MistificaT0r
bfc06502c1
po: update Russian translation
2024-05-09 06:06:59 -04:00
Matthaiks
413d449188
po: Update Polish translation
2024-05-08 16:32:22 -04:00