lyx_mirror/src/frontends/gtk/GSearch.h
John Spray ac89ab9cfe Improve GSearch's sensitivity behaviour on readonly documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9037 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-03 12:31:38 +00:00

51 lines
1.0 KiB
C++

// -*- 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.
*/
class GSearch : public GViewCB<ControlSearch, GViewGladeB> {
public:
GSearch(Dialog & parent);
private:
virtual void apply() {}
virtual void doBuild();
virtual void update();
void onFindNext();
void onReplace();
void onReplaceAll();
void onFindEntryChanged();
Gtk::Button * findnextbutton;
Gtk::Button * replacebutton;
Gtk::Button * replaceallbutton;
Gtk::Entry * findentry;
Gtk::Entry * replaceentry;
Gtk::CheckButton * casecheck;
Gtk::CheckButton * matchwordcheck;
Gtk::CheckButton * backwardscheck;
};
} // namespace frontend
} // namespace lyx
#endif // GSEARCH_H