9 Commits

Author SHA1 Message Date
Yaroslav Chvanov
58639e6008 ui: regenerate all UI files using current Glade version
This does not include all changes as for some reason Glade removes some
widgets and actions.
2023-03-03 16:35:36 +03:00
Yaroslav Chvanov
e08c018bc5 ui: require Gtk 3.22 in all UI files
Some of them produced warnings about certain properties being available
only in Gtk 3.22 or higher.
2023-03-03 16:02:15 +03: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
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
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
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
67ffb25e64 Window.ui: let Glade move things around 2017-07-27 09:36:42 +02:00
Jente Hidskes
b78aade8aa data/ui: add tooltips to control widgets
Every control widget should have a tooltip to explain its purpose.

Fixes #40
2017-07-27 09:36:42 +02:00
Jente Hidskes
fa5c72c8c0 data: move ui files into subdirs
It's getting quite messy to let's put in some structure.
2017-07-27 09:36:41 +02:00