+
+ //================================================================
+ void WxGUIScriptingInterface::WxGUITextEditorGraphSimple()
+ {
+ WxGUICommandEnter("exec freeze_no_error");
+ WxGUITextEditorRun();
+ WxGUICommandEnter("exec unfreeze");
+ WxGUICommandEnter("graph");
+ }
+ //================================================================
+
+ //================================================================
+ void WxGUIScriptingInterface::WxGUITextEditorGraphDetail()
+ {
+ WxGUICommandEnter("exec freeze_no_error");
+ WxGUITextEditorRun();
+ WxGUICommandEnter("exec unfreeze");
+ WxGUICommandEnter("graph . 1");
+ }
+ //================================================================
+
+
+ //================================================================
+ void WxGUIScriptingInterface::WxGUITextEditorRunBBI()
+ {
+ std::string separator = ConfigurationFile::GetInstance().Get_file_separator ();
+ std::string dir = ConfigurationFile::GetInstance().Get_default_temp_dir();
+ std::string filename = dir + separator + "tmp_bbtk.bbs";
+ mWxGUITextEditor->GetCurrentPage()->SaveFile(filename);
+
+ std::string command = "\"";
+
+#ifdef WIN32
+ command += "\"";
+#endif
+
+ command += ConfigurationFile::GetInstance().Get_bin_path();
+#ifdef MACOSX
+ command += separator + "bbi.app/Contents/MacOS/bbi\" ";
+#else
+ command += separator + "bbi\" ";
+#endif
+ command += "\""+filename + "\"";
+
+#ifdef WIN32
+ command += "\"";
+#endif
+
+ command += " & ";
+
+ printf ("EED WxGUIScriptingInterface::WxGUITextEditorRunBBI %s \n" , command.c_str() );
+ system( command.c_str() );
+ }
+ //================================================================
+
+