]> Creatis software - bbtk.git/commitdiff
Html doc
authorguigues <guigues>
Wed, 8 Oct 2008 13:39:21 +0000 (13:39 +0000)
committerguigues <guigues>
Wed, 8 Oct 2008 13:39:21 +0000 (13:39 +0000)
15 files changed:
kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp
kernel/cmake/BBTKConfigurePackagePaths.cmake
kernel/cmake/BBTKConfigurePackage_doc.cmake
kernel/cmake/BBTKConfigurePackage_doc_bbdoc.cmake
kernel/doc/bbtkWebSite/CMakeLists.txt
kernel/doc/bbtkWebSite/bbtk-make-index.bat.in [deleted file]
kernel/doc/bbtkWebSite/bbtk-make-index.sh.in [deleted file]
kernel/doc/bbtkWebSite/make-index.bbs.in [deleted file]
kernel/install/cpack/CMakeLists.txt
kernel/src/bbtkComplexBlackBoxDescriptor.cxx
kernel/src/bbtkInterpreter.cxx
kernel/src/bbtkInterpreter.h
kernel/src/bbtkWxGUIHtmlBrowser.cxx
packages/wxvtk/bbs/boxes/bbIsoSurfaceWithControls.bbs
packages/wxvtk/bbs/boxes/bbMIPWithControls.bbs

index bc1fc449b84f220655c7e02a910bf88ce49cf1a6..c2e403fb3459bd865c8180616d47449dd60b9b39 100644 (file)
@@ -24,7 +24,7 @@ void RegenerateDoc ( bbtk::Package::Pointer p, std::string& doc_path )
                        
        p->SetDocURL(pack_index);
        p->SetDocRelativeURL("index.html");
-       p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,true);
+       p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,false); //true);
 }
 
 //==========================================================================
index 0681539032923aa347dcb0f8997a410e8e2c32a7..2a87606da23995fec3729497d0c875b432221561 100644 (file)
@@ -1,14 +1,23 @@
-# Use the installed appli 
 
 IF(WIN32)
   SET (EXECUTABLE_OUTPUT_REL_PATH "") 
   SET (LIBRARY_OUTPUT_REL_PATH    "")
-  FILE(TO_NATIVE_PATH  ${PROJECT_BINARY_DIR}/$(OutDir)  BBTK_BIN_PATH)
-  SET(BBTK_BBI "${BBTK_DIR}/bin/bbi")
-  SET(BBTK_BBS2CPP "${BBTK_DIR}/bin/bbs2cpp")
-  SET(BBTK_BBC "${BBTK_DIR}/bin/bbc")
-  SET(BBTK_BBFY "${BBTK_DIR}/bin/bbfy")
-  SET(BBTK_BBDOC "${BBTK_DIR}/bin/bbdoc")
+#  FILE(TO_NATIVE_PATH  ${PROJECT_BINARY_DIR}/$(OutDir)  BBTK_BIN_PATH)
+#  SET(BBTK_BIN_PATH ${BBTK_DIR}/bin})
+#  FIND_FILE(PATHS ${BBTK_BIN_PATH})
+
+  FIND_PATH(BBTK_BIN_PATH bbi.exe ${BBTK_DIR}/bin ${BBTK_DIR}/Release ${BBTK_DIR}/Debug NO_DEFAULT_PATH)
+
+  IF(NOT BBTK_BIN_PATH)
+    MESSAGE(FATAL_ERROR "bbi not found in ${BBTK_DIR}/bin ; ${BBTK_DIR}/Release ; ${BBTK_DIR}/Debug : is bbtk properly built ?")  
+  ENDIF(NOT BBTK_BIN_PATH)
+       
+
+  SET(BBTK_BBI "${BBTK_BIN_PATH}/bbi")
+  SET(BBTK_BBS2CPP "${BBTK_BIN_PATH}/bbs2cpp")
+  SET(BBTK_BBC "${BBTK_BIN_PATH}/bbc")
+  SET(BBTK_BBFY "${BBTK_BIN_PATH}/bbfy")
+  SET(BBTK_BBDOC "${BBTK_BIN_PATH}/bbdoc")
   
 ELSE(WIN32)
 #  SET (EXECUTABLE_OUTPUT_REL_PATH bin) 
index bf392a591e912bf4d38973174d5d95403d4542ca..77b496dd2a5bb2508b1afe3abe475e9ccc0f8482 100644 (file)
@@ -1,11 +1,11 @@
 #---------------------------------------------------------------------------
 IF(BBTK_CORE_PACKAGE)
   # If a core package set doc options from bbtk global ones
-  IF (BUILD_BBTK_DOC_PACKAGE)
-    SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC ON)
-  ELSE (BUILD_BBTK_DOC_PACKAGE)
-    SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC OFF)
-  ENDIF (BUILD_BBTK_DOC_PACKAGE)
+  #IF (BUILD_BBTK_DOC_PACKAGE)
+  #  SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC ON)
+  #ELSE (BUILD_BBTK_DOC_PACKAGE)
+  #  SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC OFF)
+  #ENDIF (BUILD_BBTK_DOC_PACKAGE)
   IF (BUILD_BBTK_DOC_DOXYGEN)
     SET(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC ON)
   ELSE (BUILD_BBTK_DOC_DOXYGEN)
@@ -14,9 +14,9 @@ IF(BBTK_CORE_PACKAGE)
 ELSE(BBTK_CORE_PACKAGE)
   # If not a core package 
   # Create the build doc options
-  OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC 
-    "Build the bbtk package ${BBTK_PACKAGE_NAME} html documentation ?" OFF)
-  SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
+  #OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC 
+  #  "Build the bbtk package ${BBTK_PACKAGE_NAME} html documentation ?" OFF)
+  #SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
   OPTION(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC 
     "Build the bbtk package ${BBTK_PACKAGE_NAME} doxygen documentation ?" OFF)
   SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
@@ -40,7 +40,7 @@ ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
 #----------------------------------------------------------------------------
 # bbdoc
 #---------------------------------------------------------------------------
-IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
-  SUBDIRS(bbdoc)
-ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
+#IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
+#  SUBDIRS(bbdoc)
+#ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
 #---------------------------------------------------------------------------
index fef9c53fc6d24960db3ce62030895e93a3b13ca8..06bc09b6d26dc9f221f6b75ef1c333524c528d66 100644 (file)
@@ -1,15 +1,15 @@
-CONFIGURE_FILE(
-  ${CMAKE_CURRENT_SOURCE_DIR}/header.html.in
-  ${BBTK_BBDOC_BUILD_PATH}/${BBTK_PACKAGE_NAME}/header.html
-  @ONLY IMMEDIATE
-  )
-INSTALL( 
-  FILES ${BBTK_BBDOC_BUILD_PATH}/${BBTK_PACKAGE_NAME}/header.html
-  DESTINATION ${BBTK_BBDOC_INSTALL_PATH}/${BBTK_PACKAGE_NAME}
-  )   
+#CONFIGURE_FILE(
+#  ${CMAKE_CURRENT_SOURCE_DIR}/header.html.in
+#  ${BBTK_BBDOC_BUILD_PATH}/${BBTK_PACKAGE_NAME}/header.html
+#  @ONLY IMMEDIATE
+#  )
+#INSTALL( 
+#  FILES ${BBTK_BBDOC_BUILD_PATH}/${BBTK_PACKAGE_NAME}/header.html
+#  DESTINATION ${BBTK_BBDOC_INSTALL_PATH}/${BBTK_PACKAGE_NAME}
+#  )   
 
 
-INCLUDE(${BBTK_CMAKE_DIR}/BBTKCreatePackageBBdoc.cmake)
-BBTK_CREATE_PACKAGE_BBDOC(${BBTK_PACKAGE_NAME})
+#INCLUDE(${BBTK_CMAKE_DIR}/BBTKCreatePackageBBdoc.cmake)
+#BBTK_CREATE_PACKAGE_BBDOC(${BBTK_PACKAGE_NAME})
 
-BBTK_DOC_INSTALL_IMAGES(bbdoc/${BBTK_PACKAGE_NAME})
\ No newline at end of file
+#BBTK_DOC_INSTALL_IMAGES(bbdoc/${BBTK_PACKAGE_NAME})
\ No newline at end of file
index b39212801cf7fa76f00e848b8c1427a175a47eff..4d5aaedbdf33243d7256aa2d3ceaeb1f73641161 100644 (file)
@@ -16,77 +16,3 @@ FOREACH(page ${HTML_PAGES})
     DESTINATION ${BBTK_DOC_INSTALL_PATH}/bbtkWebSite
     )
 ENDFOREACH(page)
-
-# Index generation
-SET(BBTK_INDEX_ALPHA_FILE ${BBTK_BBDOC_BUILD_PATH}/index-alpha.html)
-SET(BBTK_INDEX_PACKAGES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-package.html)
-SET(BBTK_INDEX_CATEGORIES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-category.html)
-SET(BBTK_INDEX_ADAPTORS_FILE ${BBTK_BBDOC_BUILD_PATH}/index-adaptors.html)
-SET(INDEX_OUTPUT 
-  ${BBTK_INDEX_ALPHA_FILE} ${BBTK_INDEX_PACKAGES_FILE} 
-  ${BBTK_INDEX_CATEGORIES_FILE}
-  )
-
-CONFIGURE_FILE(
-  ${CMAKE_CURRENT_SOURCE_DIR}/make-index.bbs.in
-  ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
-  @ONLY
-  )
-
-IF (WIN32)
-  SET(USE_DOT TRUE)
-  MAKE_DLL_PATH()
-  ADD_CUSTOM_COMMAND(
-    OUTPUT ${INDEX_OUTPUT}
-    COMMAND 
-    set ${DLL_PATH} cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
-    DEPENDS ${BBTK_BBI_DEPENDENCY} ${BBTK_PACKAGES_DEPS}
-  )
-ELSE (WIN32)
-   SET(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}:${LIBRARY_OUTPUT_PATH}")
-#   MESSAGE(LD_LIBRARY_PATH=${LD_LIBRARY_PATH})
-  ADD_CUSTOM_COMMAND(
-    OUTPUT ${INDEX_OUTPUT}
-    COMMAND 
-    cd ${BBTK_BIN_PATH} && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
-    DEPENDS ${BBTK_BBI_DEPENDENCY} ${BBTK_PACKAGES_DEPS}
-  )
-ENDIF (WIN32)
-
-ADD_CUSTOM_TARGET(bbdoc_index ALL
-  DEPENDS ${INDEX_OUTPUT}
-  )
-INSTALL(
-  FILES ${INDEX_OUTPUT} 
-  DESTINATION ${BBTK_BBDOC_INSTALL_PATH}
-  )
-
-# create make-index.bbs for build / install tree
-SET(BBTK_INDEX_ALPHA_FILE index-alpha.html)
-SET(BBTK_INDEX_PACKAGES_FILE index-package.html)
-SET(BBTK_INDEX_CATEGORIES_FILE index-category.html)
-SET(BBTK_INDEX_ADAPTORS_FILE index-adaptors.html)
-CONFIGURE_FILE(
-  ${CMAKE_CURRENT_SOURCE_DIR}/make-index.bbs.in
-  ${BBTK_BBDOC_BUILD_PATH}/make-index.bbs
-  @ONLY
-  )
-INSTALL(
-  FILES ${BBTK_BBDOC_BUILD_PATH}/make-index.bbs
-  DESTINATION ${BBTK_BBDOC_INSTALL_PATH}
-  )
-# bbtk-make-index
-CONFIGURE_FILE(
-  ${CMAKE_CURRENT_SOURCE_DIR}/bbtk-make-index.sh.in
-  ${BBTK_BBDOC_BUILD_PATH}/bbtk-make-index
-  @ONLY
-  )
-CONFIGURE_FILE(
-  ${CMAKE_CURRENT_SOURCE_DIR}/bbtk-make-index.sh.in
-  ${BBTK_BIN_PATH}/bbtk-make-index
-  @ONLY
-  )
-INSTALL(
-  PROGRAMS ${BBTK_BBDOC_BUILD_PATH}/bbtk-make-index
-  DESTINATION bin
-  )
diff --git a/kernel/doc/bbtkWebSite/bbtk-make-index.bat.in b/kernel/doc/bbtkWebSite/bbtk-make-index.bat.in
deleted file mode 100644 (file)
index 865ece9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-@echo off
-echo "** Recreating bbtk doc index **"
-
-echo EED> "TMP=$(which $0|rev)"
-echo EED>"TMP2=$(echo ${TMP#*/}|rev)"
-echo EED">DIR=${TMP2}/../"
-
-echo "> cd ${DIR}/doc/bbdoc"
-echo cd ${DIR}/doc/bbdoc
-
-echo "> bbi -n ./make-index"
-..\..\bin\bbi -n .\make-index
-..\..\bin\Debug\bbi -n .\make-index
-..\..\bin\Release\bbi -n .\make-index
-
-echo "** Done ! **"
diff --git a/kernel/doc/bbtkWebSite/bbtk-make-index.sh.in b/kernel/doc/bbtkWebSite/bbtk-make-index.sh.in
deleted file mode 100755 (executable)
index 8674fd1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-# Have to source the bashrc for potential LD_LIBRARY_PATH additions
-# (typical /usr/local install) 
-source ${HOME}/.bashrc
-#echo ${LD_LIBRARY_PATH}
-
-echo "** Recreating bbtk doc index **"
-
-TMP=$(which $0|rev)
-BIN=$(echo ${TMP#*/}|rev)
-
-echo "> cd ${BIN}/../@BBTK_BBDOC_REL_PATH@"
-cd ${BIN}/../@BBTK_BBDOC_REL_PATH@
-
-echo "> ${BIN}/bbi -N -q ./make-index"
-${BIN}/bbi -N -q ./make-index
-
-echo "** Done ! **"
diff --git a/kernel/doc/bbtkWebSite/make-index.bbs.in b/kernel/doc/bbtkWebSite/make-index.bbs.in
deleted file mode 100644 (file)
index 3f71e94..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-exec freeze
-include *
-index @BBTK_INDEX_ALPHA_FILE@ Initials
-index @BBTK_INDEX_PACKAGES_FILE@ Packages
-index @BBTK_INDEX_CATEGORIES_FILE@ Categories
-index @BBTK_INDEX_ADAPTORS_FILE@ Adaptors
index 248e8feed57bbaace3c50142bfaba6002495b929..f2bff27e685d0286ad19d479db0d6d7500132f7e 100644 (file)
@@ -36,7 +36,7 @@ ELSE(WIN32 AND NOT UNIX)
   SET(CPACK_STRIP_FILES "bin/bbi")
   SET(CPACK_SOURCE_STRIP_FILES "")
 ENDIF(WIN32 AND NOT UNIX)
-SET(CPACK_PACKAGE_EXECUTABLES "bbStudio" "bbStudio" "bbPackageBrowser" "bbPackageBrowser" "bbi" "bbInterpreter")
+SET(CPACK_PACKAGE_EXECUTABLES "bbStudio" "bbStudio" "bbPackageBrowser" "bbPackageBrowser" "bbi" "bbInterpreter" "bbRegeneratePackageDoc" "Regenerate packages doc" "bbRegenerateBoxesLists" "Regenerate boxes lists")
   
 
 INCLUDE(CPack)
index 0e1114d52383c1480eb50ca410ba084ff1aa0746..382c9c06d045663529ef03c5fbb03e105784dd78 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/05/14 10:26:29 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2008/10/08 13:39:33 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -366,7 +366,9 @@ namespace bbtk
     if (inc.size()>0) 
       {
        s << "<TR><TD style='vertical-align: top;'><b> To use it </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> include ";
-       s << inc << "&nbsp;&nbsp;<a href=\"../../../bbs/"<<inc<<"\">[source]</a>";
+       // s << inc << "&nbsp;&nbsp;<a href=\"../../../bbs/"<<inc<<"\">[source]</a>";
+       // LG TODO : USE PACKAGE BBS PATH
+       s << inc << "&nbsp;&nbsp;<a href=\""<<inc<<"\">[source]</a>";
        s << "</TD></TR>\n";
        
       }
index def347b983ed19e090ae3d26375108cc0e8dc6ee..cd640bdd9eb5957fb7fe3e8f5d6e1d659202f54a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/10/08 10:56:27 $
-  Version:   $Revision: 1.74 $
+  Date:      $Date: 2008/10/08 13:39:33 $
+  Version:   $Revision: 1.75 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -505,7 +505,7 @@ namespace bbtk
   /**
    *  
    */
-  Interpreter::ExitStatus Interpreter::InterpretFile( const std::string& filename )
+  Interpreter::ExitStatus Interpreter::InterpretFile( const std::string& filename, bool source )
   {
     bbtkDebugMessageInc("Interpreter",9,"Interpreter::InterpretFile(\""<<filename<<"\")"<<std::endl);
 
@@ -516,7 +516,7 @@ namespace bbtk
 
     try 
     {
-      SwitchToFile(filename);
+      SwitchToFile(filename,source);
 
       bool insideComment = false; // for multiline comment
       while (mFile.size()>0) 
@@ -722,7 +722,7 @@ void Interpreter::InterpretLine( const std::string& line, bool &insideComment )
       case cDefine :
         if (mFileName.size()>0) 
         {
-         filename = mIncludeFileName.back(); //Utilities::get_file_name(mFileName.back());
+                  filename = mFileName.back(); //mIncludeFileName.back(); //Utilities::get_file_name(mFileName.back());
         }
         if (words.size()==2) 
         {
@@ -838,20 +838,17 @@ void Interpreter::InterpretLine( const std::string& line, bool &insideComment )
         break;
 
       case cInclude :
-        if (mCommandLine)
+               // if 'source' was given (words.size()==3) then tell to set the 
+               // source file name of the current complex box with the full file name included
+               if (mCommandLine)
         {
-           InterpretFile(words[1]); 
+           InterpretFile(words[1],(words.size()==3)); 
         }
         else
         {
-            SwitchToFile(words[1]);
+            SwitchToFile(words[1],(words.size()==3) );
         }
-       // if 'source' was given
-       if (words.size()==3) 
-         {
-           GetExecuter()->SetCurrentFileName(words[1]);
-         }
-        break;
+               break;
 
       case cLoad:
         GetExecuter()->LoadPackage(words[1]);
@@ -1022,7 +1019,7 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
    */
 
   // =========================================================================
-  void Interpreter::SwitchToFile( const std::string& name )
+  void Interpreter::SwitchToFile( const std::string& name , bool source )
   {
   // Note : in the following :
   // name : the user supplied name 
@@ -1296,7 +1293,10 @@ void Interpreter::SplitLine ( const std::string& str, std::vector<std::string>&
        return;
       }
     else
+       {
       LoadScript(fullPathScriptName,name);
+         if (source) GetExecuter()->SetCurrentFileName(fullPathScriptName);
+       }
     
     return;
   }
@@ -1354,7 +1354,7 @@ void Interpreter::SwitchToStream( std::stringstream* stream )
     mIncludeFileName.push_back(includeScriptName);
     mLine.push_back(0);
 
-    return;
+       return;
   }
 
   //=======================================================================
index 6c294d9dd42ea6b9063accd4170420037f2a85ca..bdf3da926af354a865cba6be74955ae784853a0d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.h,v $ $
   Language:  C++
-  Date:      $Date: 2008/10/02 07:43:20 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2008/10/08 13:39:33 $
+  Version:   $Revision: 1.34 $
 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -101,7 +101,7 @@ namespace bbtk
       ExitStatus;
 
     /// Runs the interpretation of a file
-    ExitStatus InterpretFile( const std::string& filename);
+    ExitStatus InterpretFile( const std::string& filename, bool source = false);
 
     /// Runs the interpretation of a buffer and deletes it !
     ExitStatus InterpretBuffer( std::stringstream* buffer );
@@ -217,7 +217,7 @@ namespace bbtk
                            CommandInfoType& info );
 
     /// Switch to the interpretation of a file
-    void SwitchToFile( const std::string& filename );
+    void SwitchToFile( const std::string& filename, bool source = false );
 
    /// Switch to the interpretation of a stringstream
     void SwitchToStream( std::stringstream* stream );
index adaea1b4848a3a04f0897fe97b7e8246dc98e538..76f3e9b448d1135297009d959774d00c12173553 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIHtmlBrowser.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/09/10 12:38:24 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/10/08 13:39:33 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -307,10 +307,13 @@ namespace bbtk
     bool go = true;
     if (mUser) 
       {
+                 /*
        wxString file = wxPathOnly(mwxURL->GetValue());
        file += std2wx(ConfigurationFile::GetInstance().Get_file_separator());
        file += e.GetLinkInfo().GetHref();
-       go = mUser->WxGUIHtmlBrowserUserOnLinkClicked( wx2std( file ) );
+       */
+               wxString file = e.GetLinkInfo().GetHref();
+               go = mUser->WxGUIHtmlBrowserUserOnLinkClicked( wx2std( file ) );
       }
     if (go) 
       {
index 4f72c31dae5ba89f140150535c0b9fbca8a7ad60..01ada2ed218e919d1b3b58a055539032a453a9a4 100644 (file)
@@ -1,6 +1,7 @@
 load wx
 load vtk
 load std
+load wxvtk
 
 define IsoSurfaceWithControls wxvtk
   author "laurent.guigues@creatis.insa-lyon.fr"
index 85dbdf0f060a2513a5340a279a0562dba12df20a..35f4939ac5fcc30d1b88223593a8609eba271f90 100644 (file)
@@ -1,6 +1,7 @@
 load wx
 load vtk
 load std
+load wxvtk
 
 define MIPWithControls wxvtk
   author "laurent.guigues@creatis.insa-lyon.fr"