about summary refs log tree commit diff
path: root/src/gtk/dialogs.ui
blob: e419e455f2e1c2efb8427a1a56a0f23e32d601d3 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>

  <object class="GtkDialog" id="dialog_csv_export">
    <property name="use-header-bar">1</property>
    <property name="modal">true</property>
    <property name="title" translatable="yes">Export as CSV</property>
    <child type="action">
      <object class="GtkButton" id="csv_export_cancelbutton">
        <property name="label" translatable="yes">Cancel</property>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="csv_export_applybutton">
        <property name="label" translatable="yes">Export</property>
        <style>
          <class name="suggested-action" />
        </style>
      </object>
    </child>
    <action-widgets>
      <action-widget response="cancel">csv_export_cancelbutton</action-widget>
      <action-widget response="apply" default="true">csv_export_applybutton</action-widget>
    </action-widgets>
    <child>
      <object class="AdwClamp">
        <property name="maximum-size">800</property>
        <property name="tightening-threshold">600</property>
        <property name="hexpand">true</property>
        <property name="vexpand">false</property>
        <property name="valign">fill</property>
        <property name="halign">fill</property>
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <property name="spacing">24</property>
            <property name="margin-start">12</property>
            <property name="margin-end">12</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>
            <child>
              <object class="GtkBox">
                <property name="orientation">horizontal</property>
                <property name="spacing">12</property>
                <child>
                  <object class="GtkLabel" id="csv_export_chosenfile_label">
                    <property translatable="yes" name="label"> - no file selected - </property>
                    <property name="hexpand">true</property>
                    <property name="halign">start</property>
                    <property name="ellipsize">start</property>
                    <style>
                      <class name="dim-label" />
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="csv_export_filechooser_button">
                    <property name="icon-name">folder-open-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="AdwPreferencesGroup">
                <property name="title" translatable="yes">CSV export preferences</property>
                <property name="halign">fill</property>
                <child>
                  <object class="AdwComboRow" id="csv_export_tasksort_row">
                    <property name="title" translatable="yes">Sort by</property>
                    <property name="model">
                      <object class="AdwEnumListModel">
                        <property name="enum-type">TaskSort</property>
                      </object>
                    </property>
                    <property name="expression">
                      <lookup type="AdwEnumListItem" name="nick" />
                    </property>
                  </object>
                </child>
                <child>
                  <object class="AdwComboRow" id="csv_export_sortorder_row">
                    <property name="title" translatable="yes">Sort order</property>
                    <property name="model">
                      <object class="AdwEnumListModel">
                        <property name="enum-type">SortOrder</property>
                      </object>
                    </property>
                    <property name="expression">
                      <lookup type="AdwEnumListItem" name="nick" />
                    </property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>