00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef GUI_EDITING_PANNINGPREVIEWINTERFACE_H
00012 #define GUI_EDITING_PANNINGPREVIEWINTERFACE_H
00013
00014 #include <qrect.h>
00015
00016 #include "splitViewInterface.h"
00017
00018
00020
00021 class PanningPreviewInterface : public SplitViewInterface
00022 {
00023 Q_OBJECT
00024
00025 public:
00027 PanningPreviewInterface(QString imageFilename, QWidget *parent=0, const char* name=0);
00028
00029 virtual QSize sizeHint() const;
00030
00031
00032 QRect getSelection();
00033
00034
00035 QSize paintingSize();
00036
00037
00038 protected:
00039 void resizeEvent( QResizeEvent * );
00040
00041 private:
00042
00043 void generateOrigImage();
00044
00046 QImage fullSizeImage;
00047
00049 QRect selection;
00050
00051 signals:
00052
00053 void selectionChanged();
00054
00055 public slots:
00056
00057 void setSelection( QRect selection );
00058
00059 };
00060
00061
00062 #endif //GUI_EDITING_PANNINGPREVIEWINTERFACE_H