Update of /cvsroot/btrwiz/btrwiz/src
In directory usw-pr-cvs1:/tmp/cvs-serv18990
Added Files:
FindReplace.java
Log Message:
new screen
--- NEW FILE: FindReplace.java ---
import com.tildemh.jgwizard.*;
import gnu.gdk.*;
import gnu.gtk.*;
import gnu.pango.*;
import java.util.ResourceBundle;
/**
* Screen for entering text to be found and replaced.
*/
class FindReplace extends WizardPage{
private GtkVBox content;
private ResourceBundle messages;
private GtkTextBuffer findBuffer;
private GtkTextBuffer replaceBuffer;
private GtkCheckButton usingRegExp;
/*
* Creates the screen
*/
FindReplace(ResourceBundle rb, WizardForm parent, WizardPage parentScreen, String title){
super(parent, parentScreen, title, null);
messages = rb;
content = new GtkVBox(false, 0);
GtkLabel msgLbl = new GtkLabel( messages.getString("FindReplaceHead") );
msgLbl.setLineWrap(true);
msgLbl.setJustify(GtkJustification.FILL);
content.add(msgLbl);
GtkScrolledWindow findScroll = new GtkScrolledWindow();
findScroll.setPolicy(GtkPolicyType.AUTOMATIC, GtkPolicyType.AUTOMATIC);
findScroll.setShadowType(GtkShadowType.IN);
GtkLabel findLbl = new GtkLabel( messages.getString("FindTxt") );
findLbl.setJustify(GtkJustification.LEFT);
content.add(findLbl);
findBuffer = new GtkTextBuffer( new GtkTextTagTable() );
GtkTextView findTxtView = new GtkTextView( findBuffer );
findTxtView.setWrapMode(GtkWrapMode.WORD);
findScroll.add(findTxtView);
content.add(findScroll);
GtkScrolledWindow replaceScroll = new GtkScrolledWindow();
replaceScroll.setPolicy(GtkPolicyType.AUTOMATIC, GtkPolicyType.AUTOMATIC);
replaceScroll.setShadowType(GtkShadowType.IN);
GtkLabel replaceLbl = new GtkLabel( messages.getString("ReplaceTxt") );
replaceLbl.setJustify(GtkJustification.RIGHT);
content.add(replaceLbl);
replaceBuffer = new GtkTextBuffer( new GtkTextTagTable() );
GtkTextView replaceTxtView = new GtkTextView( replaceBuffer );
replaceTxtView.setWrapMode(GtkWrapMode.WORD);
replaceScroll.add(replaceTxtView);
content.add(replaceScroll);
usingRegExp = new GtkCheckButton( messages.getString("UsingRegExp") );
content.add(usingRegExp);
GtkLabel warnLbl = new GtkLabel( messages.getString("FindReplaceWarning") );
warnLbl.setLineWrap(true);
warnLbl.setJustify(GtkJustification.FILL);
content.add(warnLbl);
setButtons(true, messages.getString("Prev"), true, messages.getString("StartReplacing") );
setContent(content);
}
}
|