2002-09-24 13:57:09 +00:00
|
|
|
// -*- C++ -*-
|
2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QSearchDialog.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-19 13:25:15 +00:00
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
2002-09-24 13:57:09 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QSEARCHDIALOG_H
|
|
|
|
#define QSEARCHDIALOG_H
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "ui/QSearchDialogBase.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
#include "LString.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
class QSearch;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QCloseEvent;
|
2001-08-31 02:34:10 +00:00
|
|
|
class QComboBox;
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QSearchDialog : public QSearchDialogBase {
|
|
|
|
Q_OBJECT
|
2001-08-19 13:25:15 +00:00
|
|
|
public:
|
2001-08-31 02:34:10 +00:00
|
|
|
QSearchDialog(QSearch * form);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-09-11 17:42:45 +00:00
|
|
|
virtual void show();
|
2001-08-31 02:34:10 +00:00
|
|
|
protected slots:
|
|
|
|
void findChanged();
|
|
|
|
void findClicked();
|
|
|
|
void replaceClicked();
|
|
|
|
void replaceallClicked();
|
2001-08-19 13:25:15 +00:00
|
|
|
protected:
|
2002-09-11 17:42:45 +00:00
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
2001-08-19 13:25:15 +00:00
|
|
|
|
|
|
|
private:
|
2001-08-31 02:34:10 +00:00
|
|
|
// add a string to the combo if needed
|
2002-01-25 19:34:22 +00:00
|
|
|
void remember(string const & find, QComboBox & combo);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
QSearch * form_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QSEARCHDIALOG_H
|