File: main-window.ui

package info (click to toggle)
gnome-maps 49.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,600 kB
  • sloc: javascript: 24,151; ansic: 3,301; xml: 299; makefile: 10; sh: 4
file content (133 lines) | stat: -rw-r--r-- 6,077 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <menu id="hamburgerMenu">
    <section>
      <item>
        <attribute name="action">app.osm-account-setup</attribute>
        <attribute name="label" translatable="yes">Set up OpenStreetMap Account…</attribute>
      </item>
      <item>
        <attribute name="action">win.export-as-image</attribute>
        <attribute name="label" translatable="yes">Export as Image…</attribute>
      </item>
    </section>
    <section>
      <submenu>
        <attribute name="label" translatable="yes" comments="Translators: This is a submenu for selecting length measurements units">Measurement Units</attribute>
        <section>
          <item>
            <attribute name="label" translatable="yes" comments="Translators: This is a menu item for showing measurements in units corresponding to the system locale">_System Default</attribute>
            <attribute name="action">win.measurement-system</attribute>
            <attribute name="target">system</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes" comments="Translators: This a menu item for showing measurements in metric units">_Metric</attribute>
            <attribute name="action">win.measurement-system</attribute>
            <attribute name="target">metric</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes" comments="Translators: This is a menu item for showing measurements in imperial units">_Imperial</attribute>
            <attribute name="action">win.measurement-system</attribute>
            <attribute name="target">imperial</attribute>
          </item>
        </section>
      </submenu>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
        <attribute name="action">app.shortcuts</attribute>
      </item>
      <item>
        <attribute name="action">win.about</attribute>
        <attribute name="label" translatable="yes">About Maps</attribute>
      </item>
    </section>
  </menu>
  <template class="Gjs_MainWindow" parent="AdwApplicationWindow">
    <property name="title" translatable="yes">Maps</property>
    <property name="width-request">360</property>
    <property name="height-request">420</property>
    <child>
      <object class="AdwBreakpoint" id="breakpoint">
        <condition>max-width: 700sp</condition>
        <setter object="splitView" property="collapsed">True</setter>
        <setter object="actionBar" property="visible">True</setter>
      </object>
    </child>
    <property name="content">
      <object class="AdwToastOverlay" id="overlay">
        <property name="child">
           <object class="AdwToolbarView">
            <property name="top-bar-style">raised</property>
            <property name="width-request">360</property>
            <child type="top">
              <object class="AdwHeaderBar" id="headerBar">
                <child type="end">
                  <object class="GtkMenuButton" id="mainMenuButton">
                    <property name="menu-model">hamburgerMenu</property>
                    <property name="tooltip-text" translatable="yes">Main Menu</property>
                    <property name="primary">True</property>
                    <property name="icon-name">open-menu-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <property name="content">
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="hexpand">true</property>
                <property name="vexpand">true</property>
                <child>
                  <object class="GtkGrid" id="grid">
                    <child>
                      <object class="AdwOverlaySplitView" id="splitView">
                        <property name="sidebar-position">end</property>
                        <property name="show-sidebar">False</property>
                        <property name="pin-sidebar">True</property>
                        <property name="content">
                          <object class="GtkOverlay" id="mapOverlay">
                            <child type="overlay">
                              <object class="GtkRevealer" id="licenseRevealer">
                                <property name="transition-type">crossfade</property>
                                <property name="halign">end</property>
                                <property name="valign">start</property>
                              </object>
                            </child>
                          </object>
                        </property>
                        <layout>
                          <property name="column">0</property>
                          <property name="row">0</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox" id="placeBarContainer">
                        <layout>
                          <property name="column">0</property>
                          <property name="row">1</property>
                        </layout>
                      </object>
                    </child>
                    <child>
                      <object class="GtkActionBar" id="actionBar">
                        <property name="visible">False</property>
                        <layout>
                          <property name="column">0</property>
                          <property name="row">2</property>
                          <property name="column-span">2</property>
                        </layout>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </property>
      </object>
    </property>
  </template>
</interface>