r17008 by fschmid - Fixed Bug 10239: "printcheck window doent follow document change"

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 22 11:42:23 UTC 2011


Author: fschmid
Date: Tue Nov 22 11:42:23 2011
New Revision: 17008

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17008
Log:
Fixed Bug 10239: "printcheck window doent follow document change"

Modified:
    trunk/Scribus/scribus/scribus.cpp
    trunk/Scribus/scribus/ui/checkDocument.cpp
    trunk/Scribus/scribus/ui/checkDocument.h

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17008&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Tue Nov 22 11:42:23 2011
@@ -2221,6 +2221,7 @@
 		else
 			HaveNewSel(-1);
 	}
+	docCheckerPalette->setDoc(doc);
 	tocGenerator->setDoc(doc);
 	styleManager->setDoc(doc);
 	symbolPalette->setDoc(doc);

Modified: trunk/Scribus/scribus/ui/checkDocument.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17008&path=/trunk/Scribus/scribus/ui/checkDocument.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/checkDocument.cpp (original)
+++ trunk/Scribus/scribus/ui/checkDocument.cpp Tue Nov 22 11:42:23 2011
@@ -91,6 +91,17 @@
 	connect(ignoreErrors, SIGNAL(clicked()), this, SIGNAL(ignoreAllErrors()));
 	connect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(newScan(const QString&)));
 	connect(reScan, SIGNAL(clicked()), this, SLOT(doReScan()));
+}
+
+void CheckDocument::setDoc(ScribusDoc *doc)
+{
+	m_Doc = doc;
+	clearErrorList();
+	CheckerPrefsList::Iterator it;
+	CheckerPrefsList::Iterator itend=doc->checkerProfiles().end();
+	for (it = doc->checkerProfiles().begin(); it != itend ; ++it)
+		curCheckProfile->addItem(it.key());
+	setCurrentComboItem(curCheckProfile, doc->curCheckProfile());
 }
 
 void CheckDocument::slotSelect(QTreeWidgetItem* ite)

Modified: trunk/Scribus/scribus/ui/checkDocument.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17008&path=/trunk/Scribus/scribus/ui/checkDocument.h
==============================================================================
--- trunk/Scribus/scribus/ui/checkDocument.h (original)
+++ trunk/Scribus/scribus/ui/checkDocument.h Tue Nov 22 11:42:23 2011
@@ -38,6 +38,7 @@
 	~CheckDocument() {};
 	
 	virtual void changeEvent(QEvent *e);
+	void setDoc(ScribusDoc *doc);
 
 	/*! \brief State of the P.V. */
 	enum CheckMode { checkNULL, checkPDF, checkEPS, checkPrint, checkPrintPreview };




More information about the scribus-commit mailing list