1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQProgressBar_h
21 #define YQProgressBar_h
24 #include "YProgressBar.h"
28 class YQWidgetCaption;
31 class YQProgressBar : public QFrame, public YProgressBar
39 YQProgressBar( YWidget * parent,
45 virtual ~YQProgressBar();
48 * Set the label (the caption above the progress bar).
50 * Reimplemented from YProgressBar.
52 virtual void setLabel( const string & label );
55 * Set the current progress value ( <= maxValue() ).
57 * Reimplemented from YProgressBar.
59 virtual void setValue( int newValue );
62 * Set enabled/disabled state.
64 * Reimplemented from YWidget.
66 virtual void setEnabled( bool enabled );
69 * Preferred width of the widget.
71 * Reimplemented from YWidget.
73 virtual int preferredWidth();
76 * Preferred height of the widget.
78 * Reimplemented from YWidget.
80 virtual int preferredHeight();
83 * Set the new size of the widget.
85 * Reimplemented from YWidget.
87 virtual void setSize( int newWidth, int newHeight );
90 * Accept the keyboard focus.
92 virtual bool setKeyboardFocus();
97 YQWidgetCaption * _caption;
98 QProgressBar * _qt_progressbar;
101 #endif // YQProgressBar_h