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()
virtual YPropertyValue getProperty(const std::string &propertyName)
void check(const std::string &propertyName) const
void add(const YProperty &prop)
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
std::string stringVal() const
void setImmediateMode(bool on=true)
virtual void setShrinkable(bool shrinkable=true)
YSelectionBox(YWidget *parent, const std::string &label)
bool immediateMode() const
YPropertyType type() const