Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/03/10 06:24:12 $
-Version: $Revision: 1.29 $
+Date: $Date: 2008/03/11 12:27:21 $
+Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
//===================================================================
void Factory::Reset()
{
+ /*
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n");
+ */
bbtkDebugMessageInc("Kernel",7,"Factory::Reset()"<<std::endl);
CloseAllPackages();
bbtkDebugDecTab("Kernel",7);
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/03/10 06:24:13 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2008/03/11 12:27:21 $
+ Version: $Revision: 1.43 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
try
{
SwitchToFile(filename);
-
-printf("EED Interpreter::InterpretFile 0001\n" );
+ /*
+ printf("EED Interpreter::InterpretFile 0001\n" );
int ii,ssize = mFileName.size();
for (ii=0;ii<ssize;ii++)
{
- printf("EED RRR Interpreter::InterpretFile %s\n", mFileName[ii].c_str() );
+ printf("EED RRR Interpreter::InterpretFile %s\n", mFileName[ii].c_str() );
}
-
+ */
bool insideComment = false; // for multiline comment
while (mFile.size()>0)
{
-printf("EED --- %s --- Interpreter::InterpretFile \n", mFileName[0].c_str() );
+ //printf("EED --- %s --- Interpreter::InterpretFile \n", mFileName[0].c_str() );
while ((mFile.size()>0) &&
(!mFile.back()->eof()))
-//EED3 (!mFile[0]->eof()))
{
mLine.back()++;
char buf[500];
mFile.back()->getline(buf,500);
-//EED3 mFile[0]->getline(buf,500);
-
std::string str(buf);
int size=str.length();
if ( str[ size-1 ]==13 )
}
InterpretLine(str, insideComment);
-printf("EED Interpreter::InterpretFile %s\n", str.c_str() );
+ //printf("EED Interpreter::InterpretFile %s\n", str.c_str() );
}
//if (mFile.size()>0)
CloseCurrentFile();
//EED printf(" EED %d Interpreter::LoadScript %s __>>__ %s\n", iStrScript,mFileName[iStrScript].c_str(),fullPathScriptName.c_str() );
if (mFileName[iStrScript] == fullPathScriptName )
{
- printf(" EED %d Interpreter::LoadScript iguales\n",iStrScript );
+ // printf(" EED %d Interpreter::LoadScript iguales\n",iStrScript );
okScriptExist=true;
} // if
} // for
//========================================================================
WxBrowser::WxBrowser ( wxWindow *parent, wxSize size )
:
- wxPanel ( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
+ wxPanel ( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL),
+ mWxConsole(0)
{
wxPanel* panel = this;
&& (filename[s-3]=='b')
&& (filename[s-4]=='.'))
{
+ std::cout << "stat"<<std::endl;
if (C!=0) C->SetStatusText(_T("Executing ")+mwxURL->GetValue());
+ std::cout << "int"<<std::endl;
I->InterpretFile(filename);
+ std::cout << "eoint"<<std::endl;
}
else
{
Program: bbtk
Module: $RCSfile: bbtkWxConsole.cxx,v $
Language: C++
- Date: $Date: 2008/03/10 12:28:43 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2008/03/11 12:27:21 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//================================================================
void WxConsole::CommandString(wxString line )
{
-printf("WxConsole::CommandString 01 \n");
+ //printf("WxConsole::CommandString 01 \n");
wxString s = _T("> ") + line + _T("\n");
mwxTextHistoryAttr->SetTextColour(*wxRED);
mwxTextHistory->SetDefaultStyle(*mwxTextHistoryAttr);
mwxTextHistory->AppendText(s);
// send to standard console also
-printf("WxConsole::CommandString 02 \n");
- printf("%s",wx2std(s).c_str());
+ //printf("WxConsole::CommandString 02 \n");
+ // printf("%s",wx2std(s).c_str());
//EED mwxTextCommand->Clear();
mwxTextCommand->SetValue(_T(""));
mwxTextCommand->Append(line);
mwxTextHistoryAttr->SetTextColour(*wxBLACK);
mwxTextHistory->SetDefaultStyle(*mwxTextHistoryAttr);
-printf("WxConsole::CommandString 03 \n");
+ //printf("WxConsole::CommandString 03 \n");
try
{
bool insideComment = false;
-printf("WxConsole::CommandString 04 \n");
+ //printf("WxConsole::CommandString 04 \n");
mInterpreter->InterpretLine( wx2std(line), insideComment );
-printf("WxConsole::CommandString 05 \n");
+ //printf("WxConsole::CommandString 05 \n");
}
catch (bbtk::QuitException)
{
std::cout << "* UNDEFINED ERROR (not a bbtk nor a std exception)"
<< std::endl;
}
-printf("WxConsole::CommandString 06 \n");
+ //printf("WxConsole::CommandString 06 \n");
}
//================================================================