view libgui/src/interpreter-qobject.h @ 27196:d993642352d0

rename octave_interpreter object in GUI * interpreter-qobject.h, interpreter-qobject.cc: New files. Move octave_interpreter object here from main-window.h and main-window.cc and rename to interpreter_qobject so that it will (I hope) be clearer that this object provides a QObject wrapper around Octave's interpreter object. Change all uses. * libgui/src/module.mk: Update.
author John W. Eaton <jwe@octave.org>
date Fri, 21 Jun 2019 14:41:04 -0500
parents
children b8c0d5ad024f
line wrap: on
line source

/*

Copyright (C) 2013-2019 John W. Eaton
Copyright (C) 2011-2019 Jacob Dawid

This file is part of Octave.

Octave is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Octave is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Octave; see the file COPYING.  If not, see
<https://www.gnu.org/licenses/>.

*/

#if ! defined (octave_interpreter_qobject_h)
#define octave_interpreter_qobject_h 1

#include <QObject>

namespace octave
{
  class gui_application;

  class interpreter_qobject : public QObject
  {
    Q_OBJECT

  public:

    interpreter_qobject (gui_application& app_context);

    ~interpreter_qobject (void) = default;

  signals:

    void octave_ready_signal (void);
    void octave_finished_signal (int);

  public slots:

    //! Initialize and execute the octave interpreter.

    void execute (void);

  private:

    gui_application& m_app_context;
  };
}

#endif