]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Wed, 10 Sep 2008 12:38:24 +0000 (12:38 +0000)
committerguigues <guigues>
Wed, 10 Sep 2008 12:38:24 +0000 (12:38 +0000)
kernel/doc/bbtkWebSite/help_contents.html [new file with mode: 0644]
kernel/src/bbtkWxGUIHtmlBrowser.cxx
kernel/src/bbtkWxGUIScriptingInterface.cxx

diff --git a/kernel/doc/bbtkWebSite/help_contents.html b/kernel/doc/bbtkWebSite/help_contents.html
new file mode 100644 (file)
index 0000000..e8f2c32
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <title>Help Contents</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">Demos</a><br>
+<a href="../bbdoc/index-category.html#example">Examples</a>
+
+<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="../bbtkDevelopersGuide/bbtkDevelopersGuide.html" target="information">Developer's Guide</a><br>
+<a href="../bbtkReferenceManual/bbtkReferenceManual.html" target="information">Reference Manual</a> (to be written)<br>
+<a href="../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>
index c44820ff8fe04972e1c86405a455dcbef7355f3a..adaea1b4848a3a04f0897fe97b7e8246dc98e538 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIHtmlBrowser.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/06/10 19:19:42 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/09/10 12:38:24 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -219,7 +219,7 @@ namespace bbtk
   void WxGUIHtmlBrowser::GoHome()
   {
     std::string url = ConfigurationFile::GetInstance().Get_doc_path();
-    url += "/bbtkWebSite/menu.html";
+    url += "/bbtkWebSite/help_contents.html";
        GoTo(url);
 
     mwxURL->Clear();
index d176ba3d31a2b1eb8adf37ddffdc7169c903362a..2eb5ebe67162a14d6c4aa3d04773e42d93bc4fc2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/09/10 09:25:19 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2008/09/10 12:38:24 $
+  Version:   $Revision: 1.18 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -39,6 +39,7 @@
 #include "bbtkWxStreamRedirector.h"
 #include "bbtkUtilities.h"
 
+#include <wx/tipwin.h>
 
 //#include "icons/cc_run.xpm"
 
@@ -233,9 +234,14 @@ namespace bbtk
     //    mwxNotebook->SetSelection(1);
     mWxGUIHtmlBrowser->GoHome();
 //    Refresh();
-//    m_mgr.Update();
+    m_mgr.Update();
     //   LoadPerspective();
 
+
+    wxTipWindow* tip = new wxTipWindow(this,
+                                      _T("\n                  Welcome to bbStudio !\n\n   To run a demo or example:\n     1. click on the 'Demos' or 'Examples' link\n     2. select a demo or example\n     3. click on the '[source]' link : the source file is loaded in bbStudio\n     4. click on the 'Run' button (the arrow at the bottom right of the source file)   \n"),1000);
+    tip->CenterOnParent();
+    tip->Show();
   }
   //================================================================
 
@@ -543,6 +549,11 @@ namespace bbtk
     f.open(fname.c_str(), std::ios::out );
     f << conf << std::endl;
 
+    int x,y;
+    GetPosition(&x,&y);
+    f << x << "  " << y << std::endl;
+
+
     int w,h;
     GetSize(&w,&h);
 
@@ -566,14 +577,17 @@ namespace bbtk
        std::string conf;
        f >> conf;
 
-       int w,h;
+       int x,y;
+       f >> x >> y ;
 
+       int w,h;
        f >> w >> h ;
 
        f.close();
        
        //      std::cout << conf << std::endl;
 
+       Move(x,y);
        SetSize(w,h);
        m_mgr.LoadPerspective(std2wx(conf));
       }