gem-graph-client/ui/gemgraph.ui

216 lines
9.2 KiB
Plaintext
Raw Normal View History

2022-06-24 20:02:09 +02:00
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.10.2 -->
<interface>
<!-- interface-name gem-graph.ui -->
<requires lib="gtk" version="4.6"/>
<requires lib="libadwaita" version="1.1"/>
<template class="main" parent="GtkApplicationWindow">
<property name="default-height">720</property>
<property name="default-width">1080</property>
<property name="icon-name">application-x-executable</property>
2022-06-30 16:43:22 +02:00
<property name="title">GemGraph 0.0.1</property>
2022-06-24 20:02:09 +02:00
<child type="titlebar">
<object class="AdwHeaderBar" id="main_titlebar">
<child type="end">
<object class="GtkMenuButton" id="main_button_menu">
<property name="direction">none</property>
2022-06-30 16:43:22 +02:00
<property name="menu-model">main_menu</property>
2022-06-24 20:02:09 +02:00
</object>
</child>
<child type="start">
<object class="GtkMenuButton" id="main_button_mode">
<property name="always-show-arrow">True</property>
2022-06-30 16:43:22 +02:00
<property name="use-underline">True</property>
<property name="tooltip-text" translatable="yes">Change session mode</property>
2022-06-24 20:02:09 +02:00
<property name="icon-name">document-edit-symbolic</property>
2022-06-30 16:43:22 +02:00
<property name="menu-model">mode_menu</property>
2022-06-24 20:02:09 +02:00
</object>
</child>
<child>
<object class="GtkToggleButton" id="main_button_sidebar">
<property name="icon-name">sidebar-show-symbolic</property>
2022-06-30 16:43:22 +02:00
<property name="tooltip-text" translatable="yes">Display/hide sidebar</property>
2022-07-28 23:27:24 +02:00
<property name="action-name">app.togglesidebar</property>
2022-06-24 20:02:09 +02:00
</object>
2022-06-30 16:43:22 +02:00
<!-- <object class="GtkLabel" id="is_modified"> -->
<!-- <property name="halign">end</property> -->
<!-- <property name="hexpand">true</property> -->
<!-- <property name="label">•</property> -->
<!-- <property name="margin-end">6</property> -->
<!-- <property name="visible">true</property> -->
<!-- </object> -->
2022-06-24 20:02:09 +02:00
</child>
</object>
</child>
<child>
<object class="AdwToastOverlay" id="toast_overlay">
<property name="child">
<object class="GtkPaned" id="main_paned">
<property name="position">300</property>
2022-07-28 23:27:24 +02:00
<child>
<object class="GtkStack" id="side_stack">
<child>
<object class="GtkStackPage">
<property name="name">side_run</property>
<property name="child">
<object class="GtkLabel" id="labelsiderun">
<property name="justify">center</property>
<property name="label" translatable="yes">&lt;b&gt;Sidebar: run mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
2022-08-02 10:29:48 +02:00
<child>
<object class="GtkStackPage">
<property name="name">side_home</property>
<property name="child">
<object class="GtkLabel" id="labelsidehome">
<property name="justify">center</property>
<property name="label" translatable="yes">&lt;b&gt;Sidebar: home&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">side_presentation</property>
<property name="child">
<object class="GtkLabel" id="labelsidepresentation">
<property name="justify">center</property>
<property name="label" translatable="yes">&lt;b&gt;Sidebar: presentation mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">side_edit</property>
<property name="child">
<object class="GtkLabel" id="labelsideedit">
<property name="justify">center</property>
<property name="label" translatable="yes">&lt;b&gt;Sidebar: edit mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
2022-07-28 23:27:24 +02:00
</object>
</child>
<child>
<object class="GtkStack" id="main_stack">
<child>
<object class="GtkStackPage">
<property name="name">main_run</property>
<property name="child">
<object class="GtkLabel">
<property name="halign">center</property>
<property name="label" translatable="yes">&lt;b&gt;Main zone: run mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
2022-08-02 10:29:48 +02:00
<child>
<object class="GtkStackPage">
<property name="name">main_home</property>
<property name="child">
<object class="GtkLabel">
<property name="justify">center</property>
<property name="label" translatable="yes">&lt;b&gt;Main zone: home&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">main_presentation</property>
<property name="child">
<object class="GtkLabel">
<property name="halign">center</property>
<property name="label" translatable="yes">&lt;b&gt;Main zone: presentation mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">main_edit</property>
<property name="child">
<object class="GtkLabel">
<property name="halign">center</property>
<property name="label" translatable="yes">&lt;b&gt;Main zone: edit mode&lt;/b&gt;</property>
<property name="use-markup">True</property>
</object>
</property>
2022-07-28 23:27:24 +02:00
</object>
</child>
2022-07-28 23:27:24 +02:00
</object>
</child>
2022-06-30 16:43:22 +02:00
</object>
</property>
</object>
2022-06-24 20:02:09 +02:00
</child>
</template>
2022-06-30 16:43:22 +02:00
2022-07-28 23:27:24 +02:00
<menu id="main_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Open...</attribute>
2022-08-02 10:29:48 +02:00
<attribute name="action">app.openfile</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Close</attribute>
2022-08-02 10:29:48 +02:00
<attribute name="action">app.closefile</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Save</attribute>
2022-08-02 10:29:48 +02:00
<attribute name="action">app.savefile</attribute>
</item>
</section>
2022-06-30 16:43:22 +02:00
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</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 GemGraph</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
2022-07-28 23:27:24 +02:00
</menu>
<menu id="mode_menu">
2022-06-30 16:43:22 +02:00
<section>
<attribute name="label" translatable="yes">Switch session mode</attribute>
<item>
2022-07-28 23:27:24 +02:00
<attribute name="icon">document-edit-symbolic</attribute>
2022-06-30 16:43:22 +02:00
<attribute name="label" translatable="yes">_Edit</attribute>
2022-07-28 23:27:24 +02:00
<attribute name="action">app.editmode</attribute>
<attribute name="use-icon">True</attribute>
2022-06-30 16:43:22 +02:00
</item>
<item>
2022-07-29 10:59:57 +02:00
<attribute name="icon">system-run-symbolic</attribute>
2022-06-30 16:43:22 +02:00
<attribute name="label" translatable="yes">_Run</attribute>
2022-07-28 23:27:24 +02:00
<attribute name="action">app.runmode</attribute>
<attribute name="use-icon">True</attribute>
2022-06-30 16:43:22 +02:00
</item>
<item>
2022-07-29 10:59:57 +02:00
<attribute name="icon">video-display-symbolic</attribute>
2022-06-30 16:43:22 +02:00
<attribute name="label" translatable="yes">_Presentation</attribute>
2022-07-28 23:27:24 +02:00
<attribute name="action">app.presentmode</attribute>
<attribute name="use-icon">True</attribute>
2022-06-30 16:43:22 +02:00
</item>
</section>
2022-07-28 23:27:24 +02:00
</menu>
2022-06-24 20:02:09 +02:00
</interface>