- //================================================================
- 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; }
-
- WxTextCtrlGettingKeyEvents* GetTextCtrl() { return mwxInputText; }
-
- void Load(const std::string& filename);
- void Save(const std::string& filter);
-
- bool IsModified() { return mwxInputText->IsModified(); }
-
- private:
- WxGUITextEditor* mEditor;
- WxTextCtrlGettingKeyEvents* mwxInputText;
- wxTextAttr* mwxInputTextAttr;
- std::string mName;
- bool mAskFilename;
-
- /*
- enum
- {
- ID_InputText
- };
- */
- //DECLARE_EVENT_TABLE();
-
- } ;
- //================================================================