GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
external-editor-interface.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2017-2018 Torsten
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU Genera*_*)
9 * l Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_external_editor_interface_h)
25 #define octave_external_editor_interface_h 1
26 
27 #include <QWidget>
28 #include <QString>
29 
30 namespace octave
31 {
33  {
34 
35  Q_OBJECT
36 
37  public:
38 
40 
41  ~external_editor_interface (void) = default;
42 
43  signals:
44 
45  void request_settings_dialog (const QString&);
46 
47  public slots:
48 
49  bool call_custom_editor (const QString& file = QString (), int line = -1);
50 
51  void request_open_file (const QString& fileName,
52  const QString& encoding = QString (),
53  int line = -1, bool debug_pointer = false,
54  bool breakpoint_marker = false, bool insert = true,
55  const QString& cond = "");
56 
57  void request_new_file (const QString&);
58 
59  void handle_edit_file_request (const QString& file);
60 
61  private:
62 
63  QString external_editor (void);
64  };
65 }
66 
67 #endif
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
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="")
bool call_custom_editor(const QString &file=QString(), int line=-1)
void handle_edit_file_request(const QString &file)
void request_settings_dialog(const QString &)