From: <doc...@us...> - 2007-07-02 23:29:21
|
Revision: 99 http://openpcl.svn.sourceforge.net/openpcl/?rev=99&view=rev Author: documentsystems Date: 2007-07-02 16:29:21 -0700 (Mon, 02 Jul 2007) Log Message: ----------- Howard Hoagland. Deleted lines that show the popup dialog HTML viewer with the long explanation text about if the printer PCL, because of the decision to go with a one line hover help instead that says "Unselect if printer supports PCL (Example: HP LaserJet 4050)" Modified Paths: -------------- openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java =================================================================== --- openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-07-02 18:35:20 UTC (rev 98) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-07-02 23:29:21 UTC (rev 99) @@ -50,7 +50,6 @@ import javax.swing.event.ListSelectionListener; import com.openpcl.pclrenderimage.util.PriDebug; -import com.openpcl.viewer.dialogs.PosHtmlViewerButtonChoicesDialog; import com.openpcl.viewer.options.PosStartupOptions; import com.openpcl.viewer.panels.PosView; @@ -69,7 +68,6 @@ private double mTloVgap = 5; private String mSelectedPageNumbers = null; private JDialog mAdvancedOptionsJDialog = null; - private PosHtmlViewerButtonChoicesDialog mPrintModeMoreInfoDialog = null; // Adjust to fonts private final Font mAdjustToSmallFont = getFont(); @@ -118,8 +116,6 @@ // JTextAreas private JTextArea mPageNumbersThatWillPrintJTextArea = new JTextArea(); private JScrollPane mPageNumbersThatWillPrintJScrollPane = null; - private JTextArea mPrinterSupportsPclJTextArea = new JTextArea(); - private JScrollPane mPrinterSupportsPclJScrollPane = null; private Color mTextAreaBgColor = new Color(244, 244, 244); // a very light gray private Font mTextAreaFont = new Font("Arial", Font.PLAIN, 12); @@ -164,21 +160,6 @@ 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)." + - "<li>Unchecking the box requires that your printer be an HP LaserJet XX that supports PCL<br>" + - "and pages print 3 times faster than if checked, but if not an HP LaserJet XX printer<br>" + - "then printouts will not be correct." + - "<li>If pages print wrong then check the box and try printing again." + - "<li>If the printer name starts with \"HP\" but doesn't say \"LaserJet\", then check the box." + - "<li>Some examples of HP LaserJet printers (and you can uncheck the box) are:" + - "<table>" + - "<tr><td>HP LaserJet 1022,<td>HP LaserJet P2015,<td>HP LaserJet 2200,<td>HP LaserJet 2400,</tr>" + - "<tr><td>HP LaserJet P3005,<td>HP LaserJet 4050,<td>HP LaserJet 4250,<td>HP LaserJet 5000,</tr>" + - "<tr><td>HP LaserJet 5200,<td>HP LaserJet 9040,<td>HP LaserJet etc etc<td></tr>" + - "<table></ul></html>"; - public PosPrintSetupDialog(PosView pPosView, String pTitleBarText, PosPrintSetupDialogChoices pPrintChoices, PrintRequestAttributeSet pAttributes, PrinterJob pPrinterJob, String pSelectedPageNumbers) throws HeadlessException { @@ -204,17 +185,6 @@ setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE); addWindowListener(new DialogWindowListener()); - mPrinterSupportsPclJTextArea.setEditable(false); - mPrinterSupportsPclJTextArea.setFont(mTextAreaFont); - mPrinterSupportsPclJTextArea.setLineWrap(true); - mPrinterSupportsPclJTextArea.setWrapStyleWord(true); - mPrinterSupportsPclJTextArea.setText(sPrinterSupportsNotesString); - mPrinterSupportsPclJTextArea.setBackground(mTextAreaBgColor); - mPrinterSupportsPclJTextArea.setForeground(Color.BLACK); - mPrinterSupportsPclJScrollPane = new JScrollPane(mPrinterSupportsPclJTextArea, - JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); - mPrinterSupportsPclJScrollPane.setPreferredSize(new Dimension(380, 100)); - mPageNumbersThatWillPrintJTextArea.setBackground(mTextAreaBgColor); mPageNumbersThatWillPrintJTextArea.setForeground(Color.BLACK); mPageNumbersThatWillPrintJTextArea.setFont(mTextAreaFont); @@ -301,12 +271,6 @@ add(mTab1, "1, 2"); add(mBottomButtonsJPanel, "1, 4"); - mPrintModeMoreInfoDialog = new PosHtmlViewerButtonChoicesDialog(mPosView.getOpenPCLViewer().getAppFrame(), - "More Info Windows Print check box", true); - mPrintModeMoreInfoDialog.setHtmlPanelAndButtons(sPrinterSupportsNotesString, new String[] {"OK"}); - mPrintModeMoreInfoDialog.pack(); - mPrintModeMoreInfoDialog.setSize(620, 360); - // ActionListeners mFontSizeDinkyJButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { @@ -369,13 +333,6 @@ } }); - mPrintModeMoreInfoJButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent pE) { - mPrintModeMoreInfoDialog.setLocationRelativeTo(mPosView.getOpenPCLViewer().getAppFrame()); - mPrintModeMoreInfoDialog.setVisible(true); - } - }); - mOKJButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getPrintChoicesFromScreen(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |