26#if ! defined (octave_octave_qobject_h)
27#define octave_octave_qobject_h 1
31#include <QApplication>
46 class qt_interpreter_events;
169 QPointer<terminal_dock_widget>
172 QPointer<documentation_dock_widget>
175 QPointer<files_dock_widget>
178 QPointer<history_dock_widget>
181 QPointer<workspace_view>
187 QPointer<file_editor_interface>
190 QPointer<variable_editor>
Base class for Octave interfaces that use Qt.
void show_file_browser_window(void)
void show_release_notes(void)
qt_application & app_context(void)
shortcut_manager & get_shortcut_manager(void)
workspace_model * get_workspace_model(void)
std::shared_ptr< qt_interpreter_events > m_qt_interpreter_events
void copy_image_to_clipboard(const QString &file, bool remove_file)
QPointer< workspace_view > m_workspace_widget
QPointer< community_news > community_news_widget(int serial=-1)
interpreter_qobject * interpreter_qobj(void)
QPointer< community_news > m_community_news
QPointer< file_editor_interface > m_editor_widget
void show_community_news(int serial)
QPointer< variable_editor > variable_editor_widget(main_window *mw=nullptr)
interpreter_qobject * m_interpreter_qobj
void start_gui(bool gui_app)
void execute_command(const QString &command)
shortcut_manager m_shortcut_manager
qt_application & m_app_context
void interpreter_resume(void)
main_window * m_main_window
QPointer< workspace_view > workspace_widget(main_window *mw=nullptr)
QApplication * qapplication(void)
QPointer< files_dock_widget > file_browser_widget(main_window *mw=nullptr)
bool m_translators_installed
void connect_interpreter_events(T *widget)
workspace_model * m_workspace_model
void show_command_history_window(void)
bool experimental_terminal_widget(void) const
bool is_gui_app(void) const
QPointer< release_notes > m_release_notes
void start_main_thread(void)
void interpreter_ready(void)
bool have_terminal_window(void) const
resource_manager m_resource_manager
main_window * get_main_window(void)
void interpreter_stop(void)
QPointer< terminal_dock_widget > m_terminal_widget
qt_interpreter_events * qt_link(void)
void handle_variable_editor_update(void)
bool gui_running(void) const
void show_variable_editor_window(const QString &name, const octave_value &value)
void show_workspace_window(void)
QPointer< documentation_dock_widget > m_documentation_widget
void show_terminal_window(void)
QPointer< history_dock_widget > m_history_widget
QPointer< history_dock_widget > history_widget(main_window *mw=nullptr)
QPointer< variable_editor > m_variable_editor_widget
virtual bool confirm_shutdown(void)
std::shared_ptr< qt_interpreter_events > get_qt_interpreter_events(void)
base_qobject(qt_application &app_context, bool gui_app=false)
QPointer< documentation_dock_widget > documentation_widget(main_window *mw=nullptr)
QPointer< terminal_dock_widget > terminal_widget(main_window *mw=nullptr)
resource_manager & get_resource_manager(void)
octave_qapplication * m_qapplication
QThread * main_thread(void)
void interpreter_pause(void)
void show_documentation_window(const QString &file)
QPointer< file_editor_interface > editor_widget(main_window *mw=nullptr)
void interpreter_interrupt(void)
void config_translators(void)
QPointer< files_dock_widget > m_file_browser_widget
void interpreter_event(const fcn_callback &fcn)
QPointer< release_notes > release_notes_widget(void)
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 application and provides an implementation of th...
OCTAVE_NAMESPACE_BEGIN typedef std::function< void(void)> fcn_callback
std::function< void(interpreter &)> meth_callback