Added basic undo/redo to syntax window
[pspp] / src / ui / gui / syntax-editor.ui
1 <?xml version="1.0"?>
2 <!--*- mode: xml -*-->
3 <interface>
4   <object class="GtkUIManager" id="uimanager1">
5     <child>
6       <object class="GtkActionGroup" id="actiongroup1">
7         <child>
8           <object class="GtkAction" id="menu_syntax_file">
9             <property name="name">menu_syntax_file</property>
10             <property name="label" translatable="yes">_File</property>
11           </object>
12         </child>
13         <child>
14           <object class="GtkAction" id="new2">
15             <property name="stock-id">gtk-new</property>
16             <property name="name">new2</property>
17           </object>
18         </child>
19         <child>
20           <object class="GtkAction" id="file_new_syntax">
21             <property name="name">file_new_syntax</property>
22             <property name="label" translatable="yes">_Syntax</property>
23           </object>
24         </child>
25         <child>
26           <object class="GtkAction" id="file_new_data">
27             <property name="name">file_new_data</property>
28             <property name="label" translatable="yes">_Data</property>
29           </object>
30         </child>
31         <child>
32           <object class="GtkAction" id="open2">
33             <property name="stock-id">gtk-open</property>
34             <property name="name">open2</property>
35           </object>
36         </child>
37         <child>
38           <object class="GtkAction" id="file_open_syntax">
39             <property name="name">file_open_syntax</property>
40             <property name="label" translatable="yes">_Syntax</property>
41           </object>
42         </child>
43         <child>
44           <object class="GtkAction" id="file_open_data">
45             <property name="name">file_open_data</property>
46             <property name="label" translatable="yes">_Data</property>
47           </object>
48         </child>
49         <child>
50           <object class="GtkAction" id="file_save">
51             <property name="stock-id">gtk-save</property>
52             <property name="name">file_save</property>
53           </object>
54         </child>
55         <child>
56           <object class="GtkAction" id="file_save_as">
57             <property name="stock-id">gtk-save-as</property>
58             <property name="name">file_save_as</property>
59           </object>
60         </child>
61         <child>
62           <object class="GtkAction" id="file_print">
63             <property name="name">file_print</property>
64             <property name="stock-id">gtk-print</property>
65           </object>
66         </child>
67         <child>
68           <object class="GtkAction" id="file_quit">
69             <property name="stock-id">gtk-quit</property>
70             <property name="name">file_quit</property>
71           </object>
72         </child>
73         <child>
74           <object class="GtkAction" id="menuitem7">
75             <property name="name">menuitem7</property>
76             <property name="label" translatable="yes">_Edit</property>
77           </object>
78         </child>
79         <child>
80           <object class="GtkAction" id="edit_cut">
81             <property name="stock-id">gtk-cut</property>
82             <property name="name">cut</property>
83           </object>
84         </child>
85         <child>
86           <object class="GtkAction" id="edit_copy">
87             <property name="stock-id">gtk-copy</property>
88             <property name="name">copy</property>
89           </object>
90         </child>
91         <child>
92           <object class="GtkAction" id="edit_paste">
93             <property name="stock-id">gtk-paste</property>
94             <property name="name">paste</property>
95           </object>
96         </child>
97         <child>
98           <object class="GtkAction" id="edit_delete">
99             <property name="stock-id">gtk-delete</property>
100             <property name="name">delete</property>
101           </object>
102         </child>
103         <child>
104           <object class="GtkAction" id="edit_undo">
105             <property name="stock-id">gtk-undo</property>
106             <property name="name">edit_undo</property>
107           </object>
108         </child>
109         <child>
110           <object class="GtkAction" id="edit_redo">
111             <property name="stock-id">gtk-redo</property>
112             <property name="name">edit_redo</property>
113           </object>
114         </child>
115         <child>
116           <object class="GtkAction" id="run1">
117             <property name="name">run1</property>
118             <property name="label" translatable="yes">_Run</property>
119           </object>
120         </child>
121         <child>
122           <object class="GtkAction" id="run_all">
123             <property name="name">run_all</property>
124             <property name="label" translatable="yes">All</property>
125           </object>
126         </child>
127         <child>
128           <object class="GtkAction" id="run_selection">
129             <property name="name">run_selection</property>
130             <property name="label" translatable="yes">Selection</property>
131           </object>
132         </child>
133         <child>
134           <object class="GtkAction" id="run_current_line">
135             <property name="name">run_current_line</property>
136             <property name="label" translatable="yes">Current Line</property>
137           </object>
138           <accelerator key="R" modifiers="GDK_CONTROL_MASK"/>
139         </child>
140         <child>
141           <object class="GtkAction" id="run_to_end">
142             <property name="name">run_to_end</property>
143             <property name="label" translatable="yes">To End</property>
144           </object>
145         </child>
146         <child>
147           <object class="GtkAction" id="windows">
148             <property name="name">windows</property>
149             <property name="label" translatable="yes">_Windows</property>
150           </object>
151         </child>
152         <child>
153           <object class="GtkAction" id="windows_minimise_all">
154             <property name="name">windows_minimise_all</property>
155             <property name="label" translatable="yes">_Minimize All Windows</property>
156           </object>
157         </child>
158       </object>
159     </child>
160     <ui>
161       <menubar name="menubar">
162         <menu action="menu_syntax_file">
163           <menu action="new2">
164             <menuitem action="file_new_syntax"/>
165             <menuitem action="file_new_data"/>
166           </menu>
167           <menu action="open2">
168             <menuitem action="file_open_syntax"/>
169             <menuitem action="file_open_data"/>
170           </menu>
171           <menuitem action="file_save"/>
172           <menuitem action="file_save_as"/>
173           <separator/>
174           <menuitem action="file_print"/>
175           <separator/>
176           <menuitem action="file_quit"/>
177         </menu>
178         <menu action="menuitem7">
179           <menuitem action="edit_cut"/>
180           <menuitem action="edit_copy"/>
181           <menuitem action="edit_paste"/>
182           <menuitem action="edit_delete"/>
183           <separator/>
184           <menuitem action="edit_undo"/>
185           <menuitem action="edit_redo"/>
186         </menu>
187         <menu action="run1">
188           <menuitem action="run_all"/>
189           <menuitem action="run_selection"/>
190           <menuitem action="run_current_line"/>
191           <menuitem action="run_to_end"/>
192         </menu>
193         <menu action="windows">
194           <menuitem action="windows_minimise_all"/>
195         </menu>
196       </menubar>
197     </ui>
198   </object>
199   <object class="GtkMenuBar" constructor="uimanager1" id="menubar">
200     <property name="visible">True</property>
201     <property name="pack_direction">GTK_PACK_DIRECTION_LTR</property>
202     <property name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property>
203   </object>
204   <object class="GtkScrolledWindow" id="scrolledwindow8">
205     <property name="visible">True</property>
206     <property name="can_focus">True</property>
207     <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
208     <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
209     <property name="shadow_type">GTK_SHADOW_IN</property>
210     <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
211     <child>
212       <object class="GtkSourceView" id="syntax_text_view">
213         <property name="visible">True</property>
214         <property name="can_focus">True</property>
215         <property name="editable">True</property>
216         <property name="overwrite">False</property>
217         <property name="accepts_tab">True</property>
218         <property name="justification">GTK_JUSTIFY_LEFT</property>
219         <property name="wrap_mode">GTK_WRAP_NONE</property>
220         <property name="cursor_visible">True</property>
221         <property name="pixels_above_lines">0</property>
222         <property name="pixels_below_lines">0</property>
223         <property name="pixels_inside_wrap">0</property>
224         <property name="left_margin">0</property>
225         <property name="right_margin">0</property>
226         <property name="indent">0</property>
227       </object>
228     </child>
229   </object>
230   <object class="GtkStatusbar" id="statusbar2">
231     <property name="visible">True</property>
232     <property name="has_resize_grip">True</property>
233   </object>
234 </interface>