digiKam
searchfolderview.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 : 2005-05-21
7  * Description : Searches folder view
8  *
9  * Copyright (C) 2005 by Renchi Raju <renchi at pooh dot tam dot uiuc dot edu>
10  * Copyright (C) 2008-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  * Copyright (C) 2009 by Johannes Wienke <languitar at semipol dot de>
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_FOLDER_VIEW_H
28 #define DIGIKAM_SEARCH_FOLDER_VIEW_H
29 
30 // Local includes
31 
32 #include "editablesearchtreeview.h"
33 
34 namespace Digikam
35 {
36 
44 {
45  Q_OBJECT
46 public:
47 
57  NormalSearchTreeView(QWidget* const parent, SearchModel* const searchModel,
58  SearchModificationHelper* const searchModificationHelper);
59 
63  ~NormalSearchTreeView() override;
64 
65 Q_SIGNALS:
66 
70  void newSearch();
71 
77  void editSearch(SAlbum* album);
78 
79 protected:
80 
81  void addCustomContextMenuActions(ContextMenuHelper& cmh, Album* album) override;
82  void handleCustomContextMenuAction(QAction* action, const AlbumPointer<Album>& album) override;
83 
84 private:
85 
86  class Private;
87  Private* d;
88 };
89 
90 } // namespace Digikam
91 
92 #endif // DIGIKAM_SEARCH_FOLDER_VIEW_H
Definition: albumpointer.h:48
Abstract base class for all album types.
Definition: album.h:67
A helper class to add actions and special menus to the context menu.
Definition: contextmenuhelper.h:80
Definition: editablesearchtreeview.h:43
Definition: searchfolderview.h:44
void editSearch(SAlbum *album)
~NormalSearchTreeView() override
Definition: searchfolderview.cpp:71
void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album) override
Definition: searchfolderview.cpp:76
void handleCustomContextMenuAction(QAction *action, const AlbumPointer< Album > &album) override
Definition: searchfolderview.cpp:89
NormalSearchTreeView(QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper)
Definition: searchfolderview.cpp:60
Definition: album.h:493
Definition: albummodel.h:95
Definition: searchmodificationhelper.h:59
Definition: datefolderview.cpp:43