1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
24 #include "YBarGraph.h"
29 class YQBarGraph : public QFrame, public YBarGraph
38 YQBarGraph( YWidget * parent );
43 virtual ~YQBarGraph();
46 * Perform a visual update on the screen.
48 * Implemented from YBarGraph.
50 virtual void doUpdate();
53 * Set enabled/disabled state.
55 * Reimplemented from YWidget.
57 virtual void setEnabled( bool enabled );
60 * Preferred width of the widget.
62 * Reimplemented from YWidget.
64 virtual int preferredWidth();
67 * Preferred height of the widget.
69 * Reimplemented from YWidget.
71 virtual int preferredHeight();
74 * Set the new size of the widget.
76 * Reimplemented from YWidget.
78 virtual void setSize( int newWidth, int newHeight );
86 * Reimplemented from QFrame.
88 virtual void drawContents( QPainter * painter );
91 * Return one from a set of default segment background colors.
93 YColor defaultSegmentColor( unsigned index );
96 * Return one from a set of default text colors. This text color is
97 * guaranteed to contrast with the defaultSegmentColor with the same index.
99 YColor defaultTextColor( unsigned index );
103 #endif // YQBarGraph_h