gedit-window.ui 24.2 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<interface>
3
  <!-- interface-requires gtk+ 3.10 -->
4
  <template class="GeditWindow" parent="GtkApplicationWindow">
5 6 7 8
    <property name="can_focus">False</property>
    <property name="has_focus">False</property>
    <property name="is_focus">False</property>
    <child type="titlebar">
9
      <object class="GtkPaned" id="titlebar_paned">
10
        <property name="visible">True</property>
11 12 13
        <style>
          <class name="gedit-headerbar-paned"/>
        </style>
14
        <child>
15
          <object class="GtkHeaderBar" id="side_headerbar">
16
            <property name="visible">True</property>
17 18
            <property name="show_close_button">False</property>
            <property name="title" translatable="yes">Documents</property>
19 20 21 22
            <style>
              <class name="gedit-titlebar-left"/>
              <class name="titlebar"/>
            </style>
23
          </object>
24 25 26 27
          <packing>
            <property name="resize">False</property>
            <property name="shrink">False</property>
          </packing>
28 29 30 31 32
        </child>
        <child>
          <object class="GtkHeaderBar" id="headerbar">
            <property name="visible">True</property>
            <property name="show_close_button">True</property>
33 34 35
            <style>
              <class name="titlebar"/>
            </style>
36
            <child>
37
              <object class="GtkBox" id="open_box">
38
                <property name="visible">True</property>
39 40
                <property name="orientation">horizontal</property>
                <property name="valign">center</property>
41
                <style>
42
                  <class name="linked"/>
43
                </style>
44 45 46 47 48 49 50 51 52 53 54 55
                <child>
                  <object class="GtkButton" id="open_button">
                    <property name="visible">True</property>
                    <property name="label" translatable="yes">Open</property>
                    <property name="tooltip_text" translatable="yes">Open a file</property>
                    <property name="action_name">win.open</property>
                    <style>
                      <class name="text-button"/>
                    </style>
                  </object>
                </child>
                <child>
56
                  <object class="GtkMenuButton" id="open_menu">
57 58
                    <property name="visible">True</property>
                    <property name="tooltip_text" translatable="yes">Open a recently used file</property>
59
                    <property name="popup">recent_menu</property>
60 61 62
                    <style>
                      <class name="image-button"/>
                    </style>
63 64 65 66 67 68
                    <child internal-child="accessible">
                      <object class="AtkObject" id="open_menu_a11y">
                        <property name="accessible-name" translatable="yes">Recent files</property>
                        <property name="accessible-description" translatable="yes">Open a recently used file</property>
                      </object>
                    </child>
69 70
                  </object>
                </child>
71
              </object>
72 73 74
              <packing>
                <property name="pack_type">start</property>
              </packing>
75 76
            </child>
            <child>
77
              <object class="GtkButton" id="new_tab_button">
78
                <property name="visible">True</property>
79 80
                <property name="valign">center</property>
                <property name="tooltip_text" translatable="yes">Create a new document</property>
81
                <property name="action_name">win.new-tab</property>
82 83 84
                <style>
                  <class name="image-button"/>
                </style>
85 86 87 88 89 90 91
                <child>
                  <object class="GtkImage" id="new_tab_image">
                    <property name="visible">True</property>
                    <property name="icon_size">1</property>
                    <property name="icon_name">tab-new-symbolic</property>
                  </object>
                </child>
92 93
                <child internal-child="accessible">
                  <object class="AtkObject" id="new_tab_a11y">
94
                    <property name="accessible-name" translatable="yes" comments="&quot;New&quot; is for creating a new document.">New</property>
95 96 97
                    <property name="accessible-description" translatable="yes">Create a new document</property>
                  </object>
                </child>
98
              </object>
99 100 101
              <packing>
                <property name="pack_type">start</property>
              </packing>
102 103
            </child>
            <child>
104
              <object class="GtkMenuButton" id="gear_button">
105
                <property name="visible">True</property>
106 107 108 109 110
                <property name="valign">center</property>
                <style>
                  <class name="image-button"/>
                </style>
                <child>
111
                  <object class="GtkImage" id="gear_image">
112 113
                    <property name="visible">True</property>
                    <property name="icon_size">1</property>
114
                    <property name="icon_name">emblem-system-symbolic</property>
115 116
                  </object>
                </child>
117
              </object>
118 119 120
              <packing>
                <property name="pack_type">end</property>
              </packing>
121 122
            </child>
            <child>
123
              <object class="GtkButton" id="save_button">
124
                <property name="visible">True</property>
125
                <property name="valign">center</property>
126 127
                <property name="tooltip_text" translatable="yes">Save the current file</property>
                <property name="action_name">win.save</property>
128 129 130 131
                <style>
                  <class name="image-button"/>
                </style>
                <child>
132
                  <object class="GtkImage" id="save_image">
133 134
                    <property name="visible">True</property>
                    <property name="icon_size">1</property>
135
                    <property name="icon_name">document-save-symbolic</property>
136 137
                  </object>
                </child>
138 139 140 141 142 143
                <child internal-child="accessible">
                  <object class="AtkObject" id="save_button_a11y">
                    <property name="accessible-name" translatable="yes">Save</property>
                    <property name="accessible-description" translatable="yes">Save the current file</property>
                  </object>
                </child>
144
              </object>
145 146 147
              <packing>
                <property name="pack_type">end</property>
              </packing>
148 149
            </child>
          </object>
150 151 152
          <packing>
            <property name="shrink">False</property>
          </packing>
153 154 155 156
        </child>
      </object>
    </child>
    <child>
157
      <object class="GtkOverlay" id="fullscreen_overlay">
158
        <property name="visible">True</property>
159 160 161
        <property name="can_focus">False</property>
        <property name="has_focus">False</property>
        <property name="is_focus">False</property>
162
        <child>
163
          <object class="GtkBox" id="main_box">
164
            <property name="visible">True</property>
165
            <property name="orientation">vertical</property>
166
            <child>
167
              <object class="GtkPaned" id="hpaned">
168
                <property name="visible">True</property>
169 170 171 172 173 174
                <property name="can_focus">True</property>
                <property name="has_focus">False</property>
                <property name="is_focus">False</property>
                <style>
                  <class name="gedit-side-panel-paned"/>
                </style>
175
                <child>
176 177 178 179 180 181 182 183 184 185
                  <object class="GtkStack" id="side_panel">
                    <property name="visible">False</property>
                  </object>
                  <packing>
                    <property name="resize">False</property>
                    <property name="shrink">False</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkBox" id="content_box">
186
                    <property name="visible">True</property>
187 188
                    <property name="orientation">vertical</property>
                    <child>
189
                      <object class="GtkPaned" id="vpaned">
190
                        <property name="visible">True</property>
191 192 193 194
                        <property name="can_focus">True</property>
                        <property name="has_focus">False</property>
                        <property name="is_focus">False</property>
                        <property name="orientation">vertical</property>
195
                        <style>
196
                          <class name="gedit-bottom-panel-paned"/>
197
                        </style>
198
                        <child>
199
                          <object class="GeditMultiNotebook" id="multi_notebook">
200
                            <property name="visible">True</property>
201 202 203 204 205 206 207 208
                          </object>
                          <packing>
                            <property name="resize">True</property>
                            <property name="shrink">False</property>
                          </packing>
                        </child>
                        <child>
                          <object class="GtkBox" id="bottom_panel_box">
209
                            <property name="visible">True</property>
210 211 212 213
                            <property name="orientation">horizontal</property>
                            <style>
                              <class name="gedit-bottom-panel"/>
                            </style>
214
                            <child>
215
                              <object class="GtkBox" id="bottom_panel_stack_box">
216
                                <property name="visible">True</property>
217 218 219
                                <property name="orientation">vertical</property>
                                <child>
                                  <object class="GtkStack" id="bottom_panel">
220
                                    <property name="visible">False</property>
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
                                  </object>
                                  <packing>
                                    <property name="expand">True</property>
                                    <property name="fill">True</property>
                                    <property name="position">1</property>
                                  </packing>
                                </child>
                                <child>
                                  <object class="GtkStackSwitcher" id="bottom_panel_stack_switcher">
                                    <property name="visible">True</property>
                                    <property name="stack">bottom_panel</property>
                                    <style>
                                      <class name="gedit-bottom-panel-stack-switcher"/>
                                    </style>
                                  </object>
                                  <packing>
                                    <property name="expand">False</property>
                                    <property name="fill">False</property>
                                    <property name="position">2</property>
                                  </packing>
                                </child>
242 243 244 245 246 247 248 249
                              </object>
                              <packing>
                                <property name="expand">True</property>
                                <property name="fill">True</property>
                                <property name="position">1</property>
                              </packing>
                            </child>
                            <child>
250
                              <object class="GtkBox" id="bottom_panel_sidebar">
251
                                <property name="visible">True</property>
252 253 254 255 256
                                <property name="orientation">vertical</property>
                                <child>
                                  <object class="GeditCloseButton" id="bottom_panel_close_button">
                                    <property name="visible">True</property>
                                    <property name="relief">none</property>
Piotr Drąg's avatar
Piotr Drąg committed
257
                                    <property name="tooltip-text" translatable="yes">Hide panel</property>
258 259 260 261 262 263 264 265
                                    <property name="action_name">win.bottom-panel</property>
                                  </object>
                                  <packing>
                                    <property name="expand">False</property>
                                    <property name="fill">False</property>
                                    <property name="position">1</property>
                                  </packing>
                                </child>
266 267 268 269 270 271 272 273 274
                              </object>
                              <packing>
                                <property name="expand">False</property>
                                <property name="fill">False</property>
                                <property name="position">2</property>
                              </packing>
                            </child>
                          </object>
                          <packing>
275 276
                            <property name="resize">False</property>
                            <property name="shrink">False</property>
277 278
                          </packing>
                        </child>
279 280
                      </object>
                      <packing>
281 282 283 284 285 286 287 288
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">2</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GeditStatusbar" id="statusbar">
                        <property name="visible">True</property>
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
                        <child>
                          <object class="GeditStatusMenuButton" id="tab_width_combo">
                            <property name="visible">True</property>
                            <property name="use_popover">True</property>
                          </object>
                          <packing>
                            <property name="expand">False</property>
                            <property name="fill">False</property>
                            <property name="pack_type">end</property>
                          </packing>
                        </child>
                        <child>
                          <object class="GeditStatusMenuButton" id="language_button">
                            <property name="visible">True</property>
                            <property name="use_popover">True</property>
                          </object>
                          <packing>
                            <property name="expand">False</property>
                            <property name="fill">False</property>
                            <property name="pack_type">end</property>
                          </packing>
                        </child>
311 312 313 314 315
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
316 317
                      </packing>
                    </child>
318 319
                  </object>
                  <packing>
320 321
                    <property name="resize">True</property>
                    <property name="shrink">True</property>
322 323 324 325
                  </packing>
                </child>
              </object>
              <packing>
326 327 328
                <property name="expand">True</property>
                <property name="fill">True</property>
                <property name="position">1</property>
329 330 331 332
              </packing>
            </child>
          </object>
        </child>
333 334
        <child type="overlay">
          <object class="GtkEventBox" id="fullscreen_eventbox">
335
            <property name="visible">True</property>
336 337
            <property name="can_focus">False</property>
            <property name="valign">start</property>
338
            <child>
339
              <object class="GtkRevealer" id="fullscreen_controls">
340
                <property name="visible">True</property>
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
                <property name="can_focus">False</property>
                <property name="reveal_child">False</property>
                <property name="valign">start</property>
                <child>
                  <object class="GtkHeaderBar" id="fullscreen_headerbar">
                    <property name="visible">True</property>
                    <child>
                      <object class="GtkBox" id="fullscreen_open_box">
                        <property name="visible">True</property>
                        <property name="orientation">horizontal</property>
                        <property name="valign">center</property>
                        <style>
                          <class name="linked"/>
                        </style>
                        <child>
                          <object class="GtkButton" id="fullscreen_open_button">
                            <property name="visible">True</property>
                            <property name="label" translatable="yes">Open</property>
                            <property name="tooltip_text" translatable="yes">Open a file</property>
                            <property name="action_name">win.open</property>
                            <style>
                              <class name="text-button"/>
                            </style>
                          </object>
                        </child>
                        <child>
367
                          <object class="GtkMenuButton" id="fullscreen_open_menu">
368 369
                            <property name="visible">True</property>
                            <property name="tooltip_text" translatable="yes">Open a recently used file</property>
370
                            <property name="popup">fullscreen_recent_menu</property>
371 372 373
                            <style>
                              <class name="image-button"/>
                            </style>
374 375 376 377 378 379
                            <child internal-child="accessible">
                              <object class="AtkObject" id="fullscreen_open_menu_a11y">
                                <property name="accessible-name" translatable="yes">Recent files</property>
                                <property name="accessible-description" translatable="yes">Open a recently used file</property>
                              </object>
                            </child>
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470
                          </object>
                        </child>
                      </object>
                      <packing>
                        <property name="pack_type">start</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="fullscreen_new_tab_button">
                        <property name="visible">True</property>
                        <property name="valign">center</property>
                        <property name="tooltip_text" translatable="yes">Create a new document</property>
                        <property name="action_name">win.new-tab</property>
                        <style>
                          <class name="image-button"/>
                        </style>
                        <child>
                          <object class="GtkImage" id="fullscreen_new_tab_image">
                            <property name="visible">True</property>
                            <property name="icon_size">1</property>
                            <property name="icon_name">tab-new-symbolic</property>
                          </object>
                        </child>
                      </object>
                      <packing>
                        <property name="pack_type">start</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="leave_fullscreen_button">
                        <property name="visible">True</property>
                        <property name="valign">center</property>
                        <property name="tooltip_text" translatable="yes">Leave Fullscreen</property>
                        <property name="action_name">win.leave-fullscreen</property>
                        <style>
                          <class name="image-button"/>
                        </style>
                        <child>
                          <object class="GtkImage" id="leave_fullscreen_image">
                            <property name="visible">True</property>
                            <property name="icon_size">1</property>
                            <property name="icon_name">view-restore-symbolic</property>
                          </object>
                        </child>
                      </object>
                      <packing>
                        <property name="pack_type">end</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkMenuButton" id="fullscreen_gear_button">
                        <property name="visible">True</property>
                        <property name="valign">center</property>
                        <style>
                          <class name="image-button"/>
                        </style>
                        <child>
                          <object class="GtkImage" id="fullscreen_gear_image">
                            <property name="visible">True</property>
                            <property name="icon_size">1</property>
                            <property name="icon_name">emblem-system-symbolic</property>
                          </object>
                        </child>
                      </object>
                      <packing>
                        <property name="pack_type">end</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="fullscreen_save_button">
                        <property name="visible">True</property>
                        <property name="valign">center</property>
                        <property name="tooltip_text" translatable="yes">Save the current file</property>
                        <property name="action_name">win.save</property>
                        <style>
                          <class name="image-button"/>
                        </style>
                        <child>
                          <object class="GtkImage" id="fullscreen_save_image">
                            <property name="visible">True</property>
                            <property name="icon_size">1</property>
                            <property name="icon_name">document-save-symbolic</property>
                          </object>
                        </child>
                      </object>
                      <packing>
                        <property name="pack_type">end</property>
                      </packing>
                    </child>
                  </object>
                </child>
471 472 473 474 475 476
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
477
  </template>
478 479 480 481 482 483 484
  <object class="GtkSizeGroup">
    <property name="mode">horizontal</property>
    <widgets>
      <widget name="side_headerbar"/>
      <widget name="side_panel"/>
    </widgets>
  </object>
485 486 487 488 489 490 491 492 493 494
  <object class="GtkRecentFilter" id="recent_filter">
    <applications>
      <application>gedit</application>
    </applications>
  </object>
  <object class="GtkRecentChooserMenu" id="recent_menu">
    <property name="visible">True</property>
    <property name="can_focus">False</property>
    <property name="filter">recent_filter</property>
    <property name="limit">10</property>
495
    <property name="sort-type">mru</property>
496 497 498 499 500 501
  </object>
  <object class="GtkRecentChooserMenu" id="fullscreen_recent_menu">
    <property name="visible">True</property>
    <property name="can_focus">False</property>
    <property name="filter">recent_filter</property>
    <property name="limit">10</property>
502
    <property name="sort-type">mru</property>
503
  </object>
504
</interface>
505