~ubuntu-branches/ubuntu/natty/qtpfsgui/natty

« back to all changes in this revision

Viewing changes to src/HdrWizard/editingTools.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-01-06 04:39:36 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080106043936-a9u9g7yih3w16ru5
Tags: 1.9.0-1
* New upstream release.
* Replace “COPYING” with “LICENSE” in the NOT_NEEDED variable of
  debian/rules, following upstream's renaming.
* Update debian/links accordingly.
* Delete the matching TODO item since there's no longer needed to have a
  patched (with HTML tags) license file to get a correct display in the
  “License agreement” tab.
* Update the gcc4.3 patch (drop the hunk touching src/Libpfs/pfs.cpp):
   - 20_gcc4.3_includes.
* Add a link from /usr/share/qtpfsgui/html to the HTML documentation
  under /usr/share/doc/qtpfsgui/html since the former is used at runtime
  to display the manual.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This file is a part of Qtpfsgui package.
 
3
 * ---------------------------------------------------------------------- 
 
4
 * Copyright (C) 2006,2007 Giuseppe Rota
 
5
 * 
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 * ---------------------------------------------------------------------- 
 
20
 *
 
21
 * @author Giuseppe Rota <grota@users.sourceforge.net>
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef EDITINGTOOLS_H
 
26
#define EDITINGTOOLS_H
 
27
 
 
28
#include <QSettings>
 
29
#include "../generated_uic/ui_editing_tools.h"
 
30
#include "previewWidget.h"
 
31
#include "../Common/panIconWidget.h"
 
32
#include "../HdrCreation/HdrCreationManager.h"
 
33
 
 
34
 
 
35
class HistogramLDR;
 
36
//defined in mtb_alignment.cpp
 
37
QImage* shiftQImage(const QImage *in, int dx, int dy);
 
38
 
 
39
class EditingTools : public QDialog, private Ui::EditingToolsDialog
 
40
{
 
41
Q_OBJECT
 
42
public:
 
43
        EditingTools(HdrCreationManager *, QWidget *parent=0);
 
44
        ~EditingTools();
 
45
protected:
 
46
        void keyPressEvent(QKeyEvent *);
 
47
        void keyReleaseEvent(QKeyEvent *);
 
48
private:
 
49
        QList<QImage*> original_ldrlist;
 
50
        QStringList filelist;
 
51
        HdrCreationManager *hcm;
 
52
 
 
53
        QScrollArea *scrollArea;
 
54
        PreviewWidget *previewWidget;
 
55
        int additional_shift_value;
 
56
        QList< QPair<int,int> > HV_offsets;
 
57
        HistogramLDR *histogram;
 
58
        QSize previousPreviewWidgetSize;
 
59
        PanIconWidget *panIconWidget;
 
60
        QToolButton *cornerButton;
 
61
        QSettings settings;
 
62
private slots:
 
63
        void slotPanIconSelectionMoved(QRect, bool);
 
64
        void slotPanIconHidden();
 
65
        void slotCornerButtonPressed();
 
66
        void saveImagesButtonClicked();
 
67
        void updatePivot(int);
 
68
        void updateMovable(int);
 
69
        void upClicked();
 
70
        void rightClicked();
 
71
        void downClicked();
 
72
        void leftClicked();
 
73
        void horizShiftChanged(int);
 
74
        void vertShiftChanged(int);
 
75
        void resetCurrent();
 
76
        void resetAll();
 
77
        void prevLeft();
 
78
        void nextLeft();
 
79
        void prevBoth();
 
80
        void nextBoth();
 
81
        void prevRight();
 
82
        void nextRight();
 
83
        void enterWhatsThis();
 
84
        void zoomIn();
 
85
        void zoomOut();
 
86
        void fitPreview(bool);
 
87
        void origSize();
 
88
        void crop_stack();
 
89
        void nextClicked();
 
90
        void maskColorButtonClicked();
 
91
        void antighostToolButtonToggled(bool);
 
92
        void blendModeCBIndexChanged(int);
 
93
};
 
94
 
 
95
 
 
96
 
 
97
#endif