https://github.com/jrincayc/ucblogo-code
Revision a7d2a824aff2bd141e627200489d21b46d04fe0a authored by Barak A. Pearlmutter on 22 July 2020, 11:35:34 UTC, committed by Barak A. Pearlmutter on 22 July 2020, 19:36:15 UTC
1 parent 9d825e1
Raw File
Tip revision: a7d2a824aff2bd141e627200489d21b46d04fe0a authored by Barak A. Pearlmutter on 22 July 2020, 11:35:34 UTC
update configure.ac
Tip revision: a7d2a82
TextEditor.h
#include <wx/fdrepdlg.h>



class TextEditor : public wxTextCtrl{
	
public:
	TextEditor(wxWindow* const, int, wxString, const wxPoint&, const wxSize&, int, wxFont font);
	void OnSave();
	void OnFind();
	void OnFindNext();
	void DoPaste();
	void DoCopy();
	void DoCut();
	void DoPrint();
	void OnCloseAccept();
	void OnCloseReject();
	bool Load(const wxString& filename);
	void SetFont(wxFont font);
	void SetThisFont(wxCommandEvent&);
	
	int stateFlag;
	int doSave;
	
private:    
	wxFindReplaceDialog *findDlg;
	wxFindReplaceData *findData;
	wxString *prevFind;
	wxFont font;
	
	void OnCloseEvent(wxCloseEvent& event);
	void OnFindDialog(wxFindDialogEvent& event);
	void Close();
	int Find (const wxString & sSearch, int start);
	wxString file;
	
	
	DECLARE_EVENT_TABLE()
		
};
back to top