Initial history support, Back and Forward buttons in GTK gui
[pysize.git] / pysize / ui / gtk / main_window.glade
blobd6e20cb49e4f722e55b866d796bba4c54e807f81
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="ZoomActions">
7 <child>
8 <widget class="GtkAction" id="ZoomFit">
9 <property name="name">ZoomFit</property>
10 <property name="label" translatable="yes">Zoom Fit</property>
11 <property name="tooltip" translatable="yes">Fit the tree in the window</property>
12 <property name="stock_id">gtk-zoom-fit</property>
13 <signal handler="zoom_fit_action" name="activate"/>
14 <property name="accelerator">&lt;Control&gt;0</property>
15 </widget>
16 </child>
17 <child>
18 <widget class="GtkAction" id="ZoomIn">
19 <property name="name">ZoomIn</property>
20 <property name="label" translatable="yes">Zoom In</property>
21 <property name="tooltip" translatable="yes">Increase the zoom level</property>
22 <property name="stock_id">gtk-zoom-in</property>
23 <signal handler="zoom_in_action" name="activate"/>
24 <property name="accelerator">&lt;Control&gt;plus</property>
25 </widget>
26 </child>
27 <child>
28 <widget class="GtkAction" id="ZoomOut">
29 <property name="name">ZoomOut</property>
30 <property name="label" translatable="yes">Zoom Out</property>
31 <property name="tooltip" translatable="yes">Decrease the zoom level</property>
32 <property name="stock_id">gtk-zoom-out</property>
33 <signal handler="zoom_out_action" name="activate"/>
34 <property name="accelerator">&lt;Control&gt;minus</property>
35 </widget>
36 </child>
37 </widget>
38 </child>
39 <child>
40 <widget class="GtkActionGroup" id="NavigationAction">
41 <child>
42 <widget class="GtkAction" id="Back">
43 <property name="name">Back</property>
44 <property name="label" translatable="yes">Back</property>
45 <property name="tooltip" translatable="yes">Go back in the history</property>
46 <property name="stock_id">gtk-go-back</property>
47 <signal handler="back_action" name="activate"/>
48 <property name="accelerator">&lt;Alt&gt;Left</property>
49 </widget>
50 </child>
51 <child>
52 <widget class="GtkAction" id="Forward">
53 <property name="name">Forward</property>
54 <property name="label" translatable="yes">Forward</property>
55 <property name="tooltip" translatable="yes">Go forward in the history</property>
56 <property name="stock_id">gtk-go-forward</property>
57 <signal handler="forw_action" name="activate"/>
58 <property name="accelerator">&lt;Alt&gt;Right</property>
59 </widget>
60 </child>
61 <child>
62 <widget class="GtkAction" id="ParentDirectory">
63 <property name="name">ParentDirectory</property>
64 <property name="label" translatable="yes">Parent Directory</property>
65 <property name="tooltip" translatable="yes">Go to the parent directory</property>
66 <property name="stock_id">gtk-go-up</property>
67 <signal handler="parent_directory_action" name="activate"/>
68 <property name="accelerator">&lt;Alt&gt;Up</property>
69 </widget>
70 </child>
71 </widget>
72 </child>
73 <child>
74 <widget class="GtkActionGroup" id="DefaultActions">
75 <child>
76 <widget class="GtkAction" id="ActionsMenu">
77 <property name="name">ActionsMenu</property>
78 <property name="label" translatable="yes">_Actions</property>
79 </widget>
80 </child>
81 <child>
82 <widget class="GtkAction" id="FileMenu">
83 <property name="name">FileMenu</property>
84 <property name="label" translatable="yes">_File</property>
85 </widget>
86 </child>
87 <child>
88 <widget class="GtkAction" id="Open">
89 <property name="name">Open</property>
90 <property name="tooltip" translatable="yes">Open a file</property>
91 <property name="stock_id">gtk-open</property>
92 <signal handler="open_action" name="activate"/>
93 </widget>
94 </child>
95 <child>
96 <widget class="GtkAction" id="Quit">
97 <property name="name">Quit</property>
98 <property name="tooltip" translatable="yes">Quit the program</property>
99 <property name="stock_id">gtk-quit</property>
100 <signal handler="quit_action" name="activate"/>
101 </widget>
102 </child>
103 <child>
104 <widget class="GtkAction" id="Refresh">
105 <property name="name">Refresh</property>
106 <property name="label" translatable="yes">_Refresh tree</property>
107 <property name="short_label" translatable="yes">_Refresh the tree</property>
108 <property name="tooltip" translatable="yes">Refresh the tree</property>
109 <property name="stock_id">gtk-refresh</property>
110 <signal handler="refresh_tree_action" name="activate"/>
111 <property name="accelerator">&lt;Control&gt;r</property>
112 </widget>
113 </child>
114 </widget>
115 </child>
116 <ui id="initial-state"><![CDATA[<ui>
117 <menubar action="menubar1" name="menubar1">
118 <menu action="FileMenu" name="FileMenu">
119 <menuitem action="Open" name="Open"/>
120 <separator/>
121 <menuitem action="Quit" name="Quit"/>
122 </menu>
124 <menu action="ActionsMenu" name="ActionsMenu"><menuitem action="ParentDirectory" name="ParentDirectory"/><menuitem action="Refresh" name="Refresh"/><menuitem action="ZoomFit" name="ZoomFit"/><menuitem action="ZoomIn" name="ZoomIn"/><menuitem action="ZoomOut" name="ZoomOut"/></menu></menubar><toolbar action="toolbar" name="toolbar">
125 <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"/><toolitem action="Back" name="Back"/><toolitem action="Forward" name="Forward"/></toolbar>
126 </ui>]]></ui>
127 </widget>
128 <widget class="GtkWindow" id="main_window">
129 <property name="default_height">400</property>
130 <property name="default_width">700</property>
131 <property name="title" context="yes" translatable="yes">Pysize</property>
132 <signal handler="quit_action" name="destroy" after="True"/>
133 <child>
134 <widget class="GtkVBox" id="vbox1">
135 <property name="visible">True</property>
136 <child>
137 <widget constructor="initial-state" class="GtkMenuBar" id="menubar1">
138 <property name="visible">True</property>
139 </widget>
140 <packing>
141 <property name="expand">False</property>
142 <property name="fill">False</property>
143 </packing>
144 </child>
145 <child>
146 <widget class="GtkHandleBox" id="handlebox1">
147 <property name="visible">True</property>
148 <child>
149 <widget constructor="initial-state" class="GtkToolbar" id="toolbar">
150 <property name="visible">True</property>
151 </widget>
152 </child>
153 </widget>
154 <packing>
155 <property name="expand">False</property>
156 <property name="fill">False</property>
157 <property name="position">1</property>
158 </packing>
159 </child>
160 <child>
161 <widget class="GtkScrolledWindow" id="scrolledwindow1">
162 <property name="hscrollbar_policy">automatic</property>
163 <property name="visible">True</property>
164 <property name="vscrollbar_policy">automatic</property>
165 <child>
166 <widget class="GtkViewport" id="viewport1">
167 <property name="shadow_type">etched-in</property>
168 <property name="visible">True</property>
169 <child>
170 <widget class="Custom" id="main_widget">
171 <property name="creation_function">pysize_widget</property>
172 </widget>
173 </child>
174 </widget>
175 </child>
176 </widget>
177 <packing>
178 <property name="position">2</property>
179 </packing>
180 </child>
181 <child>
182 <widget class="GtkHBox" id="hbox1">
183 <property name="visible">True</property>
184 <child>
185 <widget class="GtkStatusbar" id="status_bar">
186 <property name="has_resize_grip">False</property>
187 <property name="visible">True</property>
188 </widget>
189 </child>
190 <child>
191 <widget class="GtkProgressBar" id="progress_bar">
192 <property name="text" context="yes" translatable="yes"></property>
193 <property name="text_xalign">0.0</property>
194 <property name="text_yalign">0.0</property>
195 <property name="visible">True</property>
196 </widget>
197 <packing>
198 <property name="expand">False</property>
199 <property name="fill">False</property>
200 <property name="position">1</property>
201 </packing>
202 </child>
203 <child>
204 <widget class="GtkStatusbar" id="statusbar1">
205 <property name="visible">True</property>
206 <property name="width_request">20</property>
207 </widget>
208 <packing>
209 <property name="expand">False</property>
210 <property name="fill">False</property>
211 <property name="position">2</property>
212 </packing>
213 </child>
214 </widget>
215 <packing>
216 <property name="expand">False</property>
217 <property name="fill">False</property>
218 <property name="position">3</property>
219 </packing>
220 </child>
221 </widget>
222 </child>
223 </widget>
224 <widget class="GtkWindow" id="placeholder_as_gazpacho_prevents_standalone_widgets">
225 <property name="default_height">250</property>
226 <property name="default_width">440</property>
227 <child>
228 <widget class="GtkHBox" id="toolbar_remaining">
229 <property name="visible">True</property>
230 <child>
231 <widget class="GtkLabel" id="label1">
232 <property name="justify">right</property>
233 <property name="label" context="yes" translatable="yes">Max depth: </property>
234 <property name="visible">True</property>
235 <property name="xalign">0.0</property>
236 </widget>
237 <packing>
238 <property name="expand">False</property>
239 <property name="fill">False</property>
240 </packing>
241 </child>
242 <child>
243 <widget class="GtkSpinButton" id="max_depth">
244 <property name="activates_default">True</property>
245 <property name="adjustment">0 0 100 1 10 0</property>
246 <property name="is_focus">True</property>
247 <property name="max_length">4</property>
248 <property name="numeric">True</property>
249 <property name="text" context="yes" translatable="yes">0</property>
250 <property name="visible">True</property>
251 <property name="width_chars">4</property>
252 <signal handler="max_depth_changed" name="value-changed"/>
253 </widget>
254 <packing>
255 <property name="expand">False</property>
256 <property name="fill">False</property>
257 <property name="position">1</property>
258 </packing>
259 </child>
260 </widget>
261 </child>
262 </widget>
263 </glade-interface>