21 lines
428 B
C++
21 lines
428 B
C++
#pragma once
|
|
|
|
#include <gtkmm/box.h>
|
|
#include <gtkmm/label.h>
|
|
#include <sigc++/sigc++.h>
|
|
|
|
class WeatherWidget : public Gtk::Box {
|
|
public:
|
|
WeatherWidget();
|
|
|
|
private:
|
|
Gtk::Label titleLabel;
|
|
Gtk::Label currentLabel;
|
|
Gtk::Label todayLabel;
|
|
|
|
bool onRefreshTick();
|
|
void fetchWeather();
|
|
void applyWeatherText(const std::string ¤t_text,
|
|
const std::string &today_text);
|
|
};
|