blob: 1a7f4dbb831f467edfb6d928081fef0c77715035 [file] [log] [blame]
Stepan Salenikovichbdb0ecd2016-05-18 13:30:55 -04001<?xml version="1.0" encoding="UTF-8"?>
2<interface>
3 <requires lib="gtk+" version="3.10"/>
4 <template class="AccountImportExportView" parent="GtkBox">
5 <property name="visible">True</property>
6 <property name="orientation">vertical</property>
7 <property name="spacing">10</property>
8 <property name="border-width">10</property>
9
10 <!-- export or import label, depending on whats being done -->
11 <child>
12 <object class="GtkLabel" id="label_export">
13 <property name="visible">False</property>
14 <property name="label" translatable="yes">Export selected account</property>
15 <property name="halign">center</property>
16 <property name="valign">start</property>
17 <property name="no-show-all">True</property>
18 <attributes>
19 <attribute name="weight" value="bold"/>
20 </attributes>
21 </object>
22 </child>
23 <child>
24 <object class="GtkLabel" id="label_import">
25 <property name="visible">False</property>
26 <property name="label" translatable="yes">Import accounts</property>
27 <property name="halign">center</property>
28 <property name="valign">start</property>
29 <property name="no-show-all">True</property>
30 <attributes>
31 <attribute name="weight" value="bold"/>
32 </attributes>
33 </object>
34 </child>
35 <!-- end import/export label -->
36
37 <child>
38 <object class="GtkGrid" id="grid_ipmort_export">
39 <property name="visible">True</property>
40 <property name="column-spacing">10</property>
41 <property name="row-spacing">10</property>
42 <property name="halign">center</property>
43 <property name="valign">center</property>
44
45 <!-- location selection row -->
46 <child>
47 <object class="GtkLabel" id="label_location">
48 <property name="visible">True</property>
49 <property name="label" translatable="yes">Location:</property>
50 <property name="halign">end</property>
51 </object>
52 <packing>
53 <property name="left_attach">0</property>
54 <property name="top_attach">1</property>
55 </packing>
56 </child>
57
58 <!-- filechooser for export -->
59 <child>
60 <object class="GtkBox" id="hbox_export_location">
61 <property name="visible">False</property>
62 <property name="orientation">horizontal</property>
63 <property name="spacing">5</property>
64 <property name="no-show-all">True</property>
65 <child>
66 <object class="GtkLabel" id="label_export_location">
67 <property name="visible">True</property>
68 <property name="ellipsize">start</property>
69 <property name="selectable">True</property>
70 <property name="label" translatable="yes">choose location</property>
71 </object>
72 </child>
73 <child>
74 <object class="GtkButton" id="button_export_location">
75 <property name="visible">True</property>
76 <property name="tooltip-text" translatable="yes">Choose export location</property>
77 <property name="image">image_choose_file</property>
78 <property name="halign">end</property>
79 </object>
80 </child>
81 </object>
82 <packing>
83 <property name="left_attach">1</property>
84 <property name="top_attach">1</property>
85 </packing>
86 </child>
87 <!-- end filechooser for export -->
88
89 <!-- filechooser for import -->
90 <child>
91 <object class="GtkFileChooserButton" id="filechooserbutton_import">
92 <property name="visible">False</property>
93 <property name="create_folders">False</property>
94 <property name="action">open</property>
95 <property name="tooltip-text" translatable="yes">Choose archive location</property>
96 <property name="no-show-all">True</property>
97 </object>
98 <packing>
99 <property name="left_attach">1</property>
100 <property name="top_attach">1</property>
101 </packing>
102 </child>
103 <!-- end filechooser for import -->
104
105 <!-- end location selection row -->
106
107 <!-- password row -->
108 <child>
109 <object class="GtkLabel" id="label_password">
110 <property name="visible">True</property>
111 <property name="label" translatable="yes">Password (required):</property>
112 <property name="halign">end</property>
113 </object>
114 <packing>
115 <property name="left_attach">0</property>
116 <property name="top_attach">2</property>
117 </packing>
118 </child>
119
120 <child>
121 <object class="GtkEntry" id="entry_password">
122 <property name="visible">True</property>
123 <property name="visibility">False</property>
124 <property name="primary_icon_stock">gtk-dialog-authentication</property>
125 <property name="input_purpose">password</property>
126 <property name="tooltip-text" translatable="yes">Enter archive password</property>
127 </object>
128 <packing>
129 <property name="left_attach">1</property>
130 <property name="top_attach">2</property>
131 </packing>
132 </child>
133 <!-- end password row -->
134
135 <!-- error message label -->
136 <child>
137 <object class="GtkLabel" id="label_error">
138 <property name="visible">True</property>
139 <attributes>
140 <attribute name="foreground" value="red"/>
141 </attributes>
142 </object>
143 <packing>
144 <property name="left_attach">0</property>
145 <property name="top_attach">3</property>
146 <property name="width">2</property>
147 </packing>
148 </child>
149 <!-- end error message label -->
150
151 <child>
152 <object class="GtkButtonBox" id="buttonbox_confirm">
153 <property name="visible">True</property>
154 <property name="layout-style">spread</property>
155 <!-- <property name="valign">end</property> -->
156 <property name="spacing">10</property>
157
158 <child>
159 <object class="GtkButton" id="button_cancel">
160 <property name="visible">True</property>
161 <property name="label" translatable="yes">Cancel</property>
162 </object>
163 </child>
164
165 <child>
166 <object class="GtkButton" id="button_export">
167 <property name="visible">False</property>
168 <property name="sensitive">False</property>
169 <property name="label" translatable="yes">Export</property>
170 <property name="no-show-all">True</property>
171 <style>
172 <class name="suggested-action"/>
173 </style>
174 </object>
175 </child>
176
177 <child>
178 <object class="GtkButton" id="button_import">
179 <property name="visible">False</property>
180 <property name="sensitive">False</property>
181 <property name="label" translatable="yes">Import</property>
182 <property name="no-show-all">True</property>
183 <style>
184 <class name="suggested-action"/>
185 </style>
186 </object>
187 </child>
188
189 </object>
190 <packing>
191 <property name="left_attach">0</property>
192 <property name="top_attach">4</property>
193 <property name="width">2</property>
194 </packing>
195 </child>
196
197 </object>
198 <packing>
199 <property name="fill">True</property>
200 <property name="expand">True</property>
201 </packing>
202 </child>
203
204 </template>
205
206 <object class="GtkImage" id="image_choose_file">
207 <property name="visible">True</property>
208 <property name="icon-name">list-add-symbolic</property>
209 </object>
210
211</interface>