AlbumShaper 1.0a3
subalbumsIconView.h
Go to the documentation of this file.
1//Added by qt3to4:
2#include <QMouseEvent>
3#include <QDragMoveEvent>
4#include <QDropEvent>
5#include <QPixmap>
6//==============================================
7// copyright : (C) 2003-2005 by Will Stokes
8//==============================================
9// This program is free software; you can redistribute it
10// and/or modify it under the terms of the GNU General
11// Public License as published by the Free Software
12// Foundation; either version 2 of the License, or
13// (at your option) any later version.
14//==============================================
15
16#ifndef GUI_SUBALBUMSICONVIEW_H
17#define GUI_SUBALBUMSICONVIEW_H
18
19//--------------------
20//forward declarations
21class QPixmap;
22class QPainter;
23class Q3DragObject;
25//--------------------
26
27#include <q3iconview.h>
28#include <qapplication.h>
29
30//=====================================
35//=====================================
37{
38Q_OBJECT
39
40public:
41 SubalbumsIconView( QWidget *parent );
42 int getTextWidth();
43
44 QSize minimumSizeHint() const;
45 QSize sizeHint() const;
46
47//----------------------
48signals:
50//----------------------
51protected:
52 void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph );
53 Q3DragObject *dragObject();
54
55 void contentsMousePressEvent( QMouseEvent * e );
56 void contentsDragMoveEvent( QDragMoveEvent* e );
57//----------------------
58private slots:
59 void repaintGroup( Q3IconViewItem* pseudoSelection);
61//--
62private:
63 void contentsDropEvent( QDropEvent *e );
64 QPixmap bufferPixmap;
67
68 //width allocated to iconview items text.
69 //IconViewItems will request this value when running calcRect()
71//----------------------
72};
73//======================
74
75
76#endif //GUI_SUBALBUMSICONVIEW_H
Displays subalbum icon and name.
Extension of iconview, used to list all subalbums in album. Supports drag-n-drop within iconview such...
void drawContents(QPainter *p, int clipx, int clipy, int clipw, int cliph)
Q3DragObject * dragObject()
void contentsMousePressEvent(QMouseEvent *e)
QSize minimumSizeHint() const
void contentsDragMoveEvent(QDragMoveEvent *e)
void contentsDropEvent(QDropEvent *e)
SubalbumsIconView(QWidget *parent)
void repaintGroup(Q3IconViewItem *pseudoSelection)
SubalbumPreviewWidget * currentPseudoSelection