+ //========================================================================
+
+ //========================================================================
+ void WxBrowser::GoHome()
+ {
+ std::string url = ConfigurationFile::GetInstance().Get_doc_path();
+ url += "/bbtkWebSite/menu.html";
+ GoTo(url);
+
+ mwxURL->Clear();
+ mwxURL->AppendText(url);
+
+
+/*EED
+ if (Utilities::FileExists(url))
+ {
+ GoTo(url);
+ }
+ else
+ {
+ // what ?
+ }
+*/
+ }
+ //========================================================================
+
+ //========================================================================
+ void WxBrowser::OnHomeButton(wxCommandEvent& )
+ {
+ GoHome();
+ }
+ //========================================================================
+
+ //========================================================================
+ void WxBrowser::OnReloadButton(wxCommandEvent& e)
+ {
+ OnURLEnter(e);
+ }
+ //========================================================================
+
+ //========================================================================
+ void WxBrowser::OnIncludeFileButton(wxCommandEvent& )
+ {
+ std::string filename = wx2std(mwxURL->GetValue());
+ size_t s = filename.length();
+
+ WxConsole* C = WxConsole::GetInstance();
+ if (C != 0)
+ {
+ if ((s>3) && (filename[s-1]=='s')
+ && (filename[s-2]=='b')
+ && (filename[s-3]=='b')
+ && (filename[s-4]=='.'))
+ {
+ C->SetStatusText(_T("Executing ")+mwxURL->GetValue());
+ C->InterpretFile(filename);
+ }
+ else
+ {
+ C->SetStatusText(_T("The current page is not a bbs file : cannot execute it"));
+ }
+ }
+ /*
+ std::string bbdoc = ConfigurationFile::GetInstance().Get_url();
+ bbdoc += "/bbdoc";
+ std::string command("cd ");
+ command += bbdoc;
+ command += " & bbi -q -n make-index.bbs";
+ system(command.c_str());
+ */
+ }
+ //========================================================================