26 #define YUILogComponent "ui" 29 #include "YUISymbols.h" 30 #include "YTimezoneSelector.h" 42 const std::string &pixmap,
43 const std::map<std::string, std::string> &timezones )
62 propSet.
add(
YProperty( YUIProperty_Value, YStringProperty ) );
63 propSet.
add(
YProperty( YUIProperty_CurrentItem, YStringProperty ) );
76 if ( propertyName == YUIProperty_Value )
81 if ( propertyName == YUIProperty_CurrentItem )
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.
Class for widget properties.
virtual ~YTimezoneSelector()
Destructor.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual std::string currentZone() const =0
subclasses have to implement this to return value
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setCurrentZone(const std::string &zone, bool zoom)=0
subclasses have to implement this to set value
YPropertyType type() const
Returns the type of this property value.
YTimezoneSelector(YWidget *parent, const std::string &pixmap, const std::map< std::string, std::string > &timezones)
Constructor.