26 #define YUILogComponent "ui" 29 #include "YMultiSelectionBox.h" 30 #include "YUISymbols.h" 31 #include "YMacroRecorder.h" 32 #include "YUIException.h" 53 YUI_CHECK_NEW( priv );
69 return priv->shrinkable;
92 propSet.
add(
YProperty( YUIProperty_CurrentItem, YOtherProperty ) );
93 propSet.
add(
YProperty( YUIProperty_SelectedItems, YOtherProperty ) );
94 propSet.
add(
YProperty( YUIProperty_Items, YOtherProperty ) );
95 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
96 propSet.
add(
YProperty( YUIProperty_IconPath, YStringProperty ) );
109 if ( propertyName == YUIProperty_CurrentItem )
return false;
110 else if ( propertyName == YUIProperty_SelectedItems )
return false;
111 else if ( propertyName == YUIProperty_Items )
return false;
128 if ( propertyName == YUIProperty_CurrentItem )
return YPropertyValue( YOtherProperty );
129 else if ( propertyName == YUIProperty_SelectedItems )
return YPropertyValue( YOtherProperty );
130 else if ( propertyName == YUIProperty_Items )
return YPropertyValue( YOtherProperty );
Abstract base class for macro recorders.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
Transport class for the value of simple properties.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
void add(const YProperty &prop)
Add a property to this property set.
A set of properties to check names and types against.
virtual ~YMultiSelectionBox()
Destructor.
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.
YMultiSelectionBox(YWidget *parent, const std::string &label)
Constructor.
Class for widget properties.
virtual void saveUserInput(YMacroRecorder *macroRecorder)
Save the widget's user input to a macro recorder.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setShrinkable(bool shrinkable=true)
Make this MultiSelectionBox very small.
bool shrinkable() const
Return 'true' if this MultiSelectionBox should be very small.
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.