Program: bbtk
Module: $RCSfile: bbtkWxConsole.h,v $
Language: C++
- Date: $Date: 2008/03/07 11:37:48 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/03/19 14:58:13 $
+ Version: $Revision: 1.10 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace bbtk
{
- class WxTextCtrlStreamRedirector;
+ class WxStreamRedirector;
/// A console in which user can enter commands
class BBTK_EXPORT WxConsole : public wxFrame
{ mInterpreter->SetDialogMode(t); }
/// Runs the interpretation of a file
- void InterpretFile( const std::string& filename)
- { mInterpreter->InterpretFile(filename); }
+ void InterpretFile( const std::string& filename);
+
void OnMenuQuit(wxCommandEvent& event);
void OnMenuAbout(wxCommandEvent& event);
+ void OnMenuEditConfig(wxCommandEvent& WXUNUSED(event));
void OnMenuCreatePackage(wxCommandEvent& WXUNUSED(event));
void OnMenuCreateBlackBox(wxCommandEvent& WXUNUSED(event));
void OnMenuShowImageGraph(wxCommandEvent& WXUNUSED(event));
+ void OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event));
void OnBtnGo(wxCommandEvent& event);
void OnCommandEnter(wxCommandEvent& event);
void ShowHtmlPage(std::string&);
private:
+ wxAuiManager m_mgr;
Interpreter* mInterpreter;
wxTextCtrl* mwxTextHistory;
//EED wxTextCtrl* mwxTextCommand;
//EED wxNotebook* mwxNotebook;
wxAuiNotebook* mwxNotebook;
wxPanel *mwxPageCommand, *mwxPageHelp;
- WxTextCtrlStreamRedirector* mRedirect_cout;
- WxTextCtrlStreamRedirector* mRedirect_cerr;
+ WxStreamRedirector* mRedirect_cout;
+ WxStreamRedirector* mRedirect_cerr;
WxBrowser* mwxHtmlWindow;
// static WxConsole* mInstance;
wxPanel* CreateBtnsCtrlPanel(wxWindow *parent);
void CommandString(wxString line );
-
public:
enum
{
ID_Menu_Quit = 1,
ID_Menu_About,
+ ID_Menu_EditConfig,
ID_Menu_CreatePackage,
ID_Menu_CreateBlackBox,
ID_Menu_ShowImageGraph,
+ ID_Menu_CreateIndex,
ID_Text_Command,
ID_Text_History,