26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YBusyIndicator.h"
61 YUI_CHECK_NEW( priv );
97 priv->timeout = newTimeout;
123 propSet.
add(
YProperty( YUIProperty_Timeout, YIntegerProperty ) );
124 propSet.
add(
YProperty( YUIProperty_Alive, YBoolProperty ) );
125 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
138 if ( propertyName == YUIProperty_Timeout )
setTimeout( val.integerVal() );
139 else if ( propertyName == YUIProperty_Alive )
setAlive( val.boolVal() );
void add(const YProperty &prop)
Add a property to this property set.
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
A set of properties to check names and types against.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
virtual void setTimeout(int newTimeout)
Set the timeout in milliseconds after that the widget shows 'stalled' when no new tick is received.
std::string stringVal() const
Methods to get the value of this property.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
YPropertyType type() const
Returns the type of this property value.
YBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000, bool alive=true)
Constructor.
Class for widget properties.
int timeout() const
Return the current timeout in milliseconds.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual ~YBusyIndicator()
Destructor.
std::string label()
Get the label (the caption above the progress bar).
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
Transport class for the value of simple properties.
bool alive() const
Return whether busy indicator is alive or in stalled stated.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setAlive(bool newAlive)
Send a keep alive message to prevent BusyIndicator from changing to 'stalled' state.