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

« back to all changes in this revision

Viewing changes to utilities/queuemanager/basetools/transform/flip.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2009-02-10
7
7
 * Description : flip image batch tool.
8
8
 *
9
 
 * Copyright (C) 2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2009-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
45
45
{
46
46
 
47
47
Flip::Flip(QObject* parent)
48
 
    : BatchTool("Flip", BaseTool, parent)
 
48
    : BatchTool("Flip", TransformTool, parent)
49
49
{
50
50
    setToolTitle(i18n("Flip"));
51
51
    setToolDescription(i18n("A tool to flip images horizontally or vertically."));
52
52
    setToolIcon(KIcon(SmallIcon("object-flip-vertical")));
53
53
 
54
 
    KVBox *vbox   = new KVBox;
55
 
    QLabel *label = new QLabel(vbox);
 
54
    KVBox* vbox   = new KVBox;
 
55
    QLabel* label = new QLabel(vbox);
56
56
    m_comboBox    = new KComboBox(vbox);
57
57
    m_comboBox->insertItem(DImg::HORIZONTAL, i18n("Horizontal"));
58
58
    m_comboBox->insertItem(DImg::VERTICAL,   i18n("Vertical"));
59
59
    label->setText(i18n("Flip:"));
60
 
    QLabel *space = new QLabel(vbox);
 
60
    QLabel* space = new QLabel(vbox);
61
61
    vbox->setStretchFactor(space, 10);
62
62
 
63
63
    setSettingsWidget(vbox);
88
88
{
89
89
    BatchToolSettings settings;
90
90
    settings.insert("Flip", m_comboBox->currentIndex());
91
 
    setSettings(settings);
 
91
    BatchTool::slotSettingsChanged(settings);
92
92
}
93
93
 
94
94
bool Flip::toolOperations()