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() );
std::string label()
Get the label (the caption above the progress bar).
virtual ~YBusyIndicator()
Destructor.
YBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000, bool alive=true)
Constructor.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
int timeout() const
Return the current timeout in milliseconds.
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
bool alive() const
Return whether busy indicator is alive or in stalled stated.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setAlive(bool newAlive)
Send a keep alive message to prevent BusyIndicator from changing to 'stalled' state.
virtual void setTimeout(int newTimeout)
Set the timeout in milliseconds after that the widget shows 'stalled' when no new tick is received.
virtual const YPropertySet & propertySet()
Return this class's property set.
A set of properties to check names and types against.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
void add(const YProperty &prop)
Add a property to this property set.
Transport class for the value of simple properties.
std::string stringVal() const
Methods to get the value of this property.
YPropertyType type() const
Returns the type of this property value.
Class for widget properties.