1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="adw" version="1.0"/>
<template class="BaseHeaderbar" parent="AdwBin">
<child>
<object class="AdwHeaderBar" id="headerbar">
<child type="start">
<object class="GtkButton">
<property name="tooltip-text" translatable="yes">New File</property>
<property name="action-name">app.new-window</property>
<property name="icon_name">document-new-symbolic</property>
</object>
</child>
<child type="start">
<object class="GtkMenuButton">
<property name="label" translatable="yes">_Open</property>
<property name="use-underline">True</property>
<property name="can-shrink">True</property>
<property name="tooltip-text" translatable="yes">Open Markdown File</property>
<property name="popover">open_menu</property>
</object>
</child>
<child type="start">
<object class="AdwSplitButton">
<property name="label" translatable="yes">_Save</property>
<property name="use-underline">True</property>
<property name="can-shrink">True</property>
<property name="tooltip-text" translatable="yes">Save Markdown File</property>
<property name="action-name">win.save</property>
<property name="menu-model">export_menu</property>
</object>
</child>
<child type="end">
<object class="GtkButton" id="exit_fs_button">
<property name="action-name">win.fullscreen</property>
<property name="visible" bind-source="BaseHeaderbar" bind-property="is_fullscreen" bind-flags="sync-create"/>
<property name="icon-name">view-restore-symbolic</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="menu_button">
<property name="menu-model">Main Menu</property>
<property name="icon-name">open-menu-symbolic</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
<style>
<class name="image-button"/>
</style>
</object>
</child>
<child type="end">
<object class="PreviewLayoutSwitcher" id="preview_layout_switcher"/>
</child>
<child type="end">
<object class="GtkToggleButton">
<property name="tooltip-text" translatable="yes">Search in the File</property>
<property name="action-name">win.find</property>
<property name="icon-name">system-search-symbolic</property>
</object>
</child>
<style>
<class name="titlebar"/>
</style>
</object>
</child>
</template>
<object class="ApostropheOpenPopover" id="open_menu"/>
<!-- Main Menu-->
<menu id="Main Menu">
<section>
<item>
<attribute name="custom">themeswitcher</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Hemingway Mode</attribute>
<attribute name="action">win.hemingway_mode</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Focus Mode</attribute>
<attribute name="action">win.focus_mode</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Find and _Replace</attribute>
<attribute name="action">win.find_replace</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Open _Tutorial</attribute>
<attribute name="action">win.open_file</attribute>
<attribute name="target">resource:///org/gnome/gitlab/somas/Apostrophe/media/apostrophe_markdown.md</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 Apostrophe</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
<!-- Export Menu -->
<menu id="export_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Save As...</attribute>
<attribute name="action">win.save_as</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="no">_PDF</attribute>
<attribute name="action">win.export</attribute>
<attribute name="target">pdf</attribute>
</item>
<item>
<attribute name="label" translatable="no">_HTML</attribute>
<attribute name="action">win.export</attribute>
<attribute name="target">html</attribute>
</item>
<item>
<attribute name="label" translatable="no">_ODT</attribute>
<attribute name="action">win.export</attribute>
<attribute name="target">odt</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Advanced _Export…</attribute>
<attribute name="action">win.advanced_export</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Copy HTML</attribute>
<attribute name="action">win.copy_html</attribute>
</item>
</section>
</menu>
</interface>
|