From b838e74e8b1e67f28442e6394f9220f41a7d546a Mon Sep 17 00:00:00 2001 From: guigues Date: Wed, 8 Oct 2008 10:56:18 +0000 Subject: [PATCH] Created 2 applis : bbRegeneratePackageDoc bbRegenerateBoxesLists to handle bbtk doc updating --- LICENSE.txt | 2 +- kernel/appli/CMakeLists.txt | 4 + kernel/appli/bbCreateBox/CMakeLists.txt | 58 --- kernel/appli/bbCreateBox/bbCreateBox.sh.in | 32 -- .../appli/bbCreateBox/template_standard.xml | 80 ----- .../bbRegenerateBoxesLists/CMakeLists.txt | 9 + .../bbRegenerateBoxesLists.cpp | 30 ++ .../bbRegeneratePackageDoc/CMakeLists.txt | 9 + .../bbRegeneratePackageDoc.cpp | 92 +++++ kernel/cmake/BBTKCreatePackageBBdoc.cmake | 14 +- .../BBTKCreatePackageIncludeScript.cmake | 10 +- kernel/cmake/BBTKMacros.cmake | 22 +- kernel/install/cpack/CMakeLists.txt | 2 +- kernel/src/bbtkExecuter.cxx | 28 +- kernel/src/bbtkInterpreter.cxx | 339 ++++++++++-------- kernel/src/bbtkWxGUIScriptingInterface.cxx | 100 ++++-- kernel/src/bbtkWxGUIScriptingInterface.h | 8 +- packages/wxvtk/bbs/boxes/bbDoubleSlicer.bbs | 2 +- .../bbs/boxes/bbIsoSurfaceWithControls.bbs | 2 +- .../wxvtk/bbs/boxes/bbMIPWithControls.bbs | 2 +- .../bbs/boxes/bbSimpleIsoSurfaceViewer.bbs | 2 +- 21 files changed, 460 insertions(+), 387 deletions(-) delete mode 100644 kernel/appli/bbCreateBox/CMakeLists.txt delete mode 100755 kernel/appli/bbCreateBox/bbCreateBox.sh.in delete mode 100644 kernel/appli/bbCreateBox/template_standard.xml create mode 100644 kernel/appli/bbRegenerateBoxesLists/CMakeLists.txt create mode 100644 kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp create mode 100644 kernel/appli/bbRegeneratePackageDoc/CMakeLists.txt create mode 100644 kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp diff --git a/LICENSE.txt b/LICENSE.txt index 85fff66..c397da4 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1 +1 @@ -TO DO : Write license ... +TO DO : Write... \ No newline at end of file diff --git a/kernel/appli/CMakeLists.txt b/kernel/appli/CMakeLists.txt index c4d67ba..8d93857 100644 --- a/kernel/appli/CMakeLists.txt +++ b/kernel/appli/CMakeLists.txt @@ -33,3 +33,7 @@ SUBDIRS(bbPackageBrowser) SUBDIRS(bbs2cpp) SUBDIRS(bbc) + +SUBDIRS(bbRegenerateBoxesLists) + +SUBDIRS(bbRegeneratePackageDoc) \ No newline at end of file diff --git a/kernel/appli/bbCreateBox/CMakeLists.txt b/kernel/appli/bbCreateBox/CMakeLists.txt deleted file mode 100644 index ef8dc20..0000000 --- a/kernel/appli/bbCreateBox/CMakeLists.txt +++ /dev/null @@ -1,58 +0,0 @@ -# Installs bbCreateBox.bat/.sh -# used to create a new user black box - - -# Relative path to the data used by bbCreateBox from data root folder -SET(bbCreateBox_DATA_REL_PATH_FROM_DATA kernel/bbCreateBox) - -# Configure / Install the template xml files used by bbCreateBox -FILE(GLOB LST_XML_FILE_CREATE_BOX RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.xml ) -FOREACH( iLST ${LST_XML_FILE_CREATE_BOX}) - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${iLST} - ${BBTK_DATA_BUILD_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}/${iLST} - COPYONLY ) - INSTALL(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${iLST} - DESTINATION ${BBTK_DATA_INSTALL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA} - ) -ENDFOREACH(iLST) - -# Configure / Install the script bbCreateBox -SET(bbCreatePackage_DATA_REL_PATH_FROM_BIN ../${BBTK_DATA_REL_PATH}/${bbCreateBox_DATA_REL_PATH_FROM_DATA}) -FILE(TO_NATIVE_PATH ${bbCreateBox_DATA_REL_PATH_FROM_BIN} bbCreateBox_DATA_REL_PATH_FROM_BIN) -IF(WIN32) - # Build tree - CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in - ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat - @ONLY IMMEDIATE - ) - CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.bat.in - ${BBTK_BINARY_DIR}/Release/bbCreateBox.bat - @ONLY IMMEDIATE - ) - # install tree - INSTALL( - PROGRAMS ${BBTK_BINARY_DIR}/Debug/bbCreateBox.bat - DESTINATION bin - ) -ENDIF(WIN32) - - -IF(UNIX) - # Build tree - CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/bbCreateBox.sh.in - ${BBTK_BINARY_DIR}/bin/bbCreateBox - @ONLY IMMEDIATE - ) - # Install tree - INSTALL( - PROGRAMS ${BBTK_BINARY_DIR}/bin/bbCreateBox - DESTINATION bin - ) -ENDIF(UNIX) - - - - diff --git a/kernel/appli/bbCreateBox/bbCreateBox.sh.in b/kernel/appli/bbCreateBox/bbCreateBox.sh.in deleted file mode 100755 index bb06866..0000000 --- a/kernel/appli/bbCreateBox/bbCreateBox.sh.in +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# creates the file architecture for a new user package - -if [ $# -lt 3 ] - then - echo "usage : bbCreateBox [author] [description] [category]" - exit -fi - -# bbCreatePackage path -TMP=$(which $0|rev) -BINPATH=$(echo ${TMP#*/}|rev) -# Input data path -#INPUT=${BINPATH}/@bbCreateBox_DATA_REL_PATH_FROM_BIN@/$1 -INPUT=$1 - -BBCB_BOX_NAME=$2 -BBCB_PACKAGE_NAME=$3 -BBCB_AUTHOR=$4 -BBCB_DESCRIPTION=$5 -BBCB_CATEGORY=$6 - -echo "input = " $INPUT -echo "box name = " $BBCB_BOX_NAME -echo "package = " $BBCB_PACKAGE_NAME -echo "author = " $BBCB_AUTHOR -echo "description = " $BBCB_DESCRIPTION -echo "category = " $BBCB_CATEGORY - -sed s,BBCB_BOX_NAME,"${BBCB_BOX_NAME}", < $INPUT | sed s/BBCB_AUTHOR/"${BBCB_AUTHOR}"/ | sed s{BBCB_DESCRIPTION{"${BBCB_DESCRIPTION}"{ | sed s/BBCB_CATEGORY/"${BBCB_CATEGORY}"/ > bb${BBCB_PACKAGE_NAME}${BBCB_BOX_NAME}.xml - - diff --git a/kernel/appli/bbCreateBox/template_standard.xml b/kernel/appli/bbCreateBox/template_standard.xml deleted file mode 100644 index 44b70b6..0000000 --- a/kernel/appli/bbCreateBox/template_standard.xml +++ /dev/null @@ -1,80 +0,0 @@ -#============================================================================ -# STARTS THE DESCRIPTION OF THE BLACK BOX - -#============================================================================ - - #============================================================================ - # THE BOX DOCUMENTATION - BBCB_AUTHOR - BBCB_DESCRIPTION - BBCB_CATEGORY - #============================================================================ - - #============================================================================ - # #include directives to be put in the .h generated - # There must be one tag per file to include - # Here we include the standard header iostream.h -
-    iostream.h
-  
- #============================================================================ - - #============================================================================ - # INPUTS/OUTPUTS DECLARATION - # Declares an input with name 'In', type 'double' and description 'First input' - - # Declares an output with name 'Out', type 'double' and description 'First output' - - #============================================================================ - - #============================================================================ - # THE PROCESSING METHOD BODY : - # Here simpy copies the value of the input 'In' to the output 'Out' - # INPUT/OUTPUT ACCESSORS ARE OF THE FORM : - # void bbSet{Input|Output}NAME(const TYPE&) - # const TYPE& bbGet{Input|Output}NAME() const - # Where : - # * NAME is the name of the input/output - # (the one provided in the attribute 'name' of the tag ) - # * TYPE is the C++ type of the input/output - # (the one provided in the attribute 'type' of the tag ) - -
-    bbSetOutputOut( bbGetInputIn() );
-    std::cout << "Here I am !" << std::endl;
-  
-
- #============================================================================ - - #============================================================================ - # CONSTRUCTORS / DESTRUCTORS (OPTIONAL) - # THE CONSTRUCTION METHOD BODY : - # Here initializes the input 'In' to 0 - # This is also where you should allocate the output pointers -
-    bbSetInputIn(0);
-  
-
- # THE COPY-CONSTRUCTION METHOD BODY : - # Here does nothing - # But this is where you should allocate the output pointers if any - # and copy the pointed values (to avoid bug caused by multiple references) - -
-  
-  
-
- # THE DESTRUCTION METHOD BODY : - # Here does nothing - # but this is where you should desallocate the output pointers if any - - -
-  
-
- #============================================================================ - -#============================================================================ -# END OF BLACK BOX DESCRIPTION -
-#============================================================================ diff --git a/kernel/appli/bbRegenerateBoxesLists/CMakeLists.txt b/kernel/appli/bbRegenerateBoxesLists/CMakeLists.txt new file mode 100644 index 0000000..73a283c --- /dev/null +++ b/kernel/appli/bbRegenerateBoxesLists/CMakeLists.txt @@ -0,0 +1,9 @@ + + +SET(SOURCES + bbRegenerateBoxesLists + ) + +ADD_EXECUTABLE(bbRegenerateBoxesLists ${SOURCES}) +TARGET_LINK_LIBRARIES(bbRegenerateBoxesLists bbtk) +INSTALL_TARGETS(/bin/ bbRegenerateBoxesLists) diff --git a/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp b/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp new file mode 100644 index 0000000..5f66124 --- /dev/null +++ b/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp @@ -0,0 +1,30 @@ + +#include +#include + +//========================================================================== +int main(int argc, char **argv) +{ + + bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(); + I->SetCommandLine(true); + I->SetThrow(false); + + + std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path(); + doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); + doc_path += "bbdoc"; + doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); + + I->InterpretLine( "exec freeze"); + I->InterpretLine( "include *"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html"); + + return 0; +} +//========================================================================== + + diff --git a/kernel/appli/bbRegeneratePackageDoc/CMakeLists.txt b/kernel/appli/bbRegeneratePackageDoc/CMakeLists.txt new file mode 100644 index 0000000..e832b84 --- /dev/null +++ b/kernel/appli/bbRegeneratePackageDoc/CMakeLists.txt @@ -0,0 +1,9 @@ + + +SET(SOURCES + bbRegeneratePackageDoc + ) + +ADD_EXECUTABLE(bbRegeneratePackageDoc ${SOURCES}) +TARGET_LINK_LIBRARIES(bbRegeneratePackageDoc bbtk) +INSTALL_TARGETS(/bin/ bbRegeneratePackageDoc) diff --git a/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp b/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp new file mode 100644 index 0000000..bc1fc44 --- /dev/null +++ b/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp @@ -0,0 +1,92 @@ + +#include +#include +#include +#include + +//========================================================================== +void RegenerateDoc ( bbtk::Package::Pointer p, std::string& doc_path ) +{ + std::string pack_name(p->GetName()); + std::string pack_path = doc_path + pack_name; + // Creating directory + if ( ! bbtk::Utilities::FileExists(pack_path) ) + { + std::string command("mkdir \"" +pack_path+ "\""); + system( command.c_str() ); + } + std::string pack_index(pack_path); + pack_index += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); + pack_index += "index.html"; + + std::cout << "* Generating doc for '"<SetDocURL(pack_index); + p->SetDocRelativeURL("index.html"); + p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,true); +} + +//========================================================================== +int main(int argc, char **argv) +{ + std::string pack("*"); + if (argc==1) + { + /* + // TO DO : make a Wx app + wxString name = wxGetTextFromUser(_T("Enter package name (* for all)"), + _T("Regenerate package doc"), + _T("")); + if (name.IsEmpty()) return 0; + pack = bbtk::wx2std(name); + */ + } + else if (argc==2) + { + pack = std::string(argv[1]); + } + else + { + std::cout << "usage : bbRegeneratePackageDoc [package-name]" << std::endl; + return 0; + } + + try + { + std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path(); + doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); + doc_path += "bbdoc"; + doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); + + bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(); + I->SetCommandLine(true); + I->SetThrow(false); + I->InterpretLine( "exec freeze"); + I->InterpretLine( "include "+pack); + if (pack != "*") + { + I->InterpretLine( "include "+pack+"-appli"); + RegenerateDoc(I->GetExecuter()->GetFactory()->GetPackage(pack),doc_path); + } + else + { + bbtk::Factory::PackageMapType::const_iterator i; + for (i = I->GetExecuter()->GetFactory()->GetPackageMap().begin(); + i != I->GetExecuter()->GetFactory()->GetPackageMap().end(); + ++i) + { + RegenerateDoc(i->second,doc_path); + } + } + } + catch (bbtk::Exception e) + { + std::cout << "* ERROR : "<0 + } // try CATCH_MACRO; CloseAllFiles(); @@ -1062,111 +1062,114 @@ void Interpreter::SplitLine ( const std::string& str, std::vector& // ==== "*" provided : load all scripts in given path // relative (e.g. std/boxes/*) or absolute if (pkgname == "*") - { - int nbBssFiles; + { + int nbBssFiles; - std::stringstream* stream = new std::stringstream; - //if (upath.size()!=0) // avoid troubles for "*" + std::stringstream* stream = new std::stringstream; + //if (upath.size()!=0) // avoid troubles for "*" - // ==== no path provided : look in root bbs path - if (upath.size()==0) - { - // bbtkMessage("Interpreter",1, - script_paths.push_back( ConfigurationFile::GetInstance().Get_root_bbs_path() ); - } - // ==== absolute path provided - else if (upath[0]=='/' || upath[1] == ':' ) - { - if ( Utilities::IsDirectory( upath ) ) - { - script_paths.push_back(upath); - } - else - { - bbtkError("'"<::const_iterator i; - for (i=ConfigurationFile::GetInstance().Get_bbs_paths().begin(); - i!=ConfigurationFile::GetInstance().Get_bbs_paths().end(); - i++) - { - std::string full_path(*i); - // we *really* want '.' to be the current working directory - if (full_path == ".") { - char buf[2048]; // for getcwd - char * currentDir = getcwd(buf, 2048); - std::string cwd(currentDir); - full_path = currentDir; - } // if full_path - - full_path += ConfigurationFile::GetInstance().Get_file_separator(); - full_path += upath; - - if ( Utilities::IsDirectory( full_path ) ) - { - script_paths.push_back(full_path); - } - } - if (script_paths.empty()) - { - bbtkError("no '"<::const_iterator i; + for (i=ConfigurationFile::GetInstance().Get_bbs_paths().begin(); + i!=ConfigurationFile::GetInstance().Get_bbs_paths().end(); + i++) + { + script_paths.push_back(*i); + } + } + // ==== absolute path provided + else if (upath[0]=='/' || upath[1] == ':' ) + { + if ( Utilities::IsDirectory( upath ) ) + { + script_paths.push_back(upath); + } + else + { + bbtkError("'"<::const_iterator i; + for (i=ConfigurationFile::GetInstance().Get_bbs_paths().begin(); + i!=ConfigurationFile::GetInstance().Get_bbs_paths().end(); + i++) + { + std::string full_path(*i); + // we *really* want '.' to be the current working directory + if (full_path == ".") + { + char buf[2048]; // for getcwd + char * currentDir = getcwd(buf, 2048); + std::string cwd(currentDir); + full_path = currentDir; + } // if full_path + + full_path += ConfigurationFile::GetInstance().Get_file_separator(); + full_path += upath; - } - // === search paths list complete : now explore it + if ( Utilities::IsDirectory( full_path ) ) + { + script_paths.push_back(full_path); + } + } + if (script_paths.empty()) + { + bbtkError("no '"<::iterator i; - for (i=script_paths.begin();i!=script_paths.end();i++)// ==== relative name, iterate + load all .bbs files - { - bbtkMessage("Interpreter",1, + // === search paths list complete : now explore it + + // ==== relative name, iterate + load all .bbs/.bbp files + std::vector::iterator i; + for (i=script_paths.begin();i!=script_paths.end();i++) + { + bbtkMessage("Interpreter",1, "--> Looking in '" << *i << "'" << std::endl); - + + Filenames.clear(); + //int nbFiles = + Utilities::Explore(*i, false, Filenames); - Filenames.clear(); - //int nbFiles = - Utilities::Explore(*i, false, Filenames); - - nbBssFiles = 0; - for (std::vector::iterator j = Filenames.begin(); - j!= Filenames.end(); ++j) - { - int lgr = (*j).size(); - if (lgr < 5) - continue; // ignore non .bbs file - if ((*j).substr(lgr-4, 4) != ".bbs") - continue; + nbBssFiles = 0; + for (std::vector::iterator j = Filenames.begin(); + j!= Filenames.end(); ++j) + { + int lgr = (*j).size(); + if (lgr < 5) continue; + // ignore non .bbp file + if ( (*j).substr(lgr-4, 4) != ".bbp") continue; + + (*stream) << "include \"" << *j << "\"\n"; + bbtkMessage("Interpreter",2," --> Found '" << *j << "'" << std::endl); - (*stream) << "include \"" << *j << "\"\n"; - bbtkMessage("Interpreter",2, - " --> Found '" << *j << "'" << std::endl); - - nbBssFiles++; - } // for vector - - if (nbBssFiles==0) - { - bbtkMessage("Interpreter",1, - " --> No .bbs found"<< std::endl); - } - else - { - bbtkMessage("Interpreter",1, - " --> "< No .bbp found"<< std::endl); + } + else + { + bbtkMessage("Interpreter",1, + " --> "<& // allow user to always forget ".bbs" int l = fullPathScriptName.size(); - if (l!=0) { - - if (l>4) - { - if (fullPathScriptName.substr(l-4, 4) != ".bbs") + if (l!=0) + { + if ((fullPathScriptName.substr(l-4, 4) != ".bbs")&& + (fullPathScriptName.substr(l-4, 4) != ".bbp")) { - fullPathScriptName = fullPathScriptName + ".bbs"; - } - } - else - { - fullPathScriptName = fullPathScriptName + ".bbs"; - } - - if ( Utilities::FileExists(fullPathScriptName)) - { - foundFile = true; - } - } // endif l != 0 + std::string tfullPathScriptName = fullPathScriptName + ".bbs"; + if ( Utilities::FileExists(tfullPathScriptName) ) + { + fullPathScriptName = tfullPathScriptName; + foundFile = true; + } + else + { + tfullPathScriptName = fullPathScriptName + ".bbp"; + if ( Utilities::FileExists(tfullPathScriptName) ) + { + fullPathScriptName = tfullPathScriptName; + foundFile = true; + } + } + } + else + { + if ( Utilities::FileExists(fullPathScriptName) ) + { + foundFile = true; + } + } + } // endif l != 0 } else - // =============================== iterate on the paths - { + // =============================== iterate on the paths + { script_paths = ConfigurationFile::GetInstance().Get_bbs_paths(); std::string path; std::vector::iterator i; for (i=script_paths.begin();i!=script_paths.end();++i) - { - path = *i; - // we *really* want '.' to be the current working directory - if (path == ".") { - char buf[2048]; // for getcwd - char * currentDir = getcwd(buf, 2048); - std::string cwd(currentDir); - path = currentDir; - } - - fullPathScriptName = Utilities::MakePkgnameFromPath(path, name, true); + { + path = *i; + // we *really* want '.' to be the current working directory + if (path == ".") + { + char buf[2048]; // for getcwd + char * currentDir = getcwd(buf, 2048); + std::string cwd(currentDir); + path = currentDir; + } - // Check if library exists - if ( ! Utilities::FileExists(fullPathScriptName) ) - { - // The following is *NOT* a debug time message : - // It's a user intended message. - // Please don't remove it. - bbtkMessage("Interpreter",2, - " [" <& else bbtkError("Script ["<Append( ID_Menu_CreatePackage, _T("Create &package") ); menuTools->Append( ID_Menu_CreateBlackBox, _T("Create &black box") ); menuTools->Append( ID_Menu_ShowImageGraph, _T("&Show last image graph") ); - menuTools->Append( ID_Menu_CreateIndex, _T("&Generate index") ); + menuTools->AppendSeparator(); + menuTools->Append( ID_Menu_RegeneratePackageDoc,_T("&Regenerate package doc") ); + menuTools->Append( ID_Menu_RegenerateBoxesLists,_T("&Regenerate boxes lists") ); + menuTools->Append( ID_Menu_RegenerateAll,_T("&Regenerate all") ); + wxMenu *menuWindows = new wxMenu; menuWindows->AppendCheckItem(ID_Menu_Windows_Files, @@ -430,37 +436,79 @@ namespace bbtk } //================================================================ + //================================================================ + void WxGUIScriptingInterface::OnMenuRegeneratePackageDoc(wxCommandEvent& WXUNUSED(event)) + { + wxString name = wxGetTextFromUser(_T("Enter package name (* for all)"), + _T("Regenerate package doc"), + _T("")); + if (name.IsEmpty()) return; + std::string pack = bbtk::wx2std(name); + + std::string command("cd \""); + command += ConfigurationFile::GetInstance().Get_bin_path(); + command += "\" && bbRegeneratePackageDoc " + pack; + bbtkMessage("debug",1,"Executing system command '"<InterpretLine( "config"); - I->InterpretLine( "message echo 2"); - I->InterpretLine( "exec freeze"); - I->InterpretLine( "include *"); - I->InterpretLine( "help packages"); - I->InterpretLine( "index "+doc_path+"/bbdoc/index-alpha.html Initials"); - 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"); - */ + //================================================================ + void WxGUIScriptingInterface::OnMenuRegenerateAll(wxCommandEvent& WXUNUSED(event)) + { 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"; + command += "\" && bbRegeneratePackageDoc * && bbRegenerateBoxesLists"; bbtkMessage("debug",1,"Executing system command '"<ExampleDoubleSlicer.bbs." author "laurent.guigues at creatis.insa-lyon.fr" diff --git a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWithControls.bbs b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWithControls.bbs index f416923..4f72c31 100644 --- a/packages/wxvtk/bbs/boxes/bbIsoSurfaceWithControls.bbs +++ b/packages/wxvtk/bbs/boxes/bbIsoSurfaceWithControls.bbs @@ -2,7 +2,7 @@ load wx load vtk load std -define IsoSurfaceWithControls +define IsoSurfaceWithControls wxvtk author "laurent.guigues@creatis.insa-lyon.fr" description "Image iso-surface extractor (vtk::IsoSurfaceExtractor) with associated control panel (isovalue, opacity and colour)" category "image;mesh;widget;viewer" diff --git a/packages/wxvtk/bbs/boxes/bbMIPWithControls.bbs b/packages/wxvtk/bbs/boxes/bbMIPWithControls.bbs index 6a74e58..85dbdf0 100644 --- a/packages/wxvtk/bbs/boxes/bbMIPWithControls.bbs +++ b/packages/wxvtk/bbs/boxes/bbMIPWithControls.bbs @@ -2,7 +2,7 @@ load wx load vtk load std -define MIPWithControls +define MIPWithControls wxvtk author "laurent.guigues@creatis.insa-lyon.fr" description "Maximum Intensity Projection (MIP) creator (vtk::MIPCreator) with associated control panel (shift and scale)" category "image;mesh;widget;viewer" diff --git a/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs b/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs index 5d38329..fa6968f 100644 --- a/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs +++ b/packages/wxvtk/bbs/boxes/bbSimpleIsoSurfaceViewer.bbs @@ -5,7 +5,7 @@ load vtk include wxvtk/boxes/bbIsoSurfaceWithControls -define SimpleIsoSurfaceViewer +define SimpleIsoSurfaceViewer wxvtk description "Simple viewer of an iso-surface of an image" author "laurent.guigues@creatis.insa-lyon.fr" -- 2.45.1