26 #define YUILogComponent "ui"
29 #include "YSelectionBox.h"
30 #include "YUISymbols.h"
31 #include "YUIException.h"
40 , immediateMode(
false )
55 YUI_CHECK_NEW( priv );
70 return priv->shrinkable;
82 return priv->immediateMode;
109 propSet.
add(
YProperty( YUIProperty_Value, YOtherProperty ) );
110 propSet.
add(
YProperty( YUIProperty_CurrentItem, YOtherProperty ) );
111 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
112 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
113 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
126 if ( propertyName == YUIProperty_Value )
return false;
127 else if ( propertyName == YUIProperty_CurrentItem )
return false;
128 else if ( propertyName == YUIProperty_Items )
return false;
145 if ( propertyName == YUIProperty_Value )
return YPropertyValue( YOtherProperty );
146 else if ( propertyName == YUIProperty_CurrentItem )
return YPropertyValue( YOtherProperty );
147 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );
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.
void setImmediateMode(bool on=true)
Set immediateMode() on or off.
virtual void setShrinkable(bool shrinkable=true)
Make this SelectionBox very small.
YSelectionBox(YWidget *parent, const std::string &label)
Constructor.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
bool shrinkable() const
Return 'true' if this SelectionBox should be very small.
virtual ~YSelectionBox()
Destructor.
bool immediateMode() const
Deliver even more events than with notify() set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.