~neon/juk/master

1510 by Michael Pyne
Big huge update.
1
/***************************************************************************
1561 by Scott Wheeler
Since the annotate is going to be screwed anyway by the time this is ported,
2
    begin                : Sat Jul 9 2005
1510 by Michael Pyne
Big huge update.
3
    copyright            : (C) 2005 by Michael Pyne
4
    email                : michael.pyne@kdemail.net
5
***************************************************************************/
6
7
/***************************************************************************
8
 *                                                                         *
9
 *   This program is free software; you can redistribute it and/or modify  *
10
 *   it under the terms of the GNU General Public License as published by  *
11
 *   the Free Software Foundation; either version 2 of the License, or     *
12
 *   (at your option) any later version.                                   *
13
 *                                                                         *
14
 ***************************************************************************/
15
1564 by Michael Pyne
Also standardize all of the JuK include header guards, to the most common style to save me
16
#ifndef COVERICONVIEW_H
17
#define COVERICONVIEW_H
1510 by Michael Pyne
Big huge update.
18
1579 by Laurent Montel
adapt to new kdelis api
19
#include <k3iconview.h>
1510 by Michael Pyne
Big huge update.
20
21
#include "covermanager.h"
22
1803 by Michael Pyne
Rename references to the old Google image fetcher code to something more generic since
23
// The WebImageFetcher dialog also has a class named CoverIconViewItem and I
1510 by Michael Pyne
Big huge update.
24
// don't like the idea of naming it "CoverIVI" or something, so just namespace
1803 by Michael Pyne
Rename references to the old Google image fetcher code to something more generic since
25
// it out.  I would merge them except for webimagefetcher's dependence on KIO
1510 by Michael Pyne
Big huge update.
26
// and such.
1557 by Scott Wheeler
Whee. Another class down.
27
1510 by Michael Pyne
Big huge update.
28
namespace CoverUtility
29
{
1579 by Laurent Montel
adapt to new kdelis api
30
    class CoverIconViewItem : public K3IconViewItem
1510 by Michael Pyne
Big huge update.
31
    {
32
    public:
1561 by Scott Wheeler
Since the annotate is going to be screwed anyway by the time this is ported,
33
        CoverIconViewItem(coverKey id, Q3IconView *parent);
1510 by Michael Pyne
Big huge update.
34
1561 by Scott Wheeler
Since the annotate is going to be screwed anyway by the time this is ported,
35
        coverKey id() const { return m_id; }
1510 by Michael Pyne
Big huge update.
36
37
    private:
1561 by Scott Wheeler
Since the annotate is going to be screwed anyway by the time this is ported,
38
        coverKey m_id;
1510 by Michael Pyne
Big huge update.
39
    };
1553 by Scott Wheeler
Since 3.5 devel seems to have mostly slowed down, I'm synching with the branch
40
}
1510 by Michael Pyne
Big huge update.
41
42
using CoverUtility::CoverIconViewItem;
43
44
/**
1579 by Laurent Montel
adapt to new kdelis api
45
 * This class subclasses K3IconView in order to provide cover drag-and-drop
1510 by Michael Pyne
Big huge update.
46
 * support.
47
 *
48
 * @author Michael Pyne <michael.pyne@kdemail.net>
49
 */
1579 by Laurent Montel
adapt to new kdelis api
50
class CoverIconView : public K3IconView
1510 by Michael Pyne
Big huge update.
51
{
52
public:
1786 by Michael Pyne
More krazy fixes for JuK. Although we've not yet been burned by non-explicit ctors
53
    explicit CoverIconView(QWidget *parent, const char *name = 0);
1510 by Michael Pyne
Big huge update.
54
55
    CoverIconViewItem *currentItem() const;
56
57
protected:
1530 by Laurent Montel
qt3to4 + my script
58
    virtual Q3DragObject *dragObject();
1510 by Michael Pyne
Big huge update.
59
};
60
1564 by Michael Pyne
Also standardize all of the JuK include header guards, to the most common style to save me
61
#endif /* COVERICONVIEW_H */
1510 by Michael Pyne
Big huge update.
62
1562 by Michael Pyne
Since we're standardizing the source style, figured I'd throw in the Big Huge Vim Modeline
63
// vim: set et sw=4 tw=0 sta: