https://github.com/jrincayc/ucblogo-code
Revision 40db9a3b2da5c747a45ad9982d6697d786c09b3e authored by chou86_e on 03 February 2008, 22:09:57 UTC, committed by chou86_e on 03 February 2008, 22:09:57 UTC

git-svn-id: https://svn.code.sf.net/p/ucblogo/code@58 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent e4a62f9
Raw File
Tip revision: 40db9a3b2da5c747a45ad9982d6697d786c09b3e authored by chou86_e on 03 February 2008, 22:09:57 UTC
Waiting for input in wx smoother (does not use fudge factor)
Tip revision: 40db9a3
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);
	
	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