1 /* This file is part of the KDE project
3 Copyright (C) 2002 Patrick Charbonnier <pch@freeshell.org>
4 Based On Caitoo v.0.7.3 (c) 1998 - 2000, Matej Koss
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
16 #include <QDragEnterEvent>
17 #include <QMouseEvent>
19 #include <QCloseEvent>
27 class DropTarget
: public QWidget
32 DropTarget(MainWindow
* parent
);
35 void playAnimationShow();
36 void playAnimationHide();
37 void playAnimationSync();
38 void setVisible( bool shown
, bool internal
= true );
42 void dragEnterEvent(QDragEnterEvent
*);
43 void dropEvent(QDropEvent
*);
45 // handle quit events as hide events
46 void closeEvent( QCloseEvent
* );
48 void mousePressEvent(QMouseEvent
* e
);
49 void mouseReleaseEvent(QMouseEvent
* e
);
50 void mouseDoubleClickEvent(QMouseEvent
* e
);
51 void mouseMoveEvent(QMouseEvent
* e
);
53 // paint the drop target
54 void paintEvent(QPaintEvent
*);
58 void toggleMinimizeRestore();
59 void slotStartStopToggled( bool );
60 void slotAnimateShow();
61 void slotAnimateHide();
62 void slotAnimateSync();
67 MainWindow
* parentWidget
;
84 #endif // _DROPTARGET_H