Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/04/22 09:40:10 $
- Version: $Revision: 1.63 $
+ Date: $Date: 2008/04/25 07:33:17 $
+ Version: $Revision: 1.64 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
InterpretLine(line, insideComment);
}
CATCH_MACRO;
- /*
- catch (QuitException e)
- {
- status = Interpreter_QUIT;
- }
- catch (bbtk::Exception e)
- {
- std::cerr << "* ERROR : "<<e.GetMessage()<<std::endl;
- status = Interpreter_ERROR;
- }
- catch (std::exception& e)
- {
- std::cerr << "* ERROR : "<<e.what()<<" (not in bbtk)"<<std::endl;
- status = Interpreter_ERROR;
- }
- catch (...)
- {
- std::cerr
- << "* UNDEFINED ERROR (not a bbtk nor a std exception)"<<std::endl;
- status = Interpreter_ERROR;
- }
- */
+
bbtkDebugMessage("Interpreter",9,"EO Interpreter::InterpretLine()"
<<std::endl);
if (Object::GetObjectsCount()>0)
{
std::cout << std::endl;
- std::cout << "************************ WARNING ********************"
+ std::cout << "**************************** WARNING ********************"
<<std::endl;
std::cout << "**** "<< Object::GetObjectsCount()
<<" bbtk objects still alive after main ended"<<std::endl;
std::cout << "**** "
- <<"Rerun with -M option to view the object list "
+ <<"Rerun bbi with -M option or put 'object -S' in bbs file"
<<std::endl;
- std::cout << "*****************************************************"
+ std::cout << "**** "
+ <<"to view the object list "
+ <<std::endl;
+ std::cout << "*********************************************************"
<<std::endl;
}
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2008/04/24 10:11:28 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/04/25 07:33:17 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
mWxGUICommand->SetFocus();
+ /*
-
+ mwxNotebook = new wxAuiNotebook(this,
+ -1,
+ wxPoint(0, 0),
+ wxSize(500,500),
+ wxAUI_NB_TAB_SPLIT
+ | wxAUI_NB_TAB_MOVE
+ | wxAUI_NB_TAB_EXTERNAL_MOVE
+ //| wxAUI_NB_WINDOWLIST_BUTTON
+ //|wxAUI_NB_SCROLL_BUTTONS
+ // | wxAUI_NB_CLOSE_BUTTON
+ //| wxAUI_NB_CLOSE_ON_ACTIVE_TAB
+ //| wxAUI_NB_CLOSE_ON_ALL_TABS
+ | wxNO_BORDER);
+ */
//
m_mgr.AddPane(mWxGUITextEditor,
wxAuiPaneInfo().Name(wxT("editor_content"))
.MaximizeButton(true)
.Center()
.MinSize(wxSize(100,100))
- );
+ );
+
m_mgr.AddPane(mWxGUIHtmlBrowser,
wxAuiPaneInfo().Name(wxT("browser_content"))
.Caption(wxT("Help"))
.MinimizeButton(true)
.MaximizeButton(true)
.Right()
- .MinSize(wxSize(100,100))
+ .MinSize(wxSize(200,100))
);
+
m_mgr.AddPane(mWxGUIOutputMessages,
wxAuiPaneInfo().Name(wxT("messages_content"))
.Caption(wxT("Messages"))
//================================================================
#define CATCH_MACRO \
+ catch (QuitException e) \
+ { \
+ std::cout << "* quit exception caught"<<std::endl; \
+ } \
catch (InterpreterError e) \
{ \
std::cerr << "* IERROR : "<<e.GetMessage()<<std::endl; \
(*buf) << mWxGUITextEditor->GetCurrentPage()->GetText();
try
{
+ std::cout << "RUN"<<std::endl;
if (mwxMenuItemReset->IsChecked()) WxGUICommandEnter("reset");
mInterpreter->InterpretBuffer(buf);
+ std::cout << "EO RUN"<<std::endl;
}
- CATCH_MACRO
+ CATCH_MACRO;
+ std::cout << "EO RUN 3"<<std::endl;
}
//================================================================
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:16 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/04/25 07:33:17 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
private:
wxAuiManager m_mgr;
Interpreter::Pointer mInterpreter;
+
+ wxAuiNotebook* mwxNotebook;
//EED wxNotebook* mwxNotebook;
connect refreshViewerOut.Out viewer.RefreshSlicer2
connect runButton.BoxChange refreshViewerOut.In1
-#QUIT
- set quitButton.Label "Quit"
- set quitButton.In "quit"
-
#SAVE
new ImageWriter writer
new CommandButton paramWindowCloseButton
set paramWindowCloseButton.Label "Close"
connect paramWindowCloseButton.Widget paramWindow.Widget2
- connect paramWindowCloseButton.BoxChange paramWindow.WinHide
+ new MultipleInputs paramWindowHide
+ connect paramWindowHide.Out paramWindow.WinHide
+ connect paramWindowCloseButton.BoxChange paramWindowHide.In1
connect paramButton.BoxChange paramWindow.BoxExecute
+#QUIT
+ set quitButton.Label "Quit"
+ connect quitButton.BoxChange mainWindow.WinHide
+ connect quitButton.BoxChange paramWindowHide.In2
+# set quitButton.In "set mainWindow.WinHide '1'"
+
+
# INPUTS / OUTPUTS
new anyItkImagePointerRelay imageOut