[Btrwiz-commits] CVS: btrwiz/src IncludeFilters.java,1.2,1.3
Brought to you by:
howama
From: Mark H. <ho...@us...> - 2002-07-17 15:13:37
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv20532 Modified Files: IncludeFilters.java Log Message: list work Index: IncludeFilters.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/IncludeFilters.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IncludeFilters.java 13 Jul 2002 14:00:26 -0000 1.2 --- IncludeFilters.java 17 Jul 2002 15:13:34 -0000 1.3 *************** *** 3,6 **** --- 3,7 ---- import gnu.gtk.*; import gnu.pango.*; + import gnu.glib.*; import java.util.ResourceBundle; *************** *** 13,22 **** private GtkVBox content; /** * Creates the page */ ! IncludeFilters(ResourceBundle rb, WizardForm parent, String title){ ! super(parent, title, null); messages = rb; --- 14,25 ---- private GtkVBox content; + + private GtkListStore filtList; /** * Creates the page */ ! IncludeFilters(ResourceBundle rb, WizardForm parent, WizardPage parentScreen, String title){ ! super(parent, parentScreen, title, null); messages = rb; *************** *** 28,31 **** --- 31,64 ---- content.add(headLbl); + GtkLabel curFiltLbl = new GtkLabel( messages.getString("CurIncFilters") ); + content.add(curFiltLbl); + /* + GtkListStore model; + GtkTreeView view; + GtkTreeViewColumn column; + GtkCellRendererText cellRenderer; + + GType[] types = new GType[1]; + types[0] = gnu.glib.GType.STRING(); + // types[1] = gnu.glib.GType.STRING(); + + model = new GtkListStore( 1, types ); + view = new GtkTreeView(model); + cellRenderer = new GtkCellRendererText(); + column = new GtkTreeViewColumn(); + column.setTitle("title"); + column.addAttribute(cellRenderer, "text", 0); + view.appendColumn(column); + + GtkTreeIter iter = null; + GValue gval = null; + model.append(iter); // This aquires the iterator + model.getValue(iter, 0, gval); + // gval.setString("Testing"); + model.setValue(iter, 0, gval); + + + content.add(view); + */ setButtons(true, messages.getString("Prev"), true, messages.getString("Next") ); |