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