+// typedef wxTextCtrl WxTextCtrlGettingKeyEvents;
+ class WxGUITextEditor;
+
+
+ /// Abstract class which defines the callbacks invoked by WxGUITextEditor
+ class BBTK_EXPORT WxGUITextEditorUser
+ {
+ public:
+ WxGUITextEditorUser() {}
+ virtual ~WxGUITextEditorUser() {}
+ /// Callback invoked when the 'run' button is pressed
+ virtual void WxGUITextEditorRun() {}
+ };
+
+ //================================================================
+ class WxGUITextEditorPage : public wxPanel
+ {
+ public:
+ WxGUITextEditorPage(wxWindow* parent, WxGUITextEditor* editor);
+ ~WxGUITextEditorPage();
+
+ void SetPageName(const std::string& name) { mName = name; }
+ const std::string& GetPageName() const { return mName; }
+
+ bool AskFilename() const { return mAskFilename; }
+ void SetAskFilename(bool a) { mAskFilename=a; }
+
+ WxTextCtrlGettingKeyEvents* GetTextCtrl() { return mwxInputText; }
+
+ void Load(const std::string& filename);
+ void Save(const std::string& filter);
+
+ bool IsModified(); //{ return mwxInputText->IsModified(); }
+
+ std::string GetText();