]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSearchDialog.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QSearchDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QSearchDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QSEARCHDIALOG_H
13 #define QSEARCHDIALOG_H
14
15 #include "ui/QSearchUi.h"
16 #include <string>
17
18 #include <QDialog>
19 #include <QCloseEvent>
20
21 class QCloseEvent;
22 class QComboBox;
23
24 namespace lyx {
25 namespace frontend {
26
27 class QSearch;
28
29 class QSearchDialog : public QDialog, public Ui::QSearchUi {
30         Q_OBJECT
31 public:
32         QSearchDialog(QSearch * form);
33
34         virtual void show();
35 protected Q_SLOTS:
36         void findChanged();
37         void findClicked();
38         void replaceClicked();
39         void replaceallClicked();
40 protected:
41         virtual void closeEvent(QCloseEvent * e);
42
43 private:
44         // add a string to the combo if needed
45         void remember(std::string const & find, QComboBox & combo);
46
47         QSearch * form_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // QSEARCHDIALOG_H