gui: Factor out duplicated code for executing and pasting syntax.
[pspp] / src / ui / gui / chi-square.ui
1 <?xml version="1.0"?>
2 <interface>
3   <!-- interface-requires gtk+ 2.12 -->
4   <requires lib="psppire" version="2053.63976"/>
5   <!-- interface-naming-policy toplevel-contextual -->
6   <object class="GtkAdjustment" id="adjustment1">
7     <property name="upper">100</property>
8     <property name="step_increment">1</property>
9     <property name="page_increment">10</property>
10   </object>
11   <object class="PsppireDialog" id="chisquare-dialog">
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="title" translatable="yes">Chi-Square Test</property>
14     <property name="modal">True</property>
15     <child internal-child="hbox">
16       <object class="GtkHBox" id="dialog-hbox13">
17         <property name="visible">True</property>
18         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
19         <child>
20           <object class="GtkTable" id="table1">
21             <property name="visible">True</property>
22             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
23             <property name="n_rows">2</property>
24             <property name="n_columns">3</property>
25             <child>
26               <object class="GtkScrolledWindow" id="scrolledwindow5">
27                 <property name="visible">True</property>
28                 <property name="can_focus">True</property>
29                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
30                 <property name="hscrollbar_policy">never</property>
31                 <property name="vscrollbar_policy">automatic</property>
32                 <property name="shadow_type">etched-in</property>
33                 <child>
34                   <object class="PsppireDictView" id="dict-view">
35                     <property name="visible">True</property>
36                     <property name="can_focus">True</property>
37                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
38                     <property name="headers_visible">False</property>
39                     <property name="headers_clickable">False</property>
40                   </object>
41                 </child>
42               </object>
43               <packing>
44                 <property name="y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
45               </packing>
46             </child>
47             <child>
48               <object class="GtkVBox" id="vbox2">
49                 <property name="visible">True</property>
50                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
51                 <property name="orientation">vertical</property>
52                 <child>
53                   <object class="GtkLabel" id="label1">
54                     <property name="visible">True</property>
55                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
56                     <property name="xalign">0</property>
57                     <property name="label" translatable="yes">_Test Variable List:</property>
58                     <property name="use_underline">True</property>
59                   </object>
60                   <packing>
61                     <property name="expand">False</property>
62                     <property name="fill">False</property>
63                     <property name="position">0</property>
64                   </packing>
65                 </child>
66                 <child>
67                   <object class="GtkScrolledWindow" id="scrolledwindow1">
68                     <property name="visible">True</property>
69                     <property name="can_focus">True</property>
70                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
71                     <property name="hscrollbar_policy">never</property>
72                     <property name="vscrollbar_policy">automatic</property>
73                     <property name="shadow_type">etched-in</property>
74                     <child>
75                       <object class="PsppireVarView" id="variables-treeview">
76                         <property name="visible">True</property>
77                         <property name="can_focus">True</property>
78                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
79                         <property name="headers_visible">False</property>
80                         <property name="headers_clickable">False</property>
81                       </object>
82                     </child>
83                   </object>
84                   <packing>
85                     <property name="position">1</property>
86                   </packing>
87                 </child>
88               </object>
89               <packing>
90                 <property name="left_attach">2</property>
91                 <property name="right_attach">3</property>
92                 <property name="y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
93               </packing>
94             </child>
95             <child>
96               <object class="PsppireSelector" id="psppire-selector1">
97                 <property name="visible">True</property>
98                 <property name="can_focus">True</property>
99                 <property name="receives_default">True</property>
100                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
101                 <property name="border_width">5</property>
102                 <property name="source_widget">dict-view</property>
103                 <property name="dest_widget">variables-treeview</property>
104               </object>
105               <packing>
106                 <property name="left_attach">1</property>
107                 <property name="right_attach">2</property>
108                 <property name="x_options"></property>
109                 <property name="y_options">GTK_EXPAND</property>
110               </packing>
111             </child>
112             <child>
113               <object class="GtkFrame" id="frame1">
114                 <property name="visible">True</property>
115                 <property name="label_xalign">0</property>
116                 <child>
117                   <object class="GtkAlignment" id="alignment1">
118                     <property name="visible">True</property>
119                     <property name="left_padding">12</property>
120                     <child>
121                       <object class="GtkVBox" id="vbox4">
122                         <property name="visible">True</property>
123                         <property name="orientation">vertical</property>
124                         <child>
125                           <object class="GtkRadioButton" id="radiobutton3">
126                             <property name="label" translatable="yes">_Get from data</property>
127                             <property name="visible">True</property>
128                             <property name="can_focus">True</property>
129                             <property name="receives_default">False</property>
130                             <property name="use_underline">True</property>
131                             <property name="active">True</property>
132                             <property name="draw_indicator">True</property>
133                           </object>
134                           <packing>
135                             <property name="position">0</property>
136                           </packing>
137                         </child>
138                         <child>
139                           <object class="GtkRadioButton" id="radiobutton4">
140                             <property name="label" translatable="yes">Use _specified range</property>
141                             <property name="visible">True</property>
142                             <property name="can_focus">True</property>
143                             <property name="receives_default">False</property>
144                             <property name="use_underline">True</property>
145                             <property name="draw_indicator">True</property>
146                             <property name="group">radiobutton3</property>
147                           </object>
148                           <packing>
149                             <property name="position">1</property>
150                           </packing>
151                         </child>
152                         <child>
153                           <object class="GtkTable" id="range-table">
154                             <property name="visible">True</property>
155                             <property name="sensitive">False</property>
156                             <property name="n_rows">2</property>
157                             <property name="n_columns">2</property>
158                             <property name="column_spacing">5</property>
159                             <child>
160                               <object class="GtkLabel" id="label4">
161                                 <property name="visible">True</property>
162                                 <property name="label" translatable="yes">_Lower:</property>
163                                 <property name="use_markup">True</property>
164                                 <property name="use_underline">True</property>
165                               </object>
166                             </child>
167                             <child>
168                               <object class="GtkLabel" id="label5">
169                                 <property name="visible">True</property>
170                                 <property name="label" translatable="yes">_Upper:</property>
171                                 <property name="use_underline">True</property>
172                               </object>
173                               <packing>
174                                 <property name="top_attach">1</property>
175                                 <property name="bottom_attach">2</property>
176                               </packing>
177                             </child>
178                             <child>
179                               <object class="GtkEntry" id="entry1">
180                                 <property name="visible">True</property>
181                                 <property name="can_focus">True</property>
182                                 <property name="invisible_char">&#x2022;</property>
183                               </object>
184                               <packing>
185                                 <property name="left_attach">1</property>
186                                 <property name="right_attach">2</property>
187                               </packing>
188                             </child>
189                             <child>
190                               <object class="GtkEntry" id="entry2">
191                                 <property name="visible">True</property>
192                                 <property name="can_focus">True</property>
193                                 <property name="invisible_char">&#x2022;</property>
194                               </object>
195                               <packing>
196                                 <property name="left_attach">1</property>
197                                 <property name="right_attach">2</property>
198                                 <property name="top_attach">1</property>
199                                 <property name="bottom_attach">2</property>
200                               </packing>
201                             </child>
202                           </object>
203                           <packing>
204                             <property name="position">2</property>
205                           </packing>
206                         </child>
207                       </object>
208                     </child>
209                   </object>
210                 </child>
211                 <child type="label">
212                   <object class="GtkLabel" id="label2">
213                     <property name="visible">True</property>
214                     <property name="label" translatable="yes">Expected Range:</property>
215                     <property name="use_markup">True</property>
216                   </object>
217                 </child>
218               </object>
219               <packing>
220                 <property name="top_attach">1</property>
221                 <property name="bottom_attach">2</property>
222                 <property name="y_options">GTK_FILL</property>
223                 <property name="x_padding">5</property>
224               </packing>
225             </child>
226             <child>
227               <object class="GtkFrame" id="frame2">
228                 <property name="visible">True</property>
229                 <property name="label_xalign">0</property>
230                 <child>
231                   <object class="GtkAlignment" id="alignment2">
232                     <property name="visible">True</property>
233                     <property name="left_padding">12</property>
234                     <child>
235                       <object class="GtkVBox" id="vbox3">
236                         <property name="visible">True</property>
237                         <property name="orientation">vertical</property>
238                         <child>
239                           <object class="GtkRadioButton" id="radiobutton1">
240                             <property name="label" translatable="yes">All categor_ies equal</property>
241                             <property name="visible">True</property>
242                             <property name="can_focus">True</property>
243                             <property name="receives_default">False</property>
244                             <property name="use_underline">True</property>
245                             <property name="active">True</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="GtkHBox" id="hbox1">
254                             <property name="visible">True</property>
255                             <child>
256                               <object class="GtkRadioButton" id="radiobutton2">
257                                 <property name="label" translatable="yes">_Values</property>
258                                 <property name="visible">True</property>
259                                 <property name="can_focus">True</property>
260                                 <property name="receives_default">False</property>
261                                 <property name="use_underline">True</property>
262                                 <property name="draw_indicator">True</property>
263                                 <property name="group">radiobutton1</property>
264                               </object>
265                               <packing>
266                                 <property name="position">0</property>
267                               </packing>
268                             </child>
269                             <child>
270                               <object class="GtkEntry" id="expected-value-entry">
271                                 <property name="visible">True</property>
272                                 <property name="sensitive">False</property>
273                                 <property name="can_focus">True</property>
274                                 <property name="invisible_char">&#x2022;</property>
275                               </object>
276                               <packing>
277                                 <property name="position">1</property>
278                               </packing>
279                             </child>
280                           </object>
281                           <packing>
282                             <property name="position">1</property>
283                           </packing>
284                         </child>
285                         <child>
286                           <object class="PsppireAcr" id="psppire-acr1">
287                             <property name="visible">True</property>
288                             <property name="border_width">5</property>
289                           </object>
290                           <packing>
291                             <property name="position">2</property>
292                           </packing>
293                         </child>
294                       </object>
295                     </child>
296                   </object>
297                 </child>
298                 <child type="label">
299                   <object class="GtkLabel" id="label3">
300                     <property name="visible">True</property>
301                     <property name="label" translatable="yes">Expected Values:</property>
302                     <property name="use_markup">True</property>
303                   </object>
304                 </child>
305               </object>
306               <packing>
307                 <property name="left_attach">2</property>
308                 <property name="right_attach">3</property>
309                 <property name="top_attach">1</property>
310                 <property name="bottom_attach">2</property>
311                 <property name="y_options">GTK_FILL</property>
312                 <property name="x_padding">5</property>
313               </packing>
314             </child>
315             <child>
316               <placeholder/>
317             </child>
318           </object>
319           <packing>
320             <property name="position">0</property>
321           </packing>
322         </child>
323         <child>
324           <object class="PsppireVButtonBox" id="psppire-vbuttonbox1">
325             <property name="visible">True</property>
326             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
327             <property name="border_width">5</property>
328           </object>
329           <packing>
330             <property name="expand">False</property>
331             <property name="fill">False</property>
332             <property name="pack_type">end</property>
333             <property name="position">1</property>
334           </packing>
335         </child>
336       </object>
337     </child>
338   </object>
339 </interface>