~ubuntu-branches/ubuntu/karmic/digikam/karmic-backports

« back to all changes in this revision

Viewing changes to utilities/imageeditor/editor/editortool.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Auto-Backport
  • Date: 2009-12-07 19:03:53 UTC
  • mfrom: (54.1.4 lucid)
  • Revision ID: james.westby@ubuntu.com-20091207190353-oara3lenjxymto3i
Tags: 2:1.0.0~rc-1ubuntu1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *
22
22
 * ============================================================ */
23
23
 
24
 
#include "editortool.h"
25
24
#include "editortool.moc"
26
25
 
27
26
// Qt includes
29
28
#include <QWidget>
30
29
#include <QTimer>
31
30
 
 
31
// KDE includes
 
32
 
 
33
#include <kdebug.h>
 
34
 
32
35
// Local includes
33
36
 
34
37
#include "dimgthreadedfilter.h"
39
42
#include "histogrambox.h"
40
43
#include "editortoolsettings.h"
41
44
#include "editortooliface.h"
42
 
#include "debug.h"
43
45
 
44
46
namespace Digikam
45
47
{
59
61
    QString             helpAnchor;
60
62
    QString             name;
61
63
 
62
 
    QWidget            *view;
63
 
 
 
64
    QWidget*            view;
64
65
    QPixmap             icon;
65
 
 
66
 
    QTimer             *timer;
67
 
 
68
 
    EditorToolSettings *settings;
 
66
    QTimer*             timer;
 
67
 
 
68
    EditorToolSettings* settings;
69
69
};
70
70
 
71
71
EditorTool::EditorTool(QObject *parent)
338
338
        {
339
339
            case EditorToolThreaded::PreviewRendering:
340
340
            {
341
 
                kDebug(digiKamAreaCode) << "Preview " << toolName() << " completed...";
 
341
                kDebug() << "Preview " << toolName() << " completed...";
342
342
                putPreviewData();
343
343
                slotAbort();
344
344
                break;
346
346
 
347
347
            case EditorToolThreaded::FinalRendering:
348
348
            {
349
 
                kDebug(digiKamAreaCode) << "Final" << toolName() << " completed...";
 
349
                kDebug() << "Final" << toolName() << " completed...";
350
350
                putFinalData();
351
351
                EditorToolIface::editorToolIface()->setToolStopProgress();
352
352
                kapp->restoreOverrideCursor();
364
364
        {
365
365
            case EditorToolThreaded::PreviewRendering:
366
366
            {
367
 
                kDebug(digiKamAreaCode) << "Preview " << toolName() << " failed...";
 
367
                kDebug() << "Preview " << toolName() << " failed...";
368
368
                slotAbort();
369
369
                break;
370
370
            }
398
398
    writeSettings();
399
399
 
400
400
    d->currentRenderingMode = EditorToolThreaded::FinalRendering;
401
 
    kDebug(digiKamAreaCode) << "Final " << toolName() << " started...";
 
401
    kDebug() << "Final " << toolName() << " started...";
402
402
    writeSettings();
403
403
 
404
404
    toolSettings()->enableButton(EditorToolSettings::Ok,      false);
426
426
        return;
427
427
 
428
428
    d->currentRenderingMode = EditorToolThreaded::PreviewRendering;
429
 
    kDebug(digiKamAreaCode) << "Preview " << toolName() << " started...";
 
429
    kDebug() << "Preview " << toolName() << " started...";
430
430
 
431
431
    toolSettings()->enableButton(EditorToolSettings::Ok,      false);
432
432
    toolSettings()->enableButton(EditorToolSettings::SaveAs,  false);