|
From: <doc...@us...> - 2007-06-12 21:05:12
|
Revision: 86
http://openpcl.svn.sourceforge.net/openpcl/?rev=86&view=rev
Author: documentsystems
Date: 2007-06-12 13:38:29 -0700 (Tue, 12 Jun 2007)
Log Message:
-----------
Howard Hoagland. Gray out the items that aren't currently implemented that are on the Printer Setup dialog and on the Options dialog.
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/options/PosUserOptionsDialog.java
openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java
openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java
Modified: openpcl/src/com/openpcl/viewer/options/PosUserOptionsDialog.java
===================================================================
--- openpcl/src/com/openpcl/viewer/options/PosUserOptionsDialog.java 2007-06-08 17:18:36 UTC (rev 85)
+++ openpcl/src/com/openpcl/viewer/options/PosUserOptionsDialog.java 2007-06-12 20:38:29 UTC (rev 86)
@@ -168,10 +168,13 @@
addActionListeners();
makePanelTitledBorders();
putOptionsOnScreen();
+ mShowPrinterSetupEveryPrintJRadioButton.setSelected(true);
+ mFormFillColorBlueJRadioButton.setSelected(true);
setHoverHelpOnItems();
+ grayOutItemsNotImplemented();
setContentPane(mOuterJPanel);
+ // Make dialog box outer frame width and height exactly to be all item's preferred sizes
pack();
- // setPreferredSize(new Dimension(200, 300));
}
private void addActionListeners() {
@@ -375,9 +378,9 @@
mLegalTrayJTextField.setToolTipText(sNotImplementedString + "PCL Esc codes for Legal tray");
// Radio buttons
- mShowPrinterSetupEveryPrintJRadioButton.setToolTipText(sNotImplementedString + "Every print");
+ mShowPrinterSetupEveryPrintJRadioButton.setToolTipText("Every print");
mShowPrinterSetupFirstPrintOnlyJRadioButton.setToolTipText(sNotImplementedString + "First print only");
- mShowPrinterSetupFromOptionsDialogOnlyJRadioButton.setToolTipText("Only clicking below button");
+ mShowPrinterSetupFromOptionsDialogOnlyJRadioButton.setToolTipText(sNotImplementedString + "Only clicking below button");
mFormFillColorBlueJRadioButton.setToolTipText("Form's fill color Blue");
mFormFillColorBlackJRadioButton.setToolTipText(sNotImplementedString + "Form's fill color Black (it's always blue)");
@@ -389,6 +392,32 @@
mCheckForUpdatesDaysJComboBox.setToolTipText(sNotImplementedString + "Doing updates from here");
}
+ private void grayOutItemsNotImplemented() {
+ // Buttons
+ mCreateShortcutJButton.setEnabled(false);
+ mRegisterFileTypeJButton.setEnabled(false);
+ mEMailAdvancedSettingsJButton.setEnabled(false);
+ mScanningSetupJButton.setEnabled(false);
+ mCheckForUpdatesJButton.setEnabled(false);
+
+ // Text fields
+ mFooterForOriginalJTextField.setEnabled(false);
+ mFooterForFirstCopyJTextField.setEnabled(false);
+ mFooterForSecondCopyJTextField.setEnabled(false);
+ mFooterForThirdCopyJTextField.setEnabled(false);
+ mLetterTrayJTextField.setEnabled(false);
+ mLegalTrayJTextField.setEnabled(false);
+
+ // Radio buttons
+ mShowPrinterSetupFirstPrintOnlyJRadioButton.setEnabled(false);
+ mShowPrinterSetupFromOptionsDialogOnlyJRadioButton.setEnabled(false);
+ mFormFillColorBlackJRadioButton.setEnabled(false);
+
+ // Combo boxes
+ mEMailClientJComboBox.setEnabled(false);
+ mCheckForUpdatesDaysJComboBox.setEnabled(false);
+ }
+
private void getOptionsFromScreen() {
// TODO
}
Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java
===================================================================
--- openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-06-08 17:18:36 UTC (rev 85)
+++ openpcl/src/com/openpcl/viewer/printing/PosPrintPages.java 2007-06-12 20:38:29 UTC (rev 86)
@@ -198,7 +198,7 @@
mPrinterJob = PrinterJob.getPrinterJob();
// Put up our custom printer setup dialog
- String tDialogTitleBarString = mTitleBarTextForPrintDialog[pProcessPrintType] + " (" +
+ String tDialogTitleBarString = "Printer Setup. " + mTitleBarTextForPrintDialog[pProcessPrintType] + " (" +
tNumberOfPagesThatWillPrint + (tNumberOfPagesThatWillPrint ==1 ? " page" : " pages") + " will print)";
mPosPrintSetupDialog = new PosPrintSetupDialog(mPosView, tDialogTitleBarString,
Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java
===================================================================
--- openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-08 17:18:36 UTC (rev 85)
+++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialog.java 2007-06-12 20:38:29 UTC (rev 86)
@@ -326,7 +326,7 @@
adjustFontOnDialogItems(mAdjustToSmallFont);
putPrintChoicesOnScreen();
setHoverHelpOnItems();
-
+ grayOutItemsNotImplemented();
// Make dialog box outer frame width and height exactly to be all item's preferred sizes
pack();
}
@@ -659,6 +659,17 @@
mPrintAllOnLegalSizeJCheckBox.setToolTipText(sNotImplementedString + "Print all on Legal size");
}
+ private void grayOutItemsNotImplemented() {
+ mAddlCopiesJTextField.setEnabled(false);
+ mPrintBarCodesYesJRadioButton.setEnabled(false);
+ mPrintOrderLegalFirstThenLetterJRadioButton.setEnabled(false);
+ mPrintOrderLetterFirstThenLegalJRadioButton.setEnabled(false);
+ mPrintFormNamesYesJRadioButton.setEnabled(false);
+ mDuplexYesJRadioButton.setEnabled(false);
+ mPrintAllOnLegalSizeJCheckBox.setEnabled(false);
+ mOpenJDKPrintDialogJButton.setEnabled(false);
+ }
+
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.
|