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
/****************************************************************************
|
|
**
|
|
** 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 <tqlabel.h>
|
|
#include <tqmovie.h>
|
|
#include "tqdropsite.h"
|
|
|
|
class TQDragObject;
|
|
|
|
class DropSite: public TQLabel
|
|
{
|
|
TQ_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 {
|
|
TQ_OBJECT
|
|
TQDragObject* dobj;
|
|
TQMovie movie;
|
|
public:
|
|
DragMoviePlayer(TQDragObject*);
|
|
private slots:
|
|
void updatePixmap( const TQRect& );
|
|
};
|
|
|
|
|
|
#endif
|