From: <doc...@us...> - 2007-06-21 22:41:23
|
Revision: 93 http://openpcl.svn.sourceforge.net/openpcl/?rev=93&view=rev Author: documentsystems Date: 2007-06-21 15:41:24 -0700 (Thu, 21 Jun 2007) Log Message: ----------- Howard Hoagland. Changes to Printer Setup dialog. 1. Change title to say "Print" instead of "Printer Setup" and take off the title bar "Print All" or "Print Selected" or "Print Remaining" and take off the title bar how many pages will print, just say "Print" in the title bar. 2. Remove the Advanced Options button so that the user can't get the dialog that shows what pages will print. 3. Remove the "More Info" button that shows text about checking or unchecking the "Use Windows Print". 4. Center the OK and Cancel buttons on the bottom and make the buttons the same size. 5. Change the hover text on the "Use Windows Print" to say "Unselect if printer supports PCL (Example: HP LaserJet 4050)" instead of the longer instructions text that was there before. 6. Change the border title of the list of installed printers to be "Printers" instead of "Installed Printers". Modified Paths: -------------- openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java =================================================================== --- openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-06-21 19:38:33 UTC (rev 92) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-06-21 22:41:24 UTC (rev 93) @@ -205,8 +205,10 @@ mPrinterJob = PrinterJob.getPrinterJob(); // Put up our custom printer setup dialog - String tDialogTitleBarString = "Printer Setup. " + mTitleBarTextForPrintDialog[pProcessPrintType] + " (" + - tNumberOfPagesThatWillPrint + (tNumberOfPagesThatWillPrint ==1 ? " page" : " pages") + " will print)"; +// String tDialogTitleBarString = "Print" + mTitleBarTextForPrintDialog[pProcessPrintType] + " (" + +// tNumberOfPagesThatWillPrint + (tNumberOfPagesThatWillPrint ==1 ? " page" : " pages") + " will print)"; + + String tDialogTitleBarString = "Print"; mPosPrintSetupDialog = new PosPrintSetupDialog(mPosView, tDialogTitleBarString, mPosPrintSetupDialogChoices, mAttributes, mPrinterJob, tStringBuffer.toString()); @@ -444,7 +446,7 @@ mPrinterJob = PrinterJob.getPrinterJob(); // Put up our custom printer setup dialog - mPosPrintSetupDialog = new PosPrintSetupDialog(mPosView, "Printer Setup", + mPosPrintSetupDialog = new PosPrintSetupDialog(mPosView, "Print", mPosPrintSetupDialogChoices, mAttributes, mPrinterJob, "No pages will print at this time because this is Printer Setup options only. Make sure to hit OK to save your changes."); Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java =================================================================== --- openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-21 19:38:33 UTC (rev 92) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-21 22:41:24 UTC (rev 93) @@ -160,6 +160,9 @@ private static final String sBarCodeHoverString = "Bar codes already in the PCL are printed, but bar codes are not generated on the fly."; + private static final String sPrinterModeHoverOverString = + "<html>Unselect if printer supports PCL (Example: HP LaserJet 4050)</html>"; + private static final String sPrinterSupportsNotesString = "<html><ul>" + "<li>Windows print means the pages print correctly for all printers (is printer independent)." + @@ -447,12 +450,12 @@ private JPanel makePrintAsPclPanel() { JPanel panel = new JPanel(); - double tloGridSpec[][] = new double[][] {{ mTloPref, 5, mTloPref, mTloFill}, + double tloGridSpec[][] = new double[][] {{ mTloPref, mTloFill}, { mTloPref}}; TableLayout tloLayout = new TableLayout(tloGridSpec); panel.setLayout(tloLayout); panel.add(mIsPclPrinterJCheckBox, " 0, 0"); - panel.add(mPrintModeMoreInfoJButton, "2,0"); +// panel.add(mPrintModeMoreInfoJButton, "2,0"); // panel.add(mPrinterSupportsPclJScrollPane," 2, 1"); return panel; } @@ -530,11 +533,13 @@ private JPanel makeBottomButtonsPanel() { JPanel panel = new JPanel(); double tloGridSpec[][] = new double[][] {{ - mTloPref, mTloFill, mTloPref, mTloHgap, mTloPref}, { mTloPref }}; + mTloHgap, mTloFill, mTloPref, mTloHgap, mTloPref, mTloFill, mTloHgap}, { mTloPref }}; TableLayout tloLayout = new TableLayout(tloGridSpec); panel.setLayout(tloLayout); // panel.add(mPrintAllOnLegalSizeJCheckBox, "0, 0"); - panel.add(mAdvancedOptionsJButton, "0, 0"); +// panel.add(mAdvancedOptionsJButton, "0, 0"); + mOKJButton.setPreferredSize(mCancelJButton.getPreferredSize()); // Make Ok button same width as Cancel button + mOKJButton.setMinimumSize(mCancelJButton.getPreferredSize()); panel.add(mOKJButton, "2, 0"); panel.add(mCancelJButton, "4, 0"); return panel; @@ -654,7 +659,8 @@ } private void makePanelTitledBorders() { - mListOfPrintersJPanel.setBorder(generateTitledBorder("Installed Printers")); +// mListOfPrintersJPanel.setBorder(generateTitledBorder("Installed Printers")); + mListOfPrintersJPanel.setBorder(generateTitledBorder("Printers")); // mPrintAsPclJPanel.setBorder(generateTitledBorder("Printer Supports PCL ?")); mPrintAsPclJPanel.setBorder(BorderFactory.createEmptyBorder()); mPrintBarCodesJPanel.setBorder(generateTitledBorder("Print Bar Codes")); @@ -736,7 +742,7 @@ private void setHoverHelpOnItems() { mAddlCopiesJTextField.setToolTipText(sNotImplementedString + "Additional copies"); - mIsPclPrinterJCheckBox.setToolTipText(sPrinterSupportsNotesString); + mIsPclPrinterJCheckBox.setToolTipText(sPrinterModeHoverOverString); mPrintBarCodesYesJRadioButton.setToolTipText(sBarCodeHoverString); mPrintBarCodesNoJRadioButton.setToolTipText(sBarCodeHoverString); mPrintOrderAsDisplayedOrSelectedJRadioButton.setToolTipText("Print pages in the order shown in the tree"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |