Broke up UI into seperate file, reorganisation of dirtree, added ViewStack

This commit is contained in:
2025-12-02 23:04:11 +01:00
parent cc1401ff96
commit f8a10249bb
41 changed files with 2742 additions and 3564 deletions

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="GnomeframeWindow" parent="AdwApplicationWindow">
<property name="default-width">800</property>
<property name="default-height">600</property>
<property name="title">Gnomeframe</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<child type="start">
<object class="GtkButton" id="btn_save_as">
<property name="tooltip-text" translatable="yes">Save as…</property>
<property name="icon-name">floppy-symbolic</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton">
<property name="icon-name">open-menu-symbolic</property>
<property name="menu-model">primary_menu</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
<property name="primary">true</property>
</object>
</child>
<property name="title-widget">
<object class="AdwViewSwitcher">
<property name="policy">1</property>
<property name="stack">viewstack</property>
</object>
</property>
</object>
</child>
<property name="content">
<object class="AdwViewStack" id="viewstack"></object>
</property>
<child type="bottom">
<object class="AdwViewSwitcherBar" id="switcher_bar">
<property name="stack">viewstack</property>
</object>
</child>
</object>
</property>
</template>
<menu id="primary_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">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Gnomeframe</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface>