[Btrwiz-commits] CVS: btrwiz/src IncludeFilters.java,1.3,1.4
Brought to you by:
howama
From: Mark H. <ho...@us...> - 2002-07-17 18:20:57
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv23450 Modified Files: IncludeFilters.java Log Message: added add & remove boxes Index: IncludeFilters.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/IncludeFilters.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IncludeFilters.java 17 Jul 2002 15:13:34 -0000 1.3 --- IncludeFilters.java 17 Jul 2002 18:20:53 -0000 1.4 *************** *** 14,19 **** private GtkVBox content; - private GtkListStore filtList; /** --- 14,19 ---- private GtkVBox content; private GtkListStore filtList; + private GtkEntry addTxt; /** *************** *** 61,67 **** --- 61,92 ---- content.add(view); */ + GtkHBox addSpace = new GtkHBox(false, 2); + addTxt = new GtkEntry(); + addSpace.add(addTxt); + GtkButton addBtn = new GtkButton( messages.getString("AddIncFilt") ); + addBtn.signalConnect("clicked", "addFilter", this); + addSpace.add(addBtn); + content.add(addSpace); + + GtkButton rmBtn = new GtkButton( messages.getString("RmIncFilt") ); + rmBtn.signalConnect("clicked", "rmSelected", this); + content.add(rmBtn); setButtons(true, messages.getString("Prev"), true, messages.getString("Next") ); setContent(content); + } + + /** + * Event handler for pressing of 'add' button. + */ + private void addFilter(){ + System.out.println(addTxt.getText()); + } + + /** + * Event handler for pressing of 'remove' button. + */ + private void rmSelected(){ + System.out.println("Remove Selected"); } } |