digiKam
timelinesidebarwidget.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 time-line 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_TIME_LINE_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_TIME_LINE_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "albummodel.h"
34 #include "sidebarwidget.h"
35 
36 namespace Digikam
37 {
38 
39 template <class T>
40 class AlbumPointer;
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit TimelineSideBarWidget(QWidget* const parent,
49  SearchModel* const searchModel,
50  SearchModificationHelper* const searchModificationHelper);
51  ~TimelineSideBarWidget() 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 private Q_SLOTS:
62 
63  void slotInit();
64  void slotScrollBarValueChanged(int);
65  void slotRefDateTimeChanged();
66  void slotScaleChanged(int);
67  void slotTimeUnitChanged(int);
68  void slotCursorPositionChanged();
69  void slotSelectionChanged();
70  void slotResetSelection();
71  void slotSaveSelection();
72  void slotUpdateCurrentDateSearchAlbum();
73  void slotAlbumSelected(Album*);
74  void slotCheckAboutSelection();
75 
76 private:
77 
78  class Private;
79  Private* const d;
80 };
81 
82 } // namespace Digikam
83 
84 #endif // DIGIKAM_TIME_LINE_SIDE_BAR_WIDGET_H
Abstract base class for all album types.
Definition: album.h:67
Definition: albummodel.h:95
Definition: searchmodificationhelper.h:59
Definition: sidebarwidget.h:46
Definition: timelinesidebarwidget.h:43
TimelineSideBarWidget(QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper)
Definition: timelinesidebarwidget.cpp:120
const QString getCaption() override
Definition: timelinesidebarwidget.cpp:396
const QIcon getIcon() override
Definition: timelinesidebarwidget.cpp:391
void doLoadState() override
Definition: timelinesidebarwidget.cpp:344
void applySettings() override
Definition: timelinesidebarwidget.cpp:381
void doSaveState() override
Definition: timelinesidebarwidget.cpp:368
~TimelineSideBarWidget() override
Definition: timelinesidebarwidget.cpp:304
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: timelinesidebarwidget.cpp:386
void setActive(bool active) override
Definition: timelinesidebarwidget.cpp:324
Definition: datefolderview.cpp:43