00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef YQImage_h
00023 #define YQImage_h
00024
00025 #include <qlabel.h>
00026 #include <ycp/YCPString.h>
00027
00028 #include "YImage.h"
00029 #include "YUI.h"
00030
00031
00032 class YQImage : public QLabel, public YImage
00033 {
00034 Q_OBJECT
00035
00036 public:
00040 YQImage( QWidget * parent, const YWidgetOpt & opt, YUI::ImageType img );
00041 YQImage( QWidget * parent, const YWidgetOpt & opt, const YCPByteblock & byteblock );
00042 YQImage( QWidget * parent, const YWidgetOpt & opt, const YCPString & file_name );
00043
00049 long nicesize( YUIDimension dim );
00050
00054 void setSize( long newWidth, long newHeight );
00055
00056 protected:
00057
00061 void init( QWidget * parent, const YWidgetOpt & opt );
00062
00067 void yqSetPixmap( const QPixmap &pixmap );
00068
00069
00070
00071
00072
00073
00074 bool _zeroWidth;
00075 bool _zeroHeight;
00076 bool _tiled;
00077 bool _animated;
00078
00079 int _pixmapWidth;
00080 int _pixmapHeight;
00081 };
00082
00083 #endif // YQImage_h