btrwiz-commits Mailing List for Batch Text Replacer Wizard (Page 2)
Brought to you by:
howama
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(23) |
Aug
(7) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|
From: Mark H. <ho...@us...> - 2002-07-17 15:00:01
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv15660 Modified Files: BtrWiz.java Log Message: sorted out parent screens and added a few more screens Index: BtrWiz.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/BtrWiz.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BtrWiz.java 13 Jul 2002 14:00:26 -0000 1.3 --- BtrWiz.java 17 Jul 2002 14:59:58 -0000 1.4 *************** *** 50,63 **** */ public void customise(){ ! WizardPage welcomePage = new WelcomePage(messages, this, messages.getString("WelcomeTitle") ); ! WizardPage selFolders = new FolderSelect(messages, this, messages.getString("SelFoldersTitle") ); ! WizardPage incFilters = new IncludeFilters(messages, this, messages.getString("IncFiltersTitle") ); ! setFirstPage(welcomePage); welcomePage.setFirstChild(selFolders); selFolders.setParentScreen(welcomePage); selFolders.setFirstChild(incFilters); incFilters.setParentScreen(selFolders); } --- 50,79 ---- */ public void customise(){ ! WizardPage welcomePage = new WelcomePage(messages, this, null, messages.getString("WelcomeTitle") ); ! WizardPage selFolders = new FolderSelect(messages, this, welcomePage, messages.getString("SelFoldersTitle") ); ! WizardPage incFilters = new IncludeFilters(messages, this, selFolders, messages.getString("IncFiltersTitle") ); ! WizardPage excFilters = new ExcludeFilters(messages, this, selFolders, messages.getString("ExcFiltersTitle") ); ! WizardPage findReplace = new FindReplace(messages, this, welcomePage, messages.getString("FindReplaceTitle") ); ! WizardPage progress = new ProgressPage(messages, this, findReplace, messages.getString("ProgressTitle") ); ! WizardPage finished = new SummaryPage(messages, this, welcomePage, messages.getString("summaryTitle") ); ! setFirstPage(welcomePage); welcomePage.setFirstChild(selFolders); + welcomePage.setNextScreen(welcomePage); selFolders.setParentScreen(welcomePage); selFolders.setFirstChild(incFilters); incFilters.setParentScreen(selFolders); + + incFilters.setNextScreen(excFilters); + excFilters.setPreviousScreen(incFilters); + excFilters.setNextScreen(null); + + selFolders.setNextScreen(findReplace); + findReplace.setPreviousScreen(selFolders); + + findReplace.setFirstChild(progress); + + } |
From: Mark H. <ho...@us...> - 2002-07-13 14:00:29
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv27037 Modified Files: BtrWiz.java FolderSelect.java IncludeFilters.java WelcomePage.java Log Message: updated javadoc documentation Index: BtrWiz.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/BtrWiz.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BtrWiz.java 13 Jul 2002 11:15:18 -0000 1.2 --- BtrWiz.java 13 Jul 2002 14:00:26 -0000 1.3 *************** *** 1,3 **** - import com.tildemh.jgwizard.*; import gnu.gdk.*; --- 1,2 ---- *************** *** 6,18 **** import java.util.ResourceBundle; import java.util.Locale; class BtrWiz extends WizardForm{ public static final String VERSION = "2.9.0-UNSTABLE-CVS"; private static ResourceBundle messages; - static String language = new String("en"); - static String country = new String("GB"); - static Locale currentLocale = new Locale(language, country); public static void main( String[] args){ ! messages = ResourceBundle.getBundle("InterfaceStr",currentLocale); Gtk.init(args.length, args); --- 5,36 ---- import java.util.ResourceBundle; import java.util.Locale; + + /** + * Batch Text Replacer - a graphical application to facilitate the easy + * replacement of text strings withing many source files. + * This is the main class which creates the application. + * @author Mark Howard + */ class BtrWiz extends WizardForm{ + /** Used in various places **/ public static final String VERSION = "2.9.0-UNSTABLE-CVS"; + /** ResourceBundle to allow easy internationalization */ private static ResourceBundle messages; + /* + * The following may be used to override lacale settings for development + * purposes if needed + */ + // static String language = new String("en"); + // static String country = new String("GB"); + // static Locale currentLocale = new Locale(language, country); + + /** + * Starts the Gtk appication + * @param args No arguments have been defined yet - TODO + */ public static void main( String[] args){ ! // messages = ResourceBundle.getBundle("InterfaceStr",currentLocale); ! messages = ResourceBundle.getBundle("InterfaceStr", Locale.getDefault() ); Gtk.init(args.length, args); *************** *** 21,28 **** --- 39,52 ---- } + /** + * Create the application, mostly done by the superclass + */ public BtrWiz(){ super( "BTRWiz "+VERSION ); } + /** + * Sets up the screens of the wizard + */ public void customise(){ WizardPage welcomePage = new WelcomePage(messages, this, messages.getString("WelcomeTitle") ); Index: FolderSelect.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/FolderSelect.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FolderSelect.java 13 Jul 2002 11:14:30 -0000 1.2 --- FolderSelect.java 13 Jul 2002 14:00:26 -0000 1.3 *************** *** 1,3 **** - import com.tildemh.jgwizard.*; import gnu.gdk.*; --- 1,2 ---- *************** *** 6,15 **** import java.util.ResourceBundle; class FolderSelect extends WizardPage{ private ResourceBundle messages; ! private GtkVBox content; GtkEntry dirEntry; FolderSelect(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); --- 5,23 ---- import java.util.ResourceBundle; + + /** + * The second page of the wizard, responsible for delecting the folders to be + * scanned. + */ class FolderSelect extends WizardPage{ private ResourceBundle messages; ! ! /** The content container to be shown on the screen */ private GtkVBox content; GtkEntry dirEntry; + /** + * Creates the graphical elements and sets up signals + */ FolderSelect(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); *************** *** 36,40 **** --- 44,55 ---- setContent(content); } + + GtkFileSelection selector; + + /** + * Sets up and displays a modified file selection dialog to act as a folder + * selection dialog. + */ private void showSelectBox(){ selector = new GtkFileSelection( messages.getString("SelDirTS") ); *************** *** 46,53 **** --- 61,77 ---- selector.show(); } + + /** + * After the file selection dialog has run, this will change the selected + * directory. + */ private void setDir(){ dirEntry.setText(selector.getFilename()); rmSelector(); } + + /** + * Closes the folder selection dialog + */ private void rmSelector(){ selector.destroy(); Index: IncludeFilters.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/IncludeFilters.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IncludeFilters.java 13 Jul 2002 11:13:05 -0000 1.1 --- IncludeFilters.java 13 Jul 2002 14:00:26 -0000 1.2 *************** *** 1,3 **** - import com.tildemh.jgwizard.*; import gnu.gdk.*; --- 1,2 ---- *************** *** 6,9 **** --- 5,12 ---- import java.util.ResourceBundle; + /** + * The third page of the wizard defines filters for files to be included in + * the scanning. + */ class IncludeFilters extends WizardPage{ private ResourceBundle messages; *************** *** 11,14 **** --- 14,20 ---- private GtkVBox content; + /** + * Creates the page + */ IncludeFilters(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); Index: WelcomePage.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/WelcomePage.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WelcomePage.java 13 Jul 2002 11:14:30 -0000 1.2 --- WelcomePage.java 13 Jul 2002 14:00:26 -0000 1.3 *************** *** 1,3 **** - import com.tildemh.jgwizard.*; import gnu.gdk.*; --- 1,2 ---- *************** *** 6,9 **** --- 5,11 ---- import java.util.ResourceBundle; + /** + * The first screen of the wizard. This gives an introduction to the program. + */ class WelcomePage extends WizardPage{ *************** *** 11,14 **** --- 13,19 ---- private ResourceBundle messages; + /* + * Creates the screen + */ WelcomePage(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); |
From: Mark H. <ho...@us...> - 2002-07-13 11:15:22
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv16773 Modified Files: BtrWiz.java Log Message: internationalisation + added inc filters screen Index: BtrWiz.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/BtrWiz.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BtrWiz.java 12 Jul 2002 18:02:40 -0000 1.1 --- BtrWiz.java 13 Jul 2002 11:15:18 -0000 1.2 *************** *** 4,12 **** import gnu.gtk.*; import gnu.pango.*; ! class BtrWiz extends WizardForm{ ! public static final String VERSION = "CVS"; public static void main( String[] args){ Gtk.init(args.length, args); BtrWiz app = new BtrWiz(); --- 4,19 ---- import gnu.gtk.*; import gnu.pango.*; ! import java.util.ResourceBundle; ! import java.util.Locale; class BtrWiz extends WizardForm{ ! public static final String VERSION = "2.9.0-UNSTABLE-CVS"; ! private static ResourceBundle messages; ! static String language = new String("en"); ! static String country = new String("GB"); ! static Locale currentLocale = new Locale(language, country); public static void main( String[] args){ + messages = ResourceBundle.getBundle("InterfaceStr",currentLocale); + Gtk.init(args.length, args); BtrWiz app = new BtrWiz(); *************** *** 19,28 **** public void customise(){ ! WizardPage welcomePage = new WelcomePage(this, "Welcome"); ! WizardPage selFolders = new FolderSelect(this, "Select Folders"); setFirstPage(welcomePage); welcomePage.setFirstChild(selFolders); selFolders.setParentScreen(welcomePage); } --- 26,39 ---- public void customise(){ ! WizardPage welcomePage = new WelcomePage(messages, this, messages.getString("WelcomeTitle") ); ! WizardPage selFolders = new FolderSelect(messages, this, messages.getString("SelFoldersTitle") ); ! WizardPage incFilters = new IncludeFilters(messages, this, messages.getString("IncFiltersTitle") ); setFirstPage(welcomePage); welcomePage.setFirstChild(selFolders); selFolders.setParentScreen(welcomePage); + + selFolders.setFirstChild(incFilters); + incFilters.setParentScreen(selFolders); } |
From: Mark H. <ho...@us...> - 2002-07-13 11:14:33
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv16638 Modified Files: FolderSelect.java WelcomePage.java Log Message: internationalisation Index: FolderSelect.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/FolderSelect.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FolderSelect.java 12 Jul 2002 18:02:40 -0000 1.1 --- FolderSelect.java 13 Jul 2002 11:14:30 -0000 1.2 *************** *** 4,19 **** import gnu.gtk.*; import gnu.pango.*; class FolderSelect extends WizardPage{ ! private GtkVBox content; GtkEntry dirEntry; ! FolderSelect(WizardForm parent, String title){ super(parent, title, null); content = new GtkVBox(false, 0); ! GtkLabel headLbl = new GtkLabel("Please select the directory which contains the files to be searched. You will be able to filter files (so that not all files are searched) in the following screens."); headLbl.setLineWrap(true); headLbl.setJustify(GtkJustification.FILL); --- 4,22 ---- import gnu.gtk.*; import gnu.pango.*; + import java.util.ResourceBundle; class FolderSelect extends WizardPage{ ! private ResourceBundle messages; ! private GtkVBox content; GtkEntry dirEntry; ! FolderSelect(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); + messages = rb; content = new GtkVBox(false, 0); ! GtkLabel headLbl = new GtkLabel(messages.getString("Head") ); headLbl.setLineWrap(true); headLbl.setJustify(GtkJustification.FILL); *************** *** 21,33 **** dirEntry = new GtkEntry(); ! dirEntry.setText( System.getProperty("user.dir") ); content.add(dirEntry); ! GtkButton selDir = new GtkButton("Select Directory"); selDir.signalConnect("clicked", "showSelectBox", this); content.add(selDir); ! setButtons(true, "Previous", true, "Next"); setContent(content); --- 24,36 ---- dirEntry = new GtkEntry(); ! dirEntry.setText( System.getProperty("user.dir") + System.getProperty("file.separator") ); content.add(dirEntry); ! GtkButton selDir = new GtkButton( messages.getString("SelDir") ); selDir.signalConnect("clicked", "showSelectBox", this); content.add(selDir); ! setButtons(true, messages.getString("Prev"), true, messages.getString("Next") ); setContent(content); *************** *** 35,45 **** GtkFileSelection selector; private void showSelectBox(){ ! selector = new GtkFileSelection("Select Diretory to scan"); selector.setFilename(dirEntry.getText()); selector.getOkButton().signalConnect("clicked", "setDir", this); selector.show(); } private void setDir(){ dirEntry.setText(selector.getFilename()); } } --- 38,55 ---- GtkFileSelection selector; private void showSelectBox(){ ! selector = new GtkFileSelection( messages.getString("SelDirTS") ); selector.setFilename(dirEntry.getText()); selector.getOkButton().signalConnect("clicked", "setDir", this); + selector.getCancelButton().signalConnect("clicked", "rmSelector", this); + selector.getFileList().setSensitive(false); + selector.getSelectionEntry().hide(); selector.show(); } private void setDir(){ dirEntry.setText(selector.getFilename()); + rmSelector(); + } + private void rmSelector(){ + selector.destroy(); } } Index: WelcomePage.java =================================================================== RCS file: /cvsroot/btrwiz/btrwiz/src/WelcomePage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WelcomePage.java 12 Jul 2002 18:02:40 -0000 1.1 --- WelcomePage.java 13 Jul 2002 11:14:30 -0000 1.2 *************** *** 4,15 **** import gnu.gtk.*; import gnu.pango.*; class WelcomePage extends WizardPage{ private GtkVBox content; ! ! WelcomePage(WizardForm parent, String title){ super(parent, title, null); content = new GtkVBox(false, 0); --- 4,17 ---- import gnu.gtk.*; import gnu.pango.*; + import java.util.ResourceBundle; class WelcomePage extends WizardPage{ private GtkVBox content; ! private ResourceBundle messages; ! WelcomePage(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); + messages = rb; content = new GtkVBox(false, 0); *************** *** 21,29 **** content.add(titleLbl); ! GtkLabel verLbl = new GtkLabel("Version "+BtrWiz.VERSION); verLbl.setJustify(GtkJustification.CENTER); content.add(verLbl); ! GtkLabel msgLbl = new GtkLabel("WARNING: THIS IS DEVELOPMENTAL SOFTWARE. DO NOT TRUST IT. \n\nThis is open source software, written in Java and using the Java-GNOME Gtk Bindings. If you know anything about java or Gtk programming and would like to help, please get in contact with us."); msgLbl.setLineWrap(true); msgLbl.setJustify(GtkJustification.FILL); --- 23,31 ---- content.add(titleLbl); ! GtkLabel verLbl = new GtkLabel( messages.getString("Version")+BtrWiz.VERSION); verLbl.setJustify(GtkJustification.CENTER); content.add(verLbl); ! GtkLabel msgLbl = new GtkLabel( messages.getString("DevelWarning") ); msgLbl.setLineWrap(true); msgLbl.setJustify(GtkJustification.FILL); *************** *** 34,38 **** content.add(wsLbl); ! GtkLabel gmsgLbl = new GtkLabel("The following pages will guide you through selecting files to search, choosing the text and starting the replacements.\nClick start to begin."); gmsgLbl.setLineWrap(true); gmsgLbl.setJustify(GtkJustification.FILL); --- 36,40 ---- content.add(wsLbl); ! GtkLabel gmsgLbl = new GtkLabel( messages.getString("StartInfo") ); gmsgLbl.setLineWrap(true); gmsgLbl.setJustify(GtkJustification.FILL); *************** *** 40,44 **** ! setButtons(false, null, true, "Start"); setContent(content); } --- 42,46 ---- ! setButtons(false, null, true, messages.getString("Start") ); setContent(content); } |
From: Mark H. <ho...@us...> - 2002-07-13 11:13:07
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv16358 Added Files: IncludeFilters.java Log Message: new page --- NEW FILE: IncludeFilters.java --- import com.tildemh.jgwizard.*; import gnu.gdk.*; import gnu.gtk.*; import gnu.pango.*; import java.util.ResourceBundle; class IncludeFilters extends WizardPage{ private ResourceBundle messages; private GtkVBox content; IncludeFilters(ResourceBundle rb, WizardForm parent, String title){ super(parent, title, null); messages = rb; content = new GtkVBox(false, 0); GtkLabel headLbl = new GtkLabel(messages.getString("IncFilters") ); headLbl.setLineWrap(true); headLbl.setJustify(GtkJustification.FILL); content.add(headLbl); setButtons(true, messages.getString("Prev"), true, messages.getString("Next") ); setContent(content); } } |
From: Mark H. <ho...@us...> - 2002-07-13 11:11:28
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv16082 Added Files: InterfaceStr.properties InterfaceStr_en.properties InterfaceStr_en_GB.properties Log Message: internationalization support --- NEW FILE: InterfaceStr.properties --- # # Strings for BTRWiz software # http://www.tildemh.com/sw/btrwiz # Default Locale strings by Mark Howard <tildemh.com mh@> # # # Generic Strings # Next = Next Prev = Previous #' # Welcome Page # WelcomeTitle = Welcome Version = Version DevelWarning = WARNING: THIS IS DEVELOPMENTAL SOFTWARE. DO NOT TRUST IT. \ \n\nThis is open source software, written in Java and using the Java-GNOME \ Gtk Bindings. If you know anything about java or Gtk programming and would \ like to help, please get in contact with us" StartInfo = The following pages will guide you through selecting files to \ search, choosing the text and starting the replacements.\nClick start to begin. Start = Start # # Select Folders Page # SelFoldersTitle = Select Folders Head = Please select the directory which contains the files to be searched. \ Youwill be able to filter files (so that not all files are searched) in the \ following screens. SelDir = Select Directory SelDirTS = Select Diretory to scan # # Include Filters # IncFiltersTitle = Include Filters IncFilters = Files from the previously chosen directories will only be chosen \ if they match any of the following include filters. In the next screen, you \ will be given the option to choose filters for files to be explicitely \ excluded from inspection, regardless of the include filters. --- NEW FILE: InterfaceStr_en.properties --- # # Strings for BTRWiz software # http://www.tildemh.com/sw/btrwiz # Default Locale strings by Mark Howard <tildemh.com mh@> # # # Generic Strings # Next = Next Prev = Previous #' # Welcome Page # WelcomeTitle = Welcome Version = Version DevelWarning = WARNING: THIS IS DEVELOPMENTAL SOFTWARE. DO NOT TRUST IT. \ \n\nThis is open source software, written in Java and using the Java-GNOME \ Gtk Bindings. If you know anything about java or Gtk programming and would \ like to help, please get in contact with us" StartInfo = The following pages will guide you through selecting files to \ search, choosing the text and starting the replacements.\nClick start to begin. Start = Start # # Select Folders Page # SelFoldersTitle = Select Folders Head = Please select the directory which contains the files to be searched. \ Youwill be able to filter files (so that not all files are searched) in the \ following screens. SelDir = Select Directory SelDirTS = Select Diretory to scan # # Include Filters # IncFiltersTitle = Include Filters IncFilters = Files from the previously chosen directories will only be chosen \ if they match any of the following include filters. In the next screen, you \ will be given the option to choose filters for files to be explicitely \ excluded from inspection, regardless of the include filters. --- NEW FILE: InterfaceStr_en_GB.properties --- # # Strings for BTRWiz software # http://www.tildemh.com/sw/btrwiz # Default Locale strings by Mark Howard <tildemh.com mh@> # # # Generic Strings # Next = Next Prev = Previous #' # Welcome Page # WelcomeTitle = Welcome Version = Version DevelWarning = WARNING: THIS IS DEVELOPMENTAL SOFTWARE. DO NOT TRUST IT. \ \n\nThis is open source software, written in Java and using the Java-GNOME \ Gtk Bindings. If you know anything about java or Gtk programming and would \ like to help, please get in contact with us" StartInfo = The following pages will guide you through selecting files to \ search, choosing the text and starting the replacements.\nClick start to begin. Start = Start # # Select Folders Page # SelFoldersTitle = Select Folders Head = Please select the directory which contains the files to be searched. \ Youwill be able to filter files (so that not all files are searched) in the \ following screens. SelDir = Select Directory SelDirTS = Select Diretory to scan # # Include Filters # IncFiltersTitle = Include Filters IncFilters = Files from the previously chosen directories will only be chosen \ if they match any of the following include filters. In the next screen, you \ will be given the option to choose filters for files to be explicitely \ excluded from inspection, regardless of the include filters. |
From: Mark H. <ho...@us...> - 2002-07-12 18:02:42
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv26392 Added Files: BtrWiz.java FolderSelect.java WelcomePage.java Log Message: initial work --- NEW FILE: BtrWiz.java --- import com.tildemh.jgwizard.*; import gnu.gdk.*; import gnu.gtk.*; import gnu.pango.*; class BtrWiz extends WizardForm{ public static final String VERSION = "CVS"; public static void main( String[] args){ Gtk.init(args.length, args); BtrWiz app = new BtrWiz(); Gtk.main(); } public BtrWiz(){ super( "BTRWiz "+VERSION ); } public void customise(){ WizardPage welcomePage = new WelcomePage(this, "Welcome"); WizardPage selFolders = new FolderSelect(this, "Select Folders"); setFirstPage(welcomePage); welcomePage.setFirstChild(selFolders); selFolders.setParentScreen(welcomePage); } } --- NEW FILE: FolderSelect.java --- import com.tildemh.jgwizard.*; import gnu.gdk.*; import gnu.gtk.*; import gnu.pango.*; class FolderSelect extends WizardPage{ private GtkVBox content; GtkEntry dirEntry; FolderSelect(WizardForm parent, String title){ super(parent, title, null); content = new GtkVBox(false, 0); GtkLabel headLbl = new GtkLabel("Please select the directory which contains the files to be searched. You will be able to filter files (so that not all files are searched) in the following screens."); headLbl.setLineWrap(true); headLbl.setJustify(GtkJustification.FILL); content.add(headLbl); dirEntry = new GtkEntry(); dirEntry.setText( System.getProperty("user.dir") ); content.add(dirEntry); GtkButton selDir = new GtkButton("Select Directory"); selDir.signalConnect("clicked", "showSelectBox", this); content.add(selDir); setButtons(true, "Previous", true, "Next"); setContent(content); } GtkFileSelection selector; private void showSelectBox(){ selector = new GtkFileSelection("Select Diretory to scan"); selector.setFilename(dirEntry.getText()); selector.getOkButton().signalConnect("clicked", "setDir", this); selector.show(); } private void setDir(){ dirEntry.setText(selector.getFilename()); } } --- NEW FILE: WelcomePage.java --- import com.tildemh.jgwizard.*; import gnu.gdk.*; import gnu.gtk.*; import gnu.pango.*; class WelcomePage extends WizardPage{ private GtkVBox content; WelcomePage(WizardForm parent, String title){ super(parent, title, null); content = new GtkVBox(false, 0); GtkLabel titleLbl = new GtkLabel(null); titleLbl.setJustify(GtkJustification.CENTER); titleLbl.setMarkup("<span size=\"xx-large\" weight=\"heavy\">Batch Text Replacer</span>"); titleLbl.setUseMarkup(true); content.add(titleLbl); GtkLabel verLbl = new GtkLabel("Version "+BtrWiz.VERSION); verLbl.setJustify(GtkJustification.CENTER); content.add(verLbl); GtkLabel msgLbl = new GtkLabel("WARNING: THIS IS DEVELOPMENTAL SOFTWARE. DO NOT TRUST IT. \n\nThis is open source software, written in Java and using the Java-GNOME Gtk Bindings. If you know anything about java or Gtk programming and would like to help, please get in contact with us."); msgLbl.setLineWrap(true); msgLbl.setJustify(GtkJustification.FILL); content.add(msgLbl); GtkLabel wsLbl = new GtkLabel("http://www.tildemh.com/sw/btrwiz"); wsLbl.setJustify(GtkJustification.CENTER); content.add(wsLbl); GtkLabel gmsgLbl = new GtkLabel("The following pages will guide you through selecting files to search, choosing the text and starting the replacements.\nClick start to begin."); gmsgLbl.setLineWrap(true); gmsgLbl.setJustify(GtkJustification.FILL); content.add(gmsgLbl); setButtons(false, null, true, "Start"); setContent(content); } } |
From: Mark H. <ho...@us...> - 2002-07-12 18:02:00
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv26202/src Log Message: Directory /cvsroot/btrwiz/btrwiz/src added to the repository |