00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YQBarGraph.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 // -*- c++ -*- 00020 00021 #ifndef YQBarGraph_h 00022 #define YQBarGraph_h 00023 00024 #include <ycp/YCPString.h> 00025 00026 #include "QY2BarGraph.h" 00027 #include "YBarGraph.h" 00028 00029 00030 class YQBarGraph : public QWidget, public YBarGraph 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 00039 YQBarGraph( QWidget * parent, const YWidgetOpt & opt ); 00040 00046 void setEnabling( bool enabled ); 00047 00053 long nicesize( YUIDimension dim ); 00054 00058 void setSize( long newWidth, long newHeight ); 00059 00060 00065 void doUpdate(); 00066 00067 00068 protected: 00069 00070 00071 QY2BarGraph * _barGraph; 00072 }; 00073 00074 00075 #endif // YQBarGraph_h