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
/// 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
/// 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
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));
// 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;
wxButton* mwxButtonRun;
public:
-
-
+
+ // Callback invoked by bbtk top window when something changes
+ void OnWxSignal();
DECLARE_EVENT_TABLE()
};