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

YQColoredLabel.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:       YQColoredLabel.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
00020 
00021 #ifndef YQColoredLabel_h
00022 #define YQColoredLabel_h
00023 
00024 #include <qlabel.h>
00025 #include <ycp/YCPString.h>
00026 
00027 #include "YLabel.h"
00028 
00029 
00030 class YQColoredLabel : public QLabel, public YLabel
00031 {
00032     Q_OBJECT
00033 
00034 public:
00035 
00039     YQColoredLabel( QWidget *           parent,
00040                     const YWidgetOpt &  opt,
00041                     YCPString           text,
00042                     YColor &            fg,
00043                     YColor &            bg,
00044                     int                 margin );
00045 
00051     void setEnabling( bool enabled );
00052 
00058     long nicesize( YUIDimension dim );
00059 
00063     void setSize( long newWidth, long newHeight );
00064 
00068     void setLabel( const YCPString & label );
00069 };
00070 
00071 #endif // YQColoredLabel_h

Generated on Wed Nov 12 06:11:15 2008 for yast2-qt by  doxygen 1.3.9.1