Fix UI
[kdenetwork.git] / kget / docking.h
blob2cd9319ac3a235914bf40b62677bdf2d09977583
1 /***************************************************************************
2 * docking.h
3 * -------------------
5 * Revision : $Id$
6 * begin : Tue Jan 29 2002
7 * copyright : (C) 2002 by Patrick Charbonnier
8 * : Based On Caitoo v.0.7.3 (c) 1998 - 2000, Matej Koss
9 * email : pch@freeshell.org
11 ****************************************************************************/
13 /***************************************************************************
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 ***************************************************************************/
29 #ifndef _DOCKING_H_
30 #define _DOCKING_H_
32 #include <stdio.h>
34 #include <qdragobject.h>
36 #include <ksystemtray.h>
38 class KPopupMenu;
39 class KMainWidget;
41 class DynamicTip : public QToolTip
43 public:
44 DynamicTip( QWidget * parent );
45 virtual ~DynamicTip() {}//TODO workaround for qt-bug, can be removed after 4.0
46 void setStatus( const QString & _status );
48 protected:
49 void maybeTip( const QPoint & );
51 private:
52 QString status;
55 class DockWidget:public KSystemTray
58 Q_OBJECT public:
59 DockWidget(KMainWidget * parent);
60 ~DockWidget();
61 /** No descriptions */
62 void updateToolTip( const QString& );
66 private slots:
67 void mousePressEvent(QMouseEvent * e);
69 protected:
70 // drag and drop
71 void dragEnterEvent(QDragEnterEvent *);
72 void dropEvent(QDropEvent *);
74 private:
75 KMainWidget *parent;
76 DynamicTip * dtip;
80 #endif