From: <doc...@us...> - 2007-05-18 01:55:14
|
Revision: 72 http://openpcl.svn.sourceforge.net/openpcl/?rev=72&view=rev Author: documentsystems Date: 2007-05-17 18:55:15 -0700 (Thu, 17 May 2007) Log Message: ----------- Howard-H. 3 changes: 1. Added Hover Help to screen items that shows the text string of the item, and optionally starts with "Not implemented:" if that item isn't implemented yet. 2. Fixed bug where clicking the D, S, M, L buttons to change the font and overall dialog size, changed the height OK but failed to change the overall dialog width. 3. Changed the group panel border color from blue to etched border. 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-05-16 02:21:13 UTC (rev 71) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-05-18 01:55:15 UTC (rev 72) @@ -144,6 +144,11 @@ private ListOfPrintersSelectionListener mListOfPrintersSelectionListener = new ListOfPrintersSelectionListener(); private JScrollPane mListOfPrintersJScrollPane = null; + // Strings + private static final String sNotImplementedString = "Not implemented: "; + private static final String sBarCodeHoverString = + "Bar codes already in the PCL are printed, but bar codes are not generated on the fly."; + public PosPrintSetupDialog(PosView pPosView, String pTitleBarText, PosPrintSetupDialogChoices pPrintChoices, PrintRequestAttributeSet pAttributes, PrinterJob pPrinterJob, String pSelectedPageNumbers) throws HeadlessException { @@ -320,6 +325,7 @@ mTitledBorderFont = mTitledBorderSmallFont; adjustFontOnDialogItems(mAdjustToSmallFont); putPrintChoicesOnScreen(); + setHoverHelpOnItems(); // Make dialog box outer frame width and height exactly to be all item's preferred sizes pack(); @@ -544,15 +550,21 @@ makePanelTitledBorders(); for (JComponent jc : mItemsOnDialogBox) { if (jc != null) { + // Set the passed in Font on each of the items on the screen jc.setFont(pFont); - } + // Set the preferred size as the minimum size because Window.pack() makes the window smaller height wise + // but not width wise, so here correct for that problem + jc.setPreferredSize(jc.getMinimumSize()); + if (jc == mListOfPrintersJList) { + // Adjust the width and height of the list of printers using the current set font + mListOfPrintersJPanel.setMinimumSize(new Dimension(pFont.getSize() * 35, pFont.getSize() * 12)); + } + } } } private void makePanelTitledBorders() { mListOfPrintersJPanel.setBorder(generateTitledBorder("Installed Printers")); - mListOfPrintersJPanel.setPreferredSize(new Dimension( - mTitledBorderFont.getSize() * 30, mTitledBorderFont.getSize() * 12)); mPrintFormatJPanel.setBorder(generateTitledBorder("Print Format")); mPrintBarCodesJPanel.setBorder(generateTitledBorder("Print Bar Codes")); mPrintOrderJPanel.setBorder(generateTitledBorder("Print Order")); @@ -563,8 +575,8 @@ private TitledBorder generateTitledBorder(String title) { // Conditional execution based on startup option if (mPosStartupOptions.getShowDSMLPrintDialogButtons()) { - return BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLUE), title, TitledBorder.LEFT, - TitledBorder.TOP, mTitledBorderFont, Color.BLACK); + return(new TitledBorder(BorderFactory.createEtchedBorder(), title, + TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, mTitledBorderFont, Color.BLACK)); } else { // RobD 1/4/07. Updated Border To be consistent with DMO/LM Titles Borders return(new TitledBorder(BorderFactory.createEtchedBorder(), title, @@ -631,6 +643,22 @@ } } + private void setHoverHelpOnItems() { + mAddlCopiesJTextField.setToolTipText(sNotImplementedString + "Additional copies"); + mPrintFormatIsPclDirectJRadioButton.setToolTipText("Print PCL direct"); + mPrintFormatIsGdiDriverJRadioButton.setToolTipText("Print GDI driver"); + mPrintBarCodesYesJRadioButton.setToolTipText(sBarCodeHoverString); + mPrintBarCodesNoJRadioButton.setToolTipText(sBarCodeHoverString); + mPrintOrderAsDisplayedOrSelectedJRadioButton.setToolTipText("Print pages in the order shown in the tree"); + mPrintOrderLegalFirstThenLetterJRadioButton.setToolTipText(sNotImplementedString + "Print Legal first then Letter"); + mPrintOrderLetterFirstThenLegalJRadioButton.setToolTipText(sNotImplementedString + "Print Letter first then Legal"); + mPrintFormNamesYesJRadioButton.setToolTipText(sNotImplementedString + "Print form names"); + mPrintFormNamesNoJRadioButton.setToolTipText("Don't print form names"); + mDuplexYesJRadioButton.setToolTipText(sNotImplementedString + "Duplex pages"); + mDuplexNoJRadioButton.setToolTipText("Don't duplex pages"); + mPrintAllOnLegalSizeJCheckBox.setToolTipText(sNotImplementedString + "Print all on Legal size"); + } + public class DialogWindowListener implements WindowListener { public void windowOpened(WindowEvent e) { } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-06-21 19:38:33
|
Revision: 92 http://openpcl.svn.sourceforge.net/openpcl/?rev=92&view=rev Author: documentsystems Date: 2007-06-21 12:38:33 -0700 (Thu, 21 Jun 2007) Log Message: ----------- Howard Hoagland. Added a "More Info" button to the right of the "Use Windows Print (recommended)" check box. When the user clicks the "More Info" button, a popup dialog has the info text. For now, this same info text is also the hover help text over the checkbox but can be removed from hover help if that is decided to do. 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-06-21 18:43:40 UTC (rev 91) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-21 19:38:33 UTC (rev 92) @@ -49,6 +49,7 @@ 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; @@ -67,7 +68,7 @@ private double mTloVgap = 5; private String mSelectedPageNumbers = null; private JDialog mAdvancedOptionsJDialog = null; - private JButton mAdvancedOptionsOkJButton = null; + private PosHtmlViewerButtonChoicesDialog mPrintModeMoreInfoDialog = null; // Adjust to fonts private final Font mAdjustToSmallFont = getFont(); @@ -141,6 +142,8 @@ private JButton mCancelJButton = new JButton("Cancel"); private JButton mOpenJDKPrintDialogJButton = new JButton("Open JDK Print Dialog"); private JButton mAdvancedOptionsJButton = new JButton("Advanced Options"); + private JButton mAdvancedOptionsOkJButton = null; + private JButton mPrintModeMoreInfoJButton = new JButton("More Info"); // JCheckBoxes private JCheckBox mIsPclPrinterJCheckBox = new JCheckBox("Use Windows Print (recommended)"); @@ -262,11 +265,6 @@ tJPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); tJPanel.add("1, 1, 2, 1", mPageNumbersThatWillPrintJScrollPane); mAdvancedOptionsOkJButton = new JButton("OK"); - mAdvancedOptionsOkJButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent pE) { - mAdvancedOptionsJDialog.setVisible(false); - } - }); tJPanel.add("2, 3", mAdvancedOptionsOkJButton); mAdvancedOptionsJDialog.setContentPane(tJPanel); mAdvancedOptionsJDialog.setSize(400, 280); @@ -299,6 +297,12 @@ 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) { @@ -355,6 +359,19 @@ } }); + mAdvancedOptionsOkJButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent pE) { + mAdvancedOptionsJDialog.setVisible(false); + } + }); + + 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(); @@ -430,11 +447,12 @@ private JPanel makePrintAsPclPanel() { JPanel panel = new JPanel(); - double tloGridSpec[][] = new double[][] {{ mTloHgap, 20, mTloPref, mTloFill, mTloHgap }, - { mTloPref, mTloPref, mTloVgap }}; + double tloGridSpec[][] = new double[][] {{ mTloPref, 5, mTloPref, mTloFill}, + { mTloPref}}; TableLayout tloLayout = new TableLayout(tloGridSpec); panel.setLayout(tloLayout); - panel.add(mIsPclPrinterJCheckBox," 1, 0, 2, 0"); + panel.add(mIsPclPrinterJCheckBox, " 0, 0"); + panel.add(mPrintModeMoreInfoJButton, "2,0"); // panel.add(mPrinterSupportsPclJScrollPane," 2, 1"); return panel; } @@ -587,6 +605,7 @@ mItemsOnDialogBox.add(mFontSizeJLabel); mItemsOnDialogBox.add(mAddlCopiesJTextField); mItemsOnDialogBox.add(mIsPclPrinterJCheckBox); + mItemsOnDialogBox.add(mPrintModeMoreInfoJButton); mItemsOnDialogBox.add(mPrintBarCodesYesJRadioButton); mItemsOnDialogBox.add(mPrintBarCodesNoJRadioButton); mItemsOnDialogBox.add(mPrintOrderAsDisplayedOrSelectedJRadioButton); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-06-21 23:10:42
|
Revision: 94 http://openpcl.svn.sourceforge.net/openpcl/?rev=94&view=rev Author: documentsystems Date: 2007-06-21 16:10:44 -0700 (Thu, 21 Jun 2007) Log Message: ----------- Howard Hoagland. Moved the Ok and Cancel buttons up about 10 pixels to take up the blank vertical space, and put 5 more pixels below the Ok and Cancel buttons and the bottom frame edge. 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-06-21 22:41:24 UTC (rev 93) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-21 23:10:44 UTC (rev 94) @@ -230,7 +230,7 @@ // Lay out tab 1 items double tloTab1GridSpec[][] = new double[][] { { mTloFill, mTloHgap, mTloFill}, // columns - { mTloFill, mTloVgap, mTloPref, mTloVgap, mTloPref, mTloVgap, mTloPref, mTloVgap, mTloPref}}; // rows + { mTloFill, mTloVgap, mTloPref, 1, mTloPref, 1, mTloPref, 1, mTloPref}}; // rows TableLayout tloTab1Layout = new TableLayout(tloTab1GridSpec); mTab1.setLayout(tloTab1Layout); mTab1.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); @@ -290,7 +290,7 @@ // Add the Control Panel, JTabbedPane, and buttons panel to the contentPane double tloContentPaneGridSpec[][] = new double[][] { { mTloHgap, mTloFill, mTloHgap }, // columns - { mTloVgap, mTloPref, mTloFill, mTloVgap, mTloPref, mTloVgap }}; // rows + { mTloVgap, mTloPref, mTloFill, 1, mTloPref, mTloVgap, mTloVgap }}; // rows TableLayout tloContentPaneLayout = new TableLayout(tloContentPaneGridSpec); setLayout(tloContentPaneLayout); mControlJPanel = makeControlPanel(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-06-21 23:43:51
|
Revision: 95 http://openpcl.svn.sourceforge.net/openpcl/?rev=95&view=rev Author: documentsystems Date: 2007-06-21 16:43:48 -0700 (Thu, 21 Jun 2007) Log Message: ----------- Howard Hoagland. In the Printer Setup dialog, the OK button should be the same width at the Cancel button but wasn't the same width even setting the preferred size of the Ok button the same as the Cancel preferred size, so switched from the TableLayout preferred column width to the GridLayout(1,2,5,5) and that fixed the same widths of the 2 buttons. 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-06-21 23:10:44 UTC (rev 94) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-21 23:43:48 UTC (rev 95) @@ -6,6 +6,7 @@ import java.awt.Color; import java.awt.Dimension; import java.awt.Font; +import java.awt.GridLayout; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -533,15 +534,15 @@ private JPanel makeBottomButtonsPanel() { JPanel panel = new JPanel(); double tloGridSpec[][] = new double[][] {{ - mTloHgap, mTloFill, mTloPref, mTloHgap, mTloPref, mTloFill, mTloHgap}, { mTloPref }}; + mTloFill, mTloPref, mTloFill}, { mTloPref }}; TableLayout tloLayout = new TableLayout(tloGridSpec); panel.setLayout(tloLayout); // panel.add(mPrintAllOnLegalSizeJCheckBox, "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"); + JPanel tGridLayoutJPanel = new JPanel(new GridLayout(1, 2, 5, 5)); + tGridLayoutJPanel.add(mOKJButton, "0,0"); + tGridLayoutJPanel.add(mCancelJButton, "0,1"); + panel.add(tGridLayoutJPanel, "1, 0"); return panel; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-07-02 18:29:47
|
Revision: 97 http://openpcl.svn.sourceforge.net/openpcl/?rev=97&view=rev Author: documentsystems Date: 2007-07-02 11:29:48 -0700 (Mon, 02 Jul 2007) Log Message: ----------- Changed GridLayout parameters in dialog layout 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:21:48 UTC (rev 96) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-07-02 18:29:48 UTC (rev 97) @@ -540,8 +540,8 @@ // panel.add(mPrintAllOnLegalSizeJCheckBox, "0, 0"); // panel.add(mAdvancedOptionsJButton, "0, 0"); JPanel tGridLayoutJPanel = new JPanel(new GridLayout(1, 2, 5, 5)); - tGridLayoutJPanel.add(mOKJButton, "0,0"); - tGridLayoutJPanel.add(mCancelJButton, "0,1"); + tGridLayoutJPanel.add(mOKJButton); + tGridLayoutJPanel.add(mCancelJButton); panel.add(tGridLayoutJPanel, "1, 0"); return panel; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-08-02 21:20:43
|
Revision: 137 http://openpcl.svn.sourceforge.net/openpcl/?rev=137&view=rev Author: documentsystems Date: 2007-08-02 14:20:46 -0700 (Thu, 02 Aug 2007) Log Message: ----------- Howard Hoagland. We decided to release Duplexing for Pcl Direct printing and not do at this time (back burner, do it later) the code for Windows/Image print for Duplexing which will take a significant amount of hours to implement. In PosPrintSetupDialog, made the "Duplex Yes" radio button gray out and auto select the "Duplex No" when the user puts a check in "Use Windows Print", and updated the hover help to say it does that, and ungray out when the user unchecks "Use Windows Print", and also does that behavior upon when the print setup dialog is first shown. Now on the screen, the "Print all on Letter paper (shrinks Legal)" radio button is grayed out when the "Duplex Yes" radio button is not grayed out, and visa versa as the user checks and unchecks the "Use Window Print". 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-08-02 18:31:26 UTC (rev 136) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-08-02 21:20:46 UTC (rev 137) @@ -276,14 +276,8 @@ mIsPclPrinterJCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - if (mIsPclPrinterJCheckBox.isSelected()) { - mPaperSizePrintAllOnLetterShrinksLegal.setEnabled(true); - } else { - if (mPaperSizePrintAllOnLetterShrinksLegal.isSelected()) { - mPaperSizeAsDisplayedOrSelected.setSelected(true); - } - mPaperSizePrintAllOnLetterShrinksLegal.setEnabled(false); - } + checkforGrayOutShrinkToLetter(); + checkforGrayOutDuplexYes(); } }); @@ -391,11 +385,14 @@ putPrintChoicesOnScreen(); setHoverHelpOnItems(); checkforGrayOutShrinkToLetter(); + checkforGrayOutDuplexYes(); // Make dialog box outer frame width and height exactly to be all item's preferred sizes pack(); } private void checkforGrayOutShrinkToLetter() { + // If "Use Windows Print" is not checked then gray out the "Print all on Letter" check box, + // and select the "Print as displayed/selected" check box if (mIsPclPrinterJCheckBox.isSelected()) { mPaperSizePrintAllOnLetterShrinksLegal.setEnabled(true); } else { @@ -406,6 +403,18 @@ } } + private void checkforGrayOutDuplexYes() { + // If "Use Windows Print" is checked then gray out the Duplex Yes radio button + if (mIsPclPrinterJCheckBox.isSelected()) { + if (mDuplexYesJRadioButton.isSelected()) { + mDuplexNoJRadioButton.setSelected(true); + } + mDuplexYesJRadioButton.setEnabled(false); + } else { + mDuplexYesJRadioButton.setEnabled(true); + } + } + private JPanel makeListOfPrintersPanel() { JPanel panel = new JPanel(); double tloGridSpec[][] = new double[][] {{mTloHgap, mTloFill, mTloHgap }, {mTloFill, mTloVgap }}; @@ -760,7 +769,7 @@ mPrintFormNamesYesJRadioButton.setToolTipText("Print form names"); mPrintFormNamesNoJRadioButton.setToolTipText("Don't print form names"); - mDuplexYesJRadioButton.setToolTipText("Duplex pages"); + mDuplexYesJRadioButton.setToolTipText("Duplex pages. This is grayed out if \"Use Windows Print\" is checked"); mDuplexNoJRadioButton.setToolTipText("Don't duplex pages"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <doc...@us...> - 2007-07-23 23:08:12
|
Revision: 112 http://openpcl.svn.sourceforge.net/openpcl/?rev=112&view=rev Author: documentsystems Date: 2007-07-23 16:08:15 -0700 (Mon, 23 Jul 2007) Log Message: ----------- Howard Hoagland. Changed PrintFormatIsGdiDriver to PrintFormatIsWindowsPrint 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-23 23:07:10 UTC (rev 111) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-07-23 23:08:15 UTC (rev 112) @@ -585,7 +585,7 @@ // Print format if (mIsPclPrinterJCheckBox.isSelected()) { - mPrintChoices.setPrintFormatIsGdiDriver(); + mPrintChoices.setPrintFormatIsWindowsPrint(); } else { mPrintChoices.setPrintFormatIsPclDirect(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-07-25 19:52:23
|
Revision: 119 http://openpcl.svn.sourceforge.net/openpcl/?rev=119&view=rev Author: documentsystems Date: 2007-07-25 12:52:25 -0700 (Wed, 25 Jul 2007) Log Message: ----------- Howard Hoagland. In PosPrintSetupDialog, fixed the bug to make the "Print Form Names" and "Duplex" auto select the "No" radio button if the boolean is false. Previously it was auto selecting the "Yes" radio button if it was true, but wasn't auto selecting the "No" if false. 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-25 19:49:33 UTC (rev 118) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-07-25 19:52:25 UTC (rev 119) @@ -558,13 +558,13 @@ if (mPrintChoices.shouldPrintFormNames()) { mPrintFormNamesYesJRadioButton.setSelected(true); } else { - mPrintFormNamesYesJRadioButton.setSelected(false); + mPrintFormNamesNoJRadioButton.setSelected(true); } if (mPrintChoices.shouldDuplex()) { mDuplexYesJRadioButton.setSelected(true); } else { - mDuplexYesJRadioButton.setSelected(false); + mDuplexNoJRadioButton.setSelected(true); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-09-25 23:31:11
|
Revision: 173 http://openpcl.svn.sourceforge.net/openpcl/?rev=173&view=rev Author: documentsystems Date: 2007-09-25 16:31:13 -0700 (Tue, 25 Sep 2007) Log Message: ----------- Howard Hoagland. Don't gray out the Duplex=Yes radio button when Windows Print 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-09-14 18:58:01 UTC (rev 172) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-09-25 23:31:13 UTC (rev 173) @@ -277,7 +277,7 @@ mIsPclPrinterJCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { checkforGrayOutShrinkToLetter(); - checkforGrayOutDuplexYes(); + // checkforGrayOutDuplexYes(); } }); @@ -385,7 +385,7 @@ putPrintChoicesOnScreen(); setHoverHelpOnItems(); checkforGrayOutShrinkToLetter(); - checkforGrayOutDuplexYes(); + // checkforGrayOutDuplexYes(); // Make dialog box outer frame width and height exactly to be all item's preferred sizes pack(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |