https://github.com/jrincayc/ucblogo-code
Revision 6f3ff957f9a17c23c9a6b987efd1bb093f814296 authored by chou86_e on 23 August 2008, 18:46:24 UTC, committed by chou86_e on 23 August 2008, 18:46:24 UTC
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@183 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
1 parent c38d89e
Tip revision: 6f3ff957f9a17c23c9a6b987efd1bb093f814296 authored by chou86_e on 23 August 2008, 18:46:24 UTC
Save/restore possible user print_string{ptr,len} around Logo's uses
Save/restore possible user print_string{ptr,len} around Logo's uses
Tip revision: 6f3ff95
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()
};
Computing file changes ...