https://github.com/jrincayc/ucblogo-code
Revision e68ea02e3e2b2413913210cef780354745b77842 authored by Barak A. Pearlmutter on 22 July 2020, 16:21:55 UTC, committed by Barak A. Pearlmutter on 22 July 2020, 19:36:15 UTC
1 parent 7286a4a
Raw File
Tip revision: e68ea02e3e2b2413913210cef780354745b77842 authored by Barak A. Pearlmutter on 22 July 2020, 16:21:55 UTC
Jigger ./configure --enable/disable-objects
Tip revision: e68ea02
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