diff options
Diffstat (limited to 'examples/dragdrop/dropsite.h')
-rw-r--r-- | examples/dragdrop/dropsite.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/dragdrop/dropsite.h b/examples/dragdrop/dropsite.h new file mode 100644 index 000000000..0179c5497 --- /dev/null +++ b/examples/dragdrop/dropsite.h @@ -0,0 +1,55 @@ +/**************************************************************************** +** +** Drop site example implementation +** +** Created : 979899 +** +** Copyright (C) 1997-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#ifndef DROPSITE_H +#define DROPSITE_H + +#include <qlabel.h> +#include <qmovie.h> +#include "qdropsite.h" + +class TQDragObject; + +class DropSite: public TQLabel +{ + Q_OBJECT +public: + DropSite( TQWidget * parent = 0, const char * name = 0 ); + ~DropSite(); + +signals: + void message( const TQString& ); + +protected: + void dragEnterEvent( TQDragEnterEvent * ); + void dragMoveEvent( TQDragMoveEvent * ); + void dragLeaveEvent( TQDragLeaveEvent * ); + void dropEvent( TQDropEvent * ); + void backgroundColorChange( const TQColor& ); + + // this is a normal even + void mousePressEvent( TQMouseEvent * ); +}; + +class DragMoviePlayer : public TQObject { + Q_OBJECT + TQDragObject* dobj; + TQMovie movie; +public: + DragMoviePlayer(TQDragObject*); +private slots: + void updatePixmap( const TQRect& ); +}; + + +#endif |