digiKam
searchsidebarwidget.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 search.
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_SEARCH_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_SEARCH_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "digikam_config.h"
33 #include "albummodel.h"
35 #include "sidebarwidget.h"
36 
37 namespace Digikam
38 {
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit SearchSideBarWidget(QWidget* const parent,
47  SearchModel* const searchModel,
48  SearchModificationHelper* const searchModificationHelper);
49  ~SearchSideBarWidget() override;
50 
51  void setActive(bool active) override;
52  void doLoadState() override;
53  void doSaveState() override;
54  void applySettings() override;
55  void changeAlbumFromHistory(const QList<Album*>& album) override;
56  const QIcon getIcon() override;
57  const QString getCaption() override;
58 
59  void newKeywordSearch();
60  void newAdvancedSearch();
61 
62 private:
63 
64  class Private;
65  Private* const d;
66 };
67 
68 } // namespace Digikam
69 
70 #endif // DIGIKAM_SEARCH_SIDE_BAR_WIDGET_H
Definition: albummodel.h:95
Definition: searchmodificationhelper.h:59
Definition: searchsidebarwidget.h:41
void doLoadState() override
Definition: searchsidebarwidget.cpp:129
void applySettings() override
Definition: searchsidebarwidget.cpp:139
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: searchsidebarwidget.cpp:143
~SearchSideBarWidget() override
Definition: searchsidebarwidget.cpp:115
void newKeywordSearch()
Definition: searchsidebarwidget.cpp:158
SearchSideBarWidget(QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper)
Definition: searchsidebarwidget.cpp:71
void doSaveState() override
Definition: searchsidebarwidget.cpp:134
void newAdvancedSearch()
Definition: searchsidebarwidget.cpp:163
void setActive(bool active) override
Definition: searchsidebarwidget.cpp:120
const QString getCaption() override
Definition: searchsidebarwidget.cpp:153
const QIcon getIcon() override
Definition: searchsidebarwidget.cpp:148
Definition: sidebarwidget.h:46
Definition: datefolderview.cpp:43