digiKam
searchwindow.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 : 2008-01-20
7  * Description : User interface for searches
8  *
9  * Copyright (C) 2008-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
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_SEARCH_WINDOW_H
25 #define DIGIKAM_SEARCH_WINDOW_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 
31 namespace Digikam
32 {
33 
34 class SearchWindow : public QWidget
35 {
36  Q_OBJECT
37 
38 public:
39 
43  SearchWindow();
44 
45  ~SearchWindow() override;
46 
51  void readSearch(int id, const QString& query);
52 
57  void reset();
58 
62  QString search() const;
63 
64 Q_SIGNALS:
65 
70  void searchEdited(int id, const QString& query);
71 
72 protected Q_SLOTS:
73 
74  void searchOk();
75  void searchCancel();
76  void searchTryout();
77 
78 protected:
79 
80  void keyPressEvent(QKeyEvent*) override;
81 
82 private:
83 
84  // Disable
85  SearchWindow(QWidget*) = delete;
86 
87 private:
88 
89  class Private;
90  Private* const d;
91 };
92 
93 } // namespace Digikam
94 
95 #endif // DIGIKAM_SEARCH_WINDOW_H
Definition: searchwindow.h:35
void searchTryout()
Definition: searchwindow.cpp:186
void searchOk()
Definition: searchwindow.cpp:166
void searchEdited(int id, const QString &query)
~SearchWindow() override
Definition: searchwindow.cpp:136
void readSearch(int id, const QString &query)
Definition: searchwindow.cpp:145
void reset()
Definition: searchwindow.cpp:153
void keyPressEvent(QKeyEvent *) override
Definition: searchwindow.cpp:192
QString search() const
Definition: searchwindow.cpp:161
SearchWindow()
Definition: searchwindow.cpp:71
void searchCancel()
Definition: searchwindow.cpp:173
Definition: datefolderview.cpp:43