summaryrefslogtreecommitdiffstats
path: root/juk/covericonview.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /juk/covericonview.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'juk/covericonview.h')
-rw-r--r--juk/covericonview.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/juk/covericonview.h b/juk/covericonview.h
new file mode 100644
index 00000000..4126cb3f
--- /dev/null
+++ b/juk/covericonview.h
@@ -0,0 +1,62 @@
+/***************************************************************************
+ 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 KIconViewItem
+ {
+ public:
+ CoverIconViewItem(coverKey id, QIconView *parent);
+
+ coverKey id() const { return m_id; }
+
+ private:
+ coverKey m_id;
+ };
+}
+
+using CoverUtility::CoverIconViewItem;
+
+/**
+ * This class subclasses KIconView in order to provide cover drag-and-drop
+ * support.
+ *
+ * @author Michael Pyne <michael.pyne@kdemail.net>
+ */
+class CoverIconView : public KIconView
+{
+public:
+ CoverIconView(QWidget *parent, const char *name);
+
+ CoverIconViewItem *currentItem() const;
+
+protected:
+ virtual QDragObject *dragObject();
+};
+
+#endif /* JUK_COVERICONVIEW_H */
+
+// vim: set et ts=4 sw=4: