X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIConsole.h;h=e686d7791fa0989b1f2c3cdd73c4f857e3b59cf2;hb=e6b2de923e0e69c303c7d18fb8a5c1970541bb3a;hp=1e245e14e9171f4f2c824b3d8f4c4db7a90fdf93;hpb=28300312b87bd50ca689d497c5a500ad4d343d5d;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIConsole.h b/kernel/src/bbtkWxGUIConsole.h index 1e245e1..e686d77 100644 --- a/kernel/src/bbtkWxGUIConsole.h +++ b/kernel/src/bbtkWxGUIConsole.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUIConsole.h,v $ Language: C++ - Date: $Date: 2008/03/20 09:51:29 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/04/24 12:56:39 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -63,9 +63,9 @@ namespace bbtk /// Returns the Interpreter used /// ONLY ONE FOR THE MOMENT BUT IN THE FUTURE CAN BE DIFFERENT /// (DIFFERENT WORKSPACES) - Interpreter* GetInterpreter() { return mInterpreter; } + //Interpreter::Pointer GetInterpreter() { return mInterpreter; } /// Returns the Interpreter used (const) - const Interpreter* GetInterpreter() const { return mInterpreter; } + Interpreter::Pointer GetInterpreter() const { return mInterpreter; } /// Sets the inputs of the workspace : /// the map is passed as is to the Executer @@ -76,7 +76,7 @@ namespace bbtk /// which creates but does not execute pipelines. void SetNoExecMode(bool b) { mInterpreter->SetNoExecMode(b); } - void SetDialogMode(Interpreter::DialogModeType t) + void SetDialogMode(Interpreter::DialogModeType t) { mInterpreter->SetDialogMode(t); } /// Runs the interpretation of a file @@ -90,6 +90,7 @@ namespace bbtk void OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event)); void OnMenuCreateBlackBox(wxCommandEvent& WXUNUSED(event)); void OnMenuShowImageGraph(wxCommandEvent& WXUNUSED(event)); + void OnMenuShowHTMLDoc(wxCommandEvent& WXUNUSED(event)); void OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event)); @@ -102,9 +103,14 @@ namespace bbtk // WxGUICommand callbacks void WxGUICommandEnter(const std::string&); + + // Overloaded Show method to handle bbtk::Wx::TopWindow auto-destruction + virtual bool Show(bool show = true); + + private: wxAuiManager m_mgr; - Interpreter* mInterpreter; + Interpreter::Pointer mInterpreter; //EED wxNotebook* mwxNotebook; @@ -118,8 +124,9 @@ namespace bbtk wxButton* mwxButtonRun; public: - - + + // Callback invoked by bbtk top window when something changes + void OnWxSignal(); DECLARE_EVENT_TABLE() };