AlbumShaper  1.0a3
panningPreviewInterface.h
Go to the documentation of this file.
1 //==============================================
2 // copyright : (C) 2003-2005 by Will Stokes
3 //==============================================
4 // This program is free software; you can redistribute it
5 // and/or modify it under the terms of the GNU General
6 // Public License as published by the Free Software
7 // Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //==============================================
10 
11 #ifndef GUI_EDITING_PANNINGPREVIEWINTERFACE_H
12 #define GUI_EDITING_PANNINGPREVIEWINTERFACE_H
13 
14 #include <qrect.h>
15 //Added by qt3to4:
16 #include <QResizeEvent>
17 
18 #include "splitViewInterface.h"
19 
20 //=====================================
22 //=====================================
24 {
25 Q_OBJECT
26 
27 public:
29  PanningPreviewInterface(QString imageFilename, QWidget *parent=0, const char* name=0);
30 
31  virtual QSize sizeHint() const;
32 
33  //get current selection
34  QRect getSelection();
35 
36  //returns size of space that will be used for painting
37  QSize paintingSize();
38 
39  //----------------------
40 protected:
41  void resizeEvent( QResizeEvent * );
42  //----------------------
43 private:
44  //util funtion - generates orig image and signals adjusted image is out of date
45  void generateOrigImage();
46 
48  QImage fullSizeImage;
49 
51  QRect selection;
52  //----------------------
53 signals:
54  //emitted when the selected region has changed indicating the adjusted image is out of date
55  void selectionChanged();
56  //----------------------
57 public slots:
58  //reset selected region
59  void setSelection( QRect selection );
60  //----------------------
61 };
62 //======================
63 
64 #endif //GUI_EDITING_PANNINGPREVIEWINTERFACE_H
QRect selection
Current selection.
void setSelection(QRect selection)
virtual QSize sizeHint() const
A split view interface provides a means to show before and after versions of an image while adjustmen...
QImage fullSizeImage
Full size image.
void resizeEvent(QResizeEvent *)
PanningPreviewInterface(QString imageFilename, QWidget *parent=0, const char *name=0)
Creates layout.