mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
d2b2aa8124
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14277 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
979 B
C++
54 lines
979 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QSearchDialog.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QSEARCHDIALOG_H
|
|
#define QSEARCHDIALOG_H
|
|
|
|
#include "ui/QSearchUi.h"
|
|
#include <string>
|
|
|
|
#include <QDialog>
|
|
#include <QCloseEvent>
|
|
|
|
class QCloseEvent;
|
|
class QComboBox;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class QSearch;
|
|
|
|
class QSearchDialog : public QDialog, public Ui::QSearchUi {
|
|
Q_OBJECT
|
|
public:
|
|
QSearchDialog(QSearch * form);
|
|
|
|
virtual void show();
|
|
protected Q_SLOTS:
|
|
void findChanged();
|
|
void findClicked();
|
|
void replaceClicked();
|
|
void replaceallClicked();
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
|
// add a string to the combo if needed
|
|
void remember(std::string const & find, QComboBox & combo);
|
|
|
|
QSearch * form_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // QSEARCHDIALOG_H
|