Пример #1
0
Prefs_PreflightVerifier::Prefs_PreflightVerifier(QWidget* parent)
	: Prefs_Pane(parent)
{
	setupUi(this);
	languageChange();

	connect(currentProfileComboBox, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
	connect(currentProfileComboBox, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));

	connect(ignoreAllErrorsCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(autoCheckBeforePrintExportCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkMissingGlyphsCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkItemsNotOnAPageCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkTextOverflowCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkTransparenciesCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkMissingImagesCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkImageResolutionCheckBox, SIGNAL(toggled(bool)), this, SLOT(putProfile()));
	connect(checkPDFAnnotFieldsCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkPlacedPDFCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkGIFsCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(minimumResolutionSpinBox, SIGNAL(valueChanged(int)), this, SLOT(putProfile()));
	connect(maximumResolutionSpinBox, SIGNAL(valueChanged(int)), this, SLOT(putProfile()));
	connect(checkNonPrintableLayersCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkVisiblePrintableLayersCheckBox, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(removeProfilePushButton, SIGNAL(clicked()), this, SLOT(delProf()));
	connect(addProfilePushButton, SIGNAL(clicked()), this, SLOT(addProf()));
}
Пример #2
0
TabCheckDoc::TabCheckDoc( QWidget* parent, CheckerPrefsList prefsData, QString prefProfile ) : QWidget( parent )
{
	TabCheckDocLayout = new QVBoxLayout(this);
	TabCheckDocLayout->setMargin(0);
	TabCheckDocLayout->setSpacing(5);
	TabCheckDocLayout->setAlignment( Qt::AlignTop );
	curCheckProfile = new QComboBox(this);
	curCheckProfile->setEditable(true);
	curCheckProfile->setDuplicatesEnabled(false);

	TabCheckDocLayout->addWidget( curCheckProfile );
	ignoreErrors = new QCheckBox( this );
	ignoreErrors->setText( tr( "Ignore all errors" ) );
	TabCheckDocLayout->addWidget( ignoreErrors );
	automaticCheck = new QCheckBox( this );
	automaticCheck->setText( tr( "Automatic check before printing or exporting" ) );
	TabCheckDocLayout->addWidget( automaticCheck );
	missingGlyphs = new QCheckBox( this );
	missingGlyphs->setText( tr( "Check for missing glyphs" ) );
	TabCheckDocLayout->addWidget( missingGlyphs );
	checkOrphans = new QCheckBox( this );
	checkOrphans->setText( tr( "Check for items not on a page" ) );
	TabCheckDocLayout->addWidget( checkOrphans );
	textOverflow = new QCheckBox( this );
	textOverflow->setText( tr( "Check for overflow in text frames" ) );
	TabCheckDocLayout->addWidget( textOverflow );
	tranparentObjects = new QCheckBox( this );
	tranparentObjects->setText( tr( "Check for used transparencies" ) );
	TabCheckDocLayout->addWidget( tranparentObjects );
	missingPictures = new QCheckBox( this );
	missingPictures->setText( tr( "Check for missing images" ) );
	TabCheckDocLayout->addWidget( missingPictures );
	pictResolution = new QGroupBox( this );
	pictResolution->setTitle( tr( "Check image resolution" ) );
	pictResolution->setCheckable( true );
	pictResolutionLayout = new QGridLayout(pictResolution);
	pictResolutionLayout->setMargin(10);
	pictResolutionLayout->setSpacing(5);
	pictResolutionLayout->setAlignment( Qt::AlignTop );
	textLabel1 = new QLabel( pictResolution );
	textLabel1->setText( tr( "Lowest allowed resolution" ) );
	pictResolutionLayout->addWidget( textLabel1, 0, 0 );
	resolutionValue = new QSpinBox( pictResolution );
	resolutionValue->setMaximum( 4800 );
	resolutionValue->setMinimum( 10 );
	resolutionValue->setSuffix( tr( " dpi" ) );
	pictResolutionLayout->addWidget( resolutionValue, 0, 1 );
	textLabel1m = new QLabel( pictResolution );
	textLabel1m->setText( tr( "Highest allowed resolution" ) );
	pictResolutionLayout->addWidget( textLabel1m, 0, 2 );
	resolutionValueM = new QSpinBox( pictResolution );
	resolutionValueM->setMaximum( 4800 );
	resolutionValueM->setMinimum( 10 );
	resolutionValueM->setSuffix( tr( " dpi" ) );
	pictResolutionLayout->addWidget( resolutionValueM, 0, 3 );
	TabCheckDocLayout->addWidget( pictResolution );
	rasterPDF = new QCheckBox( this );
	rasterPDF->setText( tr( "Check for placed PDF Files" ) );
	TabCheckDocLayout->addWidget( rasterPDF );
	checkForGIF = new QCheckBox(this);
	checkForGIF->setText( tr("Check for GIF images"));
	TabCheckDocLayout->addWidget(checkForGIF);
	useAnnotations = new QCheckBox( this );
	useAnnotations->setText( tr( "Check for PDF Annotations and Fields" ) );
	TabCheckDocLayout->addWidget( useAnnotations );
	ignoreOffLayers = new QCheckBox( this );
	ignoreOffLayers->setText( tr( "Ignore non-printable Layers" ) );
	TabCheckDocLayout->addWidget( ignoreOffLayers );
	checkOffConflictLayers = new QCheckBox( this );
	checkOffConflictLayers->setText( tr( "Check for Visible/Printable Mismatch in Layers" ) );
	TabCheckDocLayout->addWidget( checkOffConflictLayers );
	layout1 = new QHBoxLayout;
	layout1->setMargin(0);
	layout1->setSpacing(5);
	QSpacerItem* spacer = new QSpacerItem( 2, 2, QSizePolicy::Expanding, QSizePolicy::Minimum );
	layout1->addItem( spacer );
	addProfile = new QPushButton( tr( "Add Profile" ), this );
	layout1->addWidget( addProfile );
	removeProfile = new QPushButton( tr( "Remove Profile" ), this );
	layout1->addWidget( removeProfile );
	QSpacerItem* spacer2 = new QSpacerItem( 2, 2, QSizePolicy::Expanding, QSizePolicy::Minimum );
	layout1->addItem( spacer2 );
	TabCheckDocLayout->addLayout( layout1 );

	// switched off as it's called in main prefs classes - PV
	//restoreDefaults(&prefsData, prefProfile);

	connect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
	connect(curCheckProfile, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));
	
	connect(ignoreErrors, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(automaticCheck, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(missingGlyphs, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkOrphans, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(textOverflow, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(tranparentObjects, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(missingPictures, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(pictResolution, SIGNAL(toggled(bool)), this, SLOT(putProfile()));
	connect(useAnnotations, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(rasterPDF, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkForGIF, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(resolutionValue, SIGNAL(valueChanged(int)), this, SLOT(putProfile()));
	connect(resolutionValueM, SIGNAL(valueChanged(int)), this, SLOT(putProfile()));
	connect(ignoreOffLayers, SIGNAL(clicked()), this, SLOT(putProfile()));
	connect(checkOffConflictLayers, SIGNAL(clicked()), this, SLOT(putProfile()));	
	connect(removeProfile, SIGNAL(clicked()), this, SLOT(delProf()));
	connect(addProfile, SIGNAL(clicked()), this, SLOT(addProf()));
}