xml-copy-editor-code/src/globalreplacedialog.h

45 lines
1.1 KiB
C
Raw Normal View History

2007-09-07 23:17:30 +02:00
#ifndef GLOBAL_REPLACE_DIALOG_H
#define GLOBAL_REPLACE_DIALOG_H
#include <wx/wx.h>
#include <wx/tipwin.h>
class GlobalReplaceDialog : public wxDialog
{
2007-09-08 00:25:30 +02:00
public:
GlobalReplaceDialog (
wxWindow *parent,
const wxString& findParameter = _T ( "" ),
const wxString& replaceParameter = _T ( "" ),
bool matchCaseParameter = false,
bool allDocumentsParameter = false,
bool regexParameter = true );
2007-09-07 23:17:30 +02:00
~GlobalReplaceDialog();
2007-09-08 00:25:30 +02:00
void OnOk ( wxCommandEvent& e );
void OnContextHelp ( wxHelpEvent& e );
void OnUpdateOk ( wxUpdateUIEvent& event );
2007-09-07 23:17:30 +02:00
wxString getFindString();
wxString getReplaceString();
bool getRegex();
bool getAllDocuments();
bool getMatchCase();
2007-09-08 00:25:30 +02:00
enum constants
{
ID_FIND,
ID_REPLACE,
ID_REGEX,
ID_MATCHCASE,
ID_ALLDOCUMENTS
2007-09-07 23:17:30 +02:00
};
2007-09-08 00:25:30 +02:00
private:
2007-09-07 23:17:30 +02:00
wxTextCtrl *findCtrl, *replaceCtrl;
wxStaticText *findLabel, *replaceLabel;
wxCheckBox *matchCaseBox, *allDocumentsBox, *regexBox;
wxString find, replace;
bool matchCase, allDocuments, regex;
DECLARE_EVENT_TABLE()
};
#endif