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 class TestThemes : VBox 32 { 33 34 Window window; 35 ScrolledWindow sw; 36 37 this(Window window) 38 { 39 this.window = window; 40 debug(1) 41 { 42 writeln("instantiating TestThemes"); 43 } 44 45 super(false,8); 46 47 sw = new ScrolledWindow(null,null); 48 49 sw.addWithViewport(initTable()); 50 51 ButtonBox hBox = HButtonBox.createActionBox(); 52 53 packStart(sw,true,true,0); 54 packStart(hBox,false,false,0); 55 56 } 57 58 Widget initTable() 59 { 60 61 return new ComboBox(); 62 } 63 }