From 0bd696babe5e4b50101ee8f454bcb5bdf06b163e Mon Sep 17 00:00:00 2001 From: guigues Date: Mon, 6 Oct 2008 10:30:10 +0000 Subject: [PATCH] bbStudio : make index works. --- kernel/src/bbtkWxGUIScriptingInterface.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kernel/src/bbtkWxGUIScriptingInterface.cxx b/kernel/src/bbtkWxGUIScriptingInterface.cxx index 6ae91c6..5678db4 100644 --- a/kernel/src/bbtkWxGUIScriptingInterface.cxx +++ b/kernel/src/bbtkWxGUIScriptingInterface.cxx @@ -3,8 +3,8 @@ 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 @@ -434,6 +434,7 @@ namespace bbtk //================================================================ void WxGUIScriptingInterface::OnMenuCreateIndex(wxCommandEvent& WXUNUSED(event)) { + /* std::string doc_path = ConfigurationFile::GetInstance().Get_doc_path(); std::string filepath = doc_path+"/bbdoc/make-index.bbs"; @@ -448,7 +449,15 @@ namespace bbtk 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 '"<