GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
octave-gui.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2012-2017 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 the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 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 <http://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  : application (argc, argv), m_argc (argc), m_argv (argv),
36  m_gui_running (false)
37  { }
38 
39  // Should we start the GUI or fall back to the CLI?
40  bool start_gui_p (void) const;
41 
42  int execute (void);
43 
44  bool gui_running (void) const { return m_gui_running; }
45  void gui_running (bool arg) { m_gui_running = arg; }
46 
47  private:
48 
49  // No copying, at least not yet.
50 
52 
53  gui_application& operator = (const gui_application&);
54 
55  int m_argc;
56  char **m_argv;
58  };
59 }
60 
61 #endif
Octave interface to the compression and uncompression libraries.
Definition: aepbalance.cc:47
int argc
Definition: load-save.cc:633
gui_application(int argc, char **argv)
Definition: octave-gui.h:34
bool gui_running(void) const
Definition: octave-gui.h:44
octave_value arg
Definition: pr-output.cc:3440
string_vector argv
Definition: load-save.cc:635
is false
Definition: cellfun.cc:398
void gui_running(bool arg)
Definition: octave-gui.h:45