1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : Albums folder view.
9
* Copyright (C) 2005-2006 by Joern Ahrens <joern dot ahrens at kdemail dot net>
10
* Copyright (C) 2006-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* Copyright (C) 2009 by Andi Clemens <andi dot clemens at gmx dot net>
12
* Copyright (C) 2009 by Johannes Wienke <languitar at semipol dot de>
14
* This program is free software; you can redistribute it
15
* and/or modify it under the terms of the GNU General
16
* Public License as published by the Free Software Foundation;
17
* either version 2, or (at your option)
20
* This program is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
25
* ============================================================ */
27
#ifndef ALBUMSELECTIONTREEVIEW_H
28
#define ALBUMSELECTIONTREEVIEW_H
31
#include <qtreeview.h>
34
#include "albummodel.h"
35
#include "albumtreeview.h"
36
#include "albummodificationhelper.h"
40
class AlbumSelectionTreeViewPriv;
43
* Album tree view used in the left sidebar to select PAlbums and perform
44
* operations on them via a context menu.
48
class AlbumSelectionTreeView: public AlbumTreeView
52
AlbumSelectionTreeView(QWidget *parent, AlbumModel *model, AlbumModificationHelper *albumModificationHelper);
53
~AlbumSelectionTreeView();
56
* Sets whether this widget shall display tool tips or not.
58
void setEnableToolTips(bool enable);
63
* Emitted if a find duplicates search shall be invoked on the given album.
65
* @param album the album to find duplicates in
67
void signalFindDuplicatesInAlbum(Album *album);
71
virtual QString contextMenuTitle() const;
72
virtual void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album);
73
virtual void handleCustomContextMenuAction(QAction *action, AlbumPointer<Album> album);
78
* Re-implemented to handle custom tool tips.
80
* @param event event to process.
82
bool viewportEvent(QEvent *event);
85
AlbumSelectionTreeViewPriv *d;
89
} // namespace Digikam
91
#endif // ALBUMSELECTIONTREEVIEW_H