CCIMXDesktop
 
Loading...
Searching...
No Matches
WeatherChartWidget Class Reference

The WeatherChartWidget class provides the weather chart widget. More...

#include <WeatherChartWidget.h>

Inheritance diagram for WeatherChartWidget:

Public Types

enum  Page {
  MAIN_PAGE , HIGH_TEMP , LOW_TEMP , WINDSCALE ,
  HUMIDITY
}
 The Page enum The Page enum provides the page index. More...
 

Public Member Functions

 WeatherChartWidget (QWidget *parent=nullptr)
 Construct a new Weather Chart Widget object.
 
void fresh_display (QList< AppWeatherResult::DailyWeather > &weathers)
 fresh_display
 
void switch_to_page (const Page &p)
 switch_to_page
 

Detailed Description

The WeatherChartWidget class provides the weather chart widget.

Note
this is the main page of the weather mainWindows
See also
WeatherAppMainWindow

Member Enumeration Documentation

◆ Page

The Page enum The Page enum provides the page index.

See also
switch_to_page to get to know where to use this
Enumerator
MAIN_PAGE 

main page

HIGH_TEMP 

high temperature page

LOW_TEMP 

low temperature page

WINDSCALE 

wind scale page

HUMIDITY 

humidity page

Constructor & Destructor Documentation

◆ WeatherChartWidget()

WeatherChartWidget::WeatherChartWidget ( QWidget *  parent = nullptr)
explicit

Construct a new Weather Chart Widget object.

Parameters
parent

Member Function Documentation

◆ fresh_display()

void WeatherChartWidget::fresh_display ( QList< AppWeatherResult::DailyWeather > &  weathers)

fresh_display

Parameters
weathersThis function is used to refresh the display

◆ switch_to_page()

void WeatherChartWidget::switch_to_page ( const Page p)

switch_to_page

switch the page to the specified page

Parameters
pthe page to be switched

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