From c45f423f1651604791cabe22ace510463b68ec29 Mon Sep 17 00:00:00 2001 From: guigues Date: Tue, 18 Mar 2008 13:50:43 +0000 Subject: [PATCH] *** empty log message *** --- kernel/src/bbtkWxEditor.cxx | 6 +++--- kernel/src/bbtkWxEditor.h | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/src/bbtkWxEditor.cxx b/kernel/src/bbtkWxEditor.cxx index ea1660a..f36e5fa 100644 --- a/kernel/src/bbtkWxEditor.cxx +++ b/kernel/src/bbtkWxEditor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxEditor.cxx,v $ Language: C++ - Date: $Date: 2008/03/18 12:51:26 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/03/18 13:50:43 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -449,7 +449,7 @@ namespace bbtk WxEditorWindow::WxEditorWindow( wxWindow *parent, wxString title, wxSize size) : wxFrame((wxFrame *)parent, -1, title, wxDefaultPosition, size) { - WxEditor* mEditor = new WxEditor(this); + mEditor = new WxEditor(this); //wxFlexGridSizer *sizer= new wxFlexGridSizer(2); wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); diff --git a/kernel/src/bbtkWxEditor.h b/kernel/src/bbtkWxEditor.h index d20fc95..e21d2f6 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 12:51:26 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/03/18 13:50:43 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -109,6 +109,10 @@ namespace bbtk public: WxEditorWindow( wxWindow *parent, wxString title, wxSize size); ~WxEditorWindow(); + void Open(const std::string& filename) { mEditor->Open(filename); } + private : + + WxEditor* mEditor; }; } // namespace bbtk -- 2.47.1