+ //================================================================
+ bool WxGUIScriptingInterface::WxGUIHtmlBrowserUserOnLinkClicked(const std::string& target)
+ {
+ 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);
+ mwxNotebook->SetSelection(0);
+ mWxGUITextEditor->SetFocus();
+ return false;
+ }
+ return true;
+ }
+ //================================================================
+
+ void WxGUIScriptingInterface::OnMenuWindowsCheck( wxCommandEvent& event,
+ wxWindow* w)
+ {
+ bool checked = event.IsChecked();
+ bool shown = m_mgr.GetPane(w).IsShown();
+ // std::cout << "checked = "<<checked<<" - shown = "<<shown<<std::endl;
+ if (checked ^ shown)
+ {
+ m_mgr.GetPane(w).Show(checked);
+ m_mgr.Update();
+ }
+ }
+
+
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsFiles(wxCommandEvent& event)
+ {
+ OnMenuWindowsCheck(event,mWxGUITextEditor);
+ }
+ //================================================================
+
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsHelp(wxCommandEvent& event)
+ {
+ OnMenuWindowsCheck(event,mWxGUIHtmlBrowser);
+ }
+ //================================================================
+
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsMessages(wxCommandEvent& event)
+ {
+ OnMenuWindowsCheck(event,mWxGUIOutputMessages);
+ }
+ //================================================================
+
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsCommand(wxCommandEvent& event)
+ {
+ OnMenuWindowsCheck(event,mWxGUICommand);
+ }
+ //================================================================
+
+ //================================================================
+ void WxGUIScriptingInterface::OnMenuWindowsSave( wxCommandEvent& WXUNUSED(event))
+ {
+ // TO DO : Save it into ConfigurationFile
+ // m_mgr.SavePerspective();
+ }
+ //================================================================
+
+
+ //================================================================
+ void WxGUIScriptingInterface::OnPaneClose(wxAuiManagerEvent& evt)
+ {
+ std::cout << "Closing panel '"<<evt.pane->name<<"'"<<std::endl;