Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 14745 → Rev 14744

/trunk/Scribus/scribus/ui/prefs_pdfexport.cpp
81,7 → 81,18
imageCompressionQualityComboBox->addItem( tr( "Minimum" ) );
imageCompressionQualityComboBox->setCurrentIndex(i);
 
addPDFVersions(true);//if (cmsEnabled)// && (!PDFXProfiles.isEmpty()))
i = pdfVersionComboBox->currentIndex();
pdfVersionComboBox->clear();
pdfVersionComboBox->addItem("PDF 1.3 (Acrobat 4)");
pdfVersionComboBox->addItem("PDF 1.4 (Acrobat 5)");
pdfVersionComboBox->addItem("PDF 1.5 (Acrobat 6)");
//if (cmsEnabled)// && (!PDFXProfiles.isEmpty()))
{
pdfVersionComboBox->addItem("PDF/X-1a");
pdfVersionComboBox->addItem("PDF/X-3");
pdfVersionComboBox->addItem("PDF/X-4");
}
pdfVersionComboBox->setCurrentIndex(i);
 
i = pageBindingComboBox->currentIndex();
pageBindingComboBox->clear();
533,14 → 544,6
allowAnnotatingCheckBox->setEnabled(enabled);
}
 
 
void Prefs_PDFExport::enableCMS(bool enabled)
{
cmsEnabled=enabled;
addPDFVersions(enabled);
enableProfiles(1);
}
 
void Prefs_PDFExport::createPageNumberRange()
{
if (m_doc!=0)
816,23 → 819,3
tabWidget->setTabEnabled(2, false);
connect(outputIntentionComboBox, SIGNAL(activated(int)), this, SLOT(enableProfiles(int)));
}
 
void Prefs_PDFExport::addPDFVersions(bool addPDFXStrings)
{
disconnect(pdfVersionComboBox, SIGNAL(activated(int)), this, SLOT(enablePDFX(int)));
int i = pdfVersionComboBox->currentIndex();
pdfVersionComboBox->clear();
pdfVersionComboBox->addItem("PDF 1.3 (Acrobat 4)");
pdfVersionComboBox->addItem("PDF 1.4 (Acrobat 5)");
pdfVersionComboBox->addItem("PDF 1.5 (Acrobat 6)");
if (addPDFXStrings)
{
pdfVersionComboBox->addItem("PDF/X-1a");
pdfVersionComboBox->addItem("PDF/X-3");
pdfVersionComboBox->addItem("PDF/X-4");
}
else
i=qMin(i,2);
pdfVersionComboBox->setCurrentIndex(i);
connect(pdfVersionComboBox, SIGNAL(activated(int)), this, SLOT(enablePDFX(int)));
}
/trunk/Scribus/scribus/ui/prefs_pdfexport.h
26,7 → 26,6
virtual void restoreDefaults(struct ApplicationPrefs *prefsData, ScribusDoc* doc, const ProfilesL & PDFXProfiles,
const QMap<QString, int> & DocFonts);
virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
void enableCMS(bool);
 
signals:
void noInfo();
54,7 → 53,6
void enableCustomRenderingWidgets(bool);
void enableSolidsImagesWidgets(bool);
void enablePDFXWidgets(bool);
void addPDFVersions(bool);
bool cmsEnabled;
ScribusDoc* m_doc;
QString defaultSolidColorRGBProfile;
/trunk/Scribus/scribus/ui/preferencesdialog.cpp
229,8 → 229,6
prefs_ItemTools->enableFontPreview(true);
if (prefsStackWidget->currentWidget()==dynamic_cast<QWidget*>(prefs_TableOfContents))
prefs_TableOfContents->setupItemAttrs( prefs_DocumentItemAttributes->getDocAttributesNames() );
if (prefsStackWidget->currentWidget()==dynamic_cast<QWidget*>(prefs_PDFExport))
prefs_PDFExport->enableCMS(prefs_ColorManagement->cmActive());
}
}
 
/trunk/Scribus/scribus/ui/prefs_colormanagement.cpp
127,11 → 127,6
}
}
 
bool Prefs_ColorManagement::cmActive()
{
return activateCMCheckBox->isChecked();
}
 
void Prefs_ColorManagement::cmActivated(bool active)
{
imageRenderingIntentComboBox->setEnabled( active );
/trunk/Scribus/scribus/ui/prefs_colormanagement.h
24,7 → 24,7
virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
void setProfiles(struct ApplicationPrefs *prefsData, ProfilesL *inputProfiles, ProfilesL *inputProfilesCMYK, ProfilesL *printerProfiles, ProfilesL *monitorProfiles);
virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
bool cmActive();
 
protected:
bool m_canChangeMonitorProfile;