1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : A widget to display a list of camera folders.
9
* Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10
* Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* ============================================================ */
25
#ifndef CAMERAFOLDERVIEW_H
26
#define CAMERAFOLDERVIEW_H
32
#include <QTreeWidget>
36
#include <kiconloader.h>
41
class CameraFolderItem;
43
class CameraFolderView : public QTreeWidget
49
explicit CameraFolderView(QWidget* const parent);
52
void addVirtualFolder(const QString& name, const QPixmap& pixmap = SmallIcon("camera-photo"));
53
void addRootFolder(const QString& folder, int nbItems = -1, const QPixmap& pixmap = SmallIcon("folder"));
55
CameraFolderItem* addFolder(const QString& folder, const QString& subFolder, int nbItems,
56
const QPixmap& pixmap = SmallIcon("folder"));
58
CameraFolderItem* findFolder(const QString& folderPath);
60
CameraFolderItem* virtualFolder() const;
61
CameraFolderItem* rootFolder() const;
67
void signalFolderChanged(CameraFolderItem*);
72
void slotCurrentChanged(QTreeWidgetItem*, int);
80
} // namespace Digikam
82
#endif /* CAMERAFOLDERVIEW_H */