X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FbbEditor%2FbbEditor.cxx;fp=appli%2FbbEditor%2FbbEditor.cxx;h=517b72de9cb1c0d6271d07bae66da72a81a74906;hb=36a0d24cb1d01a0f0c6010a18ec09874e6331fd5;hp=a54c317866873917dfa1a4c35694517103c7271a;hpb=3cf9e69646c27f2c77bbf4ddb657d34deffbe386;p=bbtkGEditor.git diff --git a/appli/bbEditor/bbEditor.cxx b/appli/bbEditor/bbEditor.cxx index a54c317..517b72d 100644 --- a/appli/bbEditor/bbEditor.cxx +++ b/appli/bbEditor/bbEditor.cxx @@ -36,6 +36,24 @@ #include +#include "vtkOutputWindow.h" + +class vtkOutputWindowbbGEditor : public vtkOutputWindow +{ +public: + vtkOutputWindowbbGEditor() {} + static vtkOutputWindowbbGEditor* New() { return new vtkOutputWindowbbGEditor;} + virtual void DisplayDebugText (const char *) {} + virtual void DisplayText (const char *) {} + virtual void DisplayErrorText (const char *) {} + virtual void DisplayWarningText (const char *) {} + virtual void DisplayGenericWarningText (const char *) {} +protected: +}; + + + + static const wxCmdLineEntryDesc cmdLineDesc[] = { { wxCMD_LINE_PARAM, NULL, NULL, _T("file"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, @@ -98,6 +116,12 @@ bool wxBBEditorApp::OnCmdLineParsed(wxCmdLineParser& parser) // main frame bool wxBBEditorApp::OnInit( ) { + + vtkOutputWindowbbGEditor *vtkoutputwindowbbgeditor= vtkOutputWindowbbGEditor::New(); + vtkOutputWindow::SetInstance( vtkoutputwindowbbgeditor ); + vtkoutputwindowbbgeditor->Delete(); + + #ifdef MACOSX /* assume this is OSX */ wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1);