73
73
IccRenderingIntentComboBox* proofingIntentBox;
76
SoftProofDialog::SoftProofDialog(QWidget *parent)
77
: KDialog(parent), d(new SoftProofDialogPriv)
76
SoftProofDialog::SoftProofDialog(QWidget* parent)
77
: KDialog(parent), d(new SoftProofDialogPriv)
79
79
setCaption(i18n("Soft Proofing Options"));
88
88
setButtonText(Cancel, i18n("Soft Proofing Off"));
89
89
setButtonToolTip(Cancel, i18n("Disable soft-proofing color managed view"));
91
QWidget *page = new QWidget(this);
91
QWidget* page = new QWidget(this);
92
92
QVBoxLayout* mainLayout = new QVBoxLayout(page);
93
93
setMainWidget(page);
97
QLabel *headerLabel = new QLabel(i18n("<b>Configure the Soft Proofing View</b>"));
98
KSeparator *separator = new KSeparator(Qt::Horizontal);
97
QLabel* headerLabel = new QLabel(i18n("<b>Configure the Soft Proofing View</b>"));
98
KSeparator* separator = new KSeparator(Qt::Horizontal);
100
100
// -------------------------------------------------------------
102
QGridLayout *profileGrid = new QGridLayout;
102
QGridLayout* profileGrid = new QGridLayout;
104
QLabel *proofIcon = new QLabel;
104
QLabel* proofIcon = new QLabel;
105
105
proofIcon->setPixmap(SmallIcon("printer", KIconLoader::SizeMedium));
106
QLabel *proofLabel = new QLabel(i18n("Profile of the output device to simulate:"));
106
QLabel* proofLabel = new QLabel(i18n("Profile of the output device to simulate:"));
107
107
d->deviceProfileBox = new IccProfilesComboBox;
108
108
proofLabel->setBuddy(d->deviceProfileBox);
109
109
d->deviceProfileBox->setWhatsThis( i18n("<p>Select the profile for your output device "
110
"(usually, your printer). This profile will be used to do a soft proof, so you will "
111
"be able to preview how an image will be rendered via an output device.</p>"));
110
"(usually, your printer). This profile will be used to do a soft proof, so you will "
111
"be able to preview how an image will be rendered via an output device.</p>"));
113
113
d->infoProofProfiles = new QPushButton;
114
114
d->infoProofProfiles->setIcon(SmallIcon("dialog-information"));
115
115
d->infoProofProfiles->setWhatsThis( i18n("Press this button to get detailed "
116
"information about the selected proofing profile.</p>"));
116
"information about the selected proofing profile.</p>"));
118
118
d->deviceProfileBox->replaceProfilesSqueezed(IccSettings::instance()->outputProfiles());
126
126
// --------------------------------------------------------------
128
QGroupBox *optionsBox = new QGroupBox;
129
QGridLayout *optionsGrid = new QGridLayout;
128
QGroupBox* optionsBox = new QGroupBox;
129
QGridLayout* optionsGrid = new QGridLayout;
131
QLabel *intentLabel = new QLabel(i18n("Rendering intent:"));
131
QLabel* intentLabel = new QLabel(i18n("Rendering intent:"));
132
132
d->proofingIntentBox = new IccRenderingIntentComboBox;
133
133
//TODO d->proofingIntentBox->setWhatsThis(i18n(""));
134
134
intentLabel->setBuddy(d->proofingIntentBox);