digiKam
albumfolderviewsidebarwidget.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2009-12-05
7
* Description : Side Bar Widget for the folder view.
8
*
9
* Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10
* Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* Copyright (C) 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
12
* Copyright (C) 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
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 DIGIKAM_ALBUM_FOLDER_VIEW_SIDE_BAR_WIDGET_H
28
#define DIGIKAM_ALBUM_FOLDER_VIEW_SIDE_BAR_WIDGET_H
29
30
// Local includes
31
32
#include "
albummodel.h
"
33
#include "
albummodificationhelper.h
"
34
#include "
sidebarwidget.h
"
35
36
namespace
Digikam
37
{
38
39
template
<
class
T>
40
class
AlbumPointer;
41
42
class
AlbumFolderViewSideBarWidget
:
public
SidebarWidget
43
{
44
Q_OBJECT
45
46
public
:
47
48
explicit
AlbumFolderViewSideBarWidget
(QWidget*
const
parent,
49
AlbumModel
*
const
model,
50
AlbumModificationHelper
*
const
albumModificationHelper);
51
~AlbumFolderViewSideBarWidget
()
override
;
52
53
void
setActive
(
bool
active)
override
;
54
void
doLoadState
()
override
;
55
void
doSaveState
()
override
;
56
void
applySettings
()
override
;
57
void
changeAlbumFromHistory
(
const
QList<Album*>
& album)
override
;
58
const
QIcon
getIcon
()
override
;
59
const
QString
getCaption
()
override
;
60
61
AlbumPointer<PAlbum>
currentAlbum
()
const
;
62
63
public
Q_SLOTS:
64
65
void
setCurrentAlbum
(
PAlbum
* album);
66
67
Q_SIGNALS:
68
69
void
signalFindDuplicates
(
const
QList<PAlbum*>
& albums);
70
71
private
:
72
73
class
Private;
74
Private*
const
d;
75
};
76
77
}
// namespace Digikam
78
79
#endif
// DIGIKAM_ALBUM_FOLDER_VIEW_SIDE_BAR_WIDGET_H
albummodel.h
albummodificationhelper.h
Digikam::AlbumFolderViewSideBarWidget
Definition:
albumfolderviewsidebarwidget.h:43
Digikam::AlbumFolderViewSideBarWidget::setCurrentAlbum
void setCurrentAlbum(PAlbum *album)
Definition:
albumfolderviewsidebarwidget.cpp:141
Digikam::AlbumFolderViewSideBarWidget::~AlbumFolderViewSideBarWidget
~AlbumFolderViewSideBarWidget() override
Definition:
albumfolderviewsidebarwidget.cpp:101
Digikam::AlbumFolderViewSideBarWidget::doLoadState
void doLoadState() override
Definition:
albumfolderviewsidebarwidget.cpp:114
Digikam::AlbumFolderViewSideBarWidget::AlbumFolderViewSideBarWidget
AlbumFolderViewSideBarWidget(QWidget *const parent, AlbumModel *const model, AlbumModificationHelper *const albumModificationHelper)
Definition:
albumfolderviewsidebarwidget.cpp:69
Digikam::AlbumFolderViewSideBarWidget::applySettings
void applySettings() override
Definition:
albumfolderviewsidebarwidget.cpp:124
Digikam::AlbumFolderViewSideBarWidget::currentAlbum
AlbumPointer< PAlbum > currentAlbum() const
Definition:
albumfolderviewsidebarwidget.cpp:136
Digikam::AlbumFolderViewSideBarWidget::setActive
void setActive(bool active) override
Definition:
albumfolderviewsidebarwidget.cpp:106
Digikam::AlbumFolderViewSideBarWidget::changeAlbumFromHistory
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition:
albumfolderviewsidebarwidget.cpp:131
Digikam::AlbumFolderViewSideBarWidget::getCaption
const QString getCaption() override
Definition:
albumfolderviewsidebarwidget.cpp:152
Digikam::AlbumFolderViewSideBarWidget::getIcon
const QIcon getIcon() override
Definition:
albumfolderviewsidebarwidget.cpp:147
Digikam::AlbumFolderViewSideBarWidget::doSaveState
void doSaveState() override
Definition:
albumfolderviewsidebarwidget.cpp:119
Digikam::AlbumFolderViewSideBarWidget::signalFindDuplicates
void signalFindDuplicates(const QList< PAlbum * > &albums)
Digikam::AlbumModel
Definition:
albummodel.h:40
Digikam::AlbumModificationHelper
Definition:
albummodificationhelper.h:46
Digikam::AlbumPointer
Definition:
albumpointer.h:48
Digikam::PAlbum
Definition:
album.h:357
Digikam::SidebarWidget
Definition:
sidebarwidget.h:46
QList< Album * >
Digikam
Definition:
datefolderview.cpp:43
sidebarwidget.h
core
app
views
sidebar
albumfolderviewsidebarwidget.h
Generated by
1.9.1