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 
105 
109  void signalNotificationError(const QString& message, int type);
110 };
111 
112 } // namespace Digikam
113 
114 #endif // DIGIKAM_SIDE_BAR_WIDGET_H
Definition: sidebarwidget.h:46
void signalNotificationError(const QString &message, int type)
void requestActiveTab(SidebarWidget *)
virtual void applySettings()=0
virtual const QString getCaption()=0
~SidebarWidget() override
Definition: sidebarwidget.cpp:36
virtual const QIcon getIcon()=0
virtual void setActive(bool active)=0
SidebarWidget(QWidget *const parent)
Definition: sidebarwidget.cpp:30
virtual void changeAlbumFromHistory(const QList< Album * > &album)=0
Definition: statesavingobject.h:76
Definition: datefolderview.cpp:43