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