https://github.com/jrincayc/ucblogo-code
Revision b1cef70c044c0e8f316241c9bbe213b5716a2c14 authored by Dan Malec on 09 January 2021, 21:13:17 UTC, committed by Dan Malec on 09 January 2021, 21:13:17 UTC
* wxWidgets ignores EDITOR env var to preserve existing behavior as default * If SETEDITOR is used to set an EDITOR, wxWidgets will attempt to launch it for edit commands * If things go awry, EDIT will show the exec'd command in a file error message
1 parent b4a612f
Tip revision: b1cef70c044c0e8f316241c9bbe213b5716a2c14 authored by Dan Malec on 09 January 2021, 21:13:17 UTC
ISSUE-31: Support external editors in wxWidgets builds.
ISSUE-31: Support external editors in wxWidgets builds.
Tip revision: b1cef70
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()
};
Computing file changes ...