Update of /cvsroot/btrwiz/btrwiz/src
In directory usw-pr-cvs1:/tmp/cvs-serv19426
Added Files:
ProgressPage.java
Log Message:
new screen
--- NEW FILE: ProgressPage.java ---
import com.tildemh.jgwizard.*;
import gnu.gdk.*;
import gnu.gtk.*;
import gnu.pango.*;
import java.util.ResourceBundle;
/**
* Displayed while the files are being scanned and text is being replaced.
*/
class ProgressPage extends WizardPage{
private GtkVBox content;
private ResourceBundle messages;
private GtkProgressBar replaceProgress ;
/*
* Creates the screen
*/
ProgressPage(ResourceBundle rb, WizardForm parent, WizardPage parentScreen, String title){
super(parent, parentScreen, title, null);
messages = rb;
content = new GtkVBox(false, 0);
GtkFrame stageOneFrame = new GtkFrame(null);
GtkLabel fileSearch = new GtkLabel("Determining Folders to Scan");
stageOneFrame.add(fileSearch);
content.add(stageOneFrame);
GtkFrame stageTwoFrame = new GtkFrame(null);
GtkVBox stageTwoBox = new GtkVBox(false, 3);
GtkLabel scanning = new GtkLabel("Searching files");
stageTwoBox.add(scanning);
GtkLabel processed = new GtkLabel("Files Processed: 5/65");
stageTwoBox.add(processed);
GtkLabel curFile = new GtkLabel("Current file: index.cgi");
stageTwoBox.add(curFile);
replaceProgress = new GtkProgressBar();
replaceProgress.setFraction(0.34);
stageTwoBox.add(replaceProgress);
stageTwoFrame.add(stageTwoBox);
content.add(stageTwoFrame);
stageTwoFrame.setSensitive(false);
setButtons(false, null, false, null );
setContent(content);
}
}
|