26 #define YUILogComponent "ui"
29 #include "YSelectionBox.h"
30 #include "YUISymbols.h"
31 #include "YUIException.h"
38 , immediateMode(
false )
53 YUI_CHECK_NEW( priv );
69 return priv->shrinkable;
81 return priv->immediateMode;
108 propSet.
add(
YProperty( YUIProperty_Value, YOtherProperty ) );
109 propSet.
add(
YProperty( YUIProperty_CurrentItem, YOtherProperty ) );
110 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
111 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
112 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
125 if ( propertyName == YUIProperty_Value )
return false;
126 else if ( propertyName == YUIProperty_CurrentItem )
return false;
127 else if ( propertyName == YUIProperty_Items )
return false;
144 if ( propertyName == YUIProperty_Value )
return YPropertyValue( YOtherProperty );
145 else if ( propertyName == YUIProperty_CurrentItem )
return YPropertyValue( YOtherProperty );
146 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual ~YSelectionBox()
Destructor.
Transport class for the value of simple properties.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
void add(const YProperty &prop)
Add a property to this property set.
A set of properties to check names and types against.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
bool shrinkable() const
Return 'true' if this SelectionBox should be very small.
std::string stringVal() const
Methods to get the value of this property.
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.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
bool immediateMode() const
Deliver even more events than with notify() set.
Class for widget properties.
YPropertyType type() const
Returns the type of this property value.