Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2008/09/15 09:27:56 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2008/10/06 10:30:10 $
+ Version: $Revision: 1.21 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
} \
catch (InterpreterError e) \
{ \
- std::cerr << "* IERROR : "<<e.GetMessage()<<std::endl; \
+ std::cerr << "* IERROR : "<<e.GetErrorMessage()<<std::endl; \
if (e.IsInScriptFile()) \
std::cerr << "* FILE : '"<<e.GetScriptFile()<<"'"<<std::endl; \
std::cerr << "* LINE : "<<e.GetScriptLine()<<std::endl; \
//================================================================
void WxGUIScriptingInterface::OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event))
{
+ /*
std::string doc_path = ConfigurationFile::GetInstance().Get_doc_path();
std::string filepath = doc_path+"/bbdoc/make-index.bbs";
I->InterpretLine( "index "+doc_path+"/bbdoc/index-package.html Packages");
I->InterpretLine( "index "+doc_path+"/bbdoc/index-category.html Categories");
I->InterpretLine( "index "+doc_path+"/bbdoc/index-adaptors.html Adaptors");
-
+ */
+ std::string command("cd \"");
+ command += ConfigurationFile::GetInstance().Get_doc_path();
+ command += ConfigurationFile::GetInstance().Get_file_separator() + "bbdoc\" && \"";
+ command += ConfigurationFile::GetInstance().Get_bin_path();
+ command += ConfigurationFile::GetInstance().Get_file_separator() + "bbi\" -N -q .";
+ command += ConfigurationFile::GetInstance().Get_file_separator() + "make-index.bbs";
+ bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
+ system(command.c_str());
}
//================================================================