Base class for Octave interfaces that use Qt. More...
#include "octave-qobject.h"
Public Slots | |
void | copy_image_to_clipboard (const QString &file, bool remove_file) |
void | handle_interpreter_execution_finished (int) |
void | handle_interpreter_shutdown_finished (int) |
void | interpreter_event (const fcn_callback &fcn) |
void | interpreter_event (const meth_callback &meth) |
Signals | |
void | request_interpreter_shutdown (int) |
Public Member Functions | |
base_qobject (qt_application &app_context) | |
~base_qobject (void) | |
qt_application & | app_context (void) |
void | config_translators (void) |
virtual bool | confirm_shutdown (void) |
int | exec (void) |
std::shared_ptr< qt_interpreter_events > | get_qt_interpreter_events (void) |
resource_manager & | get_resource_manager (void) |
shortcut_manager & | get_shortcut_manager (void) |
interpreter_qobject * | interpreter_qobj (void) |
QThread * | main_thread (void) |
QApplication * | qapplication (void) |
qt_interpreter_events * | qt_link (void) |
void | start_main_thread (void) |
Protected Attributes | |
qt_application & | m_app_context |
int | m_argc |
char ** | m_argv |
QTranslator * | m_gui_tr |
interpreter_qobject * | m_interpreter_qobj |
QThread * | m_main_thread |
octave_qapplication * | m_qapplication |
QTranslator * | m_qsci_tr |
std::shared_ptr< qt_interpreter_events > | m_qt_interpreter_events |
QTranslator * | m_qt_tr |
resource_manager | m_resource_manager |
shortcut_manager | m_shortcut_manager |
bool | m_translators_installed |
Base class for Octave interfaces that use Qt.
There are two classes derived from this one. One provides a command-line interface that may use Qt graphics and another provides the full GUI experience.
Definition at line 79 of file octave-qobject.h.
octave::base_qobject::base_qobject | ( | qt_application & | app_context | ) |
Definition at line 161 of file octave-qobject.cc.
References copy_image_to_clipboard(), octave::sys::env::getenv(), handle_interpreter_execution_finished(), handle_interpreter_shutdown_finished(), interpreter_event(), m_interpreter_qobj, m_main_thread, m_qapplication, octave::message_handler(), OCTAVE_VERSION, qt_link(), and request_interpreter_shutdown().
octave::base_qobject::~base_qobject | ( | void | ) |
Definition at line 242 of file octave-qobject.cc.
References string_vector::delete_c_str_vec(), m_argv, m_gui_tr, m_interpreter_qobj, m_qapplication, m_qsci_tr, and m_qt_tr.
|
inline |
Definition at line 96 of file octave-qobject.h.
References m_app_context.
Referenced by octave::interpreter_qobject::execute().
void octave::base_qobject::config_translators | ( | void | ) |
Definition at line 257 of file octave-qobject.cc.
References octave::resource_manager::config_translators(), m_gui_tr, m_qapplication, m_qsci_tr, m_qt_tr, m_resource_manager, and m_translators_installed.
Referenced by octave::cli_qobject::cli_qobject(), and octave::main_window::main_window().
|
virtual |
Reimplemented in octave::gui_qobject.
Definition at line 287 of file octave-qobject.cc.
|
slot |
Definition at line 334 of file octave-qobject.cc.
Referenced by base_qobject().
int octave::base_qobject::exec | ( | void | ) |
Definition at line 282 of file octave-qobject.cc.
References m_qapplication.
Referenced by octave::qt_application::execute().
|
inline |
Definition at line 111 of file octave-qobject.h.
References m_qt_interpreter_events.
Referenced by octave::interpreter_qobject::execute().
|
inline |
Definition at line 101 of file octave-qobject.h.
References m_resource_manager.
Referenced by octave::documentation::documentation(), octave::dw_main_window::dw_main_window(), octave::file_editor_tab::file_editor_tab(), octave::FileDialog::FileDialog(), octave::files_dock_widget::files_dock_widget(), octave::find_files_dialog::find_files_dialog(), octave::initial_page::initial_page(), octave::main_window::main_window(), octave::octave_dock_widget::octave_dock_widget(), octave::set_path_dialog::set_path_dialog(), octave::settings_dialog::settings_dialog(), octave::terminal_dock_widget::terminal_dock_widget(), octave::variable_dock_widget::variable_dock_widget(), octave::workspace_view::workspace_view(), octave::welcome_wizard::accept(), octave::variable_editor_view::add_edit_actions(), octave::find_files_dialog::browse_folders(), octave::main_window::browse_for_directory(), annotation_dialog::button_clicked(), octave::file_editor::call_custom_editor(), octave::variable_dock_widget::change_floating(), octave::variable_dock_widget::change_fullscreen(), octave::file_editor::closeEvent(), octave::octave_qscintilla::comment_string(), octave::main_window::confirm_shutdown(), QTerminal::construct(), octave::history_dock_widget::construct(), octave::file_editor::construct(), octave::main_window::construct_debug_menu_item(), octave::main_window::construct_edit_menu(), octave::main_window::construct_file_menu(), octave::main_window::construct_new_menu(), octave::documentation::construct_tool_bar(), octave::main_window::construct_tool_bar(), octave::variable_editor::construct_tool_bar(), octave::files_dock_widget::contextmenu_requested(), octave::octave_qscintilla::contextmenu_run(), octave::octave_qscintilla::ctx_menu_run_finished(), octave::history_dock_widget::ctxMenu(), octave::file_editor_tab::detect_eol_mode(), octave::files_dock_widget::display_directory(), octave::file_editor_tab::do_comment_selected_text(), octave::main_window::do_reset_windows(), octave::variable_editor::edit_variable(), octave::file_editor::empty_script(), octave::external_editor_interface::external_editor(), octave::main_window::focus_console_after_command(), octave::settings_dialog::get_dir(), octave::file_editor_tab::handle_decode_warning_answer(), octave::file_editor::handle_enter_debug_mode(), octave::file_editor::handle_file_name_changed(), octave::main_window::handle_load_workspace_request(), octave::main_window::handle_octave_ready(), octave::main_window::handle_save_workspace_request(), octave::file_editor::handle_visibility(), octave::workspace_view::header_contextmenu_requested(), octave::files_dock_widget::headercontextmenu_requested(), octave::shortcut_manager::import_export(), annotation_dialog::init(), octave::shortcut_manager::init(), octave::shortcut_manager::init_data(), octave::main_window::load_and_display_community_news(), QtHandles::Canvas::make_cursor(), octave::octave_dock_widget::make_widget(), octave::file_editor::mru_menu_update(), octave::file_editor_tab::new_file(), octave::main_window::notice_settings(), octave::files_dock_widget::popdownmenu_search_dir(), octave::news_reader::process(), octave::main_window::read_settings(), octave::main_window::request_new_function(), octave::file_editor::request_open_file(), octave::main_window::request_open_file(), octave::main_window::request_reload_settings(), octave::main_window::restore_create_file_setting(), octave::find_dialog::restore_settings(), octave::variable_editor_stack::save(), octave::file_editor_tab::save_file_as(), octave::file_editor::save_session(), octave::find_dialog::save_settings(), octave::files_dock_widget::save_settings(), octave::find_files_dialog::save_settings(), octave::history_dock_widget::save_settings(), octave::octave_dock_widget::save_settings(), octave::set_path_dialog::save_settings(), octave::workspace_view::save_settings(), octave::octave_dock_widget::set_focus_predecessor(), octave::shortcut_manager::set_shortcut(), octave::workspace_view::setModel(), octave::shortcut_manager::shortcut(), octave::settings_dialog::show_tab(), octave::files_dock_widget::toggle_header(), octave::workspace_view::toggle_header(), octave::file_editor::toggle_preference(), octave::file_editor_tab::update_lexer_settings(), octave::settings_dialog::write_changed_settings(), and octave::main_window::write_settings().
|
inline |
Definition at line 106 of file octave-qobject.h.
References m_shortcut_manager.
Referenced by octave::main_window::main_window(), octave::octave_dock_widget::octave_dock_widget(), octave::settings_dialog::settings_dialog(), octave::main_window::configure_shortcuts(), octave::settings_dialog::default_shortcut_set(), octave::settings_dialog::export_shortcut_set(), octave::file_editor::handle_exit_debug_mode(), octave::settings_dialog::import_shortcut_set(), octave::dw_main_window::notice_settings(), octave::documentation::notice_settings(), octave::file_editor::set_shortcuts(), and octave::settings_dialog::write_changed_settings().
|
slot |
Definition at line 292 of file octave-qobject.cc.
References request_interpreter_shutdown().
Referenced by base_qobject().
|
slot |
Definition at line 297 of file octave-qobject.cc.
References m_main_thread.
Referenced by base_qobject().
|
slot |
Definition at line 310 of file octave-qobject.cc.
References octave::interpreter_qobject::interpreter_event(), and m_interpreter_qobj.
Referenced by base_qobject().
|
slot |
Definition at line 322 of file octave-qobject.cc.
References octave::interpreter_qobject::interpreter_event(), and m_interpreter_qobj.
|
inline |
Definition at line 121 of file octave-qobject.h.
References m_interpreter_qobj.
Referenced by octave::main_window::construct(), octave::main_window::construct_octave_qt_link(), octave::main_window::file_remove_proxy(), and octave::main_window::handle_set_path_dialog_request().
|
inline |
Definition at line 126 of file octave-qobject.h.
References m_main_thread.
|
inline |
Definition at line 99 of file octave-qobject.h.
References m_qapplication.
Referenced by octave::main_window::main_window(), and octave::main_window::notice_settings().
|
inline |
Definition at line 116 of file octave-qobject.h.
References m_qt_interpreter_events.
Referenced by base_qobject(), octave::gui_qobject::gui_qobject(), and octave::interpreter_qobject::qt_link().
|
signal |
Referenced by base_qobject(), and handle_interpreter_execution_finished().
void octave::base_qobject::start_main_thread | ( | void | ) |
Definition at line 271 of file octave-qobject.cc.
References m_interpreter_qobj, and m_main_thread.
Referenced by octave::cli_qobject::cli_qobject(), and octave::gui_qobject::gui_qobject().
|
protected |
Definition at line 148 of file octave-qobject.h.
Referenced by octave::gui_qobject::gui_qobject(), and app_context().
|
protected |
Definition at line 153 of file octave-qobject.h.
|
protected |
Definition at line 154 of file octave-qobject.h.
Referenced by ~base_qobject().
|
protected |
Definition at line 163 of file octave-qobject.h.
Referenced by ~base_qobject(), and config_translators().
|
protected |
Definition at line 170 of file octave-qobject.h.
Referenced by base_qobject(), octave::gui_qobject::gui_qobject(), ~base_qobject(), interpreter_event(), interpreter_qobj(), and start_main_thread().
|
protected |
Definition at line 172 of file octave-qobject.h.
Referenced by base_qobject(), handle_interpreter_shutdown_finished(), main_thread(), and start_main_thread().
|
protected |
Definition at line 156 of file octave-qobject.h.
Referenced by base_qobject(), octave::cli_qobject::cli_qobject(), ~base_qobject(), config_translators(), exec(), and qapplication().
|
protected |
Definition at line 164 of file octave-qobject.h.
Referenced by ~base_qobject(), and config_translators().
|
protected |
Definition at line 168 of file octave-qobject.h.
Referenced by get_qt_interpreter_events(), and qt_link().
|
protected |
Definition at line 162 of file octave-qobject.h.
Referenced by ~base_qobject(), and config_translators().
|
protected |
Definition at line 158 of file octave-qobject.h.
Referenced by octave::cli_qobject::cli_qobject(), config_translators(), and get_resource_manager().
|
protected |
Definition at line 160 of file octave-qobject.h.
Referenced by get_shortcut_manager().
|
protected |
Definition at line 166 of file octave-qobject.h.
Referenced by config_translators().