r17921 by fschmid - Fixed Bug #11188: Deactivate Compression level when no compression applied
scribus-commit
scribus-commit at lists.scribus.net
Fri Nov 30 19:02:06 UTC 2012
Author: fschmid
Date: Fri Nov 30 19:02:06 2012
New Revision: 17921
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17921
Log:
Fixed Bug #11188: Deactivate Compression level when no compression applied
Modified:
trunk/Scribus/scribus/ui/tabpdfoptions.cpp
trunk/Scribus/scribus/ui/tabpdfoptions.h
Modified: trunk/Scribus/scribus/ui/tabpdfoptions.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17921&path=/trunk/Scribus/scribus/ui/tabpdfoptions.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/tabpdfoptions.cpp (original)
+++ trunk/Scribus/scribus/ui/tabpdfoptions.cpp Fri Nov 30 19:02:06 2012
@@ -957,6 +957,7 @@
connect(Encry, SIGNAL(clicked()), this, SLOT(ToggleEncr()));
connect(UseLPI, SIGNAL(clicked()), this, SLOT(EnableLPI2()));
connect(LPIcolor, SIGNAL(activated(int)), this, SLOT(SelLPIcol(int)));
+ connect(CMethod, SIGNAL(activated(int)), this, SLOT(handleCompressionMethod(int)));
//tooltips
RotateDeg->setToolTip( "<qt>" + tr( "Automatically rotate the exported pages" ) + "</qt>" );
AllPages->setToolTip( "<qt>" + tr( "Export all pages to PDF" ) + "</qt>" );
@@ -1062,6 +1063,8 @@
Compression->setChecked( Opts.Compress );
CMethod->setCurrentIndex(Opts.CompressMethod);
CQuality->setCurrentIndex(Opts.Quality);
+ if (Opts.CompressMethod == 3)
+ CQuality->setEnabled(false);
DSColor->setChecked(Opts.RecalcPic);
ValC->setValue(Opts.PicRes);
ValC->setEnabled(DSColor->isChecked() ? true : false);
@@ -1449,6 +1452,11 @@
}
}
+void TabPDFOptions::handleCompressionMethod(int ind)
+{
+ CQuality->setDisabled(ind == 3);
+}
+
void TabPDFOptions::storeValues(PDFOptions& pdfOptions)
{
pdfOptions.Thumbnails = CheckBox1->isChecked();
Modified: trunk/Scribus/scribus/ui/tabpdfoptions.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17921&path=/trunk/Scribus/scribus/ui/tabpdfoptions.h
==============================================================================
--- trunk/Scribus/scribus/ui/tabpdfoptions.h (original)
+++ trunk/Scribus/scribus/ui/tabpdfoptions.h Fri Nov 30 19:02:06 2012
@@ -152,6 +152,7 @@
protected slots:
void createPageNumberRange();
+ void handleCompressionMethod(int ind);
protected:
// PDFExportDialog should really privately inherit from us, but it can't
More information about the scribus-commit
mailing list