mirror of
https://github.com/libratbag/piper.git
synced 2026-04-21 06:47:50 -04:00
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.
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<gresources>
|
|
<gresource prefix="/org/freedesktop/Piper">
|
|
<file>404.svg</file>
|
|
<file>enter-keyboard-shortcut.svg</file>
|
|
|
|
<file preprocess="xml-stripblanks">AboutDialog.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/ButtonDialog.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/ButtonRow.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/MousePerspective.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/LedDialog.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/OptionButton.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/ProfileRow.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/ResolutionRow.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/ResolutionsPage.ui</file>
|
|
<file preprocess="xml-stripblanks">ui/Window.ui</file>
|
|
<!-- Using this alias, GtkApplication will automatically pick it up for us. -->
|
|
<file alias="gtk/menus.ui" preprocess="xml-stripblanks">ui/Menus.ui</file>
|
|
</gresource>
|
|
</gresources>
|