libyui  3.0.10
YTimezoneSelector Class Reference
Inheritance diagram for YTimezoneSelector:
Collaboration diagram for YTimezoneSelector:

List of all members.

Public Member Functions

virtual ~YTimezoneSelector ()
virtual const char * widgetClass () const
virtual bool setProperty (const std::string &propertyName, const YPropertyValue &val)
virtual YPropertyValue getProperty (const std::string &propertyName)
virtual const YPropertySetpropertySet ()
virtual std::string currentZone () const =0
virtual void setCurrentZone (const std::string &zone, bool zoom)=0

Protected Member Functions

 YTimezoneSelector (YWidget *parent, const std::string &pixmap, const std::map< std::string, std::string > &timezones)

Detailed Description

Definition at line 35 of file YTimezoneSelector.h.


Constructor & Destructor Documentation

YTimezoneSelector::YTimezoneSelector ( YWidget parent,
const std::string &  pixmap,
const std::map< std::string, std::string > &  timezones 
) [protected]

Constructor. This widget isn't doing much on it's own, but the UI may have some fancy use.

  • pixmap should be a png or jpg of a world map with centered 0°0° and the timezones are a map between zone.tab entry and user visible string.

The widget is only displaying timezones/cities in that map

Definition at line 41 of file YTimezoneSelector.cc.

Destructor.

Definition at line 49 of file YTimezoneSelector.cc.


Member Function Documentation

virtual std::string YTimezoneSelector::currentZone ( ) const [pure virtual]

subclasses have to implement this to return value

YPropertyValue YTimezoneSelector::getProperty ( const std::string &  propertyName) [virtual]

Get a property. Reimplemented from YWidget.

This method may throw YUIPropertyExceptions.

Reimplemented from YWidget.

Definition at line 91 of file YTimezoneSelector.cc.

Here is the call graph for this function:

Return this class's property set. This also initializes the property upon the first call.

Reimplemented from YWidget.

Reimplemented from YWidget.

Definition at line 56 of file YTimezoneSelector.cc.

Here is the call graph for this function:

virtual void YTimezoneSelector::setCurrentZone ( const std::string &  zone,
bool  zoom 
) [pure virtual]

subclasses have to implement this to set value

bool YTimezoneSelector::setProperty ( const std::string &  propertyName,
const YPropertyValue val 
) [virtual]

Set a property. Reimplemented from YWidget.

This function may throw YUIPropertyExceptions.

This function returns 'true' if the value was successfully set and 'false' if that value requires special handling (not in error cases: those are covered by exceptions).

Reimplemented from YWidget.

Definition at line 72 of file YTimezoneSelector.cc.

Here is the call graph for this function:

virtual const char* YTimezoneSelector::widgetClass ( ) const [inline, virtual]

Return a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.

Definition at line 60 of file YTimezoneSelector.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends