X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUITextEditor.h;h=e4dd052a77b3d64df7e27f0916f0bbf656438a87;hb=1ae35ab233d889137ae2e0a347f55b960ab4b855;hp=9c0d0d5264fdd98c0dd3505c7d301d70a1d394bd;hpb=6bfa05367895a6a7cdb78e708a080818c314e906;p=bbtk.git diff --git a/kernel/src/bbtkWxGUITextEditor.h b/kernel/src/bbtkWxGUITextEditor.h index 9c0d0d5..e4dd052 100644 --- a/kernel/src/bbtkWxGUITextEditor.h +++ b/kernel/src/bbtkWxGUITextEditor.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUITextEditor.h,v $ Language: C++ - Date: $Date: 2008/03/25 15:47:54 $ - Version: $Revision: 1.4 $ + Date: $Date: 2008/10/03 14:27:52 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -49,7 +49,8 @@ namespace bbtk { class WxTextCtrlGettingKeyEvents; - class WxGUITextEditor; +// typedef wxTextCtrl WxTextCtrlGettingKeyEvents; + class WxGUITextEditor; /// Abstract class which defines the callbacks invoked by WxGUITextEditor @@ -57,7 +58,7 @@ namespace bbtk { public: WxGUITextEditorUser() {} - ~WxGUITextEditorUser() {} + virtual ~WxGUITextEditorUser() {} /// Callback invoked when the 'run' button is pressed virtual void WxGUITextEditorRun() {} }; @@ -114,13 +115,9 @@ namespace bbtk void OnKeyDown(wxKeyEvent& event); void OnKeyUp(wxKeyEvent& event); - void OnButtonNew(wxCommandEvent& event); - void OnButtonOpen(wxCommandEvent& event); - void OnButtonClose(wxCommandEvent& event); - void OnButtonSave(wxCommandEvent& event); - void OnButtonSaveAs(wxCommandEvent& event); - void OnButtonRun(wxCommandEvent& event); - // void OnButtonQuit(wxCommandEvent& event); + void OnToolLeftClick(wxCommandEvent& event); + void OnToolRightClick(wxCommandEvent& event); + void OnPageClose(wxAuiNotebookEvent& evt); void New(); @@ -145,19 +142,12 @@ namespace bbtk private: WxGUITextEditorUser* mUser; - wxAuiManager m_mgr; - wxAuiNotebook* mwxNotebook; +// wxAuiManager m_mgr; +// wxAuiNotebook* + wxNotebook* mwxNotebook; - // Interpreter* mInterpreter; - // wxSplitterWindow* mwxSplit; - - wxButton * mwxButtonNew; - wxButton * mwxButtonOpen; - wxButton * mwxButtonClose; - wxButton * mwxButtonSave; - wxButton * mwxButtonSaveAs; - wxButton * mwxButtonRun; - // wxButton * mwxButtonQuit; + wxToolBar* mwxToolBar; + wxStaticText* mwxPosition; std::string mFileNameFilter;