[gnome-system-monitor/libreajans/gnome-system-monitor-helpoverlay: 1/2] Add help-overlay.ui and related changes



commit 31bdf4e20ea21a39ef6001572cd275772e50dc04
Author: Sabri Ünal <libreajans gmail com>
Date:   Sun Feb 9 21:37:37 2020 +0300

    Add help-overlay.ui and related changes

 data/help-overlay.ui  | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 data/menus.ui         |   4 ++
 po/POTFILES.in        |   1 +
 src/gsm.gresource.xml |   1 +
 4 files changed, 156 insertions(+)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
new file mode 100644
index 00000000..457e7f1d
--- /dev/null
+++ b/data/help-overlay.ui
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <object class="GtkShortcutsWindow" id="help_overlay">
+    <property name="modal">true</property>
+    <child>
+      <object class="GtkShortcutsSection">
+        <property name="visible">true</property>
+        <property name="section-name">shortcuts</property>
+        <property name="max-height">13</property>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">true</property>
+            <property name="title" translatable="yes" context="shortcut window">General</property>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">F1</property>
+                <property name="title" translatable="yes" context="shortcut window">Show help</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">F10</property>
+                <property name="title" translatable="yes" context="shortcut window">Open menu</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;question</property>
+                <property name="title" translatable="yes" context="shortcut window">Keyboard 
shortcuts</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;Q</property>
+                <property name="title" translatable="yes" context="shortcut window">Quit</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;F</property>
+                <property name="title" translatable="yes" context="shortcut window">Search</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Alt&gt;1</property>
+                <property name="title" translatable="yes" context="shortcut window">Show Processes</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Alt&gt;2</property>
+                <property name="title" translatable="yes" context="shortcut window">Show Resources</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Alt&gt;3</property>
+                <property name="title" translatable="yes" context="shortcut window">Show File 
Systems</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;R</property>
+                <property name="title" translatable="yes" context="shortcut window">Refresh</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">true</property>
+            <property name="title" translatable="yes" context="shortcut window">Processes</property>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;D</property>
+                <property name="title" translatable="yes" context="shortcut window">Show 
dependencies</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Alt&gt;Return</property>
+                <property name="title" translatable="yes" context="shortcut window">Show process 
properties</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;M</property>
+                <property name="title" translatable="yes" context="shortcut window">Memory maps</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;O</property>
+                <property name="title" translatable="yes" context="shortcut window">Open files</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;S</property>
+                <property name="title" translatable="yes" context="shortcut window">Send stop 
signal</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;C</property>
+                <property name="title" translatable="yes" context="shortcut window">Send continue 
signal</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;E</property>
+                <property name="title" translatable="yes" context="shortcut window">Send End 
signal</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">true</property>
+                <property name="accelerator">&lt;Primary&gt;K</property>
+                <property name="title" translatable="yes" context="shortcut window">Send Kill 
signal</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">true</property>
+            <property name="title" translatable="yes" context="shortcut window">File Systems</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/data/menus.ui b/data/menus.ui
index 94a331bd..534765cb 100644
--- a/data/menus.ui
+++ b/data/menus.ui
@@ -67,6 +67,10 @@
         <attribute name="label" translatable="yes">Help</attribute>
         <attribute name="action">app.help</attribute>
       </item>
+      <item>
+        <attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
+        <attribute name="action">win.show-help-overlay</attribute>
+      </item>
       <item>
         <attribute name="label" translatable="yes">About System Monitor</attribute>
         <attribute name="action">win.about</attribute>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3153f4e4..ecb6d691 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,6 +4,7 @@ gnome-system-monitor.desktop.in.in
 gnome-system-monitor-kde.desktop.in.in
 gnome-system-monitor.appdata.xml.in
 org.gnome.gnome-system-monitor.policy.in.in
+data/help-overlay.ui
 data/interface.ui
 data/lsof.ui
 data/menus.ui
diff --git a/src/gsm.gresource.xml b/src/gsm.gresource.xml
index d6b4a8dd..a8abf390 100644
--- a/src/gsm.gresource.xml
+++ b/src/gsm.gresource.xml
@@ -9,5 +9,6 @@
     <file preprocess="xml-stripblanks">data/menus.ui</file>
     <file preprocess="xml-stripblanks">pixmaps/download.svg</file>
     <file preprocess="xml-stripblanks">pixmaps/upload.svg</file>
+    <file preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">data/help-overlay.ui</file>
   </gresource>
 </gresources>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]