1 /***************************************************************************
2 dockwidget.h - description
5 copyright : (C) 2000-2003 by Ian Reinhart Geiser
6 : (C) 2002-2003 Nadeem Hasan <nhasan@kde.org>
7 email : geiseri@msoe.edu
8 ***************************************************************************/
10 /***************************************************************************
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
17 ***************************************************************************/
21 #include <QtGui/QFont>
22 #include <QtGui/QPixmap>
23 #include <QtGui/QWidget>
27 class OrgKdeKweatherServiceInterface
;
29 class dockwidget
: public QWidget
34 explicit dockwidget(const QString
&location
, QWidget
*parent
=0);
37 enum {ShowIconOnly
=1, ShowTempOnly
=2, ShowAll
=3 };
39 void setLocationCode(const QString
&locationCode
);
40 void setViewMode(int);
41 void setOrientation(Qt::Orientation o
) { m_orientation
= o
; }
42 /** resize the view **/
43 void resizeView(const QSize
&size
);
44 int widthForHeight(int h
);
45 int heightForWidth(int w
);
57 QString m_locationCode
;
60 WeatherButton
*m_button
;
64 Qt::Orientation m_orientation
;
66 OrgKdeKweatherServiceInterface
*m_weatherService
;
69 #endif // DOCKWIDGET_H