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 );
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.