WeatherScreen Class Reference

#include <weatherScreen.h>

Inheritance diagram for WeatherScreen:

AnimatedImageScreen CurrCondScreen SevereWeatherScreen SixDayForecastScreen StaticImageScreen ThreeDayForecastScreen

List of all members.


Detailed Description

Definition at line 15 of file weatherScreen.h.


Public Slots

virtual void clock_tick ()
virtual void newData (QString loc, units_t units, DataMap data)
virtual bool handleKey (QKeyEvent *e)

Signals

void screenReady (WeatherScreen *)

Public Member Functions

 WeatherScreen (Weather *parent, LayerSet *container, int id)
 ~WeatherScreen ()
void setValue (const QString &key, const QString &value)
QString getValue (const QString &key)
bool containsKey (const QString &key)
virtual bool canShowScreen ()
void pause_animation ()
void unpause_animation ()
virtual void hiding ()
virtual void showing ()
void addDataItem (const QString &item, bool required=false)
void setUnits (units_t units)
units_t getUnits ()
LayerSetgetContainer ()
void draw (QPainter *p)
virtual void toggle_pause (bool paused)
virtual bool usingKeys ()
bool inUse ()
void setInUse (bool inuse)
int getId ()
 WeatherScreen ($screen_id)
 setActive ()
 getSource ($source_id=NULL)
 deleteScreen ()
 initNew ($container, $hostname)
 renumDrawOrder ()
 move ($direction)
 checkScreenID ()
 runSearch ($needle)
 getData ()
 runScript ($script, $args)
 updateLocation ($source_id, $loc)
 updateUnits ($units)

Static Public Member Functions

static WeatherScreenloadScreen (Weather *parent, LayerSet *container, int id=-1)
static QStringList getAllDynamicTypes (LayerSet *container)

Public Attributes

 $screen_id
 $source_id
 $draworder
 $container
 $host
 $units
 $active
 $data = array()
 $search = array()

Protected Member Functions

virtual QString prepareDataItem (const QString &key, const QString &value)
virtual void prepareWidget (UIType *widget)
virtual void prepareScreen ()
UITypegetType (const QString &key)

Protected Attributes

units_t m_units
LayerSetm_container
Weatherm_parent
QString m_name

Private Attributes

QRect fullRect
QMap< QString, QString > map
UIAnimatedImageTypem_ai
bool m_inuse
bool m_prepared
int m_id

Constructor & Destructor Documentation

WeatherScreen::WeatherScreen ( Weather parent,
LayerSet container,
int  id 
)

Definition at line 43 of file weatherScreen.cpp.

Referenced by loadScreen().

WeatherScreen::~WeatherScreen (  ) 

Definition at line 62 of file weatherScreen.cpp.


Member Function Documentation

WeatherScreen * WeatherScreen::loadScreen ( Weather parent,
LayerSet container,
int  id = -1 
) [static]

Definition at line 9 of file weatherScreen.cpp.

Referenced by Weather::setupScreens().

QStringList WeatherScreen::getAllDynamicTypes ( LayerSet container  )  [static]

Definition at line 29 of file weatherScreen.cpp.

Referenced by ScreenSetup::loadData().

void WeatherScreen::setValue ( const QString &  key,
const QString &  value 
)

Definition at line 83 of file weatherScreen.cpp.

Referenced by clock_tick(), and newData().

QString WeatherScreen::getValue ( const QString &  key  )  [inline]

Definition at line 28 of file weatherScreen.h.

bool WeatherScreen::containsKey ( const QString &  key  )  [inline]

Definition at line 29 of file weatherScreen.h.

bool WeatherScreen::canShowScreen (  )  [virtual]

void WeatherScreen::pause_animation (  ) 

Definition at line 226 of file weatherScreen.cpp.

Referenced by hiding().

void WeatherScreen::unpause_animation (  ) 

Definition at line 236 of file weatherScreen.cpp.

Referenced by showing().

void WeatherScreen::hiding (  )  [virtual]

void WeatherScreen::showing (  )  [virtual]

void WeatherScreen::addDataItem ( const QString &  item,
bool  required = false 
)

Definition at line 168 of file weatherScreen.cpp.

Referenced by WeatherScreen().

void WeatherScreen::setUnits ( units_t  units  )  [inline]

Definition at line 36 of file weatherScreen.h.

Referenced by Weather::setupScreens().

units_t WeatherScreen::getUnits (  )  [inline]

Definition at line 37 of file weatherScreen.h.

LayerSet* WeatherScreen::getContainer (  )  [inline]

Definition at line 38 of file weatherScreen.h.

void WeatherScreen::draw ( QPainter *  p  ) 

Definition at line 174 of file weatherScreen.cpp.

Referenced by Weather::updatePage().

void WeatherScreen::toggle_pause ( bool  paused  )  [virtual]

Definition at line 213 of file weatherScreen.cpp.

Referenced by Weather::cursorLeft(), Weather::cursorRight(), and Weather::holdPage().

virtual bool WeatherScreen::usingKeys (  )  [inline, virtual]

Reimplemented in SevereWeatherScreen.

Definition at line 41 of file weatherScreen.h.

Referenced by Weather::keyPressEvent().

bool WeatherScreen::inUse (  )  [inline]

Definition at line 42 of file weatherScreen.h.

Referenced by canShowScreen().

void WeatherScreen::setInUse ( bool  inuse  )  [inline]

Definition at line 43 of file weatherScreen.h.

Referenced by Weather::setupScreens().

int WeatherScreen::getId (  )  [inline]

Definition at line 44 of file weatherScreen.h.

Referenced by SourceManager::disconnectScreen().

void WeatherScreen::screenReady ( WeatherScreen  )  [signal]

Referenced by newData().

void WeatherScreen::clock_tick (  )  [virtual, slot]

Definition at line 270 of file weatherScreen.cpp.

void WeatherScreen::newData ( QString  loc,
units_t  units,
DataMap  data 
) [virtual, slot]

Definition at line 89 of file weatherScreen.cpp.

virtual bool WeatherScreen::handleKey ( QKeyEvent *  e  )  [inline, virtual, slot]

Reimplemented in SevereWeatherScreen.

Definition at line 52 of file weatherScreen.h.

Referenced by Weather::keyPressEvent().

QString WeatherScreen::prepareDataItem ( const QString &  key,
const QString &  value 
) [protected, virtual]

void WeatherScreen::prepareWidget ( UIType widget  )  [protected, virtual]

Reimplemented in StaticImageScreen, and AnimatedImageScreen.

Definition at line 144 of file weatherScreen.cpp.

Referenced by prepareScreen().

void WeatherScreen::prepareScreen (  )  [protected, virtual]

Definition at line 107 of file weatherScreen.cpp.

Referenced by showing().

UIType * WeatherScreen::getType ( const QString &  key  )  [protected]

WeatherScreen::WeatherScreen ( screen_id  ) 

Definition at line 29 of file WeatherScreen.php.

WeatherScreen::setActive (  ) 

Definition at line 60 of file WeatherScreen.php.

WeatherScreen::getSource ( source_id = NULL  ) 

Definition at line 64 of file WeatherScreen.php.

WeatherScreen::deleteScreen (  ) 

Definition at line 79 of file WeatherScreen.php.

WeatherScreen::initNew ( container,
hostname 
)

Definition at line 103 of file WeatherScreen.php.

WeatherScreen::renumDrawOrder (  ) 

Definition at line 133 of file WeatherScreen.php.

WeatherScreen::move ( direction  ) 

Definition at line 157 of file WeatherScreen.php.

WeatherScreen::checkScreenID (  ) 

Definition at line 184 of file WeatherScreen.php.

WeatherScreen::runSearch ( needle  ) 

Definition at line 200 of file WeatherScreen.php.

WeatherScreen::getData ( void   ) 

Definition at line 242 of file WeatherScreen.php.

WeatherScreen::runScript ( script,
args 
)

Definition at line 286 of file WeatherScreen.php.

WeatherScreen::updateLocation ( source_id,
loc 
)

Definition at line 321 of file WeatherScreen.php.

WeatherScreen::updateUnits ( units  ) 

Definition at line 361 of file WeatherScreen.php.


Member Data Documentation

Definition at line 57 of file weatherScreen.h.

Referenced by draw(), SevereWeatherScreen::handleKey(), prepareScreen(), and WeatherScreen().

QString WeatherScreen::m_name [protected]

Definition at line 58 of file weatherScreen.h.

QRect WeatherScreen::fullRect [private]

Definition at line 67 of file weatherScreen.h.

QMap<QString, QString> WeatherScreen::map [private]

Definition at line 69 of file weatherScreen.h.

Definition at line 70 of file weatherScreen.h.

Referenced by inUse(), setInUse(), and WeatherScreen().

Definition at line 71 of file weatherScreen.h.

Referenced by prepareScreen(), showing(), and WeatherScreen().

int WeatherScreen::m_id [private]

Definition at line 72 of file weatherScreen.h.

Referenced by getId(), and WeatherScreen().

WeatherScreen::$screen_id

Definition at line 18 of file WeatherScreen.php.

WeatherScreen::$source_id

Definition at line 19 of file WeatherScreen.php.

WeatherScreen::$draworder

Definition at line 20 of file WeatherScreen.php.

WeatherScreen::$container

Definition at line 21 of file WeatherScreen.php.

WeatherScreen::$host

Definition at line 22 of file WeatherScreen.php.

WeatherScreen::$units

Definition at line 23 of file WeatherScreen.php.

WeatherScreen::$active

Definition at line 24 of file WeatherScreen.php.

WeatherScreen::$data = array()

Definition at line 26 of file WeatherScreen.php.

WeatherScreen::$search = array()

Definition at line 27 of file WeatherScreen.php.


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5