digiKam
textfilter.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 : 2011-02-23
7  * Description : a widget to filter album contents by text query
8  *
9  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_TEXT_FILTER_H
25 #define DIGIKAM_TEXT_FILTER_H
26 
27 // Local includes
28 
29 #include "dlayoutbox.h"
30 #include "searchtextbar.h"
31 #include "itemfiltersettings.h"
32 
33 class QAction;
34 
35 namespace Digikam
36 {
37 
38 class SearchTextBar;
39 
40 class TextFilter : public DHBox
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit TextFilter(QWidget* const parent);
47  ~TextFilter() override;
48 
50 
51  void reset();
52 
55 
56 Q_SIGNALS:
57 
59 
60 private Q_SLOTS:
61 
62  void slotSearchTextFieldsChanged();
63  void slotSearchFieldsChanged(QAction*);
64 
65 private:
66 
67  void checkMenuActions(bool checked);
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace Digikam
76 
77 #endif // DIGIKAM_TEXT_FILTER_H
Definition: dlayoutbox.h:45
Definition: searchtextbar.h:65
Definition: itemfiltersettings.h:61
TextFilterFields
Definition: itemfiltersettings.h:66
Definition: textfilter.h:41
SearchTextBar * searchTextBar() const
Definition: textfilter.cpp:128
SearchTextFilterSettings::TextFilterFields searchTextFields()
Definition: textfilter.cpp:133
void reset()
Definition: textfilter.cpp:213
void setsearchTextFields(SearchTextFilterSettings::TextFilterFields fields)
Definition: textfilter.cpp:169
~TextFilter() override
Definition: textfilter.cpp:123
TextFilter(QWidget *const parent)
Definition: textfilter.cpp:76
void signalSearchTextFilterSettings(const SearchTextFilterSettings &)
Definition: datefolderview.cpp:43