25 #ifndef YProgressBar_h 26 #define YProgressBar_h 43 const std::string &
label,
56 virtual const char *
widgetClass()
const {
return "YProgressBar"; }
69 virtual void setLabel(
const std::string & label );
88 virtual void setValue(
int newValue );
100 virtual bool setProperty(
const std::string & propertyName,
126 #endif // YProgressBar_h YProgressBar(YWidget *parent, const std::string &label, int maxValue=100)
Constructor.
int maxValue() const
Return the maximum progress value.
virtual ~YProgressBar()
Destructor.
Transport class for the value of simple properties.
A set of properties to check names and types against.
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
std::string label()
Get the label (the caption above the progress bar).
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual void setValue(int newValue)
Set the current progress value ( <= maxValue() ).
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
A progress bar, showing completion of value() out of maxValue() parts.
int value() const
Return the current progress value.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.