kpresenter
KPrPicturePreview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef PICTUREPREVIEW_H
00025 #define PICTUREPREVIEW_H
00026
00027 #include <qframe.h>
00028
00029 #include "global.h"
00030
00031 class KPrPicturePreview : public QFrame
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 KPrPicturePreview( QWidget* parent, const char* name);
00037 ~KPrPicturePreview() {}
00038
00039 void setDepth( int depth);
00040 void setMirrorType (PictureMirrorType _t);
00041 void setPicturePixmap(const QPixmap &_pixmap);
00042
00043 int getDepth() const { return depth; }
00044
00045 public slots:
00046 void slotNormalPicture();
00047 void slotHorizontalMirrorPicture();
00048 void slotVerticalMirrorPicture();
00049 void slotHorizontalAndVerticalMirrorPicture();
00050
00051 void slotPictureDepth0();
00052 void slotPictureDepth1();
00053 void slotPictureDepth8();
00054 void slotPictureDepth16();
00055 void slotPictureDepth32();
00056
00057 void slotSwapRGBPicture( bool _on );
00058
00059 void slotGrayscalPicture( bool _on );
00060
00061 void slotBrightValue( int _value );
00062
00063 protected:
00064 virtual void drawContents( QPainter *painter );
00065
00066 PictureMirrorType mirrorType;
00067 int depth;
00068 bool swapRGB;
00069 int bright;
00070 bool grayscal;
00071 QPixmap origPixmap;
00072 };
00073
00074 #endif
|