You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
13 years ago
|
/****************************************************************************
|
||
|
**
|
||
|
** 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
|