[gnome-builder] libide/tweaks: start on demo .ui merging



commit c697b45cc8f7393355124849a6b5d70e3b3dbab8
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 2 20:45:29 2022 -0700

    libide/tweaks: start on demo .ui merging
    
    The goal here is to scaffold most of Builder's new preferences, and then
    see how much we can do with just .ui files. The goal is the whole thing
    except a few custom widgets.

 src/libide/tweaks/tests/demo/000-base.ui           | 29 ++++++++++++++++++++++
 .../tweaks/tests/demo/010-visual-appearance.ui     | 15 +++++++++++
 src/libide/tweaks/tests/demo/020-visual-editor.ui  | 15 +++++++++++
 .../tweaks/tests/demo/030-visual-shortcuts.ui      | 15 +++++++++++
 src/libide/tweaks/tests/demo/040-code-languages.ui | 24 ++++++++++++++++++
 src/libide/tweaks/tests/demo/100-plugins.ui        | 15 +++++++++++
 6 files changed, 113 insertions(+)
---
diff --git a/src/libide/tweaks/tests/demo/000-base.ui b/src/libide/tweaks/tests/demo/000-base.ui
new file mode 100644
index 000000000..4a3737d4b
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/000-base.ui
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child>
+      <object class="IdeTweaksSection" id="visual_section">
+      </object>
+    </child>
+    <child>
+      <object class="IdeTweaksSection" id="code_section">
+      </object>
+    </child>
+    <child>
+      <object class="IdeTweaksSection" id="projects_section">
+      </object>
+    </child>
+    <child>
+      <object class="IdeTweaksSection" id="foundry_section">
+      </object>
+    </child>
+    <child>
+      <object class="IdeTweaksSection" id="external_section">
+      </object>
+    </child>
+    <child>
+      <object class="IdeTweaksSection" id="plugins_section">
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/src/libide/tweaks/tests/demo/010-visual-appearance.ui 
b/src/libide/tweaks/tests/demo/010-visual-appearance.ui
new file mode 100644
index 000000000..bf74db5cb
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/010-visual-appearance.ui
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child internal-child="visual_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="appearance_page">
+            <property name="icon-name">preferences-desktop-appearance-symbolic</property>
+            <property name="title" translatable="yes">Appearance</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/src/libide/tweaks/tests/demo/020-visual-editor.ui 
b/src/libide/tweaks/tests/demo/020-visual-editor.ui
new file mode 100644
index 000000000..61c7e36df
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/020-visual-editor.ui
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child internal-child="visual_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="editor_page">
+            <property name="icon-name">document-edit-symbolic</property>
+            <property name="title" translatable="yes">Text Editor</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/src/libide/tweaks/tests/demo/030-visual-shortcuts.ui 
b/src/libide/tweaks/tests/demo/030-visual-shortcuts.ui
new file mode 100644
index 000000000..71cd6f3c9
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/030-visual-shortcuts.ui
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child internal-child="visual_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="shortcuts_page">
+            <property name="icon-name">preferences-desktop-keyboard-shortcuts-symbolic</property>
+            <property name="title" translatable="yes">Keyboard Shortcuts</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/src/libide/tweaks/tests/demo/040-code-languages.ui 
b/src/libide/tweaks/tests/demo/040-code-languages.ui
new file mode 100644
index 000000000..28715133b
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/040-code-languages.ui
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child internal-child="code_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="languages_page">
+            <property name="icon-name">text-x-javascript-symbolic</property>
+            <property name="title" translatable="yes">Programming Languages</property>
+            <child>
+              <object class="IdeTweaksFactory" id="language_page_factory">
+                <property name="model">GtkSourceLanguages</property>
+                <child>
+                  <object class="IdeTweaksSubpage" id="language_page">
+                  </object>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>
diff --git a/src/libide/tweaks/tests/demo/100-plugins.ui b/src/libide/tweaks/tests/demo/100-plugins.ui
new file mode 100644
index 000000000..b3cac733f
--- /dev/null
+++ b/src/libide/tweaks/tests/demo/100-plugins.ui
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="IdeTweaks">
+    <child internal-child="plugins_section">
+      <object class="IdeTweaksSection">
+        <child>
+          <object class="IdeTweaksPage" id="plugins_page">
+            <property name="icon-name">builder-plugin-symbolic</property>
+            <property name="title" translatable="yes">Plugins</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>


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