23 #if defined (HAVE_CONFIG_H) 28 #include <QMessageBox> 50 if (editor.isEmpty ())
54 editor.replace (
"%f",
file);
58 bool started_ok = QProcess::startDetached (editor);
60 if (started_ok !=
true)
64 tr (
"Could not start custom file editor\n%1").
68 msgBox->setWindowModality (Qt::NonModal);
69 msgBox->setAttribute (Qt::WA_DeleteOnClose);
85 const QString&,
int line,
101 QString editor = settings->value (
"customFileEditor").toString ();
104 if (editor.trimmed ().isEmpty ())
108 tr (
"Octave Editor"),
109 tr (
"There is no custom editor configured yet.\n" 110 "Do you want to open the preferences?"),
112 msgBox->setDefaultButton (QMessageBox::Yes);
113 msgBox->setAttribute (Qt::WA_DeleteOnClose);
115 int button = msgBox->exec ();
117 if (button == QMessageBox::Yes)
void request_new_file(const QString &)
For example cd octave end example noindent changes the current working directory to file
QString external_editor(void)
for fields that display a single number
void request_open_file(const QString &fileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="")
external_editor_interface(QWidget *main_win)
bool call_custom_editor(const QString &file=QString(), int line=-1)
void handle_edit_file_request(const QString &file)
static QSettings * get_settings(void)
void request_settings_dialog(const QString &)
nd example The result of the integration is returned in the value of it is recommended to verify this value for difficult integrands and then a warning is issued and as may be less efficient for a smooth or otherwise well behaved integrand than other methods such as Article No