174 lines
7.2 KiB
XML
174 lines
7.2 KiB
XML
<?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>
|
|
<property name="title">GemGraph 0.0.1</property>
|
|
<child type="titlebar">
|
|
<object class="AdwHeaderBar" id="main_titlebar">
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="main_button_menu">
|
|
<property name="direction">none</property>
|
|
<property name="menu-model">main_menu</property>
|
|
</object>
|
|
</child>
|
|
<child type="start">
|
|
<object class="GtkMenuButton" id="main_button_mode">
|
|
<property name="always-show-arrow">True</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="tooltip-text" translatable="yes">Change session mode</property>
|
|
<property name="icon-name">document-edit-symbolic</property>
|
|
<property name="menu-model">mode_menu</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleButton" id="main_button_sidebar">
|
|
<property name="icon-name">sidebar-show-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Display/hide sidebar</property>
|
|
<property name="action-name">app.togglesidebar</property>
|
|
</object>
|
|
<!-- <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> -->
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkPaned" id="main_paned">
|
|
<property name="position">250</property>
|
|
<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"><b>Sidebar: run mode</b></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"><b>Sidebar: presentation mode</b></property>
|
|
<property name="use-markup">True</property>
|
|
</object>
|
|
</property>
|
|
</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"><b>Sidebar: edit mode</b></property>
|
|
<property name="use-markup">True</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</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"><b>Main zone: run mode</b></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"><b>Main zone: presentation mode</b></property>
|
|
<property name="use-markup">True</property>
|
|
</object>
|
|
</property>
|
|
</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"><b>Main zone: edit mode</b></property>
|
|
<property name="use-markup">True</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
|
|
<menu id="main_menu">
|
|
<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>
|
|
</menu>
|
|
<menu id="mode_menu">
|
|
<section>
|
|
|
|
<attribute name="label" translatable="yes">Switch session mode</attribute>
|
|
|
|
<item>
|
|
<attribute name="icon">document-edit-symbolic</attribute>
|
|
<attribute name="label" translatable="yes">_Edit</attribute>
|
|
<attribute name="action">app.editmode</attribute>
|
|
<attribute name="use-icon">True</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="icon">run-start-symbolic</attribute>
|
|
<attribute name="label" translatable="yes">_Run</attribute>
|
|
<attribute name="action">app.runmode</attribute>
|
|
<attribute name="use-icon">True</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="icon">run-start-symbolic</attribute>
|
|
<attribute name="label" translatable="yes">_Presentation</attribute>
|
|
<attribute name="action">app.presentmode</attribute>
|
|
<attribute name="use-icon">True</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
</interface>
|