//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// dlgFindReplace.h - Search and replace
//
//////////////////////////////////////////////////////////////////////////

#ifndef dlgFindReplace_H
#define dlgFindReplace_H

#include "dlg/dlgClasses.h"
#include "ctl/ctlAuiNotebook.h"

class ctlSQLBox;

// Class declarations
class dlgFindReplace : public pgDialog
{
public:
	dlgFindReplace(ctlSQLBox *parent);
	~dlgFindReplace();
	void FocusSearch();
	void FindNext();
	void SetFindString(const wxString &val);

private:

	void OnClose(wxCloseEvent &ev);
	void OnCancel(wxCommandEvent &ev);
	void OnChange(wxCommandEvent &ev);
	void OnFind(wxCommandEvent &ev);
	void OnReplace(wxCommandEvent &ev);
	void OnReplaceAll(wxCommandEvent &ev);
	void ResetTabOrder();
	void SaveSettings();

	ctlSQLBox *sqlbox,*startsqlbox;

	DECLARE_EVENT_TABLE()
};

#endif
