Commit Graph

56 Commits

Author SHA1 Message Date
Peter Hutterer
cbbf2c8ae5 meson.build: 0.2.903
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-01-24 14:08:57 +10:00
Jente Hidskes
4d5a798814 ResolutionRow: remove delete button
This hasn't been added yet and likely won't in the foreseeable future.
2019-01-22 09:10:35 +10:00
Jente Hidskes
41cafa4b4d Replace appmenu with window-local menu
There's an initiave in GNOME to replace app menus with "in-window"
menus: https://gitlab.gnome.org/GNOME/Initiatives/issues/4

This commit brings Piper in line with this new approach.

Fixes #267.
2019-01-15 12:48:02 +10:00
Jente Hidskes
2f02cd035c MousePerspective: generalize notification_commit
The Resync signal is emitted in a number of scenarios, so informing the
user that a commit went wrong might not be the actual problem. Hence, we
generalize the notification for all kinds of errors.
2019-01-10 10:03:02 +10:00
Peter Hutterer
06973d1234 mouseperspective: don't show the profile button if we only have one profile
Fixes #270

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:40:38 +01:00
Peter Hutterer
c279fcbc92 Hide the "add a resolution" button
This hasn't been implemented in over a year, let's hide it from sight. Maybe
that spurns someone on to actually implement it.

It's an improvement to the GUI either way because the message printed to stdout
wouldn't be seen by most users starting the Piper through e.g. gnome shell. So
it just looks like the button is broken.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:37:19 +01:00
Peter Hutterer
8dc1a04e00 data: update the contributor list
From git shortlog, with the emails removed because I'm pretty sure just
because you sent a patch once to piper doesn't mean everyone needs to know
your email address.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-13 10:55:13 +02:00
Piotr Drąg
cc59902a65 Use Unicode typography in user-visible strings
See https://developer.gnome.org/hig/stable/typography.html
2018-09-12 18:44:29 +02:00
Piotr Drąg
fbbc4235a0 data: add translator credits to the About dialog 2018-09-12 18:43:56 +02:00
Jente Hidskes
271207eb35 LedDialog: use new effect duration in ms
libratbag/libratbag#422 introduced effect duration in ms for LEDs as opposed to
effect rate in Hz, as was discussed in #175. This commit updates Piper's
UI to reflect these changes.

Fixes #175.
2017-11-22 14:19:18 +10:00
Peter Hutterer
39ddd053da Led: add an image for the led off page
Ah, what a beautiful night sky...

The CSS background taken from the control-center scroll test page. Apparently
we can't use the SVG background and have to do this manually.

Fixes #45
2017-10-25 17:27:05 +02:00
Jente Hidskes
6e240c5e36 WelcomePerspective: add context on the same string 2017-08-24 07:06:04 +10:00
Jente Hidskes
19f6e1e7c0 ButtonDialog: s/left-handedness/left-handed 2017-08-24 07:06:04 +10:00
Peter Hutterer
10a7663696 data: make the Welcome title translatable 2017-08-23 19:08:56 +10:00
Peter Hutterer
e0db4749d9 data: make the "Oh Oh" title translatable 2017-08-23 19:08:56 +10:00
Peter Hutterer
f04a0e94a5 ui: limit the length of macros displayed in the option box
Otherwise it stretches the whole GUI
2017-08-23 09:50:38 +02:00
Jente Hidskes
0d54a60df2 Add context where needed for translators 2017-08-23 12:38:51 +10:00
Jente Hidskes
b7dd69df53 ButtonDialog: match "Send Keystroke" label with that in the .ui file 2017-08-23 12:38:51 +10:00
Jente Hidskes
8795e7dd5f ButtonDialog: break lines after max character width 2017-08-23 09:09:36 +10:00
Peter Hutterer
8001b74c6d ButtonDialog: when pressing Apply, make sure we commit the current macro 2017-08-23 09:06:59 +10:00
Peter Hutterer
52c70acfbf ui: reconnect the radio button signal handler for left/right handed
Lost in 2965979484
2017-08-22 14:04:59 +02:00
Jente Hidskes
2965979484 ButtonDialog: move handedness to its separate stack page 2017-08-21 12:50:44 +02:00
Jente Hidskes
6dc3a54f71 ButtonDialog: add a search entry to search mappings
Fixes #77.
2017-08-21 12:50:44 +02:00
Jente Hidskes
2c522002e6 ButtonDialog.ui: do not track links in labels 2017-08-21 11:06:38 +02:00
Jente Hidskes
c16fbb51c7 UI files: consistently use (untranslatable) placeholder labels 2017-08-21 11:06:38 +02:00
Jente Hidskes
cd6c528608 UI files: unmark placeholder strings as translatable 2017-08-21 11:06:38 +02:00
Jente Hidskes
d19895c380 Remove old piper code from the tree 2017-08-21 10:58:36 +02:00
Jente Hidskes
f17e341dbe ResolutionRow: add label to highlight the active resolution
Fixes #80, #81.
2017-08-21 16:27:24 +10:00
Jente Hidskes
182f44ed40 MousePerspective: do not use show_all()
This again interferes with hiding widgets on purpose.
2017-08-17 09:50:52 +02:00
Jente Hidskes
d41b2ce547 ResolutionRow: rename title_label to dpi_label 2017-08-17 09:50:46 +02:00
Jente Hidskes
3c432d3c63 ButtonDialog: fix the tooltip for the macro row 2017-08-17 09:49:47 +02:00
Jente Hidskes
f74deb9cc9 ButtonDialog: do not track visited links 2017-08-17 09:49:47 +02:00
Jente Hidskes
31c6fc1c76 ButtonDialog: only allow swapping for left- and right buttons
Fixes #82.
2017-08-17 09:49:47 +02:00
Jente Hidskes
7fd66be80f MousePerspective: change button icon to text
Fixes #69.
2017-08-11 13:30:25 +01:00
Jente Hidskes
55e10bdfc8 ResolutionsPage: reduce width of the controls 2017-08-11 11:10:01 +01:00
Jente Hidskes
fb130e6719 MousePerspective: highlight the commit button when a profile gets dirty 2017-08-11 11:07:58 +01:00
Jente Hidskes
16256230be ResolutionRow: block the scale's value changed handler when initialising
This prevents the profile from becoming dirty while the MousePerspective
is initialising itself on a new device
2017-08-11 11:07:58 +01:00
Jente Hidskes
bdc11e2578 Window: request a default size
This size is determined to be the best one with the current set of
device SVGs in libratbag. It is set to ensure that the jump in size
caused by the MousePerspective populating itself when switched to is
minimal and the least disturbing. We can't populate the MousePerspective
in advance because we need to know the device.
2017-08-09 19:17:45 +01:00
Jente Hidskes
9d46dcb89a Add a WelcomePerspective if there is more than 1 device 2017-08-09 19:17:45 +01:00
Jente Hidskes
50205fbc46 Add an ErrorPerspective according to the empty state pattern
See https://developer.gnome.org/hig/stable/empty-placeholder.html.en and
https://github.com/gnome-design-team/gnome-mockups/tree/master/empty-app-states
2017-08-09 19:17:45 +01:00
Jente Hidskes
52bb5e3781 Introduce perspectives to manage different screens
The welcome and error screens both require a different "perspective"
into Piper, while being in the same window. For this reason, we
introduce a titlebar and a regular stack and the concept of a
"perspective", which is defined as a certain view into Piper.

A perspective needs to implement an interface of sorts of two methods:
one to retrieve its string name, and another to retrieve its widget titlebar.

Different scenarios can then show different perspectives, that have full
control over the main widget and the titlebar displayed. This commit
introduces the MousePerspective, which is a perspective showing the
mouse configuration. Future commits will add an ErrorPerspective and a
WelcomePerspective, and even further into the future we can add a
KeyboardPerspective as well.
2017-08-09 19:17:45 +01:00
Jente Hidskes
ee6f91bd49 ResolutionRow: do not display frame label "Resolution"
See #79
2017-08-04 08:49:42 +01:00
Jente Hidskes
83e215f08f ResolutionRow: remove "Resolution x"
See #75 and #79
2017-08-04 08:49:42 +01:00
Jente Hidskes
da3efd0374 Window: add profile switch popover
This commits adds the necessary bits in the UI to switch between
popovers. Following commits will propagate profile changes through the
rest of Piper so that all control widgets update corresponding to
profile changes.
2017-08-01 16:39:30 +01:00
Jente Hidskes
fc9d9bffc6 Keystroke: remove clear, add cancel 2017-08-01 10:22:34 +01:00
Jente Hidskes
e874c81c69 Merge key mappings with macros 2017-08-01 10:22:34 +01:00
Jente Hidskes
510e3b6b31 ButtonDialog: merge all stack pages into a list
For the user anyway, all different mappings will look the same. It makes
no sense to make this more complicated for them by separating them into
different concepts.
2017-08-01 10:22:34 +01:00
Jente Hidskes
334f3bf27e ButtonDialog: add special mapping page 2017-08-01 10:22:34 +01:00
Jente Hidskes
847d8fcf3a ButtonDialog: add key mapping stack page
ratbag's key mapping signature is forcing us to treat modifiers
different from regular keys. To detect them, we need several workarounds
over Gdk.EventKey which makes the code uglier than it could be. Perhaps
we should just skip this altogether and implement macros only; since
they don't differentiate between modifiers and regular keys all these
workaround can then be removed while providing the same functionality.
2017-08-01 10:22:34 +01:00
Jente Hidskes
0773bbcbca ButtonDialog: add button map page 2017-08-01 10:22:34 +01:00