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.
tdeadmin/ksysv/trash.h

68 lines
1.7 KiB

/***************************************************************************
begin : Sun Oct 3 1999
copyright : (C) 1997-99 by Peter Putzer
email : putzer@kde.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2. *
* *
***************************************************************************/
#ifndef KSV_TRASH_H
#define KSV_TRASH_H
#include <tqframe.h>
#include <tqpixmap.h>
#include <tqstring.h>
// forward declarations
class TQLabel;
class TDEIconLoader;
class KSVItem;
class KSVAction;
class KSVTrash : public TQFrame
{
Q_OBJECT
public:
KSVTrash (TQWidget* parent = 0, const char* name = 0);
virtual ~KSVTrash();
virtual TQSize sizeHint() const;
protected:
/**
* Overridden from @ref TQDropSite
*/
virtual void dragMoveEvent ( TQDragMoveEvent* );
/**
* Overridden from @ref TQDropSite
*/
virtual void dragLeaveEvent ( TQDragLeaveEvent* );
/**
* Overridden from @ref TQDropSite
*/
virtual void dropEvent ( TQDropEvent* );
virtual bool eventFilter ( TQObject*, TQEvent* );
private:
TDEIconLoader* mKIL;
TQLabel* mLabel;
bool mOpen;
int mPixmapWidth;
signals:
void undoAction (KSVAction*);
};
#endif