Skip to content

Commit

Permalink
Add MPD Outputs dialog (resolves #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed May 29, 2022
1 parent e6fbafd commit 0f0e50f
Show file tree
Hide file tree
Showing 11 changed files with 433 additions and 143 deletions.
92 changes: 92 additions & 0 deletions internal/player/glade/outputs.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkDialog" id="OutputsDialog">
<property name="can-focus">False</property>
<property name="title" translatable="yes">MPD Outputs</property>
<property name="modal">True</property>
<property name="default-width">500</property>
<property name="default-height">300</property>
<property name="destroy-with-parent">True</property>
<property name="type-hint">dialog</property>
<property name="skip-taskbar-hint">True</property>
<signal name="map" handler="on_OutputsDialog_map" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox">
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="border-width">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes">Choose outputs MPD should use for playback.</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="OutputsScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkViewport" id="OutputsViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkListBox" id="OutputsListBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="selection-mode">browse</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
32 changes: 23 additions & 9 deletions internal/player/glade/player.glade
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="action-name">app.mpd.connect</property>
<property name="text" translatable="yes">Connect to MPD</property>
<property name="text" translatable="yes">_Connect to MPD</property>
</object>
<packing>
<property name="expand">False</property>
Expand All @@ -387,7 +387,7 @@
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="action-name">app.mpd.disconnect</property>
<property name="text" translatable="yes">Disconnect from MPD</property>
<property name="text" translatable="yes">_Disconnect from MPD</property>
</object>
<packing>
<property name="expand">False</property>
Expand All @@ -409,6 +409,20 @@
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkModelButton" id="AppOutputaModelButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="action-name">app.outputs</property>
<property name="text" translatable="yes">MPD _outputs…</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkSeparator">
<property name="visible">True</property>
Expand All @@ -417,7 +431,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
<property name="position">4</property>
</packing>
</child>
<child>
Expand All @@ -431,7 +445,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
<property name="position">5</property>
</packing>
</child>
<child>
Expand All @@ -442,7 +456,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
<property name="position">6</property>
</packing>
</child>
<child>
Expand All @@ -456,7 +470,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
<property name="position">7</property>
</packing>
</child>
<child>
Expand All @@ -465,12 +479,12 @@
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="action-name">app.shortcuts</property>
<property name="text" translatable="yes">Keyboard shortcuts…</property>
<property name="text" translatable="yes">_Keyboard shortcuts…</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
<property name="position">8</property>
</packing>
</child>
<child>
Expand All @@ -484,7 +498,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">8</property>
<property name="position">9</property>
</packing>
</child>
</object>
Expand Down
6 changes: 6 additions & 0 deletions internal/player/glade/shortcuts.glade
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
<property name="accelerator">&lt;ctrl&gt;&lt;shift&gt;i</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes">MPD Outputs</property>
<property name="accelerator">&lt;ctrl&gt;o</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes">Preferences</property>
Expand Down
Loading

0 comments on commit 0f0e50f

Please sign in to comment.