r14548 by cbradney - First work on preflight verifier new prefs pane

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 20 21:30:28 CET 2010


Revision: 14548
Author: cbradney
Date: 2010-01-20T20:28:07.952973Z
Commit message: First work on preflight verifier new prefs pane

Changeset: 
M  /trunk/Scribus/scribus/CMakeLists.txt
M  /trunk/Scribus/scribus/ui/prefs_preflightverifier.cpp
M  /trunk/Scribus/scribus/ui/preferencesdialog.cpp
M  /trunk/Scribus/scribus/ui/prefs_preflightverifier.h
M  /trunk/Scribus/scribus/ui/prefs_preflightverifierbase.ui
M  /trunk/Scribus/scribus/ui/preferencesdialog.h

Diffs:
Index: scribus/ui/preferencesdialog.h
===================================================================
--- scribus/ui/preferencesdialog.h	(revision 14547)
+++ scribus/ui/preferencesdialog.h	(revision 14548)
@@ -28,6 +28,7 @@
 #include "ui/prefs_hyphenator.h"
 #include "ui/prefs_miscellaneous.h"
 #include "ui/prefs_plugins.h"
+#include "ui/prefs_preflightverifier.h"
 #include "ui/prefs_scripter.h"
 #include "ui/prefs_scrapbook.h"
 #include "ui/prefs_shortwords.h"
@@ -88,6 +89,7 @@
 		Prefs_Hyphenator *prefs_Hyphenator;
 		Prefs_Miscellaneous *prefs_Miscellaneous;
 		Prefs_Plugins *prefs_Plugins;
+		Prefs_PreflightVerifier *prefs_PreflightVerifier;
 		Prefs_Scripter *prefs_Scripter;
 		Prefs_Scrapbook *prefs_Scrapbook;
 		Prefs_ShortWords *prefs_ShortWords;
Index: scribus/ui/prefs_preflightverifierbase.ui
===================================================================
--- scribus/ui/prefs_preflightverifierbase.ui	(revision 14547)
+++ scribus/ui/prefs_preflightverifierbase.ui	(revision 14548)
@@ -69,21 +69,21 @@
           </widget>
          </item>
          <item row="0" column="1">
-          <widget class="QComboBox" name="comboBox"/>
+          <widget class="QComboBox" name="verifierOutputProfileComboBox"/>
          </item>
         </layout>
        </item>
        <item>
         <layout class="QHBoxLayout" name="horizontalLayout">
          <item>
-          <widget class="QPushButton" name="pushButton">
+          <widget class="QPushButton" name="addVerifierProfilePushButton">
            <property name="text">
             <string>Add New Profile</string>
            </property>
           </widget>
          </item>
          <item>
-          <widget class="QPushButton" name="pushButton_2">
+          <widget class="QPushButton" name="removeVerifierProfilePushButton">
            <property name="text">
             <string>Remove Profile</string>
            </property>
@@ -141,56 +141,56 @@
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox">
+        <widget class="QCheckBox" name="profileIgnoreAllErrorsCheckBox">
          <property name="text">
           <string>Ignore all errors</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_3">
+        <widget class="QCheckBox" name="autoCheckBeforePrintExportCheckBox">
          <property name="text">
           <string>Automatic check before printing or exporting</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_2">
+        <widget class="QCheckBox" name="checkMissingGlyphsCheckBox">
          <property name="text">
           <string>Check for missing glyphs</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_4">
+        <widget class="QCheckBox" name="checkItemsOffPageCheckBox">
          <property name="text">
           <string>Check for items not on a page</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_5">
+        <widget class="QCheckBox" name="checkTextOverflowCheckBox">
          <property name="text">
           <string>Check for overflow in text frames</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_6">
+        <widget class="QCheckBox" name="checkTransparenciesCheckBox">
          <property name="text">
           <string>Check for used transparencies</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_7">
+        <widget class="QCheckBox" name="checkMissingImagesCheckBox">
          <property name="text">
           <string>Check for missing images</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_8">
+        <widget class="QCheckBox" name="checkImageResolutionCheckBox">
          <property name="text">
           <string>Check image resolution</string>
          </property>
@@ -209,10 +209,10 @@
           </widget>
          </item>
          <item row="0" column="1">
-          <widget class="QSpinBox" name="spinBox"/>
+          <widget class="QSpinBox" name="minimumResolutionSpinBox"/>
          </item>
          <item row="1" column="1">
-          <widget class="QSpinBox" name="spinBox_2"/>
+          <widget class="QSpinBox" name="maximumResolutionSpinBox"/>
          </item>
          <item row="1" column="0">
           <widget class="QLabel" name="label_5">
@@ -224,37 +224,37 @@
         </layout>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_9">
+        <widget class="QCheckBox" name="checkPlacedPDFCheckBox">
          <property name="text">
           <string>Check for placed PDF files</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_11">
+        <widget class="QCheckBox" name="checkGIFsCheckBox">
          <property name="text">
           <string>Check for GIF images</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_10">
+        <widget class="QCheckBox" name="checkPDFAnnotFieldsCheckBox">
          <property name="text">
           <string>Check for PDF Annotations and Fields</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_12">
+        <widget class="QCheckBox" name="checkVisiblePrintableLayersCheckBox">
          <property name="text">
-          <string>Ignore non-printable layers</string>
+          <string>Check for Visible/Printable mismatch in layers</string>
          </property>
         </widget>
        </item>
        <item>
-        <widget class="QCheckBox" name="checkBox_13">
+        <widget class="QCheckBox" name="checkNonPrintableLayersCheckBox">
          <property name="text">
-          <string>Check for Visible/Printable Mismatch in Layers</string>
+          <string>Ignore non-printable layers</string>
          </property>
         </widget>
        </item>
Index: scribus/ui/prefs_preflightverifier.h
===================================================================
--- scribus/ui/prefs_preflightverifier.h	(revision 14547)
+++ scribus/ui/prefs_preflightverifier.h	(revision 14548)
@@ -9,15 +9,20 @@
 #define PREFS_PREFLIGHTVERIFIER_H
 
 #include "ui_prefs_preflightverifierbase.h"
+#include "prefs_pane.h"
 #include "scribusapi.h"
 
-class SCRIBUS_API Prefs_PreflightVerifier : public QWidget, Ui::Prefs_PreflightVerifier
+class SCRIBUS_API Prefs_PreflightVerifier : public Prefs_Pane, Ui::Prefs_PreflightVerifier
 {
 	Q_OBJECT
 
 	public:
 		Prefs_PreflightVerifier(QWidget* parent=0);
 		~Prefs_PreflightVerifier();
+		virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
+		virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
+	public slots:
+		void languageChange();
 };
 
 #endif // PREFS_PREFLIGHTVERIFIER_H
Index: scribus/ui/preferencesdialog.cpp
===================================================================
--- scribus/ui/preferencesdialog.cpp	(revision 14547)
+++ scribus/ui/preferencesdialog.cpp	(revision 14548)
@@ -47,12 +47,14 @@
 	addItem( tr("Hyphenator"), loadIcon("hyphenate.png"), prefs_Hyphenator);
 	prefs_Fonts = new Prefs_Fonts(this);
 	addItem( tr("Fonts"), loadIcon("font.png"), prefs_Fonts);
+	prefs_ColorManagement = new Prefs_ColorManagement(this);
+	addItem( tr("Color Management"), loadIcon("blend.png"), prefs_ColorManagement);
 	prefs_Printer = new Prefs_Printer(this);
 	addItem( tr("Printer"), loadIcon("printer.png"), prefs_Printer);
-	prefs_ColorManagement = new Prefs_ColorManagement(this);
-	addItem( tr("Color Management"), loadIcon("blend.png"), prefs_ColorManagement);
 	prefs_PDFExport = new Prefs_PDFExport(this);
 	addItem( tr("PDF Export"), loadIcon("acroread32.png"), prefs_PDFExport);
+	prefs_PreflightVerifier = new Prefs_PreflightVerifier(this);
+	addItem( tr("Preflight Verifier"), loadIcon("acroread32.png"), prefs_PreflightVerifier);
 	prefs_DocumentItemAttributes = new Prefs_DocumentItemAttributes(this);
 	addItem( tr("Document Item Attributes"), loadIcon("docattributes.png"), prefs_DocumentItemAttributes);
 	prefs_TableOfContents = new Prefs_TableOfContents(this);
@@ -121,8 +123,9 @@
 	prefs_OperatorTools->restoreDefaults(&localPrefs);
 	prefs_Hyphenator->restoreDefaults(&localPrefs);
 	prefs_Fonts->restoreDefaults(&localPrefs);
+	prefs_Printer->restoreDefaults(&localPrefs);
 	prefs_PDFExport->restoreDefaults(&localPrefs);
-	prefs_Printer->restoreDefaults(&localPrefs);
+	prefs_PreflightVerifier->restoreDefaults(&localPrefs);
 	prefs_ColorManagement->restoreDefaults(&localPrefs);
 	prefs_ColorManagement->setProfiles(&localPrefs, &ScCore->InputProfiles, &ScCore->InputProfilesCMYK, &ScCore->PrinterProfiles, &ScCore->MonitorProfiles);
 	prefs_Scrapbook->restoreDefaults(&localPrefs);
@@ -142,8 +145,9 @@
 	prefs_OperatorTools->saveGuiToPrefs(&localPrefs);
 	prefs_Hyphenator->saveGuiToPrefs(&localPrefs);
 	prefs_Fonts->saveGuiToPrefs(&localPrefs);
+	prefs_Printer->saveGuiToPrefs(&localPrefs);
 	prefs_PDFExport->saveGuiToPrefs(&localPrefs);
-	prefs_Printer->saveGuiToPrefs(&localPrefs);
+	prefs_PreflightVerifier->saveGuiToPrefs(&localPrefs);
 	prefs_ColorManagement->saveGuiToPrefs(&localPrefs);
 	prefs_Scrapbook->saveGuiToPrefs(&localPrefs);
 	prefs_Display->saveGuiToPrefs(&localPrefs);
Index: scribus/ui/prefs_preflightverifier.cpp
===================================================================
--- scribus/ui/prefs_preflightverifier.cpp	(revision 14547)
+++ scribus/ui/prefs_preflightverifier.cpp	(revision 14548)
@@ -6,15 +6,29 @@
 */
 
 #include "prefs_preflightverifier.h"
+#include "prefsstructs.h"
 
 Prefs_PreflightVerifier::Prefs_PreflightVerifier(QWidget* parent)
-	: QWidget(parent)
+	: Prefs_Pane(parent)
 {
 	setupUi(this);
-
+	languageChange();
 }
 
 Prefs_PreflightVerifier::~Prefs_PreflightVerifier()
 {
 }
 
+void Prefs_PreflightVerifier::languageChange()
+{
+}
+
+void Prefs_PreflightVerifier::restoreDefaults(struct ApplicationPrefs *prefsData)
+{
+
+}
+
+void Prefs_PreflightVerifier::saveGuiToPrefs(struct ApplicationPrefs *prefsData) const
+{
+
+}
Index: scribus/CMakeLists.txt
===================================================================
--- scribus/CMakeLists.txt	(revision 14547)
+++ scribus/CMakeLists.txt	(revision 14548)
@@ -110,6 +110,7 @@
   ui/prefs_miscellaneousbase.ui
   ui/prefs_pathsbase.ui
   ui/prefs_pluginsbase.ui
+  ui/prefs_preflightverifierbase.ui
   ui/prefs_printerbase.ui
   ui/prefs_scripterbase.ui
   ui/prefs_scrapbookbase.ui
@@ -302,6 +303,7 @@
   ui/prefs_paths.h
   ui/prefs_pane.h
   ui/prefs_plugins.h
+  ui/prefs_preflightverifier.h
   ui/prefs_printer.h
   ui/prefs_scrapbook.h
   ui/prefs_scripter.h
@@ -618,6 +620,7 @@
   ui/prefs_miscellaneous.cpp
   ui/prefs_paths.cpp
   ui/prefs_plugins.cpp
+  ui/prefs_preflightverifier.cpp
   ui/prefs_printer.cpp
   ui/prefs_scrapbook.cpp
   ui/prefs_scripter.cpp




More information about the scribus-commit mailing list