digiKam
sidebarwidget.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 : base class for sidebar widgets
8
*
9
* Copyright (C) 2009 by Johannes Wienke <languitar at semipol dot de>
10
* Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
*
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)
16
* any later version.
17
*
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.
22
*
23
* ============================================================ */
24
25
#ifndef DIGIKAM_SIDE_BAR_WIDGET_H
26
#define DIGIKAM_SIDE_BAR_WIDGET_H
27
28
// QT includes
29
30
#include <QPixmap>
31
#include <QWidget>
32
33
// Local includes
34
35
#include "
album.h
"
36
#include "
iteminfo.h
"
37
#include "
statesavingobject.h
"
38
39
namespace
Digikam
40
{
41
45
class
SidebarWidget
:
public
QWidget,
public
StateSavingObject
46
{
47
Q_OBJECT
48
49
public
:
50
56
explicit
SidebarWidget
(QWidget*
const
parent);
57
61
~SidebarWidget
()
override
;
62
69
virtual
void
setActive
(
bool
active) = 0;
70
75
virtual
void
applySettings
() = 0;
76
81
virtual
void
changeAlbumFromHistory
(
const
QList<Album*>
& album) = 0;
82
89
virtual
const
QIcon
getIcon
() = 0;
90
96
virtual
const
QString
getCaption
() = 0;
97
98
Q_SIGNALS:
99
104
void
requestActiveTab
(
SidebarWidget
*);
105
109
void
signalNotificationError
(
const
QString& message,
int
type);
110
};
111
112
}
// namespace Digikam
113
114
#endif
// DIGIKAM_SIDE_BAR_WIDGET_H
album.h
Digikam::SidebarWidget
Definition:
sidebarwidget.h:46
Digikam::SidebarWidget::signalNotificationError
void signalNotificationError(const QString &message, int type)
Digikam::SidebarWidget::requestActiveTab
void requestActiveTab(SidebarWidget *)
Digikam::SidebarWidget::applySettings
virtual void applySettings()=0
Digikam::SidebarWidget::getCaption
virtual const QString getCaption()=0
Digikam::SidebarWidget::~SidebarWidget
~SidebarWidget() override
Definition:
sidebarwidget.cpp:36
Digikam::SidebarWidget::getIcon
virtual const QIcon getIcon()=0
Digikam::SidebarWidget::setActive
virtual void setActive(bool active)=0
Digikam::SidebarWidget::SidebarWidget
SidebarWidget(QWidget *const parent)
Definition:
sidebarwidget.cpp:30
Digikam::SidebarWidget::changeAlbumFromHistory
virtual void changeAlbumFromHistory(const QList< Album * > &album)=0
Digikam::StateSavingObject
Definition:
statesavingobject.h:76
QList< Album * >
iteminfo.h
Digikam
Definition:
datefolderview.cpp:43
statesavingobject.h
core
app
views
sidebar
sidebarwidget.h
Generated by
1.9.1