2004-09-24 20:07:54 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GSearch.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Spray
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GSEARCH_H
|
|
|
|
#define GSEARCH_H
|
|
|
|
|
|
|
|
#include "GViewBase.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class ControlSearch;
|
|
|
|
|
|
|
|
/** This class provides a GTK+ implementation of the FormSearch Dialog.
|
|
|
|
*/
|
2004-09-26 13:18:29 +00:00
|
|
|
class GSearch : public GViewCB<ControlSearch, GViewGladeB> {
|
2004-09-24 20:07:54 +00:00
|
|
|
public:
|
|
|
|
GSearch(Dialog & parent);
|
|
|
|
private:
|
|
|
|
virtual void apply() {}
|
|
|
|
virtual void doBuild();
|
2004-10-03 12:31:38 +00:00
|
|
|
virtual void update();
|
2004-09-26 13:18:29 +00:00
|
|
|
|
2004-09-24 20:07:54 +00:00
|
|
|
void onFindNext();
|
|
|
|
void onReplace();
|
|
|
|
void onReplaceAll();
|
2004-09-26 13:18:29 +00:00
|
|
|
void onFindEntryChanged();
|
|
|
|
|
2004-09-24 20:07:54 +00:00
|
|
|
Gtk::Button * findnextbutton;
|
|
|
|
Gtk::Button * replacebutton;
|
2004-09-26 13:18:29 +00:00
|
|
|
Gtk::Button * replaceallbutton;
|
2004-09-24 20:07:54 +00:00
|
|
|
Gtk::Entry * findentry;
|
|
|
|
Gtk::Entry * replaceentry;
|
|
|
|
Gtk::CheckButton * casecheck;
|
|
|
|
Gtk::CheckButton * matchwordcheck;
|
2004-09-26 13:18:29 +00:00
|
|
|
Gtk::CheckButton * backwardscheck;
|
2004-09-24 20:07:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // GSEARCH_H
|