26 #if ! defined (octave_octave_qobject_h)
27 #define octave_octave_qobject_h 1
31 #include <QApplication>
35 #include <QStringList>
45 class qt_interpreter_events;
Base class for Octave interfaces that use Qt.
qt_application & app_context(void)
std::shared_ptr< qt_interpreter_events > m_qt_interpreter_events
void copy_image_to_clipboard(const QString &file, bool remove_file)
void handle_interpreter_execution_finished(int)
interpreter_qobject * m_interpreter_qobj
std::shared_ptr< qt_interpreter_events > get_qt_interpreter_events(void)
qt_interpreter_events * qt_link(void)
shortcut_manager m_shortcut_manager
qt_application & m_app_context
bool m_translators_installed
interpreter_qobject * interpreter_qobj(void)
base_qobject(qt_application &app_context)
void start_main_thread(void)
resource_manager m_resource_manager
void request_interpreter_shutdown(int)
resource_manager & get_resource_manager(void)
void handle_interpreter_shutdown_finished(int)
QApplication * qapplication(void)
virtual bool confirm_shutdown(void)
shortcut_manager & get_shortcut_manager(void)
octave_qapplication * m_qapplication
void config_translators(void)
QThread * main_thread(void)
void interpreter_event(const fcn_callback &fcn)
This object provides a command-line interface to Octave that may use Qt graphics.
~cli_qobject(void)=default
cli_qobject(qt_application &app_context)
This object provides a full GUI interface to Octave that is implemented Qt.
bool confirm_shutdown(void)
main_window * m_main_window
gui_qobject(qt_application &app_context)
Represents the main window.
This class is a simple wrapper around QApplication so that we can reimplement QApplication::notify.
virtual bool notify(QObject *receiver, QEvent *e) override
Reimplement QApplication::notify.
void interpreter_event(const fcn_callback &fcn)
~octave_qapplication(void)
void interpreter_event(const meth_callback &meth)
octave_qapplication(int &argc, char **argv)
This class inherits from the pure-virtual base class octave::application and provides an implementati...
std::function< void(octave::interpreter &)> meth_callback
std::function< void(void)> fcn_callback