24 #ifndef SUMMARYWIDGET_H
25 #define SUMMARYWIDGET_H
29 #include <dcopobject.h>
33 #include <tqptrlist.h>
34 #include <tqstringlist.h>
47 void setIcon(
const TQPixmap &icon ) { mIcon = icon; }
48 TQPixmap icon()
const {
return mIcon; }
50 void setName(
const TQString &name ) { mName = name; }
51 TQString name()
const {
return mName; }
53 void setCover(
const TQStringList& cover ) { mCover = cover; }
54 TQStringList cover()
const {
return mCover; }
56 void setDate(
const TQString &date ) { mDate = date; }
57 TQString date()
const {
return mDate; }
59 void setTemperature(
const TQString &temperature ) { mTemperature = temperature; }
60 TQString temperature()
const {
return mTemperature; }
62 void setWindSpeed(
const TQString &windSpeed ) { mWindSpeed = windSpeed; }
63 TQString windSpeed()
const {
return mWindSpeed; }
65 void setRelativeHumidity(
const TQString &relativeHumidity ) { mRelativeHumidity = relativeHumidity; }
66 TQString relativeHumidity()
const {
return mRelativeHumidity; }
68 void setStationID(
const TQString &station ) { mStationID = station;}
69 TQString stationID() {
return mStationID; }
71 bool operator< (
const WeatherData &data )
73 return ( TQString::localeAwareCompare( mName, data.mName ) < 0 );
81 TQString mTemperature;
83 TQString mRelativeHumidity;
93 SummaryWidget( TQWidget *parent,
const char *name = 0 );
100 virtual void refresh( TQString );
101 virtual void stationRemoved( TQString );
104 virtual bool eventFilter( TQObject *obj, TQEvent *e );
109 void showReport(
const TQString& );
110 void reportFinished( TDEProcess* );
113 TQStringList mStations;
114 TQMap<TQString, WeatherData> mWeatherMap;
117 TQPtrList<TQLabel> mLabels;
118 TQPtrList<TQGridLayout> mLayouts;
119 TQVBoxLayout *mLayout;
Summary widget for display in the Summary View plugin.
virtual TQStringList configModules() const
Return list of strings identifying configuration modules for this summary part.
virtual void updateSummary(bool force=false)
This is called if the displayed information should be updated.