26 #define YUILogComponent "ui"
29 #include "YMultiSelectionBox.h"
30 #include "YUISymbols.h"
31 #include "YMacroRecorder.h"
32 #include "YUIException.h"
51 YUI_CHECK_NEW( priv );
67 return priv->shrinkable;
90 propSet.
add(
YProperty( YUIProperty_CurrentItem, YOtherProperty ) );
91 propSet.
add(
YProperty( YUIProperty_SelectedItems, YOtherProperty ) );
92 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
93 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
94 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
107 if ( propertyName == YUIProperty_CurrentItem )
return false;
108 else if ( propertyName == YUIProperty_SelectedItems )
return false;
109 else if ( propertyName == YUIProperty_Items )
return false;
126 if ( propertyName == YUIProperty_CurrentItem )
return YPropertyValue( YOtherProperty );
127 else if ( propertyName == YUIProperty_SelectedItems )
return YPropertyValue( YOtherProperty );
128 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );
void add(const YProperty &prop)
Add a property to this property set.
bool shrinkable() const
Return 'true' if this MultiSelectionBox should be very small.
YMultiSelectionBox(YWidget *parent, const std::string &label)
Constructor.
A set of properties to check names and types against.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
virtual const YPropertySet & propertySet()
Return this class's property set.
std::string stringVal() const
Methods to get the value of this property.
virtual void recordWidgetProperty(YWidget *widget, const char *propertyName)=0
Record one widget property.
YPropertyType type() const
Returns the type of this property value.
virtual void setShrinkable(bool shrinkable=true)
Make this MultiSelectionBox very small.
Class for widget properties.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
Transport class for the value of simple properties.
virtual void saveUserInput(YMacroRecorder *macroRecorder)
Save the widget's user input to a macro recorder.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
Abstract base class for macro recorders.
virtual ~YMultiSelectionBox()
Destructor.