Add the non-buttons in the toolbar as a ToolItem.
[pysize.git] / ui / gtk / main_window.glade
blobce6e5207dd9de9dcc7fd735eabfe144064e0f6db
1 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2 <!DOCTYPE glade-interface SYSTEM "http://gazpacho.sicem.biz/gazpacho-0.1.dtd">
3 <glade-interface>
4 <widget class="GtkUIManager" id="uimanager">
5 <child>
6 <widget class="GtkActionGroup" id="DefaultActions">
7 <child>
8 <widget class="GtkAction" id="Copy">
9 <property name="name">Copy</property>
10 <property name="tooltip" translatable="yes">Copy selected object into the clipboard</property>
11 <property name="stock_id">gtk-copy</property>
12 </widget>
13 </child>
14 <child>
15 <widget class="GtkAction" id="Cut">
16 <property name="name">Cut</property>
17 <property name="tooltip" translatable="yes">Cut selected object into the clipboard</property>
18 <property name="stock_id">gtk-cut</property>
19 </widget>
20 </child>
21 <child>
22 <widget class="GtkAction" id="EditMenu">
23 <property name="name">EditMenu</property>
24 <property name="label" translatable="yes">_Edit</property>
25 </widget>
26 </child>
27 <child>
28 <widget class="GtkAction" id="FileMenu">
29 <property name="name">FileMenu</property>
30 <property name="label" translatable="yes">_File</property>
31 </widget>
32 </child>
33 <child>
34 <widget class="GtkAction" id="New">
35 <property name="name">New</property>
36 <property name="tooltip" translatable="yes">Create a new file</property>
37 <property name="stock_id">gtk-new</property>
38 </widget>
39 </child>
40 <child>
41 <widget class="GtkAction" id="Open">
42 <property name="name">Open</property>
43 <property name="tooltip" translatable="yes">Open a file</property>
44 <property name="stock_id">gtk-open</property>
45 <signal handler="open_action" name="activate"/>
46 </widget>
47 </child>
48 <child>
49 <widget class="GtkAction" id="Paste">
50 <property name="name">Paste</property>
51 <property name="tooltip" translatable="yes">Paste object from the Clipboard</property>
52 <property name="stock_id">gtk-paste</property>
53 </widget>
54 </child>
55 <child>
56 <widget class="GtkAction" id="Quit">
57 <property name="name">Quit</property>
58 <property name="tooltip" translatable="yes">Quit the program</property>
59 <property name="stock_id">gtk-quit</property>
60 <signal handler="quit_action" name="activate"/>
61 </widget>
62 </child>
63 <child>
64 <widget class="GtkAction" id="Refresh">
65 <property name="name">Refresh</property>
66 <property name="label" translatable="yes">_Refresh tree</property>
67 <property name="short_label" translatable="yes">_Refresh the tree</property>
68 <property name="tooltip" translatable="yes">_Refresh the tree</property>
69 <property name="stock_id">gtk-refresh</property>
70 <signal handler="refresh_tree_action" name="activate"/>
71 <property name="accelerator">&lt;Control&gt;r</property>
72 </widget>
73 </child>
74 <child>
75 <widget class="GtkAction" id="Save">
76 <property name="name">Save</property>
77 <property name="is_important">True</property>
78 <property name="tooltip" translatable="yes">Save a file</property>
79 <property name="stock_id">gtk-save</property>
80 </widget>
81 </child>
82 <child>
83 <widget class="GtkAction" id="SaveAs">
84 <property name="name">SaveAs</property>
85 <property name="tooltip" translatable="yes">Save with a different name</property>
86 <property name="stock_id">gtk-save-as</property>
87 </widget>
88 </child>
89 </widget>
90 </child>
91 <child>
92 <widget class="GtkActionGroup" id="NavigationAction">
93 <child>
94 <widget class="GtkAction" id="ParentDirectory">
95 <property name="name">ParentDirectory</property>
96 <property name="label" translatable="yes">Parent Directory</property>
97 <property name="stock_id">gtk-go-up</property>
98 <signal handler="parent_directory_action" name="activate"/>
99 </widget>
100 </child>
101 </widget>
102 </child>
103 <child>
104 <widget class="GtkActionGroup" id="ZoomActions">
105 <child>
106 <widget class="GtkAction" id="ZoomFit">
107 <property name="name">ZoomFit</property>
108 <property name="label" translatable="yes">Zoom Fit</property>
109 <property name="stock_id">gtk-zoom-fit</property>
110 <signal handler="zoom_fit_action" name="activate"/>
111 </widget>
112 </child>
113 <child>
114 <widget class="GtkAction" id="ZoomIn">
115 <property name="name">ZoomIn</property>
116 <property name="label" translatable="yes">Zoom In</property>
117 <property name="stock_id">gtk-zoom-in</property>
118 <signal handler="zoom_in_action" name="activate"/>
119 </widget>
120 </child>
121 <child>
122 <widget class="GtkAction" id="ZoomOut">
123 <property name="name">ZoomOut</property>
124 <property name="label" translatable="yes">Zoom Out</property>
125 <property name="stock_id">gtk-zoom-out</property>
126 <signal handler="zoom_out_action" name="activate"/>
127 </widget>
128 </child>
129 </widget>
130 </child>
131 <ui id="initial-state"><![CDATA[<ui>
132 <menubar action="menubar1" name="menubar1">
133 <menu action="FileMenu" name="FileMenu">
134 <menuitem action="New" name="New"/>
135 <menuitem action="Open" name="Open"/>
136 <menuitem action="Save" name="Save"/>
137 <menuitem action="SaveAs" name="SaveAs"/>
138 <separator/>
139 <menuitem action="Quit" name="Quit"/>
140 </menu>
141 <menu action="EditMenu" name="EditMenu">
142 <menuitem action="Copy" name="Copy"/>
143 <menuitem action="Cut" name="Cut"/>
144 <menuitem action="Paste" name="Paste"/>
145 </menu>
146 </menubar><toolbar action="toolbar" name="toolbar">
147 <toolitem action="Quit" name="Quit"/><toolitem action="Refresh" name="Refresh"/><toolitem action="ZoomFit" name="ZoomFit"/><toolitem action="ZoomIn" name="ZoomIn"/><toolitem action="ZoomOut" name="ZoomOut"/><toolitem action="ParentDirectory" name="ParentDirectory"/></toolbar>
148 </ui>]]></ui>
149 </widget>
150 <widget class="GtkWindow" id="main_window">
151 <property name="default_height">400</property>
152 <property name="default_width">620</property>
153 <property name="title" context="yes" translatable="yes">Pysize</property>
154 <signal handler="quit_action" name="destroy" after="True"/>
155 <child>
156 <widget class="GtkVBox" id="vbox1">
157 <property name="visible">True</property>
158 <child>
159 <widget constructor="initial-state" class="GtkMenuBar" id="menubar1">
160 <property name="visible">True</property>
161 </widget>
162 <packing>
163 <property name="expand">False</property>
164 <property name="fill">False</property>
165 </packing>
166 </child>
167 <child>
168 <widget constructor="initial-state" class="GtkToolbar" id="toolbar">
169 <property name="visible">True</property>
170 </widget>
171 <packing>
172 <property name="expand">False</property>
173 <property name="fill">False</property>
174 <property name="position">1</property>
175 </packing>
176 </child>
177 <child>
178 <widget class="GtkScrolledWindow" id="scrolledwindow1">
179 <property name="hscrollbar_policy">automatic</property>
180 <property name="visible">True</property>
181 <property name="vscrollbar_policy">automatic</property>
182 <child>
183 <widget class="GtkViewport" id="viewport1">
184 <property name="shadow_type">etched-in</property>
185 <property name="visible">True</property>
186 <child>
187 <widget class="Custom" id="main_widget">
188 <property name="creation_function">pysize_widget</property>
189 <property name="visible">True</property>
190 </widget>
191 </child>
192 </widget>
193 </child>
194 </widget>
195 <packing>
196 <property name="position">2</property>
197 </packing>
198 </child>
199 <child>
200 <widget class="GtkHBox" id="hbox1">
201 <property name="visible">True</property>
202 <child>
203 <widget class="GtkStatusbar" id="status_bar">
204 <property name="has_resize_grip">False</property>
205 <property name="visible">True</property>
206 </widget>
207 </child>
208 <child>
209 <widget class="GtkProgressBar" id="progress_bar">
210 <property name="text" context="yes" translatable="yes"></property>
211 <property name="text_xalign">0.0</property>
212 <property name="text_yalign">0.0</property>
213 <property name="visible">True</property>
214 </widget>
215 <packing>
216 <property name="expand">False</property>
217 <property name="fill">False</property>
218 <property name="position">1</property>
219 </packing>
220 </child>
221 <child>
222 <widget class="GtkStatusbar" id="statusbar1">
223 <property name="visible">True</property>
224 <property name="width_request">20</property>
225 </widget>
226 <packing>
227 <property name="expand">False</property>
228 <property name="fill">False</property>
229 <property name="position">2</property>
230 </packing>
231 </child>
232 </widget>
233 <packing>
234 <property name="expand">False</property>
235 <property name="fill">False</property>
236 <property name="position">3</property>
237 </packing>
238 </child>
239 </widget>
240 </child>
241 </widget>
242 <widget class="GtkWindow" id="placeholder_as_gazpacho_prevents_standalone_widgets">
243 <property name="default_height">250</property>
244 <property name="default_width">440</property>
245 <child>
246 <widget class="GtkHBox" id="toolbar_remaining">
247 <property name="visible">True</property>
248 <child>
249 <widget class="GtkLabel" id="label1">
250 <property name="justify">right</property>
251 <property name="label" context="yes" translatable="yes">Max depth: </property>
252 <property name="visible">True</property>
253 <property name="xalign">0.0</property>
254 </widget>
255 <packing>
256 <property name="expand">False</property>
257 <property name="fill">False</property>
258 </packing>
259 </child>
260 <child>
261 <widget class="GtkSpinButton" id="max_depth">
262 <property name="activates_default">True</property>
263 <property name="adjustment">0 1 100 1 10 0</property>
264 <property name="is_focus">True</property>
265 <property name="max_length">4</property>
266 <property name="numeric">True</property>
267 <property name="text" context="yes" translatable="yes">0</property>
268 <property name="visible">True</property>
269 <property name="width_chars">4</property>
270 </widget>
271 <packing>
272 <property name="expand">False</property>
273 <property name="fill">False</property>
274 <property name="position">1</property>
275 </packing>
276 </child>
277 </widget>
278 </child>
279 </widget>
280 </glade-interface>