Rev 1261 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1235 | fschmid | 1 | #include "tabcheckdoc.h" |
2 | #include "tabcheckdoc.moc" |
||
3 | #include <qvariant.h> |
||
4 | #include <qcheckbox.h> |
||
5 | #include <qgroupbox.h> |
||
6 | #include <qlabel.h> |
||
7 | #include <qspinbox.h> |
||
8 | #include <qlayout.h> |
||
9 | #include <qtooltip.h> |
||
10 | #include <qwhatsthis.h> |
||
11 | #include "scribusstructs.h" |
||
12 | |||
13 | TabCheckDoc::TabCheckDoc( QWidget* parent, struct checkerPrefs *prefsData ) : QWidget( parent, "tabcheckDoc", 0 ) |
||
14 | { |
||
15 | TabCheckDocLayout = new QVBoxLayout( this, 10, 5, "TabCheckDocLayout"); |
||
16 | TabCheckDocLayout->setAlignment( Qt::AlignTop ); |
||
17 | ignoreErrors = new QCheckBox( this, "ignoreErrors" ); |
||
18 | ignoreErrors->setText( tr( "Ignore all Errors" ) ); |
||
19 | ignoreErrors->setChecked(prefsData->ignoreErrors); |
||
20 | TabCheckDocLayout->addWidget( ignoreErrors ); |
||
21 | automaticCheck = new QCheckBox( this, "automaticCheck" ); |
||
22 | automaticCheck->setText( tr( "Automatic Check before Printing or Exporting" ) ); |
||
23 | automaticCheck->setChecked(prefsData->autoCheck); |
||
24 | TabCheckDocLayout->addWidget( automaticCheck ); |
||
25 | missingGlyphs = new QCheckBox( this, "missingGlyphs" ); |
||
26 | missingGlyphs->setText( tr( "Check for missing Glyphs" ) ); |
||
27 | missingGlyphs->setChecked(prefsData->checkGlyphs); |
||
28 | TabCheckDocLayout->addWidget( missingGlyphs ); |
||
29 | checkOrphans = new QCheckBox( this, "checkOrphans" ); |
||
30 | checkOrphans->setText( tr( "Check for Objects not on a Page" ) ); |
||
31 | checkOrphans->setChecked(prefsData->checkOrphans); |
||
32 | TabCheckDocLayout->addWidget( checkOrphans ); |
||
33 | textOverflow = new QCheckBox( this, "textOverflow" ); |
||
34 | textOverflow->setText( tr( "Check for overflow in Textframes" ) ); |
||
35 | textOverflow->setChecked(prefsData->checkOverflow); |
||
36 | TabCheckDocLayout->addWidget( textOverflow ); |
||
37 | tranparentObjects = new QCheckBox( this, "tranparentObjects" ); |
||
38 | tranparentObjects->setText( tr( "Check for Transparencys used" ) ); |
||
39 | tranparentObjects->setChecked(prefsData->checkTransparency); |
||
40 | TabCheckDocLayout->addWidget( tranparentObjects ); |
||
41 | missingPictures = new QCheckBox( this, "missingPictures" ); |
||
42 | missingPictures->setText( tr( "Check for missing Images" ) ); |
||
43 | missingPictures->setChecked(prefsData->checkPictures); |
||
44 | TabCheckDocLayout->addWidget( missingPictures ); |
||
45 | pictResolution = new QGroupBox( this, "pictResolution" ); |
||
46 | pictResolution->setTitle( tr( "Check Image Resolution" ) ); |
||
47 | pictResolution->setCheckable( true ); |
||
48 | pictResolution->setChecked(prefsData->checkResolution); |
||
49 | pictResolution->setColumnLayout(0, Qt::Vertical ); |
||
50 | pictResolution->layout()->setSpacing( 5 ); |
||
51 | pictResolution->layout()->setMargin( 10 ); |
||
52 | pictResolutionLayout = new QHBoxLayout( pictResolution->layout() ); |
||
53 | pictResolutionLayout->setAlignment( Qt::AlignTop ); |
||
54 | textLabel1 = new QLabel( pictResolution, "textLabel1" ); |
||
55 | textLabel1->setText( tr( "Lowest allowed Resolution" ) ); |
||
56 | pictResolutionLayout->addWidget( textLabel1 ); |
||
57 | resolutionValue = new QSpinBox( pictResolution, "resolutionValue" ); |
||
58 | resolutionValue->setMaxValue( 3600 ); |
||
59 | resolutionValue->setMinValue( 10 ); |
||
60 | resolutionValue->setValue( qRound(prefsData->minResolution) ); |
||
61 | resolutionValue->setSuffix( tr( " dpi" ) ); |
||
62 | pictResolutionLayout->addWidget( resolutionValue ); |
||
63 | TabCheckDocLayout->addWidget( pictResolution ); |
||
64 | clearWState( WState_Polished ); |
||
65 | } |