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

YQImage.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YQImage.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 // -*- c++ -*-
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     // Data members
00072     //
00073     
00074     bool _zeroWidth;    // override nice width  with 0
00075     bool _zeroHeight;   // override nice height with 0
00076     bool _tiled;        // tile image ( repeat endlessly )
00077     bool _animated;     // animation, no static image
00078 
00079     int _pixmapWidth;   // pixmap or movie width
00080     int _pixmapHeight;  // pixmap or movie height
00081 };
00082 
00083 #endif // YQImage_h

Generated on Fri Oct 14 19:03:46 2005 for yast2-qt by doxygen 1.3.6