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.
63 lines
1.9 KiB
63 lines
1.9 KiB
/***************************************************************************
|
|
begin : Sat Jul 9 2005
|
|
copyright : (C) 2005 by Michael Pyne
|
|
email : michael.pyne@kdemail.net
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* 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; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef JUK_COVERICONVIEW_H
|
|
#define JUK_COVERICONVIEW_H
|
|
|
|
#include <kiconview.h>
|
|
|
|
#include "covermanager.h"
|
|
|
|
// The WebImageFetcher dialog also has a class named CoverIconViewItem and I
|
|
// don't like the idea of naming it "CoverIVI" or something, so just namespace
|
|
// it out. I would merge them except for webimagefetcher's dependence on KIO
|
|
// and such.
|
|
namespace CoverUtility
|
|
{
|
|
class CoverIconViewItem : public TDEIconViewItem
|
|
{
|
|
public:
|
|
CoverIconViewItem(coverKey id, TQIconView *parent);
|
|
|
|
coverKey id() const { return m_id; }
|
|
|
|
private:
|
|
coverKey m_id;
|
|
};
|
|
}
|
|
|
|
using CoverUtility::CoverIconViewItem;
|
|
|
|
/**
|
|
* This class subclasses TDEIconView in order to provide cover drag-and-drop
|
|
* support.
|
|
*
|
|
* @author Michael Pyne <michael.pyne@kdemail.net>
|
|
*/
|
|
class CoverIconView : public TDEIconView
|
|
{
|
|
public:
|
|
CoverIconView(TQWidget *parent, const char *name);
|
|
|
|
CoverIconViewItem *currentItem() const;
|
|
|
|
protected:
|
|
virtual TQDragObject *dragObject();
|
|
};
|
|
|
|
#endif /* JUK_COVERICONVIEW_H */
|
|
|
|
// vim: set et ts=4 sw=4:
|