gui: Factor out duplicated code for executing and pasting syntax.
[pspp] / src / ui / gui / crosstabs.ui
1 <?xml version="1.0"?>
2 <interface>
3   <!-- interface-requires gtk+ 2.12 -->
4   <requires lib="psppire" version="2054.22072"/>
5   <!-- interface-naming-policy toplevel-contextual -->
6   <object class="PsppireDialog" id="crosstabs-dialog">
7     <property name="title" translatable="yes">Crosstabs</property>
8     <property name="modal">True</property>
9     <child internal-child="hbox">
10       <object class="GtkHBox" id="dialog-hbox1">
11         <property name="visible">True</property>
12         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
13         <property name="spacing">2</property>
14         <child>
15           <object class="GtkTable" id="table1">
16             <property name="visible">True</property>
17             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
18             <property name="n_rows">3</property>
19             <property name="n_columns">3</property>
20             <child>
21               <object class="GtkFrame" id="frame1">
22                 <property name="visible">True</property>
23                 <property name="label_xalign">0</property>
24                 <property name="shadow_type">none</property>
25                 <child>
26                   <object class="GtkAlignment" id="alignment4">
27                     <property name="visible">True</property>
28                     <property name="left_padding">12</property>
29                     <child>
30                       <object class="GtkScrolledWindow" id="scrolledwindow2">
31                         <property name="visible">True</property>
32                         <property name="can_focus">False</property>
33                         <property name="hscrollbar_policy">never</property>
34                         <property name="vscrollbar_policy">automatic</property>
35                         <property name="shadow_type">etched-in</property>
36                         <child>
37                           <object class="PsppireVarView" id="rows">
38                             <property name="visible">True</property>
39                             <property name="headers_visible">False</property>
40                           </object>
41                         </child>
42                       </object>
43                     </child>
44                   </object>
45                 </child>
46                 <child type="label">
47                   <object class="GtkLabel" id="label1">
48                     <property name="visible">True</property>
49                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
50                     <property name="label" translatable="yes">Rows</property>
51                   </object>
52                 </child>
53               </object>
54               <packing>
55                 <property name="left_attach">2</property>
56                 <property name="right_attach">3</property>
57               </packing>
58             </child>
59             <child>
60               <object class="GtkFrame" id="frame2">
61                 <property name="visible">True</property>
62                 <property name="label_xalign">0</property>
63                 <property name="shadow_type">none</property>
64                 <child>
65                   <object class="GtkAlignment" id="alignment5">
66                     <property name="visible">True</property>
67                     <property name="left_padding">12</property>
68                     <child>
69                       <object class="GtkScrolledWindow" id="scrolledwindow3">
70                         <property name="visible">True</property>
71                         <property name="can_focus">False</property>
72                         <property name="hscrollbar_policy">never</property>
73                         <property name="vscrollbar_policy">automatic</property>
74                         <property name="shadow_type">etched-in</property>
75                         <child>
76                           <object class="PsppireVarView" id="cols">
77                             <property name="visible">True</property>
78                             <property name="headers_visible">False</property>
79                           </object>
80                         </child>
81                       </object>
82                     </child>
83                   </object>
84                 </child>
85                 <child type="label">
86                   <object class="GtkLabel" id="label2">
87                     <property name="visible">True</property>
88                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
89                     <property name="label" translatable="yes">Columns</property>
90                   </object>
91                 </child>
92               </object>
93               <packing>
94                 <property name="left_attach">2</property>
95                 <property name="right_attach">3</property>
96                 <property name="top_attach">1</property>
97                 <property name="bottom_attach">2</property>
98               </packing>
99             </child>
100             <child>
101               <object class="GtkScrolledWindow" id="scrolledwindow1">
102                 <property name="visible">True</property>
103                 <property name="can_focus">True</property>
104                 <property name="hscrollbar_policy">never</property>
105                 <property name="vscrollbar_policy">automatic</property>
106                 <property name="shadow_type">etched-in</property>
107                 <child>
108                   <object class="PsppireDictView" id="dict-treeview">
109                     <property name="visible">True</property>
110                     <property name="headers_visible">False</property>
111                   </object>
112                 </child>
113               </object>
114               <packing>
115                 <property name="bottom_attach">2</property>
116               </packing>
117             </child>
118             <child>
119               <object class="GtkHButtonBox" id="hbuttonbox3">
120                 <property name="visible">True</property>
121                 <property name="layout_style">spread</property>
122                 <child>
123                   <object class="GtkButton" id="format-button">
124                     <property name="label" translatable="yes">Format...</property>
125                     <property name="visible">True</property>
126                     <property name="can_focus">False</property>
127                     <property name="receives_default">False</property>
128                   </object>
129                   <packing>
130                     <property name="expand">False</property>
131                     <property name="fill">False</property>
132                     <property name="position">0</property>
133                   </packing>
134                 </child>
135                 <child>
136                   <object class="GtkButton" id="stats-button">
137                     <property name="label" translatable="yes">Statistics...</property>
138                     <property name="visible">True</property>
139                     <property name="can_focus">False</property>
140                     <property name="receives_default">False</property>
141                   </object>
142                   <packing>
143                     <property name="expand">False</property>
144                     <property name="fill">False</property>
145                     <property name="position">1</property>
146                   </packing>
147                 </child>
148                 <child>
149                   <object class="GtkButton" id="cell-button">
150                     <property name="label" translatable="yes">Cells...</property>
151                     <property name="visible">True</property>
152                     <property name="can_focus">False</property>
153                     <property name="receives_default">False</property>
154                   </object>
155                   <packing>
156                     <property name="expand">False</property>
157                     <property name="fill">False</property>
158                     <property name="position">2</property>
159                   </packing>
160                 </child>
161               </object>
162               <packing>
163                 <property name="right_attach">3</property>
164                 <property name="top_attach">2</property>
165                 <property name="bottom_attach">3</property>
166                 <property name="y_options"></property>
167               </packing>
168             </child>
169             <child>
170               <object class="PsppireSelector" id="row-selector">
171                 <property name="visible">True</property>
172                 <property name="can_focus">True</property>
173                 <property name="receives_default">True</property>
174                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
175                 <property name="border_width">5</property>
176                 <property name="source_widget">dict-treeview</property>
177                 <property name="dest_widget">rows</property>
178               </object>
179               <packing>
180                 <property name="left_attach">1</property>
181                 <property name="right_attach">2</property>
182                 <property name="x_options"></property>
183                 <property name="y_options"></property>
184               </packing>
185             </child>
186             <child>
187               <object class="PsppireSelector" id="col-selector">
188                 <property name="visible">True</property>
189                 <property name="can_focus">True</property>
190                 <property name="receives_default">True</property>
191                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
192                 <property name="border_width">5</property>
193                 <property name="source_widget">dict-treeview</property>
194                 <property name="dest_widget">cols</property>
195               </object>
196               <packing>
197                 <property name="left_attach">1</property>
198                 <property name="right_attach">2</property>
199                 <property name="top_attach">1</property>
200                 <property name="bottom_attach">2</property>
201                 <property name="x_options"></property>
202                 <property name="y_options"></property>
203               </packing>
204             </child>
205           </object>
206           <packing>
207             <property name="position">0</property>
208           </packing>
209         </child>
210         <child>
211           <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
212             <property name="visible">True</property>
213             <property name="border_width">5</property>
214           </object>
215           <packing>
216             <property name="expand">False</property>
217             <property name="fill">False</property>
218             <property name="pack_type">end</property>
219             <property name="position">1</property>
220           </packing>
221         </child>
222       </object>
223     </child>
224   </object>
225   <object class="PsppireDialog" id="format-dialog">
226     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
227     <property name="title" translatable="yes">Crosstabs: Format</property>
228     <property name="modal">True</property>
229     <child internal-child="hbox">
230       <object class="GtkHBox" id="dialog-hbox2">
231         <property name="visible">True</property>
232         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
233         <property name="spacing">2</property>
234         <child>
235           <object class="GtkVBox" id="vbox1">
236             <property name="visible">True</property>
237             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
238             <property name="orientation">vertical</property>
239             <child>
240               <object class="GtkCheckButton" id="print-tables">
241                 <property name="label" translatable="yes">Print tables</property>
242                 <property name="visible">True</property>
243                 <property name="can_focus">True</property>
244                 <property name="receives_default">False</property>
245                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
246                 <property name="draw_indicator">True</property>
247               </object>
248               <packing>
249                 <property name="position">0</property>
250               </packing>
251             </child>
252             <child>
253               <object class="GtkCheckButton" id="pivot">
254                 <property name="label" translatable="yes">Pivot</property>
255                 <property name="visible">True</property>
256                 <property name="can_focus">True</property>
257                 <property name="receives_default">False</property>
258                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
259                 <property name="draw_indicator">True</property>
260               </object>
261               <packing>
262                 <property name="position">1</property>
263               </packing>
264             </child>
265             <child>
266               <object class="GtkCheckButton" id="ascending">
267                 <property name="label" translatable="yes">Ascending</property>
268                 <property name="visible">True</property>
269                 <property name="can_focus">True</property>
270                 <property name="receives_default">False</property>
271                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
272                 <property name="draw_indicator">True</property>
273               </object>
274               <packing>
275                 <property name="position">2</property>
276               </packing>
277             </child>
278             <child>
279               <object class="GtkFrame" id="Labeling">
280                 <property name="visible">True</property>
281                 <property name="label_xalign">0</property>
282                 <child>
283                   <object class="GtkAlignment" id="alignment2">
284                     <property name="visible">True</property>
285                     <property name="left_padding">12</property>
286                     <child>
287                       <object class="GtkVBox" id="vbox2">
288                         <property name="visible">True</property>
289                         <property name="orientation">vertical</property>
290                         <child>
291                           <object class="GtkRadioButton" id="radiobutton1">
292                             <property name="label" translatable="yes">Label</property>
293                             <property name="visible">True</property>
294                             <property name="can_focus">False</property>
295                             <property name="receives_default">False</property>
296                             <property name="draw_indicator">True</property>
297                           </object>
298                           <packing>
299                             <property name="position">0</property>
300                           </packing>
301                         </child>
302                         <child>
303                           <object class="GtkRadioButton" id="radiobutton2">
304                             <property name="label" translatable="yes">No label</property>
305                             <property name="visible">True</property>
306                             <property name="can_focus">False</property>
307                             <property name="receives_default">False</property>
308                             <property name="draw_indicator">True</property>
309                             <property name="group">radiobutton1</property>
310                           </object>
311                           <packing>
312                             <property name="position">1</property>
313                           </packing>
314                         </child>
315                         <child>
316                           <object class="GtkRadioButton" id="radiobutton3">
317                             <property name="label" translatable="yes">Suppress value labels</property>
318                             <property name="visible">True</property>
319                             <property name="can_focus">False</property>
320                             <property name="receives_default">False</property>
321                             <property name="draw_indicator">True</property>
322                             <property name="group">radiobutton1</property>
323                           </object>
324                           <packing>
325                             <property name="position">2</property>
326                           </packing>
327                         </child>
328                       </object>
329                     </child>
330                   </object>
331                 </child>
332                 <child type="label">
333                   <object class="GtkLabel" id="label4">
334                     <property name="visible">True</property>
335                     <property name="label" translatable="yes">Labeling</property>
336                     <property name="use_markup">True</property>
337                   </object>
338                 </child>
339               </object>
340               <packing>
341                 <property name="position">3</property>
342               </packing>
343             </child>
344           </object>
345           <packing>
346             <property name="position">0</property>
347           </packing>
348         </child>
349         <child>
350           <object class="PsppireVButtonBox" id="psppire-vbuttonbox2">
351             <property name="visible">True</property>
352             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
353             <property name="border_width">5</property>
354             <property name="homogeneous">True</property>
355             <property name="buttons">PSPPIRE_BUTTON_CONTINUE_MASK | PSPPIRE_BUTTON_CANCEL_MASK | PSPPIRE_BUTTON_HELP_MASK</property>
356           </object>
357           <packing>
358             <property name="expand">False</property>
359             <property name="fill">False</property>
360             <property name="pack_type">end</property>
361             <property name="position">1</property>
362           </packing>
363         </child>
364       </object>
365     </child>
366   </object>
367   <object class="PsppireDialog" id="cell-dialog">
368     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
369     <property name="title" translatable="yes">Crosstabs: Cells</property>
370     <property name="modal">True</property>
371     <child internal-child="hbox">
372       <object class="GtkHBox" id="dialog-hbox3">
373         <property name="visible">True</property>
374         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
375         <property name="spacing">2</property>
376         <child>
377           <object class="GtkFrame" id="frame4">
378             <property name="visible">True</property>
379             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
380             <property name="label_xalign">0</property>
381             <property name="shadow_type">none</property>
382             <child>
383               <object class="GtkScrolledWindow" id="scrolledwindow4">
384                 <property name="width_request">128</property>
385                 <property name="height_request">180</property>
386                 <property name="visible">True</property>
387                 <property name="can_focus">False</property>
388                 <property name="hscrollbar_policy">never</property>
389                 <property name="vscrollbar_policy">automatic</property>
390                 <child>
391                   <object class="GtkTreeView" id="cell-view">
392                     <property name="visible">True</property>
393                     <property name="headers_visible">False</property>
394                   </object>
395                 </child>
396               </object>
397             </child>
398             <child type="label">
399               <object class="GtkLabel" id="label999">
400                 <property name="visible">True</property>
401                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
402                 <property name="label" translatable="yes">Cell Display</property>
403                 <property name="use_markup">True</property>
404               </object>
405             </child>
406           </object>
407           <packing>
408             <property name="position">0</property>
409           </packing>
410         </child>
411         <child>
412           <object class="PsppireVButtonBox" id="psppire-vbuttonbox3">
413             <property name="visible">True</property>
414             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
415             <property name="border_width">5</property>
416             <property name="buttons">PSPPIRE_BUTTON_CONTINUE_MASK | PSPPIRE_BUTTON_CANCEL_MASK | PSPPIRE_BUTTON_HELP_MASK</property>
417           </object>
418           <packing>
419             <property name="expand">False</property>
420             <property name="fill">False</property>
421             <property name="pack_type">end</property>
422             <property name="position">1</property>
423           </packing>
424         </child>
425       </object>
426     </child>
427   </object>
428   <object class="PsppireDialog" id="stat-dialog">
429     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
430     <property name="title" translatable="yes">Crosstabs: Statistics</property>
431     <property name="modal">True</property>
432     <child internal-child="hbox">
433       <object class="GtkHBox" id="dialog-hbox4">
434         <property name="visible">True</property>
435         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
436         <property name="spacing">2</property>
437         <child>
438           <object class="GtkFrame" id="frame3">
439             <property name="visible">True</property>
440             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
441             <property name="label_xalign">0</property>
442             <property name="shadow_type">none</property>
443             <child>
444               <object class="GtkScrolledWindow" id="scrolledwindow5">
445                 <property name="visible">True</property>
446                 <property name="can_focus">False</property>
447                 <property name="hscrollbar_policy">never</property>
448                 <property name="vscrollbar_policy">automatic</property>
449                 <child>
450                   <object class="GtkTreeView" id="stats-view">
451                     <property name="width_request">128</property>
452                     <property name="height_request">150</property>
453                     <property name="visible">True</property>
454                     <property name="headers_visible">False</property>
455                   </object>
456                 </child>
457               </object>
458             </child>
459             <child type="label">
460               <object class="GtkLabel" id="label3">
461                 <property name="visible">True</property>
462                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
463                 <property name="label" translatable="yes">Statistics</property>
464                 <property name="use_markup">True</property>
465               </object>
466             </child>
467           </object>
468           <packing>
469             <property name="position">0</property>
470           </packing>
471         </child>
472         <child>
473           <object class="PsppireVButtonBox" id="psppire-vbuttonbox4">
474             <property name="visible">True</property>
475             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
476             <property name="border_width">5</property>
477             <property name="buttons">PSPPIRE_BUTTON_CONTINUE_MASK | PSPPIRE_BUTTON_CANCEL_MASK | PSPPIRE_BUTTON_HELP_MASK</property>
478           </object>
479           <packing>
480             <property name="expand">False</property>
481             <property name="fill">False</property>
482             <property name="pack_type">end</property>
483             <property name="position">1</property>
484           </packing>
485         </child>
486       </object>
487     </child>
488   </object>
489 </interface>