~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/libs/widgets/imageplugins/imagewidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-ttj4and3ds1ldgn1
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Description : a widget to display an image preview with some 
8
8
 *               modes to compare effect results.
9
9
 * 
10
 
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
112
112
    previewBothButtonVert->setPixmap( QPixmap( directory + "bothvert.png" ) );
113
113
    previewBothButtonVert->setToggleButton(true);
114
114
    QWhatsThis::add( previewBothButtonVert, i18n( "<p>If you enable this option, the preview area will "
115
 
                                                  "be separated vertically. "
 
115
                                                  "split vertically. "
116
116
                                                  "A contiguous area of the image will be shown, "
117
117
                                                  "with one half from the original image, "
118
118
                                                  "the other half from the target image.") );
124
124
    previewBothButtonHorz->setPixmap( QPixmap( directory + "bothhorz.png" ) );
125
125
    previewBothButtonHorz->setToggleButton(true);
126
126
    QWhatsThis::add( previewBothButtonHorz, i18n( "<p>If you enable this option, the preview area will "
127
 
                                                  "be separated horizontally. "
 
127
                                                  "split horizontally. "
128
128
                                                  "A contiguous area of the image will be shown, "
129
129
                                                  "with one half from the original image, "
130
130
                                                  "the other half from the target image.") );
136
136
    previewDuplicateBothButtonVert->setPixmap( QPixmap( directory + "duplicatebothvert.png" ) );
137
137
    previewDuplicateBothButtonVert->setToggleButton(true);
138
138
    QWhatsThis::add( previewDuplicateBothButtonVert, i18n( "<p>If you enable this option, the preview area will "
139
 
                                                           "be separated vertically. "
 
139
                                                           "split vertically. "
140
140
                                                           "The same part of the original and the target image "
141
141
                                                           "will be shown side by side.") );
142
142
 
147
147
    previewDupplicateBothButtonHorz->setPixmap( QPixmap( directory + "duplicatebothhorz.png" ) );
148
148
    previewDupplicateBothButtonHorz->setToggleButton(true);
149
149
    QWhatsThis::add( previewDupplicateBothButtonHorz, i18n( "<p>If you enable this option, the preview area will "
150
 
                                                            "be separated horizontally. "
 
150
                                                            "split horizontally. "
151
151
                                                            "The same part of the original and the target image "
152
152
                                                            "will be shown side by side.") );
153
153
 
180
180
    exposureButtons->insert(d->underExposureButton, UnderExposure);
181
181
    d->underExposureButton->setPixmap(SmallIcon("underexposure"));
182
182
    d->underExposureButton->setToggleButton(true);
183
 
    QWhatsThis::add(d->underExposureButton, i18n("<p>Set this option on to display pure black "
184
 
                                                 "over-colored on preview. This will help you to avoid "
 
183
    QWhatsThis::add(d->underExposureButton, i18n("<p>Set this option to display black "
 
184
                                                 "overlaid on the preview. This will help you to avoid "
185
185
                                                 "under-exposing the image." ) );
186
186
 
187
187
    d->overExposureButton = new QPushButton(exposureButtons);
188
188
    exposureButtons->insert(d->overExposureButton, OverExposure);
189
189
    d->overExposureButton->setPixmap(SmallIcon("overexposure"));
190
190
    d->overExposureButton->setToggleButton(true);
191
 
    QWhatsThis::add(d->overExposureButton, i18n("<p>Set this option on to display pure white "
192
 
                                                "over-colored on preview. This will help you to avoid "
 
191
    QWhatsThis::add(d->overExposureButton, i18n("<p>Set this option on display white "
 
192
                                                "overlaid on the preview. This will help you to avoid "
193
193
                                                "over-exposing the image." ) );
194
194
 
195
195
    // -------------------------------------------------------------
285
285
    d->previewWidget->resetSpotPosition();
286
286
}
287
287
 
288
 
QPoint ImageWidget::getSpotPosition(void)
 
288
QPoint ImageWidget::getSpotPosition()
289
289
{
290
290
    return ( d->previewWidget->getSpotPosition() );
291
291
}
320
320
                             .arg(color.blue()).arg(color.alpha()) );
321
321
}
322
322
 
323
 
void ImageWidget::readSettings(void)
 
323
void ImageWidget::readSettings()
324
324
{
325
325
    KConfig *config = kapp->config();
326
326
    config->setGroup(d->settingsSection);
334
334
    setRenderingPreviewMode(mode);
335
335
}
336
336
    
337
 
void ImageWidget::writeSettings(void)
 
337
void ImageWidget::writeSettings()
338
338
{
339
339
    KConfig *config = kapp->config();
340
340
    config->setGroup(d->settingsSection);
345
345
}
346
346
 
347
347
}  // namespace Digikam
348