~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/cmsprefs.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        cmsPrefsLayout->setMargin( 0 );
20
20
 
21
21
        checkBox1 = new QCheckBox( tr( "&Activate Color Management" ), this, "CheckBox1" );
22
 
        checkBox1->setChecked(Vor->CMSinUse);
 
22
//      checkBox1->setChecked(prefs->CMSinUse);
23
23
        cmsPrefsLayout->addWidget( checkBox1 );
24
24
 
25
25
        sysProfiles = new QGroupBox( tr( "System Profiles" ), this, "SysProfiles" );
26
 
        if (!checkBox1->isChecked())
27
 
                sysProfiles->setEnabled( false );
 
26
//      if (!checkBox1->isChecked())
 
27
//              sysProfiles->setEnabled( false );
28
28
        sysProfiles->setColumnLayout(0, Qt::Vertical );
29
29
        sysProfiles->layout()->setSpacing( 0 );
30
30
        sysProfiles->layout()->setMargin( 0 );
33
33
        sysProfilesLayout->setSpacing( 5 );
34
34
        sysProfilesLayout->setMargin( 10 );
35
35
 
36
 
        ProfilesL::Iterator it;
 
36
//      ProfilesL::Iterator it;
37
37
 
38
 
        inputP = new QComboBox( true, sysProfiles, "InputP" );
39
 
        inputP->setMinimumSize( QSize( 190, 22 ) );
40
 
        inputP->setEditable(false);
41
 
        for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
 
38
        inputPRGBIm = new QComboBox( true, sysProfiles, "InputP" );
 
39
        inputPRGBIm->setMinimumSize( QSize( 190, 22 ) );
 
40
        inputPRGBIm->setEditable(false);
 
41
/*      for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
42
42
        {
43
 
                inputP->insertItem(it.key());
44
 
                if (it.key() == Vor->DefaultImageRGBProfile)
45
 
                        inputP->setCurrentItem(inputP->count()-1);
46
 
        }
47
 
        text1 = new QLabel( inputP, tr( "&RGB Pictures:" ), sysProfiles, "Text1" );
 
43
                inputPRGBIm->insertItem(it.key());
 
44
                if (it.key() == prefs->DefaultImageRGBProfile)
 
45
                        inputPRGBIm->setCurrentItem(inputPRGBIm->count()-1);
 
46
        }*/
 
47
        text1 = new QLabel( inputPRGBIm, tr( "&RGB Pictures:" ), sysProfiles, "Text1" );
48
48
        sysProfilesLayout->addWidget( text1, 0, 0 );
49
 
        sysProfilesLayout->addWidget( inputP, 0, 1 );
 
49
        sysProfilesLayout->addWidget( inputPRGBIm, 0, 1 );
 
50
 
 
51
        inputPCMYKIm = new QComboBox( true, sysProfiles, "inputPCMYKIm" );
 
52
        inputPCMYKIm->setMinimumSize( QSize( 190, 22 ) );
 
53
        inputPCMYKIm->setEditable(false);
 
54
/*      for (it = InputProfilesCMYK->begin(); it != InputProfilesCMYK->end(); ++it)
 
55
        {
 
56
                inputPCMYKIm->insertItem(it.key());
 
57
                if (it.key() == prefs->DefaultImageCMYKProfile)
 
58
                        inputPCMYKIm->setCurrentItem(inputPCMYKIm->count()-1);
 
59
        }*/
 
60
        text1CMYK = new QLabel( inputPCMYKIm, tr( "&CMYK Pictures:" ), sysProfiles, "text1cmyk" );
 
61
        sysProfilesLayout->addWidget( text1CMYK, 1, 0 );
 
62
        sysProfilesLayout->addWidget( inputPCMYKIm, 1, 1 );
 
63
 
 
64
        inputPRGB = new QComboBox( true, sysProfiles, "inputPRGB" );
 
65
        inputPRGB->setMinimumSize( QSize( 190, 22 ) );
 
66
        inputPRGB->setEditable(false);
 
67
/*      for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
 
68
        {
 
69
                inputPRGB->insertItem(it.key());
 
70
                if (it.key() == prefs->DefaultSolidColorRGBProfile)
 
71
                        inputPRGB->setCurrentItem(inputPRGB->count()-1);
 
72
        }*/
 
73
        text4 = new QLabel( inputPRGB, tr( "&RGB Solid Colors:" ), sysProfiles, "Text4" );
 
74
        sysProfilesLayout->addWidget( text4, 2, 0 );
 
75
        sysProfilesLayout->addWidget( inputPRGB, 2, 1 );
50
76
 
51
77
        inputPCMYK = new QComboBox( true, sysProfiles, "inputPCMYK" );
52
78
        inputPCMYK->setMinimumSize( QSize( 190, 22 ) );
53
79
        inputPCMYK->setEditable(false);
54
 
        for (it = InputProfilesCMYK->begin(); it != InputProfilesCMYK->end(); ++it)
 
80
/*      for (it = InputProfilesCMYK->begin(); it != InputProfilesCMYK->end(); ++it)
55
81
        {
56
82
                inputPCMYK->insertItem(it.key());
57
 
                if (it.key() == Vor->DefaultImageCMYKProfile)
 
83
                if (it.key() == prefs->DefaultSolidColorCMYKProfile)
58
84
                        inputPCMYK->setCurrentItem(inputPCMYK->count()-1);
59
 
        }
60
 
        text1CMYK = new QLabel( inputPCMYK, tr( "&CMYK Pictures:" ), sysProfiles, "text1cmyk" );
61
 
        sysProfilesLayout->addWidget( text1CMYK, 1, 0 );
62
 
        sysProfilesLayout->addWidget( inputPCMYK, 1, 1 );
63
 
 
64
 
        inputP2 = new QComboBox( true, sysProfiles, "InputP2" );
65
 
        inputP2->setMinimumSize( QSize( 190, 22 ) );
66
 
        inputP2->setEditable(false);
67
 
        for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
68
 
        {
69
 
                inputP2->insertItem(it.key());
70
 
                if (it.key() == Vor->DefaultSolidColorProfile)
71
 
                        inputP2->setCurrentItem(inputP2->count()-1);
72
 
        }
73
 
        text4 = new QLabel( inputP2, tr( "&Solid Colors:" ), sysProfiles, "Text4" );
74
 
        sysProfilesLayout->addWidget( text4, 2, 0 );
75
 
        sysProfilesLayout->addWidget( inputP2, 2, 1 );
 
85
        }*/
 
86
        text5 = new QLabel( inputPCMYK, tr( "&CMYK Solid Colors:" ), sysProfiles, "Text5" );
 
87
        sysProfilesLayout->addWidget( text5, 3, 0 );
 
88
        sysProfilesLayout->addWidget( inputPCMYK, 3, 1 );
76
89
 
77
90
        monitorP = new QComboBox( true, sysProfiles, "MonitorP" );
78
91
        monitorP->setMinimumSize( QSize( 190, 22 ) );
79
92
        monitorP->setEditable(false);
80
 
        for (it = MonitorProfiles->begin(); it != MonitorProfiles->end(); ++it)
 
93
/*      for (it = MonitorProfiles->begin(); it != MonitorProfiles->end(); ++it)
81
94
        {
82
95
                monitorP->insertItem(it.key());
83
 
                if (it.key() == Vor->DefaultMonitorProfile)
 
96
                if (it.key() == prefs->DefaultMonitorProfile)
84
97
                        monitorP->setCurrentItem(monitorP->count()-1);
85
 
        }
 
98
        }*/
86
99
        text2 = new QLabel( monitorP, tr( "&Monitor:" ), sysProfiles, "Text2" );
87
 
        sysProfilesLayout->addWidget( text2, 3, 0 );
88
 
        sysProfilesLayout->addWidget( monitorP, 3, 1 );
 
100
        sysProfilesLayout->addWidget( text2, 4, 0 );
 
101
        sysProfilesLayout->addWidget( monitorP, 4, 1 );
89
102
 
90
103
        printerP = new QComboBox( true, sysProfiles, "PrinterP" );
91
104
        printerP->setMinimumSize( QSize( 190, 22 ) );
92
105
        printerP->setEditable(false);
93
 
        for (it = PrinterProfiles->begin(); it != PrinterProfiles->end(); ++it)
 
106
/*      for (it = PrinterProfiles->begin(); it != PrinterProfiles->end(); ++it)
94
107
        {
95
108
                printerP->insertItem(it.key());
96
 
                if (it.key() == Vor->DefaultPrinterProfile)
 
109
                if (it.key() == prefs->DefaultPrinterProfile)
97
110
                        printerP->setCurrentItem(printerP->count()-1);
98
 
        }
 
111
        }*/
99
112
        text3 = new QLabel( printerP, tr( "P&rinter:" ), sysProfiles, "Text3" );
100
 
        sysProfilesLayout->addWidget( text3, 4, 0 );
101
 
        sysProfilesLayout->addWidget( printerP, 4, 1 );
 
113
        sysProfilesLayout->addWidget( text3, 5, 0 );
 
114
        sysProfilesLayout->addWidget( printerP, 5, 1 );
102
115
        cmsPrefsLayout->addWidget( sysProfiles );
103
116
 
104
117
        render = new QGroupBox( tr( "Rendering Intents" ), this, "Render" );
105
 
        if (!checkBox1->isChecked())
106
 
                render->setEnabled( false );
 
118
/*      if (!checkBox1->isChecked())
 
119
                render->setEnabled( false );*/
107
120
        render->setColumnLayout(0, Qt::Vertical );
108
121
        render->layout()->setSpacing( 0 );
109
122
        render->layout()->setMargin( 0 );
112
125
        renderLayout->setSpacing( 5 );
113
126
        renderLayout->setMargin( 10 );
114
127
 
115
 
        monitorI = new QComboBox( true, render, "MonitorI" );
116
 
        QString tmp_mp[] = { tr("Perceptual"), tr("Relative Colorimetric"), 
117
 
                                                tr("Saturation"), tr("Absolute Colorimetric")};
118
 
        size_t array = sizeof(tmp_mp) / sizeof(*tmp_mp);
 
128
        imagesI = new QComboBox( true, render, "ImagesI" );
 
129
//      QString tmp_mp[] = { tr("Perceptual"), tr("Relative Colorimetric"), 
 
130
//                                              tr("Saturation"), tr("Absolute Colorimetric")};
 
131
//      size_t array = sizeof(tmp_mp) / sizeof(*tmp_mp);
119
132
        /* PFJ - 29.02.04 - Changed from uint to int and var name */
120
 
        for (uint prop = 0; prop < array; ++prop)
121
 
                monitorI->insertItem(tmp_mp[prop]);
122
 
        monitorI->setMinimumSize( QSize( 190, 22 ) );
123
 
        monitorI->setEditable(false);
124
 
        monitorI->setCurrentItem(Vor->DefaultIntentMonitor);
125
 
        text21 = new QLabel( monitorI, tr( "M&onitor:" ), render, "Text21" );
 
133
/*      for (uint prop = 0; prop < array; ++prop)
 
134
                imagesI->insertItem(tmp_mp[prop]);*/
 
135
        imagesI->setMinimumSize( QSize( 190, 22 ) );
 
136
        imagesI->setEditable(false);
 
137
//      imagesI->setCurrentItem(prefs->DefaultIntentImages);
 
138
        text21 = new QLabel( imagesI, tr( "Pictures:" ), render, "Text21" );
126
139
        renderLayout->addWidget( text21, 0, 0 );
127
 
        renderLayout->addWidget( monitorI, 0, 1 );
 
140
        renderLayout->addWidget( imagesI, 0, 1 );
128
141
 
129
 
        printerI = new QComboBox( true, render, "PrinterI" );
130
 
        for (uint prop = 0; prop < array; ++prop)
131
 
                printerI->insertItem(tmp_mp[prop]);
132
 
        printerI->setMinimumSize( QSize( 190, 22 ) );
133
 
        printerI->setEditable(false);
134
 
        printerI->setCurrentItem(Vor->DefaultIntentPrinter);
135
 
        text22 = new QLabel( printerI, tr( "Pr&inter:" ), render, "Text22" );
 
142
        colorsI = new QComboBox( true, render, "colorsI" );
 
143
/*      for (uint prop = 0; prop < array; ++prop)
 
144
                colorsI->insertItem(tmp_mp[prop]);*/
 
145
        colorsI->setMinimumSize( QSize( 190, 22 ) );
 
146
        colorsI->setEditable(false);
 
147
//      colorsI->setCurrentItem(prefs->DefaultIntentColors);
 
148
        text22 = new QLabel( colorsI, tr( "Sol&id Colors:" ), render, "Text22" );
136
149
        renderLayout->addWidget( text22, 1, 0 );
137
 
        renderLayout->addWidget( printerI, 1, 1 );
 
150
        renderLayout->addWidget( colorsI, 1, 1 );
138
151
 
139
152
        cmsPrefsLayout->addWidget( render );
140
153
 
141
154
        simulate = new QCheckBox( tr( "Sim&ulate Printer on the Screen" ), this, "Simulate" );
142
 
        simulate->setChecked(Vor->SoftProofOn);
 
155
//      simulate->setChecked(prefs->SoftProofOn);
143
156
        cmsPrefsLayout->addWidget( simulate );
144
157
 
 
158
        convertLayout = new QHBoxLayout( cmsPrefsLayout );
 
159
        convertLayout->setAlignment( Qt::AlignTop );
 
160
        convertLayout->setMargin( 0 );
 
161
        convertLayout->addSpacing( 30 );
 
162
 
 
163
        convertAll = new QCheckBox( tr( "Convert all colors to printer space" ), this, "fullSimulate" );
 
164
//      convertAll->setChecked(prefs->SoftProofFullOn);
 
165
        convertLayout->addWidget( convertAll );
 
166
 
 
167
        gamutLayout = new QHBoxLayout( cmsPrefsLayout );
 
168
        gamutLayout->setAlignment( Qt::AlignTop );
 
169
        gamutLayout->setMargin( 0 );
 
170
        gamutLayout->addSpacing( 30 );
 
171
 
145
172
        gamutC = new QCheckBox( tr( "Mark Colors out of &Gamut" ), this, "Gamut" );
146
 
        gamutC->setChecked(Vor->GamutCheck);
147
 
        cmsPrefsLayout->addWidget( gamutC );
 
173
//      gamutC->setChecked(prefs->GamutCheck);
 
174
        gamutLayout->addWidget( gamutC );
148
175
 
149
176
        blackP = new QCheckBox( tr( "Use &Blackpoint Compensation" ), this, "Black" );
150
 
        blackP->setChecked(Vor->BlackPoint);
 
177
//      blackP->setChecked(prefs->BlackPoint);
151
178
        cmsPrefsLayout->addWidget( blackP );
152
179
 
153
 
        if (!checkBox1->isChecked())
 
180
/*      if (!checkBox1->isChecked())
154
181
        {
155
182
                simulate->setEnabled( false );
 
183
                convertAll->setEnabled( false );
156
184
                //gamutC->setEnabled( false );
157
185
                blackP->setEnabled( false );
158
 
        }
 
186
        }*/
159
187
        
160
 
        gamutC->setEnabled(simulate->isEnabled() && simulate->isChecked());
161
 
 
162
 
        QToolTip::add( inputPCMYK, tr( "Default color profile for imported CMYK images" ) );
163
 
        QToolTip::add( inputP, tr( "Default color profile for imported RGB images" ) );
164
 
        QToolTip::add( inputP2, tr( "Default color profile for solid colors on the page" ) );
 
188
//      convertAll->setEnabled(simulate->isEnabled() && simulate->isChecked());
 
189
//      gamutC->setEnabled(simulate->isEnabled() && simulate->isChecked());
 
190
 
 
191
        // switched off as it's called in main prefs classes - PV
 
192
        restoreDefaults(prefs, InputProfiles, InputProfilesCMYK, PrinterProfiles, MonitorProfiles);
 
193
 
 
194
        QToolTip::add( inputPCMYKIm, tr( "Default color profile for imported CMYK images" ) );
 
195
        QToolTip::add( inputPRGBIm, tr( "Default color profile for imported RGB images" ) );
 
196
        QToolTip::add( inputPRGB, tr( "Default color profile for solid RGB colors on the page" ) );
 
197
        QToolTip::add( inputPCMYK, tr( "Default color profile for solid CMYK colors on the page" ) );
165
198
        QToolTip::add( monitorP, tr( "Color profile that you have generated or received from the manufacturer.\nThis profile should be specific to your monitor and not a generic profile (i.e. sRGB)." ) );
166
199
        QToolTip::add( printerP, tr( "Color profile for your printer model from the manufacturer.\nThis profile should be specific to your printer and not a generic profile (i.e. sRGB)." ) );
167
 
        QToolTip::add( monitorI, tr( "Default rendering intent for your monitor. Unless you know why to change it,\nRelative Colorimetric or Perceptual should be chosen." ) );
168
 
        QToolTip::add( printerI, tr( "Default rendering intent for your printer. Unless you know why to change it,\nRelative Colorimetric or Perceptual should be chosen." ) );
 
200
        QToolTip::add( colorsI, tr( "Default rendering intent for solid colors. Unless you know why to change it,\nRelative Colorimetric or Perceptual should be chosen." ) );
 
201
        QToolTip::add( imagesI, tr( "Default rendering intent for images. Unless you know why to change it,\nRelative Colorimetric or Perceptual should be chosen." ) );
169
202
        QToolTip::add( simulate, tr( "Enable 'soft proofing' of how your document colors will print,\nbased on the chosen printer profile." ) );
 
203
        QToolTip::add( convertAll, tr( "Simulate a full color managed environment :\nall colors, rgb or cmyk, are converted to printer color space." ) );
170
204
        QToolTip::add( gamutC, tr( "Method of showing colors on the screen which may not print properly.\nThis requires very accurate profiles and serves only as a warning." ) );
171
205
        QToolTip::add( blackP, tr( "Black Point Compensation is a method of improving contrast in photos.\nIt is recommended that you enable this if you have photos in your document." ) );
172
206
 
175
209
        connect( simulate, SIGNAL( clicked() ), this, SLOT( slotSimula() ) );
176
210
}
177
211
 
178
 
void CMSPrefs::restoreDefaults()
 
212
void CMSPrefs::restoreDefaults(CMSData *prefs, ProfilesL *InputProfiles, ProfilesL *InputProfilesCMYK, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles)
179
213
{
 
214
        checkBox1->setChecked(prefs->CMSinUse);
 
215
        
 
216
        ProfilesL::Iterator it;
 
217
        inputPRGBIm->clear();
 
218
        for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
 
219
        {
 
220
                inputPRGBIm->insertItem(it.key());
 
221
                if (it.key() == prefs->DefaultImageRGBProfile)
 
222
                        inputPRGBIm->setCurrentItem(inputPRGBIm->count()-1);
 
223
        }
 
224
        inputPCMYKIm->clear();
 
225
        for (it = InputProfilesCMYK->begin(); it != InputProfilesCMYK->end(); ++it)
 
226
        {
 
227
                inputPCMYKIm->insertItem(it.key());
 
228
                if (it.key() == prefs->DefaultImageCMYKProfile)
 
229
                        inputPCMYKIm->setCurrentItem(inputPCMYKIm->count()-1);
 
230
        }
 
231
        inputPRGB->clear();
 
232
        for (it = InputProfiles->begin(); it != InputProfiles->end(); ++it)
 
233
        {
 
234
                inputPRGB->insertItem(it.key());
 
235
                if (it.key() == prefs->DefaultSolidColorRGBProfile)
 
236
                        inputPRGB->setCurrentItem(inputPRGB->count()-1);
 
237
        }
 
238
        inputPCMYK->clear();
 
239
        for (it = InputProfilesCMYK->begin(); it != InputProfilesCMYK->end(); ++it)
 
240
        {
 
241
                inputPCMYK->insertItem(it.key());
 
242
                if (it.key() == prefs->DefaultSolidColorCMYKProfile)
 
243
                        inputPCMYK->setCurrentItem(inputPCMYK->count()-1);
 
244
        }
 
245
        monitorP->clear();
 
246
        for (it = MonitorProfiles->begin(); it != MonitorProfiles->end(); ++it)
 
247
        {
 
248
                monitorP->insertItem(it.key());
 
249
                if (it.key() == prefs->DefaultMonitorProfile)
 
250
                        monitorP->setCurrentItem(monitorP->count()-1);
 
251
        }
 
252
        printerP->clear();
 
253
        for (it = PrinterProfiles->begin(); it != PrinterProfiles->end(); ++it)
 
254
        {
 
255
                printerP->insertItem(it.key());
 
256
                if (it.key() == prefs->DefaultPrinterProfile)
 
257
                        printerP->setCurrentItem(printerP->count()-1);
 
258
        }
 
259
 
 
260
        QString tmp_mp[] = { tr("Perceptual"), tr("Relative Colorimetric"),
 
261
                tr("Saturation"), tr("Absolute Colorimetric")};
 
262
                size_t array = sizeof(tmp_mp) / sizeof(*tmp_mp);
 
263
        imagesI->clear();
 
264
        for (uint prop = 0; prop < array; ++prop)
 
265
                imagesI->insertItem(tmp_mp[prop]);
 
266
        imagesI->setCurrentItem(prefs->DefaultIntentImages);
 
267
        colorsI->clear();
 
268
        for (uint prop = 0; prop < array; ++prop)
 
269
                colorsI->insertItem(tmp_mp[prop]);
 
270
        colorsI->setCurrentItem(prefs->DefaultIntentColors);
 
271
 
 
272
        simulate->setChecked(prefs->SoftProofOn);
 
273
        convertAll->setChecked(prefs->SoftProofFullOn);
 
274
        gamutC->setChecked(prefs->GamutCheck);
 
275
        blackP->setChecked(prefs->BlackPoint);
 
276
 
 
277
        if (!checkBox1->isChecked())
 
278
        {
 
279
                simulate->setEnabled( false );
 
280
                convertAll->setEnabled( false );
 
281
                //gamutC->setEnabled( false );
 
282
                blackP->setEnabled( false );
 
283
                sysProfiles->setEnabled( false );
 
284
                render->setEnabled( false );
 
285
        }
 
286
        convertAll->setEnabled(simulate->isEnabled() && simulate->isChecked());
 
287
        gamutC->setEnabled(simulate->isEnabled() && simulate->isChecked());
180
288
}
181
289
 
182
290
void CMSPrefs::setValues()
183
291
{
184
 
        if ((prefs->DefaultImageRGBProfile != inputP->currentText()) ||
185
 
                (prefs->DefaultImageCMYKProfile != inputPCMYK->currentText()) ||
186
 
                (prefs->DefaultSolidColorProfile != inputP2->currentText()) ||
 
292
        if ((prefs->DefaultImageRGBProfile != inputPRGBIm->currentText()) ||
 
293
                (prefs->DefaultImageCMYKProfile != inputPCMYKIm->currentText()) ||
 
294
                (prefs->DefaultSolidColorRGBProfile != inputPRGB->currentText()) ||
 
295
                (prefs->DefaultSolidColorCMYKProfile != inputPCMYK->currentText()) ||
187
296
                (prefs->DefaultMonitorProfile != monitorP->currentText()) ||
188
297
                (prefs->DefaultPrinterProfile != printerP->currentText()) ||
189
 
                (prefs->DefaultIntentPrinter != printerI->currentItem()) ||
190
 
                (prefs->DefaultIntentMonitor != monitorI->currentItem()) ||
 
298
                (prefs->DefaultIntentColors != colorsI->currentItem()) ||
 
299
                (prefs->DefaultIntentImages != imagesI->currentItem()) ||
191
300
                (prefs->SoftProofOn != simulate->isChecked()) ||
 
301
                (prefs->SoftProofFullOn != convertAll->isChecked()) ||
192
302
                (prefs->GamutCheck != gamutC->isChecked()) ||
193
303
                (prefs->BlackPoint != blackP->isChecked()) ||
194
304
                (prefs->CMSinUse != checkBox1->isChecked()))
195
305
                        changed = true;
196
 
        prefs->DefaultImageRGBProfile = inputP->currentText();
197
 
        prefs->DefaultImageCMYKProfile = inputPCMYK->currentText();
198
 
        prefs->DefaultSolidColorProfile = inputP2->currentText();
 
306
        prefs->DefaultImageRGBProfile = inputPRGBIm->currentText();
 
307
        prefs->DefaultImageCMYKProfile = inputPCMYKIm->currentText();
 
308
        prefs->DefaultSolidColorRGBProfile = inputPRGB->currentText();
 
309
        prefs->DefaultSolidColorCMYKProfile = inputPCMYK->currentText();
199
310
        prefs->DefaultMonitorProfile = monitorP->currentText();
200
311
        prefs->DefaultPrinterProfile = printerP->currentText();
201
 
        prefs->DefaultIntentPrinter = printerI->currentItem();
202
 
        prefs->DefaultIntentMonitor = monitorI->currentItem();
203
 
        prefs->DefaultIntentImages = monitorI->currentItem();
 
312
        prefs->DefaultIntentColors = colorsI->currentItem();
 
313
        prefs->DefaultIntentImages = imagesI->currentItem();
204
314
        prefs->SoftProofOn = simulate->isChecked();
 
315
        prefs->SoftProofFullOn = convertAll->isChecked();
205
316
        prefs->GamutCheck = gamutC->isChecked();
206
317
        prefs->CMSinUse = checkBox1->isChecked();
207
318
        prefs->BlackPoint = blackP->isChecked();
209
320
 
210
321
void CMSPrefs::updateDocSettings(ScribusDoc* doc)
211
322
{
212
 
        if ((doc->CMSSettings.DefaultImageRGBProfile != inputP->currentText()) ||
213
 
                (doc->CMSSettings.DefaultImageCMYKProfile != inputPCMYK->currentText()) ||
214
 
                (doc->CMSSettings.DefaultSolidColorProfile != inputP2->currentText()) ||
 
323
        if ((doc->CMSSettings.DefaultImageRGBProfile != inputPRGBIm->currentText()) ||
 
324
                (doc->CMSSettings.DefaultImageCMYKProfile != inputPCMYKIm->currentText()) ||
 
325
                (doc->CMSSettings.DefaultSolidColorRGBProfile != inputPRGB->currentText()) ||
 
326
                (doc->CMSSettings.DefaultSolidColorCMYKProfile != inputPCMYK->currentText()) ||
215
327
                (doc->CMSSettings.DefaultMonitorProfile != monitorP->currentText()) ||
216
328
                (doc->CMSSettings.DefaultPrinterProfile != printerP->currentText()) ||
217
 
                (doc->CMSSettings.DefaultIntentPrinter != printerI->currentItem()) ||
218
 
                (doc->CMSSettings.DefaultIntentMonitor != monitorI->currentItem()) ||
 
329
                (doc->CMSSettings.DefaultIntentColors != colorsI->currentItem()) ||
 
330
                (doc->CMSSettings.DefaultIntentImages != imagesI->currentItem()) ||
219
331
                (doc->CMSSettings.SoftProofOn != simulate->isChecked()) ||
 
332
                (doc->CMSSettings.SoftProofFullOn != convertAll->isChecked()) ||
220
333
                (doc->CMSSettings.GamutCheck != gamutC->isChecked()) ||
221
334
                (doc->CMSSettings.BlackPoint != blackP->isChecked()) ||
222
335
                (doc->CMSSettings.CMSinUse != checkBox1->isChecked()))
223
336
                        changed = true;
224
 
        doc->CMSSettings.DefaultImageRGBProfile = inputP->currentText();
225
 
        doc->CMSSettings.DefaultImageCMYKProfile = inputPCMYK->currentText();
226
 
        doc->CMSSettings.DefaultSolidColorProfile = inputP2->currentText();
 
337
        doc->CMSSettings.DefaultImageRGBProfile = inputPRGBIm->currentText();
 
338
        doc->CMSSettings.DefaultImageCMYKProfile = inputPCMYKIm->currentText();
 
339
        doc->CMSSettings.DefaultSolidColorRGBProfile = inputPRGB->currentText();
 
340
        doc->CMSSettings.DefaultSolidColorCMYKProfile = inputPCMYK->currentText();
227
341
        doc->CMSSettings.DefaultMonitorProfile = monitorP->currentText();
228
342
        doc->CMSSettings.DefaultPrinterProfile = printerP->currentText();
229
 
        doc->CMSSettings.DefaultIntentPrinter = printerI->currentItem();
230
 
        doc->CMSSettings.DefaultIntentMonitor = monitorI->currentItem();
231
 
        doc->CMSSettings.DefaultIntentImages = monitorI->currentItem();
 
343
        doc->CMSSettings.DefaultIntentColors = colorsI->currentItem();
 
344
        doc->CMSSettings.DefaultIntentImages = imagesI->currentItem();
232
345
        doc->CMSSettings.SoftProofOn = simulate->isChecked();
 
346
        doc->CMSSettings.SoftProofFullOn = convertAll->isChecked();
233
347
        doc->CMSSettings.GamutCheck = gamutC->isChecked();
234
348
        doc->CMSSettings.CMSinUse = checkBox1->isChecked();
235
349
        doc->CMSSettings.BlackPoint = blackP->isChecked();
238
352
void CMSPrefs::slotSimula()
239
353
{
240
354
        bool setter = simulate->isChecked() ? true : false;
 
355
        convertAll->setEnabled(setter);
 
356
        if (!setter)
 
357
                convertAll->setChecked(false);
241
358
        gamutC->setEnabled(setter);
242
359
}
243
360
 
247
364
        sysProfiles->setEnabled(setter);
248
365
        render->setEnabled(setter);
249
366
        simulate->setEnabled(setter);
 
367
        convertAll->setEnabled(setter);
250
368
        blackP->setEnabled(setter);
251
369
        if (setter == true)
252
370
                slotSimula();