X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxEditor.h;h=4505af376636cfdeb45a3279ea0e6888451f7914;hb=6d2f79e0ff9b1c0b2db0d7f3d164f4f62434f08d;hp=e21d2f686cb6ab2447a8111be87c9fc9b2ba2a6b;hpb=c45f423f1651604791cabe22ace510463b68ec29;p=bbtk.git diff --git a/kernel/src/bbtkWxEditor.h b/kernel/src/bbtkWxEditor.h index e21d2f6..4505af3 100644 --- a/kernel/src/bbtkWxEditor.h +++ b/kernel/src/bbtkWxEditor.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxEditor.h,v $ Language: C++ - Date: $Date: 2008/03/18 13:50:43 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/03/19 08:03:59 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -40,6 +40,7 @@ #include "bbtkWx.h" #include "bbtkInterpreter.h" +#include namespace bbtk { @@ -54,7 +55,8 @@ namespace bbtk WxEditor( wxWindow *parent ); ~WxEditor(); - void OnKeyPress(wxKeyEvent& event); + void OnKeyDown(wxKeyEvent& event); + void OnKeyUp(wxKeyEvent& event); void OnButtonNew(wxCommandEvent& event); void OnButtonOpen(wxCommandEvent& event); @@ -71,9 +73,11 @@ namespace bbtk void Quit(); void HighlightSyntax(); - + void UpdatePosition(); + private: Interpreter* mInterpreter; + wxSplitterWindow* mwxSplit; WxTextCtrlGettingKeyEvents* mwxInputText; wxTextAttr* mwxInputTextAttr; WxTextCtrlGettingKeyEvents* mwxOutputText; @@ -83,6 +87,7 @@ namespace bbtk wxButton * mwxButtonSave; wxButton * mwxButtonRun; wxButton * mwxButtonQuit; + wxStaticText* mwxPosition; WxStreamRedirector* mRedirect_cout; WxStreamRedirector* mRedirect_cerr; public: