]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearchDialog.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / 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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ui/QSearchDialogBase.h"
20 #include "LString.h"
21
22 class QSearch;
23 class QCloseEvent;
24 class QComboBox;
25
26 class QSearchDialog : public QSearchDialogBase {
27         Q_OBJECT
28 public:
29         QSearchDialog(QSearch * form);
30
31         virtual void show();
32 protected slots:
33         void findChanged();
34         void findClicked();
35         void replaceClicked();
36         void replaceallClicked();
37 protected:
38         virtual void closeEvent(QCloseEvent * e);
39
40 private:
41         // add a string to the combo if needed
42         void remember(string const & find, QComboBox & combo);
43
44         QSearch * form_;
45 };
46
47 #endif // QSEARCHDIALOG_H