Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

scaledPreviewInterface.h

Go to the documentation of this file.
00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 #ifndef GUI_EDITING_SCALEDPREVIEWINTERFACE_H 00012 #define GUI_EDITING_SCALEDPREVIEWINTERFACE_H 00013 00014 #include "splitViewInterface.h" 00015 00016 //===================================== 00018 //===================================== 00019 class ScaledPreviewInterface : public SplitViewInterface 00020 { 00021 Q_OBJECT 00022 00023 public: 00025 ScaledPreviewInterface(QString imageFilename, QWidget *parent=0, const char* name=0); 00026 00027 virtual QSize sizeHint() const; 00028 virtual QSize minimumSizeHint() const; 00029 //---------------------- 00030 protected: 00031 void resizeEvent( QResizeEvent * ); 00032 //---------------------- 00033 private: 00035 QImage fullScreenImage; 00036 00038 QSize origImageSize; 00039 //---------------------- 00040 signals: 00041 //emited when the widget is resized indicating 00042 //adjusted image needs to be reset 00043 void resized(); 00044 //---------------------- 00045 }; 00046 //====================== 00047 00048 #endif //GUI_EDITING_SCALEDPREVIEWINTERFACE_H

Generated on Sun Mar 4 19:42:56 2007 for AlbumShaper by doxygen 1.3.7