GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave-gui.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2012-2018 John W. Eaton
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 General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_octave_gui_h)
24 #define octave_octave_gui_h 1
25 
26 #include "octave.h"
27 
28 namespace octave
29 {
30  class OCTGUI_API gui_application : public application
31  {
32  public:
33 
34  gui_application (int argc, char **argv);
35 
36  // No copying, at least not yet.
37 
38  gui_application (const gui_application&) = delete;
39 
40  gui_application& operator = (const gui_application&) = delete;
41 
42  // Should we start the GUI or fall back to the CLI?
43  bool start_gui_p (void) const;
44 
45  int execute (void);
46 
47  bool gui_running (void) const { return m_gui_running; }
48  void gui_running (bool arg) { m_gui_running = arg; }
49 
50  private:
51 
52  int m_argc;
53  char **m_argv;
55  };
56 }
57 
58 #endif
bool gui_running(void) const
Definition: octave-gui.h:47
int argc
Definition: load-save.cc:646
octave_value arg
Definition: pr-output.cc:3244
string_vector argv
Definition: load-save.cc:648
void gui_running(bool arg)
Definition: octave-gui.h:48