26 #define YUILogComponent "ui" 29 #include "YUISymbols.h" 30 #include "YMacroRecorder.h" 31 #include "YInputField.h" 39 , passwordMode( passwordMode )
41 , inputMaxLength( -1 )
47 std::string validChars;
57 YUI_CHECK_NEW( priv );
84 return priv->passwordMode;
90 return priv->shrinkable;
103 return priv->validChars;
109 priv->validChars= newValidChars;
115 return priv->inputMaxLength;
121 priv->inputMaxLength = len;
138 propSet.
add(
YProperty( YUIProperty_Value, YStringProperty ) );
139 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
140 propSet.
add(
YProperty( YUIProperty_ValidChars, YStringProperty ) );
141 propSet.
add(
YProperty( YUIProperty_InputMaxLength, YIntegerProperty ) );
157 else if ( propertyName == YUIProperty_InputMaxLength )
setInputMaxLength( val.integerVal() );
196 if ( priv->passwordMode )
return "YPasswordField";
197 else return "YInputField";
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.
void add(const YProperty &prop)
Add a property to this property set.
A set of properties to check names and types against.
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.
Class for widget properties.
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.