00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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