Main Page | Class Hierarchy | Class List | Directories | 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, const YCPByteblock & byteblock );
00041     YQImage( QWidget * parent, const YWidgetOpt & opt, const YCPString & file_name );
00042 
00048     long nicesize( YUIDimension dim );
00049 
00053     void setSize( long newWidth, long newHeight );
00054 
00055 protected:
00056 
00060     void init( QWidget * parent, const YWidgetOpt & opt );
00061 
00066     void yqSetPixmap( const QPixmap &pixmap );
00067 
00068 
00069     //
00070     // Data members
00071     //
00072     
00073     bool _zeroWidth;    // override nice width  with 0
00074     bool _zeroHeight;   // override nice height with 0
00075     bool _tiled;        // tile image ( repeat endlessly )
00076     bool _animated;     // animation, no static image
00077 
00078     int _pixmapWidth;   // pixmap or movie width
00079     int _pixmapHeight;  // pixmap or movie height
00080 };
00081 
00082 #endif // YQImage_h

Generated on Wed Sep 14 10:59:02 2005 for yast2-qt by  doxygen 1.4.4