1 /*
2  * This file is part of gtkD.
3  * 
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  * 
9  * gtkD is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Lesser General Public License for more details.
13  * 
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with gtkD; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
17  */
18 
19 module TestThemes;
20 
21 private import gtk.Window;
22 
23 private import gtk.VBox;
24 private import gtk.ScrolledWindow;
25 private import gtk.Widget;
26 private import gtk.ComboBox;
27 private import gtk.ButtonBox;
28 private import gtk.HButtonBox;
29 private import gtk.Button;
30 
31 debug import std.stdio;
32 
33 class TestThemes : VBox
34 {
35 
36 	Window window;
37 	ScrolledWindow sw;
38 		
39 	this(Window window)
40 	{
41 		this.window = window;
42 		debug(1)
43 		{
44 			writeln("instantiating TestThemes");
45 		}
46 
47 		super(false,8);
48 		
49 		sw = new ScrolledWindow(null,null);
50 		
51 		sw.addWithViewport(initTable());
52 
53 		ButtonBox hBox = HButtonBox.createActionBox();
54 
55 		packStart(sw,true,true,0);
56 		packStart(hBox,false,false,0);
57 
58 	}
59 
60 	Widget initTable()
61 	{
62 		
63 		return new ComboBox();
64 	}
65 }