summaryrefslogtreecommitdiff
path: root/demos/constraint-editor/constraint-editor-window.ui
blob: aa809e393ae196078c6e5269393439c5521386b4 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="ConstraintEditorWindow" parent="GtkApplicationWindow">
    <style>
      <class name="devel"/>
    </style>
    <property name="title" translatable="yes">GTK Constraint Editor</property>
    <property name="default-width">1024</property>
    <property name="default-height">768</property>
    <child type="titlebar">
      <object class="GtkHeaderBar" id="header">
        <child type="start">
          <object class="GtkButton">
            <property name="icon-name">document-open-symbolic</property>
            <property name="tooltip-text">Open ui file</property>
            <signal name="clicked" handler="open_cb"/>
          </object>
        </child>
        <child type="start">
          <object class="GtkButton">
            <property name="icon-name">document-save-symbolic</property>
            <property name="tooltip-text">Save to ui file</property>
            <signal name="clicked" handler="save_cb"/>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkPaned" id="paned">
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkBox">
                <property name="orientation">horizontal</property>
                <child>
                  <object class="GtkButton">
                    <property name="label">Add Child</property>
                    <signal name="clicked" handler="add_child" swapped="yes"/>
                  </object>
                </child>
                <child>
                  <object class="GtkButton">
                    <property name="label">Add Guide</property>
                    <signal name="clicked" handler="add_guide" swapped="yes"/>
                  </object>
                </child>
                <child>
                  <object class="GtkButton">
                    <property name="label">Add Constraint</property>
                    <signal name="clicked" handler="add_constraint" swapped="yes"/>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkScrolledWindow">
                <property name="hscrollbar-policy">never</property>
                <property name="vscrollbar-policy">automatic</property>
                <property name="vexpand">1</property>
                <child>
                  <object class="GtkListBox" id="list">
                    <property name="show-separators">1</property>
                    <property name="selection-mode">none</property>
                    <signal name="row-activated" handler="row_activated"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="ConstraintView" id="view">
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>