~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to digikam/albumselectiontreeview.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2005-05-06
 
7
 * Description : Albums folder view.
 
8
 *
 
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>
 
13
 *
 
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)
 
18
 * any later version.
 
19
 *
 
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.
 
24
 *
 
25
 * ============================================================ */
 
26
 
 
27
#ifndef ALBUMSELECTIONTREEVIEW_H
 
28
#define ALBUMSELECTIONTREEVIEW_H
 
29
 
 
30
// QT includes
 
31
#include <qtreeview.h>
 
32
 
 
33
// Local includes
 
34
#include "albummodel.h"
 
35
#include "albumtreeview.h"
 
36
#include "albummodificationhelper.h"
 
37
 
 
38
namespace Digikam {
 
39
 
 
40
class AlbumSelectionTreeViewPriv;
 
41
 
 
42
/**
 
43
 * Album tree view used in the left sidebar to select PAlbums and perform
 
44
 * operations on them via a context menu.
 
45
 *
 
46
 * @author jwienke
 
47
 */
 
48
class AlbumSelectionTreeView: public AlbumTreeView
 
49
{
 
50
Q_OBJECT
 
51
public:
 
52
    AlbumSelectionTreeView(QWidget *parent, AlbumModel *model, AlbumModificationHelper *albumModificationHelper);
 
53
    ~AlbumSelectionTreeView();
 
54
 
 
55
    /**
 
56
     * Sets whether this widget shall display tool tips or not.
 
57
     */
 
58
    void setEnableToolTips(bool enable);
 
59
 
 
60
Q_SIGNALS:
 
61
 
 
62
    /**
 
63
     * Emitted if a find duplicates search shall be invoked on the given album.
 
64
     *
 
65
     * @param album the album to find duplicates in
 
66
     */
 
67
    void signalFindDuplicatesInAlbum(Album *album);
 
68
 
 
69
protected:
 
70
 
 
71
    virtual QString contextMenuTitle() const;
 
72
    virtual void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album);
 
73
    virtual void handleCustomContextMenuAction(QAction *action, AlbumPointer<Album> album);
 
74
 
 
75
private:
 
76
 
 
77
    /**
 
78
     * Re-implemented to handle custom tool tips.
 
79
     *
 
80
     * @param event event to process.
 
81
     */
 
82
    bool viewportEvent(QEvent *event);
 
83
 
 
84
private:
 
85
    AlbumSelectionTreeViewPriv *d;
 
86
 
 
87
};
 
88
 
 
89
}  // namespace Digikam
 
90
 
 
91
#endif // ALBUMSELECTIONTREEVIEW_H