2
* This file is a part of Qtpfsgui package.
3
* ----------------------------------------------------------------------
4
* Copyright (C) 2006,2007 Giuseppe Rota
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.
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.
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
* ----------------------------------------------------------------------
21
* @author Giuseppe Rota <grota@users.sourceforge.net>
25
#ifndef EDITINGTOOLS_H
26
#define EDITINGTOOLS_H
29
#include "../generated_uic/ui_editing_tools.h"
30
#include "previewWidget.h"
31
#include "../Common/panIconWidget.h"
32
#include "../HdrCreation/HdrCreationManager.h"
36
//defined in mtb_alignment.cpp
37
QImage* shiftQImage(const QImage *in, int dx, int dy);
39
class EditingTools : public QDialog, private Ui::EditingToolsDialog
43
EditingTools(HdrCreationManager *, QWidget *parent=0);
46
void keyPressEvent(QKeyEvent *);
47
void keyReleaseEvent(QKeyEvent *);
49
QList<QImage*> original_ldrlist;
51
HdrCreationManager *hcm;
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;
63
void slotPanIconSelectionMoved(QRect, bool);
64
void slotPanIconHidden();
65
void slotCornerButtonPressed();
66
void saveImagesButtonClicked();
67
void updatePivot(int);
68
void updateMovable(int);
73
void horizShiftChanged(int);
74
void vertShiftChanged(int);
83
void enterWhatsThis();
86
void fitPreview(bool);
90
void maskColorButtonClicked();
91
void antighostToolButtonToggled(bool);
92
void blendModeCBIndexChanged(int);