menus.ui 9.06 KB
Newer Older
1
2
3
4
<?xml version="1.0"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <menu id="app-menu">
5
    <section id="app-menu-project-section">
6
7
8
9
10
11
12
13
14
      <item>
        <attribute name="label" translatable="yes">_New Project</attribute>
        <attribute name="action">app.new-project</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Open Project</attribute>
        <attribute name="action">app.open-project</attribute>
      </item>
    </section>
15
    <section id="app-menu-placeholder-1"/>
16
    <section id="app-menu-preferences-section">
17
18
19
20
21
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">app.preferences</attribute>
      </item>
    </section>
22
    <section id="app-menu-placeholder-2"/>
23
    <section id="app-menu-help-section">
24
      <attribute name="id">help-section</attribute>
25
26
27
28
      <item>
        <attribute name="label" translatable="yes">Keyboard _Shortcuts</attribute>
        <attribute name="action">app.shortcuts</attribute>
      </item>
Alexandre Franke's avatar
Alexandre Franke committed
29
30
31
32
      <item>
        <attribute name="label" translatable="yes">_Help</attribute>
        <attribute name="action">app.help</attribute>
      </item>
33
      <item>
34
        <attribute name="label" translatable="yes">_About</attribute>
Christian Hergert's avatar
wip    
Christian Hergert committed
35
        <attribute name="action">app.about</attribute>
36
37
38
39
40
41
42
      </item>
      <item>
        <attribute name="label" translatable="yes">_Quit</attribute>
        <attribute name="action">app.quit</attribute>
      </item>
    </section>
  </menu>
43
44
45
46
47
  <menu id="perspectives-menu">
    <section id="perspectives-menu-section">
    </section>
    <section id="perspectives-menu-prefs-section">
      <item>
48
49
        <attribute name="accel">&lt;alt&gt;comma</attribute>
        <attribute name="action">win.perspective</attribute>
50
51
        <attribute name="id">perspective-menu-build-prefs</attribute>
        <attribute name="label" translatable="yes">Build Preferences</attribute>
52
        <attribute name="role">normal</attribute>
53
        <attribute name="target">buildperspective</attribute>
54
        <attribute name="verb-icon-name">builder-build-configure-symbolic</attribute>
55
56
      </item>
      <item>
57
58
        <attribute name="accel">&lt;primary&gt;comma</attribute>
        <attribute name="action">win.perspective</attribute>
59
60
        <attribute name="id">perspective-menu-prefs</attribute>
        <attribute name="label" translatable="yes">Preferences</attribute>
61
        <attribute name="role">normal</attribute>
62
        <attribute name="target">preferences</attribute>
63
        <attribute name="verb-icon-name">preferences-system-symbolic</attribute>
64
65
66
      </item>
    </section>
  </menu>
67
  <menu id="gear-menu">
68
    <section id="gear-menu-save-section">
69
70
      <item>
        <attribute name="label" translatable="yes">Save _All</attribute>
71
        <attribute name="action">win.save-all</attribute>
72
73
      </item>
    </section>
74
    <section id="gear-menu-fullscreen-section">
75
      <item>
76
77
        <attribute name="label" translatable="yes">_Fullscreen</attribute>
        <attribute name="action">win.fullscreen</attribute>
78
79
80
      </item>
    </section>
  </menu>
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
  <menu id="ide-source-view-popup-menu">
    <section id="ide-source-view-popup-menu-jump-section">
      <item>
        <attribute name="label" translatable="yes">_Go to Definition</attribute>
        <attribute name="action">sourceview.goto-definition</attribute>
      </item>
    </section>
    <section id="ide-source-view-popup-menu-undo-section">
      <item>
        <attribute name="label" translatable="yes">_Undo</attribute>
        <attribute name="action">sourceview.undo</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Redo</attribute>
        <attribute name="action">sourceview.redo</attribute>
      </item>
    </section>
    <section id="ide-source-view-popup-menu-clipboard-section">
      <item>
        <attribute name="label" translatable="yes">C_ut</attribute>
        <attribute name="action">sourceview.cut-clipboard</attribute>
      </item>
      <item>
        <attribute name="id">copy</attribute>
        <attribute name="label" translatable="yes">_Copy</attribute>
        <attribute name="action">sourceview.copy-clipboard</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Paste</attribute>
        <attribute name="action">sourceview.paste-clipboard</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Delete</attribute>
        <attribute name="action">sourceview.delete-selection</attribute>
      </item>
    </section>
117
118
    <section id="ide-source-view-popup-menu-spellcheck-section">
    </section>
119
120
121
122
123
    <section id="ide-source-view-popup-menu-highlighting-section">
      <submenu id="ide-source-view-popup-menu-highlighting-submenu">
        <attribute name="label" translatable="yes">Highlighting</attribute>
      </submenu>
    </section>
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
    <section id="ide-source-view-popup-menu-selection-section">
      <submenu id="ide-source-view-popup-menu-selection-submenu">
        <attribute name="label" translatable="yes">Selection</attribute>
        <item>
          <attribute name="label" translatable="yes">Select _All</attribute>
          <attribute name="action">sourceview.select-all</attribute>
          <attribute name="target" type="(b)">(true,)</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">Select _None</attribute>
          <attribute name="action">sourceview.select-all</attribute>
          <attribute name="target" type="(b)">(false,)</attribute>
        </item>
        <section id="ide-source-view-popup-menu-case-section">
          <item>
            <attribute name="label" translatable="yes">All _Upper Case</attribute>
            <attribute name="action">sourceview.change-case</attribute>
            <attribute name="target" type="(u)">(1,)</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes">All _Lower Case</attribute>
            <attribute name="action">sourceview.change-case</attribute>
            <attribute name="target" type="(u)">(0,)</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes">_Invert Case</attribute>
            <attribute name="action">sourceview.change-case</attribute>
            <attribute name="target" type="(u)">(2,)</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes">_Title Case</attribute>
            <attribute name="action">sourceview.change-case</attribute>
            <attribute name="target" type="(u)">(3,)</attribute>
          </item>
        </section>
        <section id="ide-source-view-popup-menu-line-section">
          <item>
            <attribute name="label" translatable="yes">Join Lines</attribute>
            <attribute name="action">sourceview.join-lines</attribute>
          </item>
          <item>
            <attribute name="label" translatable="yes">Sort Lines</attribute>
            <attribute name="action">sourceview.sort</attribute>
            <attribute name="target" type="(bb)">(false,false)</attribute>
          </item>
        </section>
      </submenu>
    </section>
    <section id="ide-source-view-popup-menu-zoom-section">
      <submenu id="ide-source-view-popup-menu-zoom-section-submenu">
        <attribute name="label" translatable="yes">Zoom</attribute>
        <item>
          <attribute name="label" translatable="yes">Zoom _In</attribute>
          <attribute name="action">sourceview.increase-font-size</attribute>
            <attribute name="accel">&lt;control&gt;plus</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">Zoom _Out</attribute>
          <attribute name="action">sourceview.decrease-font-size</attribute>
            <attribute name="accel">&lt;control&gt;minus</attribute>
        </item>
        <section id="ide-source-view-popup-menu-zoom-section-submenu-reset">
          <item>
            <attribute name="label" translatable="yes">Reset</attribute>
            <attribute name="action">sourceview.reset-font-size</attribute>
            <attribute name="accel">&lt;control&gt;0</attribute>
          </item>
        </section>
      </submenu>
    </section>
  </menu>
195
196
197
198
199
200
201
202
203
204
205
  <menu id="new-document-menu">
    <section id="new-document-section">
    </section>
    <section id="open-document-section">
      <item>
        <attribute name="id">open-file</attribute>
        <attribute name="label" translatable="yes">Open File…</attribute>
        <attribute name="action">win.open-with-dialog</attribute>
      </item>
    </section>
  </menu>
206
207
208
209
210
211
212
213
214
215
216
217
  <menu id="run-menu">
    <section id="run-menu-section">
      <item>
        <attribute name="id">default-run-handler</attribute>
        <attribute name="action">run-manager.run-with-handler</attribute>
        <attribute name="target">run</attribute>
        <attribute name="label" translatable="yes">Run</attribute>
        <attribute name="verb-icon-name">media-playback-start-symbolic</attribute>
        <attribute name="accel">&lt;Control&gt;F5</attribute>
      </item>
    </section>
  </menu>
218
</interface>