MACRO(BBTK_BUILD_HTML_DOC_FROM_LATEX TEX_FILE OUTPUT_REL_PATH)
+
+ #EED 11/11/2009
+ BBTK_DOC_INSTALL_IMAGES(${OUTPUT_REL_PATH})
+
+
# Need tth
SET(USE_TTH ON CACHE BOOL "" FORCE)
# Construct absolute build path
OPTION(BUILD_BBTK_DOC_GUIDES_PDF
"Build bbtk Guides', PDF format (latex)." ON)
OPTION(BUILD_BBTK_DOC_GUIDES_HTML
- "Build bbtk Guides', HTML format (latex+tth)." ON)
+ "Build bbtk Guides', HTML format (latex+tth)." OFF)
ELSE(BUILD_BBTK_DOC)
MESSAGE(STATUS "")
MESSAGE(STATUS "=======================================")
MESSAGE(STATUS "Configuring bbtk Developers' Guide build ")
-BBTK_DOC_INSTALL_IMAGES(bbtkDevelopersGuide)
+#EED 11/11/2009 BBTK_DOC_INSTALL_IMAGES(bbtkDevelopersGuide)
BBTK_BUILD_LATEX_DOC(bbtkDevelopersGuide bbtkDevelopersGuide)
BBTK_BUILD_HTML_DOC_FROM_LATEX(bbtkDevelopersGuide bbtkDevelopersGuide)
MESSAGE(STATUS "=======================================")
MESSAGE(STATUS "")
MESSAGE(STATUS "=======================================")
MESSAGE(STATUS "Configuring bbtk Package Developers' Guide build ")
-BBTK_DOC_INSTALL_IMAGES(bbtkPackageDevelopersGuide)
+#EED 11/11/2009 BBTK_DOC_INSTALL_IMAGES(bbtkPackageDevelopersGuide)
BBTK_BUILD_LATEX_DOC(bbtkPackageDevelopersGuide bbtkPackageDevelopersGuide)
BBTK_BUILD_HTML_DOC_FROM_LATEX(bbtkPackageDevelopersGuide bbtkPackageDevelopersGuide)
MESSAGE(STATUS "=======================================")
MESSAGE(STATUS "=======================================")
MESSAGE(STATUS "Configuring bbtk Users' Guide build ")
-BBTK_DOC_INSTALL_IMAGES(bbtkUsersGuide)
+#EED 11/11/2009 BBTK_DOC_INSTALL_IMAGES(bbtkUsersGuide)
BBTK_BUILD_LATEX_DOC(bbtkUsersGuide bbtkUsersGuide)
BBTK_BUILD_HTML_DOC_FROM_LATEX(bbtkUsersGuide bbtkUsersGuide)
MESSAGE(STATUS "=======================================")
<H2>Guides</H2>
-<a href="bbtkUsersGuide/bbtkUsersGuide.html" target="information">User's Guide</a><br>
-<a href="bbtkPackageDevelopersGuide/bbtkPackageDevelopersGuide.html" target="information">Package Developer's Guide</a><br>
+<a href="bbtkUsersGuide\bbtkUsersGuide.pdf" target="information">User's Guide</a><br>
+<a href="bbtkPackageDevelopersGuide\bbtkPackageDevelopersGuide.pdf" target="information">Package Developer's Guide</a><br>
+<a href="bbtkUsersGuide\bbtkDevelopersGuide.pdf" target="information">Developer Guide</a><br>
<a href="doxygen/bbtk/main.html" target="information">bbtk library doxygen doc</a><br>
<H2>Boxes</H2>
-INSTALL(
- DIRECTORY ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
- DESTINATION ${BBTK_SHARE_REL_PATH}
-)
+# Install documentation directoris
+#-------------------------------------------------------------------
+#INSTALL(
+# DIRECTORY ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+# DESTINATION ${BBTK_SHARE_REL_PATH}
+# FILES_MATCHING PATTERN "*.html"
+#)
+
+#INSTALL(
+# DIRECTORY ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+# DESTINATION ${BBTK_SHARE_REL_PATH}
+# FILES_MATCHING PATTERN "*.jpg"
+#)
+
+#INSTALL(
+# DIRECTORY ${BBTK_BINARY_DIR}/${BBTK_DOC_REL_PATH}
+# DESTINATION ${BBTK_SHARE_REL_PATH}
+# FILES_MATCHING PATTERN "*.pdf"
+#)
+#-------------------------------------------------------------------
+
+
INSTALL(
DIRECTORY ${BBTK_BINARY_DIR}/${BBTK_BBS_REL_PATH}
Program: bbtk
Module: $RCSfile: bbtkBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:05 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2009/12/08 14:10:36 $
+ Version: $Revision: 1.22 $
=========================================================================*/
/* ---------------------------------------------------------------------
std::string descr(in->second->GetDescription());
//Utilities::html_format(descr);
-
+
+/*EED 10/11/2009
std::string out =
"<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+"\"><B><PRE> "+name+" </PRE></B></TD>"
+"\"><I><PRE> "+type+" </PRE></I></TD>"
+ "<TD style='vertical-align: top;' bgcolor=\""+col
+"\">"+descr+"</TD></TR>\n";
-
+*/
+
+ std::string out =
+ "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+ +"\"><B><PRE> "+name+" </PRE></B></TD>"
+ + "<TD style='vertical-align: top;' bgcolor=\""+col
+ +"\"><I><PRE> "+descr+" </PRE></I></TD>"
+ + "<TD style='vertical-align: top;' bgcolor=\""+col
+ +"\">"+type+"</TD></TR>\n";
+
if (iotype==0) user_defined.push_back(out);
else if (iotype==1) ubb_defined.push_back(out);
else if (iotype==2) wxbb_defined.push_back(out);
std::string descr(o->second->GetDescription());
//Utilities::html_format(descr);
+/*EED 10/11/2009
std::string out =
"<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+"\"><B><PRE> "+name+" </PRE></B></TD>"
+"\"><I><PRE> "+type+" </PRE></I></TD>"
+ "<TD style='vertical-align: top;' bgcolor=\""+col
+"\">"+descr+"</TD></TR>\n";
-
+*/
+ std::string out =
+ "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+ +"\"><B><PRE> "+name+" </PRE></B></TD>"
+ + "<TD style='vertical-align: top;' bgcolor=\""+col
+ +"\"><I><PRE> "+descr+" </PRE></I></TD>"
+ + "<TD style='vertical-align: top;' bgcolor=\""+col
+ +"\">"+type+"</TD></TR>\n";
+
if (iotype==0) user_defined.push_back(out);
else if (iotype==1) ubb_defined.push_back(out);
else if (iotype==2) wxbb_defined.push_back(out);
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:05 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2009/12/08 14:10:36 $
+ Version: $Revision: 1.21 $
=========================================================================*/
/* ---------------------------------------------------------------------
std::string descr(in->second->GetDescription());
//Utilities::html_format(descr);
+/*EED 10/11/2009
(s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
<< "<TD style='vertical-align: top;'><I><PRE> "<<type<<" </PRE></I></TD>"
<< "<TD style='vertical-align: top;'>"<<descr<<"</TD></TR>\n";
+*/
+
+ (s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
+ << "<TD style='vertical-align: top;'><I><PRE> "<<descr<<" </PRE></I></TD>"
+ << "<TD style='vertical-align: top;'>"<<type<<"</TD></TR>\n";
}
// (s) << "</TABLE>\n";
std::string descr(o->second->GetDescription());
//Utilities::html_format(descr);
+/*EED 10/11/2009
(s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
<< "<TD style='vertical-align: top;'><I><PRE> "<<type<<" </PRE></I></TD>"
<< "<TD style='vertical-align: top;'>"<<descr<<"</TD></TR>\n";
-
+*/
+ (s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
+ << "<TD style='vertical-align: top;'><I><PRE> "<<descr<<" </PRE></I></TD>"
+ << "<TD style='vertical-align: top;'>"<<type<<"</TD></TR>\n";
+
}
(s) << "</TABLE>\n";
Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 14:22:10 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2009/12/08 14:10:36 $
+ Version: $Revision: 1.32 $
=========================================================================*/
/* ---------------------------------------------------------------------
std::string filename = Utilities::MakeUserSettingsFullFileName("doc/help_contents.html");
if (!Utilities::FileExists(filename))
{
- bbtkDebugMessage("config",1,
+ bbtkDebugMessage("config",1,
"* Creating [" << filename << "]" << std::endl);
- // The path to the doc folder (=mInstall_path+"/"+mDoc_rel_path)
- std::string doc_path = mInstall_path + "/"
- + BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH) + "/";
- Utilities::MakeValidFileName(doc_path);
- std::ofstream f;
- f.open(filename.c_str(), std::ios::out );
- f << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD "
- << "HTML 4.01 Transitional//EN\">"
- << "<html><head><title>Help Contents - bbtk "
- << GetVersion() << "</title>"
- << "<meta http-equiv=\"Content-Type\" content=\"text/html; "
- << "charset=iso-8859-1\"></head><H1>Help Contents</H1>"
- << "<a href=\"bbdoc/index-category.html#demo\" "
- << "target=\"information\">Demos</a><br>"
- << "<a href=\"bbdoc/index-category.html#example\" "
- << "target=\"information\">Examples</a>"
- << "<H2>Guides</H2>"
- << "<a href=\""
- << doc_path
- << "bbtkUsersGuide/bbtkUsersGuide.html"
- << "\" target=\"information\">User's Guide</a><br>"
- << "<a href=\""
- << doc_path
- << "bbtkPackageDevelopersGuide/bbtkPackageDevelopersGuide.html"
- << "\" target=\"information\">Package Developer's Guide</a><br>"
- << "<a href=\""
- << doc_path
- << "doxygen/bbtk/main.html"
- << "\" target=\"information\">bbtk library doxygen doc</a><br>"
- << "<H2>Boxes</H2>"
- << "<a target=\"information\" href=\"bbdoc/index-alpha.html\">"
- << "Alphabetical list</a><br>"
- << "<a target=\"information\" href=\"bbdoc/index-package.html\">"
- << "List by package</a><br>"
- << "<a target=\"information\" href=\"bbdoc/index-category.html\">"
- << "List by category</a><br>"
- << "<a target=\"information\" href=\"bbdoc/index-adaptors.html\">"
- << "List of adaptors</a><br>"
- << "</body>"
- << "</html>";
- }
+ // The path to the doc folder (=mInstall_path+"/"+mDoc_rel_path)
+ std::string doc_path = mInstall_path + "/"
+ + BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH) + "/";
+ Utilities::MakeValidFileName(doc_path);
+
+ std::ofstream f;
+ f.open(filename.c_str(), std::ios::out );
+ f << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD "
+ << "HTML 4.01 Transitional//EN\">"
+ << "<html><head><title>Help Contents - bbtk "
+ << GetVersion() << "</title>"
+ << "<meta http-equiv=\"Content-Type\" content=\"text/html; "
+ << "charset=iso-8859-1\"></head><H1>Help Contents</H1>"
+ << "<a href=\"bbdoc/index-category.html#demo\" "
+ << "target=\"information\">Demos</a><br>"
+ << "<a href=\"bbdoc/index-category.html#example\" "
+ << "target=\"information\">Examples</a>"
+ << "<H2>Guides</H2>"
+ << "<a href=\""
+ << doc_path
+ << "bbtkUsersGuide/bbtkUsersGuide.pdf"
+ << "\" target=\"information\">User's Guide</a><br>"
+ << "<a href=\""
+ << doc_path
+ << "bbtkDevelopersGuide/bbtkDevelopersGuide.pdf"
+ << "\" target=\"information\">Developer's Guide</a><br>"
+ << "<a href=\""
+ << doc_path
+ << "bbtkPackageDevelopersGuide/bbtkPackageDevelopersGuide.pdf"
+ << "\" target=\"information\">Package Developer's Guide</a><br>"
+ << "<a href=\""
+ << doc_path
+ << "doxygen/bbtk/main.html"
+ << "\" target=\"information\">bbtk library doxygen doc</a><br>"
+ << "<H2>Boxes</H2>"
+ << "<a target=\"information\" href=\"bbdoc/index-alpha.html\">"
+ << "Alphabetical list</a><br>"
+ << "<a target=\"information\" href=\"bbdoc/index-package.html\">"
+ << "List by package</a><br>"
+ << "<a target=\"information\" href=\"bbdoc/index-category.html\">"
+ << "List by category</a><br>"
+ << "<a target=\"information\" href=\"bbdoc/index-adaptors.html\">"
+ << "List of adaptors</a><br>"
+ << "</body>"
+ << "</html>";
+ } // if
mTemp_path = Utilities::MakeUserSettingsFullFileName("tmp");
Utilities::CreateDirectoryIfNeeded(mTemp_path);
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2009/11/05 16:47:42 $
- Version: $Revision: 1.39 $
+ Date: $Date: 2009/12/08 14:10:36 $
+ Version: $Revision: 1.40 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include <wx/tipwin.h>
#include <wx/splash.h>
+
//#include "icons/cc_run.xpm"
namespace bbtk
std::string configFile =
ConfigurationFile::GetInstance().Get_config_xml_full_path();
Open(configFile);
- wxMessageDialog ww(NULL,_T("If you change the bbtk_config.xml, you have to reinicialice this appliaction..."), _T("Alert !"), wxOK);
+ wxMessageDialog ww(NULL,_T("If you change the bbtk_config.xml, you have to restart this appliaction..."), _T("Alert !"), wxOK);
ww.ShowModal();
}
//================================================================
command += " -q";
bbtkMessage("debug",1,"Executing system command '"<<command<<"'"<<std::endl);
-
-
if ( ! system ( command.c_str() ) )
{
SetStatusText( _T("Done !"));
{
size_t s = target.length();
if ((s>3) && (target[s-1]=='s')
- && (target[s-2]=='b')
- && (target[s-3]=='b')
- && (target[s-4]=='.'))
- {
- mWxGUITextEditor->Open(target);
-#if NOTEBOOK
- mwxNotebook->SetSelection(0);
-#endif
- mWxGUITextEditor->SetFocus();
- return false;
- }
+ && (target[s-2]=='b')
+ && (target[s-3]=='b')
+ && (target[s-4]=='.'))
+ {
+ mWxGUITextEditor->Open(target);
+ #if NOTEBOOK
+ mwxNotebook->SetSelection(0);
+ #endif
+ mWxGUITextEditor->SetFocus();
+ return false;
+ }
+
+ if ((s>3) && (target[s-1]=='f')
+ && (target[s-2]=='d')
+ && (target[s-3]=='p')
+ && (target[s-4]=='.'))
+ {
+
+ // Open pdf in linux
+ // gnome-open target
+
+ // Open pdf in macOS
+
+ // Open pdf in windows
+ int size=target.size();
+ int pos=target.rfind("\\");
+ std::string commandStart("start ");
+ std::string commandPath("/D \""+target.substr(0,pos) +"\"");
+ std::string commandPDF( target.substr(pos+1,size-pos+1) );
+
+ printf("EED WxGUIScriptingInterface::WxGUIHtmlBrowserUserOnLinkClicked cc %s \n",commandPath.c_str() );
+ // cleanning path
+ while (commandPath.rfind("\\\\")!=-1 )
+ {
+ commandPath.erase( commandPath.rfind("\\\\") , 1 );
+ printf("EED WxGUIScriptingInterface::WxGUIHtmlBrowserUserOnLinkClicked cc %s \n",commandPath.c_str() );
+ }
+
+ std::string command = commandStart+commandPath+" "+commandPDF;
+ printf("EED WxGUIScriptingInterface::WxGUIHtmlBrowserUserOnLinkClicked BB %s \n",command.c_str() );
+ system( command.c_str() );
+ return false;
+ }
return true;
}
//================================================================
<!--=====================================================================-->
<!--========================================================================
- CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
+ CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
<defaultValues><PRE>
</PRE></defaultValues>