~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to utilities/imageeditor/canvas/softproofdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
{
51
51
public:
52
52
 
53
 
    SoftProofDialogPriv()
 
53
    SoftProofDialogPriv() :
 
54
        switchOn(false),
 
55
        deviceProfileBox(0),
 
56
        infoProofProfiles(0),
 
57
        gamutCheckBox(0),
 
58
        maskColorLabel(0),
 
59
        maskColorButton(0),
 
60
        proofingIntentBox(0)
54
61
    {
55
 
        switchOn          = false;
56
 
        deviceProfileBox  = 0;
57
 
        infoProofProfiles = 0;
58
 
        gamutCheckBox     = 0;
59
 
        maskColorLabel    = 0;
60
 
        maskColorButton   = 0;
61
 
        proofingIntentBox = 0;
62
62
    }
63
63
 
64
64
    bool                        switchOn;
73
73
    IccRenderingIntentComboBox* proofingIntentBox;
74
74
};
75
75
 
76
 
SoftProofDialog::SoftProofDialog(QWidget *parent)
77
 
               : KDialog(parent), d(new SoftProofDialogPriv)
 
76
SoftProofDialog::SoftProofDialog(QWidget* parent)
 
77
    : KDialog(parent), d(new SoftProofDialogPriv)
78
78
{
79
79
    setCaption(i18n("Soft Proofing Options"));
80
80
 
88
88
    setButtonText(Cancel,    i18n("Soft Proofing Off"));
89
89
    setButtonToolTip(Cancel, i18n("Disable soft-proofing color managed view"));
90
90
 
91
 
    QWidget *page           = new QWidget(this);
 
91
    QWidget* page           = new QWidget(this);
92
92
    QVBoxLayout* mainLayout = new QVBoxLayout(page);
93
93
    setMainWidget(page);
94
94
 
95
95
    // ---
96
96
 
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);
99
99
 
100
100
    // -------------------------------------------------------------
101
101
 
102
 
    QGridLayout *profileGrid = new QGridLayout;
 
102
    QGridLayout* profileGrid = new QGridLayout;
103
103
 
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>"));
112
112
 
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>"));
117
117
 
118
118
    d->deviceProfileBox->replaceProfilesSqueezed(IccSettings::instance()->outputProfiles());
119
119
 
125
125
 
126
126
    // --------------------------------------------------------------
127
127
 
128
 
    QGroupBox *optionsBox    = new QGroupBox;
129
 
    QGridLayout *optionsGrid = new QGridLayout;
 
128
    QGroupBox* optionsBox    = new QGroupBox;
 
129
    QGridLayout* optionsGrid = new QGridLayout;
130
130
 
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);