AlbumShaper  1.0a3
scaledPreviewInterface.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_SCALEDPREVIEWINTERFACE_H
12 #define GUI_EDITING_SCALEDPREVIEWINTERFACE_H
13 
14 #include "splitViewInterface.h"
15 //Added by qt3to4:
16 #include <QResizeEvent>
17 
18 //=====================================
20 //=====================================
22 {
23 Q_OBJECT
24 
25 public:
27  ScaledPreviewInterface(QString imageFilename, QWidget *parent=0, const char* name=0);
28 
29  virtual QSize sizeHint() const;
30  virtual QSize minimumSizeHint() const;
31 //----------------------
32 protected:
33  void resizeEvent( QResizeEvent * );
34  //----------------------
35 private:
38 
40  QSize origImageSize;
41 //----------------------
42 signals:
43  //emited when the widget is resized indicating
44  //adjusted image needs to be reset
45  void resized();
46  //----------------------
47 };
48 //======================
49 
50 #endif //GUI_EDITING_SCALEDPREVIEWINTERFACE_H
QImage fullScreenImage
Full screen version of image.
virtual QSize sizeHint() const
QSize origImageSize
original image dimensions
A split view interface provides a means to show before and after versions of an image while adjustmen...
void resizeEvent(QResizeEvent *)
virtual QSize minimumSizeHint() const
ScaledPreviewInterface(QString imageFilename, QWidget *parent=0, const char *name=0)
Creates layout.