yawp.h

来自「KDE4.1 weather plasmoid」· C头文件 代码 · 共 80 行

H
80
字号
//// C++ Implementation: yawp//// Description:////// Author: Ruan <ruans@kr8.co.za>, (C) 2008//// Copyright: Do what you want, whenever you want.////#ifndef YAWP_H#define YAWP_H#include <Plasma/Applet>#include <Plasma/Svg>class YaWPConfigDialog;class YaWPDay;class YaWPWeatherServiceRunner;class QTimer;class YaWPWeatherService;//-----------------------------------------------------------------------------/** Main plasmoid class.@author Ruan <ruans@kr8.co.za>*/class YaWP : public Plasma::Applet{    Q_OBJECT    public:                YaWP(QObject *parent, const QVariantList &args);                virtual ~YaWP();                void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect& contentsRect);                void init();                void loadConfig();                void saveConfig();                void showConfigurationInterface();                void constraintsEvent(Plasma::Constraints constraints);            protected slots:        void timeout();                void settingsChanged();                void updateMessage(QString mess);                void updateInfo(QObject *, int);            private:        Plasma::Svg         m_svg;        YaWPConfigDialog    *m_cdiag;        QFont               m_font;        QTimer              *m_timer;        QString             m_message;        int                 m_interval;                QString             m_theme;        QString             m_city;        QString             m_country;        QString             m_service;        int                 m_units;                QVector<YaWPDay>    m_days;        YaWPWeatherService * m_wservice;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?