1 module mwin;
2 
3 public import gtk.AccelLabel;
4 public import gtk.Box;
5 public import gtk.Button;
6 public import gtk.Entry;
7 public import gtk.ImageMenuItem;
8 public import gtk.Label;
9 public import gtk.Menu;
10 public import gtk.MenuBar;
11 public import gtk.MenuItem;
12 public import gtk.Notebook;
13 public import gtk.SeparatorMenuItem;
14 import gtk.Window;
15 import gtk.Builder;
16 import std.stdio;
17 
18 abstract class MWin : Window {
19 	string __gladeString = `<?xml version="1.0" encoding="UTF-8"?>
20 <!-- Generated with glade 3.22.1 -->
21 <interface>
22   <requires lib="gtk+" version="3.10"/>
23   <object class="GtkWindow" id="window1">
24     <property name="can_focus">False</property>
25     <child>
26       <placeholder/>
27     </child>
28     <child>
29       <object class="GtkBox" id="box1">
30         <property name="visible">True</property>
31         <property name="can_focus">False</property>
32         <property name="orientation">vertical</property>
33         <child>
34           <object class="GtkMenuBar" id="menubar1">
35             <property name="visible">True</property>
36             <property name="can_focus">False</property>
37             <child>
38               <object class="GtkMenuItem" id="menuitem1">
39                 <property name="visible">True</property>
40                 <property name="can_focus">False</property>
41                 <property name="label" translatable="yes">_File</property>
42                 <property name="use_underline">True</property>
43                 <child type="submenu">
44                   <object class="GtkMenu" id="menu1">
45                     <property name="visible">True</property>
46                     <property name="can_focus">False</property>
47                     <child>
48                       <object class="GtkImageMenuItem" id="imagemenuitem1">
49                         <property name="label">gtk-new</property>
50                         <property name="visible">True</property>
51                         <property name="can_focus">False</property>
52                         <property name="use_underline">True</property>
53                         <property name="use_stock">True</property>
54                       </object>
55                     </child>
56                     <child>
57                       <object class="GtkImageMenuItem" id="imagemenuitem2">
58                         <property name="label">gtk-open</property>
59                         <property name="visible">True</property>
60                         <property name="can_focus">False</property>
61                         <property name="use_underline">True</property>
62                         <property name="use_stock">True</property>
63                       </object>
64                     </child>
65                     <child>
66                       <object class="GtkImageMenuItem" id="imagemenuitem3">
67                         <property name="label">gtk-save</property>
68                         <property name="visible">True</property>
69                         <property name="can_focus">False</property>
70                         <property name="use_underline">True</property>
71                         <property name="use_stock">True</property>
72                       </object>
73                     </child>
74                     <child>
75                       <object class="GtkImageMenuItem" id="imagemenuitem4">
76                         <property name="label">gtk-save-as</property>
77                         <property name="visible">True</property>
78                         <property name="can_focus">False</property>
79                         <property name="use_underline">True</property>
80                         <property name="use_stock">True</property>
81                       </object>
82                     </child>
83                     <child>
84                       <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
85                         <property name="visible">True</property>
86                         <property name="can_focus">False</property>
87                       </object>
88                     </child>
89                     <child>
90                       <object class="GtkImageMenuItem" id="quitMenuEntry">
91                         <property name="label">gtk-quit</property>
92                         <property name="visible">True</property>
93                         <property name="can_focus">False</property>
94                         <property name="use_underline">True</property>
95                         <property name="use_stock">True</property>
96                       </object>
97                     </child>
98                   </object>
99                 </child>
100               </object>
101             </child>
102             <child>
103               <object class="GtkMenuItem" id="menuitem2">
104                 <property name="visible">True</property>
105                 <property name="can_focus">False</property>
106                 <property name="label" translatable="yes">_Edit</property>
107                 <property name="use_underline">True</property>
108                 <child type="submenu">
109                   <object class="GtkMenu" id="menu2">
110                     <property name="visible">True</property>
111                     <property name="can_focus">False</property>
112                     <child>
113                       <object class="GtkImageMenuItem" id="imagemenuitem6">
114                         <property name="label">gtk-cut</property>
115                         <property name="visible">True</property>
116                         <property name="can_focus">False</property>
117                         <property name="use_underline">True</property>
118                         <property name="use_stock">True</property>
119                       </object>
120                     </child>
121                     <child>
122                       <object class="GtkImageMenuItem" id="imagemenuitem7">
123                         <property name="label">gtk-copy</property>
124                         <property name="visible">True</property>
125                         <property name="can_focus">False</property>
126                         <property name="use_underline">True</property>
127                         <property name="use_stock">True</property>
128                       </object>
129                     </child>
130                     <child>
131                       <object class="GtkImageMenuItem" id="imagemenuitem8">
132                         <property name="label">gtk-paste</property>
133                         <property name="visible">True</property>
134                         <property name="can_focus">False</property>
135                         <property name="use_underline">True</property>
136                         <property name="use_stock">True</property>
137                       </object>
138                     </child>
139                     <child>
140                       <object class="GtkImageMenuItem" id="imagemenuitem9">
141                         <property name="label">gtk-delete</property>
142                         <property name="visible">True</property>
143                         <property name="can_focus">False</property>
144                         <property name="use_underline">True</property>
145                         <property name="use_stock">True</property>
146                       </object>
147                     </child>
148                   </object>
149                 </child>
150               </object>
151             </child>
152             <child>
153               <object class="GtkMenuItem" id="menuitem3">
154                 <property name="visible">True</property>
155                 <property name="can_focus">False</property>
156                 <property name="label" translatable="yes">_View</property>
157                 <property name="use_underline">True</property>
158               </object>
159             </child>
160             <child>
161               <object class="GtkMenuItem" id="menuitem4">
162                 <property name="visible">True</property>
163                 <property name="can_focus">False</property>
164                 <property name="label" translatable="yes">_Help</property>
165                 <property name="use_underline">True</property>
166                 <child type="submenu">
167                   <object class="GtkMenu" id="menu3">
168                     <property name="visible">True</property>
169                     <property name="can_focus">False</property>
170                     <child>
171                       <object class="GtkImageMenuItem" id="imagemenuitem10">
172                         <property name="label">gtk-about</property>
173                         <property name="visible">True</property>
174                         <property name="can_focus">False</property>
175                         <property name="use_underline">True</property>
176                         <property name="use_stock">True</property>
177                       </object>
178                     </child>
179                   </object>
180                 </child>
181               </object>
182             </child>
183           </object>
184           <packing>
185             <property name="expand">False</property>
186             <property name="fill">True</property>
187             <property name="position">0</property>
188           </packing>
189         </child>
190         <child>
191           <object class="GtkButton" id="button1">
192             <property name="label" translatable="yes">button</property>
193             <property name="visible">True</property>
194             <property name="can_focus">True</property>
195             <property name="receives_default">True</property>
196           </object>
197           <packing>
198             <property name="expand">False</property>
199             <property name="fill">True</property>
200             <property name="position">1</property>
201           </packing>
202         </child>
203         <child>
204           <object class="GtkNotebook" id="notebook1">
205             <property name="visible">True</property>
206             <property name="can_focus">True</property>
207             <child>
208               <object class="GtkButton" id="button2">
209                 <property name="label" translatable="yes">button</property>
210                 <property name="visible">True</property>
211                 <property name="can_focus">True</property>
212                 <property name="receives_default">True</property>
213               </object>
214             </child>
215             <child type="tab">
216               <object class="GtkLabel" id="label1">
217                 <property name="visible">True</property>
218                 <property name="can_focus">False</property>
219                 <property name="label" translatable="yes">page 1</property>
220               </object>
221               <packing>
222                 <property name="tab_fill">False</property>
223               </packing>
224             </child>
225             <child>
226               <object class="GtkEntry" id="entry1">
227                 <property name="visible">True</property>
228                 <property name="can_focus">True</property>
229               </object>
230               <packing>
231                 <property name="position">1</property>
232               </packing>
233             </child>
234             <child type="tab">
235               <object class="GtkLabel" id="label2">
236                 <property name="visible">True</property>
237                 <property name="can_focus">False</property>
238                 <property name="label" translatable="yes">page 2</property>
239               </object>
240               <packing>
241                 <property name="position">1</property>
242                 <property name="tab_fill">False</property>
243               </packing>
244             </child>
245             <child>
246               <object class="GtkAccelLabel" id="accellabel1">
247                 <property name="visible">True</property>
248                 <property name="can_focus">False</property>
249                 <property name="label" translatable="yes">label</property>
250               </object>
251               <packing>
252                 <property name="position">2</property>
253               </packing>
254             </child>
255             <child type="tab">
256               <object class="GtkLabel" id="label3">
257                 <property name="visible">True</property>
258                 <property name="can_focus">False</property>
259                 <property name="label" translatable="yes">page 3</property>
260               </object>
261               <packing>
262                 <property name="position">2</property>
263                 <property name="tab_fill">False</property>
264               </packing>
265             </child>
266           </object>
267           <packing>
268             <property name="expand">True</property>
269             <property name="fill">True</property>
270             <property name="position">2</property>
271           </packing>
272         </child>
273       </object>
274     </child>
275   </object>
276 </interface>
277 `;
278 	Builder __superSecretBuilder;
279 	Window window1;
280 	Box box1;
281 	MenuBar menubar1;
282 	MenuItem menuitem1;
283 	Menu menu1;
284 	ImageMenuItem imagemenuitem1;
285 	ImageMenuItem imagemenuitem2;
286 	ImageMenuItem imagemenuitem3;
287 	ImageMenuItem imagemenuitem4;
288 	SeparatorMenuItem separatormenuitem1;
289 	ImageMenuItem quitMenuEntry;
290 	MenuItem menuitem2;
291 	Menu menu2;
292 	ImageMenuItem imagemenuitem6;
293 	ImageMenuItem imagemenuitem7;
294 	ImageMenuItem imagemenuitem8;
295 	ImageMenuItem imagemenuitem9;
296 	MenuItem menuitem3;
297 	MenuItem menuitem4;
298 	Menu menu3;
299 	ImageMenuItem imagemenuitem10;
300 	Button button1;
301 	Notebook notebook1;
302 	Button button2;
303 	Label label1;
304 	Entry entry1;
305 	Label label2;
306 	AccelLabel accellabel1;
307 	Label label3;
308 
309 	this() {
310 		super("");
311 		__superSecretBuilder = new Builder();
312 		__superSecretBuilder.addFromString(__gladeString);
313 		this.window1 = cast(Window)__superSecretBuilder.getObject("window1");
314 		this.box1 = cast(Box)__superSecretBuilder.getObject("box1");
315 		this.box1.reparent(this);
316 		this.add(box1);
317 		this.menubar1 = cast(MenuBar)__superSecretBuilder.getObject("menubar1");
318 		this.menuitem1 = cast(MenuItem)__superSecretBuilder.getObject("menuitem1");
319 		this.menu1 = cast(Menu)__superSecretBuilder.getObject("menu1");
320 		this.imagemenuitem1 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem1");
321 		this.imagemenuitem2 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem2");
322 		this.imagemenuitem3 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem3");
323 		this.imagemenuitem4 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem4");
324 		this.separatormenuitem1 = cast(SeparatorMenuItem)__superSecretBuilder.getObject("separatormenuitem1");
325 		this.quitMenuEntry = cast(ImageMenuItem)__superSecretBuilder.getObject("quitMenuEntry");
326 		this.menuitem2 = cast(MenuItem)__superSecretBuilder.getObject("menuitem2");
327 		this.menu2 = cast(Menu)__superSecretBuilder.getObject("menu2");
328 		this.imagemenuitem6 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem6");
329 		this.imagemenuitem7 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem7");
330 		this.imagemenuitem8 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem8");
331 		this.imagemenuitem9 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem9");
332 		this.menuitem3 = cast(MenuItem)__superSecretBuilder.getObject("menuitem3");
333 		this.menuitem4 = cast(MenuItem)__superSecretBuilder.getObject("menuitem4");
334 		this.menu3 = cast(Menu)__superSecretBuilder.getObject("menu3");
335 		this.imagemenuitem10 = cast(ImageMenuItem)__superSecretBuilder.getObject("imagemenuitem10");
336 		this.button1 = cast(Button)__superSecretBuilder.getObject("button1");
337 		this.notebook1 = cast(Notebook)__superSecretBuilder.getObject("notebook1");
338 		this.button2 = cast(Button)__superSecretBuilder.getObject("button2");
339 		this.label1 = cast(Label)__superSecretBuilder.getObject("label1");
340 		this.entry1 = cast(Entry)__superSecretBuilder.getObject("entry1");
341 		this.label2 = cast(Label)__superSecretBuilder.getObject("label2");
342 		this.accellabel1 = cast(AccelLabel)__superSecretBuilder.getObject("accellabel1");
343 		this.label3 = cast(Label)__superSecretBuilder.getObject("label3");
344 		this.menuitem1.addOnActivate(&this.menuitem1Dele);
345 		this.imagemenuitem1.addOnActivate(&this.imagemenuitem1Dele);
346 		this.imagemenuitem2.addOnActivate(&this.imagemenuitem2Dele);
347 		this.imagemenuitem3.addOnActivate(&this.imagemenuitem3Dele);
348 		this.imagemenuitem4.addOnActivate(&this.imagemenuitem4Dele);
349 		this.quitMenuEntry.addOnActivate(&this.quitMenuEntryDele);
350 		this.menuitem2.addOnActivate(&this.menuitem2Dele);
351 		this.imagemenuitem6.addOnActivate(&this.imagemenuitem6Dele);
352 		this.imagemenuitem7.addOnActivate(&this.imagemenuitem7Dele);
353 		this.imagemenuitem8.addOnActivate(&this.imagemenuitem8Dele);
354 		this.imagemenuitem9.addOnActivate(&this.imagemenuitem9Dele);
355 		this.menuitem3.addOnActivate(&this.menuitem3Dele);
356 		this.menuitem4.addOnActivate(&this.menuitem4Dele);
357 		this.imagemenuitem10.addOnActivate(&this.imagemenuitem10Dele);
358 		this.button1.addOnClicked(&this.button1Dele);
359 		this.button2.addOnClicked(&this.button2Dele);
360 		showAll();
361 	}
362 
363 	void menuitem1Dele(MenuItem sig) {
364 		menuitem1Handler(sig);
365 	}
366 
367 	void menuitem1Handler(MenuItem sig) {
368 		writeln("menuitem1HandlerStub");
369 	}
370 
371 	void imagemenuitem1Dele(MenuItem sig) {
372 		imagemenuitem1Handler(sig);
373 	}
374 
375 	void imagemenuitem1Handler(MenuItem sig) {
376 		writeln("imagemenuitem1HandlerStub");
377 	}
378 
379 	void imagemenuitem2Dele(MenuItem sig) {
380 		imagemenuitem2Handler(sig);
381 	}
382 
383 	void imagemenuitem2Handler(MenuItem sig) {
384 		writeln("imagemenuitem2HandlerStub");
385 	}
386 
387 	void imagemenuitem3Dele(MenuItem sig) {
388 		imagemenuitem3Handler(sig);
389 	}
390 
391 	void imagemenuitem3Handler(MenuItem sig) {
392 		writeln("imagemenuitem3HandlerStub");
393 	}
394 
395 	void imagemenuitem4Dele(MenuItem sig) {
396 		imagemenuitem4Handler(sig);
397 	}
398 
399 	void imagemenuitem4Handler(MenuItem sig) {
400 		writeln("imagemenuitem4HandlerStub");
401 	}
402 
403 	void quitMenuEntryDele(MenuItem sig) {
404 		quitMenuEntryHandler(sig);
405 	}
406 
407 	void quitMenuEntryHandler(MenuItem sig) {
408 		writeln("quitMenuEntryHandlerStub");
409 	}
410 
411 	void menuitem2Dele(MenuItem sig) {
412 		menuitem2Handler(sig);
413 	}
414 
415 	void menuitem2Handler(MenuItem sig) {
416 		writeln("menuitem2HandlerStub");
417 	}
418 
419 	void imagemenuitem6Dele(MenuItem sig) {
420 		imagemenuitem6Handler(sig);
421 	}
422 
423 	void imagemenuitem6Handler(MenuItem sig) {
424 		writeln("imagemenuitem6HandlerStub");
425 	}
426 
427 	void imagemenuitem7Dele(MenuItem sig) {
428 		imagemenuitem7Handler(sig);
429 	}
430 
431 	void imagemenuitem7Handler(MenuItem sig) {
432 		writeln("imagemenuitem7HandlerStub");
433 	}
434 
435 	void imagemenuitem8Dele(MenuItem sig) {
436 		imagemenuitem8Handler(sig);
437 	}
438 
439 	void imagemenuitem8Handler(MenuItem sig) {
440 		writeln("imagemenuitem8HandlerStub");
441 	}
442 
443 	void imagemenuitem9Dele(MenuItem sig) {
444 		imagemenuitem9Handler(sig);
445 	}
446 
447 	void imagemenuitem9Handler(MenuItem sig) {
448 		writeln("imagemenuitem9HandlerStub");
449 	}
450 
451 	void menuitem3Dele(MenuItem sig) {
452 		menuitem3Handler(sig);
453 	}
454 
455 	void menuitem3Handler(MenuItem sig) {
456 		writeln("menuitem3HandlerStub");
457 	}
458 
459 	void menuitem4Dele(MenuItem sig) {
460 		menuitem4Handler(sig);
461 	}
462 
463 	void menuitem4Handler(MenuItem sig) {
464 		writeln("menuitem4HandlerStub");
465 	}
466 
467 	void imagemenuitem10Dele(MenuItem sig) {
468 		imagemenuitem10Handler(sig);
469 	}
470 
471 	void imagemenuitem10Handler(MenuItem sig) {
472 		writeln("imagemenuitem10HandlerStub");
473 	}
474 
475 	void button1Dele(Button sig) {
476 		button1Handler(sig);
477 	}
478 
479 	void button1Handler(Button sig) {
480 		writeln("button1HandlerStub");
481 	}
482 
483 	void button2Dele(Button sig) {
484 		button2Handler(sig);
485 	}
486 
487 	void button2Handler(Button sig) {
488 		writeln("button2HandlerStub");
489 	}
490 }