GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::base_qobject Class Reference

Base class for Octave interfaces that use Qt. More...

#include "octave-qobject.h"

Inheritance diagram for octave::base_qobject:
Collaboration diagram for octave::base_qobject:

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_applicationapp_context (void)
 
void config_translators (void)
 
virtual bool confirm_shutdown (void)
 
int exec (void)
 
std::shared_ptr< qt_interpreter_eventsget_qt_interpreter_events (void)
 
resource_managerget_resource_manager (void)
 
shortcut_managerget_shortcut_manager (void)
 
interpreter_qobjectinterpreter_qobj (void)
 
QThreadmain_thread (void)
 
QApplicationqapplication (void)
 
qt_interpreter_eventsqt_link (void)
 
void start_main_thread (void)
 

Protected Attributes

qt_applicationm_app_context
 
int m_argc
 
char ** m_argv
 
QTranslator * m_gui_tr
 
interpreter_qobjectm_interpreter_qobj
 
QThreadm_main_thread
 
octave_qapplicationm_qapplication
 
QTranslator * m_qsci_tr
 
std::shared_ptr< qt_interpreter_eventsm_qt_interpreter_events
 
QTranslator * m_qt_tr
 
resource_manager m_resource_manager
 
shortcut_manager m_shortcut_manager
 
bool m_translators_installed
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ base_qobject()

◆ ~base_qobject()

octave::base_qobject::~base_qobject ( void  )

Member Function Documentation

◆ app_context()

qt_application& octave::base_qobject::app_context ( void  )
inline

Definition at line 96 of file octave-qobject.h.

References m_app_context.

Referenced by octave::interpreter_qobject::execute().

◆ config_translators()

◆ confirm_shutdown()

bool octave::base_qobject::confirm_shutdown ( void  )
virtual

Reimplemented in octave::gui_qobject.

Definition at line 287 of file octave-qobject.cc.

◆ copy_image_to_clipboard

void octave::base_qobject::copy_image_to_clipboard ( const QString &  file,
bool  remove_file 
)
slot

Definition at line 334 of file octave-qobject.cc.

Referenced by base_qobject().

◆ exec()

int octave::base_qobject::exec ( void  )

Definition at line 282 of file octave-qobject.cc.

References m_qapplication.

Referenced by octave::qt_application::execute().

◆ get_qt_interpreter_events()

std::shared_ptr<qt_interpreter_events> octave::base_qobject::get_qt_interpreter_events ( void  )
inline

Definition at line 111 of file octave-qobject.h.

References m_qt_interpreter_events.

Referenced by octave::interpreter_qobject::execute().

◆ get_resource_manager()

resource_manager& octave::base_qobject::get_resource_manager ( void  )
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().

◆ get_shortcut_manager()

◆ handle_interpreter_execution_finished

void octave::base_qobject::handle_interpreter_execution_finished ( int  exit_status)
slot

Definition at line 292 of file octave-qobject.cc.

References request_interpreter_shutdown().

Referenced by base_qobject().

◆ handle_interpreter_shutdown_finished

void octave::base_qobject::handle_interpreter_shutdown_finished ( int  exit_status)
slot

Definition at line 297 of file octave-qobject.cc.

References m_main_thread.

Referenced by base_qobject().

◆ interpreter_event [1/2]

void octave::base_qobject::interpreter_event ( const fcn_callback fcn)
slot

◆ interpreter_event [2/2]

void octave::base_qobject::interpreter_event ( const meth_callback meth)
slot

◆ interpreter_qobj()

◆ main_thread()

QThread* octave::base_qobject::main_thread ( void  )
inline

Definition at line 126 of file octave-qobject.h.

References m_main_thread.

◆ qapplication()

QApplication* octave::base_qobject::qapplication ( void  )
inline

◆ qt_link()

qt_interpreter_events* octave::base_qobject::qt_link ( void  )
inline

◆ request_interpreter_shutdown

void octave::base_qobject::request_interpreter_shutdown ( int  )
signal

◆ start_main_thread()

void octave::base_qobject::start_main_thread ( void  )

Member Data Documentation

◆ m_app_context

qt_application& octave::base_qobject::m_app_context
protected

Definition at line 148 of file octave-qobject.h.

Referenced by octave::gui_qobject::gui_qobject(), and app_context().

◆ m_argc

int octave::base_qobject::m_argc
protected

Definition at line 153 of file octave-qobject.h.

◆ m_argv

char** octave::base_qobject::m_argv
protected

Definition at line 154 of file octave-qobject.h.

Referenced by ~base_qobject().

◆ m_gui_tr

QTranslator* octave::base_qobject::m_gui_tr
protected

Definition at line 163 of file octave-qobject.h.

Referenced by ~base_qobject(), and config_translators().

◆ m_interpreter_qobj

interpreter_qobject* octave::base_qobject::m_interpreter_qobj
protected

◆ m_main_thread

QThread* octave::base_qobject::m_main_thread
protected

◆ m_qapplication

octave_qapplication* octave::base_qobject::m_qapplication
protected

◆ m_qsci_tr

QTranslator* octave::base_qobject::m_qsci_tr
protected

Definition at line 164 of file octave-qobject.h.

Referenced by ~base_qobject(), and config_translators().

◆ m_qt_interpreter_events

std::shared_ptr<qt_interpreter_events> octave::base_qobject::m_qt_interpreter_events
protected

Definition at line 168 of file octave-qobject.h.

Referenced by get_qt_interpreter_events(), and qt_link().

◆ m_qt_tr

QTranslator* octave::base_qobject::m_qt_tr
protected

Definition at line 162 of file octave-qobject.h.

Referenced by ~base_qobject(), and config_translators().

◆ m_resource_manager

resource_manager octave::base_qobject::m_resource_manager
protected

◆ m_shortcut_manager

shortcut_manager octave::base_qobject::m_shortcut_manager
protected

Definition at line 160 of file octave-qobject.h.

Referenced by get_shortcut_manager().

◆ m_translators_installed

bool octave::base_qobject::m_translators_installed
protected

Definition at line 166 of file octave-qobject.h.

Referenced by config_translators().


The documentation for this class was generated from the following files: