Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2008/10/02 13:21:11 $
- Version: $Revision: 1.20 $
+ 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
//================================================================
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());
}
//================================================================