Syntax Window: Edit->* item sensitivity follows selection
[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_quit">
63             <property name="stock-id">gtk-quit</property>
64             <property name="name">file_quit</property>
65           </object>
66         </child>
67         <child>
68           <object class="GtkAction" id="menuitem7">
69             <property name="name">menuitem7</property>
70             <property name="label" translatable="yes">_Edit</property>
71           </object>
72         </child>
73         <child>
74           <object class="GtkAction" id="edit_cut">
75             <property name="stock-id">gtk-cut</property>
76             <property name="name">edit_cut</property>
77             <property name="sensitive">false</property>
78           </object>
79         </child>
80         <child>
81           <object class="GtkAction" id="edit_copy">
82             <property name="stock-id">gtk-copy</property>
83             <property name="name">edit_copy</property>
84             <property name="sensitive">false</property>
85           </object>
86         </child>
87         <child>
88           <object class="GtkAction" id="edit_paste">
89             <property name="stock-id">gtk-paste</property>
90             <property name="name">edit_paste</property>
91             <property name="sensitive">false</property>
92           </object>
93         </child>
94         <child>
95           <object class="GtkAction" id="edit_delete">
96             <property name="stock-id">gtk-delete</property>
97             <property name="name">edit_delete</property>
98             <property name="sensitive">false</property>
99           </object>
100         </child>
101         <child>
102           <object class="GtkAction" id="run1">
103             <property name="name">run1</property>
104             <property name="label" translatable="yes">_Run</property>
105           </object>
106         </child>
107         <child>
108           <object class="GtkAction" id="run_all">
109             <property name="name">run_all</property>
110             <property name="label" translatable="yes">All</property>
111           </object>
112         </child>
113         <child>
114           <object class="GtkAction" id="run_selection">
115             <property name="name">run_selection</property>
116             <property name="label" translatable="yes">Selection</property>
117           </object>
118         </child>
119         <child>
120           <object class="GtkAction" id="run_current_line">
121             <property name="name">run_current_line</property>
122             <property name="label" translatable="yes">Current Line</property>
123           </object>
124           <accelerator key="R" modifiers="GDK_CONTROL_MASK"/>
125         </child>
126         <child>
127           <object class="GtkAction" id="run_to_end">
128             <property name="name">run_to_end</property>
129             <property name="label" translatable="yes">To End</property>
130           </object>
131         </child>
132         <child>
133           <object class="GtkAction" id="windows">
134             <property name="name">windows</property>
135             <property name="label" translatable="yes">_Windows</property>
136           </object>
137         </child>
138         <child>
139           <object class="GtkAction" id="windows_minimise_all">
140             <property name="name">windows_minimise_all</property>
141             <property name="label" translatable="yes">_Minimize All Windows</property>
142           </object>
143         </child>
144       </object>
145     </child>
146     <ui>
147       <menubar name="menubar">
148         <menu action="menu_syntax_file">
149           <menu action="new2">
150             <menuitem action="file_new_syntax"/>
151             <menuitem action="file_new_data"/>
152           </menu>
153           <menu action="open2">
154             <menuitem action="file_open_syntax"/>
155             <menuitem action="file_open_data"/>
156           </menu>
157           <menuitem action="file_save"/>
158           <menuitem action="file_save_as"/>
159           <separator/>
160           <menuitem action="file_quit"/>
161         </menu>
162         <menu action="menuitem7">
163           <menuitem action="edit_cut"/>
164           <menuitem action="edit_copy"/>
165           <menuitem action="edit_paste"/>
166           <menuitem action="edit_delete"/>
167         </menu>
168         <menu action="run1">
169           <menuitem action="run_all"/>
170           <menuitem action="run_selection"/>
171           <menuitem action="run_current_line"/>
172           <menuitem action="run_to_end"/>
173         </menu>
174         <menu action="windows">
175           <menuitem action="windows_minimise_all"/>
176         </menu>
177       </menubar>
178     </ui>
179   </object>
180   <object class="GtkMenuBar" constructor="uimanager1" id="menubar">
181     <property name="visible">True</property>
182     <property name="pack_direction">GTK_PACK_DIRECTION_LTR</property>
183     <property name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property>
184   </object>
185   <object class="GtkScrolledWindow" id="scrolledwindow8">
186     <property name="visible">True</property>
187     <property name="can_focus">True</property>
188     <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
189     <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
190     <property name="shadow_type">GTK_SHADOW_IN</property>
191     <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
192     <child>
193       <object class="GtkTextView" id="syntax_text_view">
194         <property name="visible">True</property>
195         <property name="can_focus">True</property>
196         <property name="editable">True</property>
197         <property name="overwrite">False</property>
198         <property name="accepts_tab">True</property>
199         <property name="justification">GTK_JUSTIFY_LEFT</property>
200         <property name="wrap_mode">GTK_WRAP_NONE</property>
201         <property name="cursor_visible">True</property>
202         <property name="pixels_above_lines">0</property>
203         <property name="pixels_below_lines">0</property>
204         <property name="pixels_inside_wrap">0</property>
205         <property name="left_margin">0</property>
206         <property name="right_margin">0</property>
207         <property name="indent">0</property>
208       </object>
209     </child>
210   </object>
211   <object class="GtkStatusbar" id="statusbar2">
212     <property name="visible">True</property>
213     <property name="has_resize_grip">True</property>
214   </object>
215 </interface>