#include "qt-interpreter-events.h"
Public Types | |
typedef std::list< std::pair< std::string, std::string > > | filter_list |
Public Slots | |
void | confirm_shutdown_octave (void) |
void | get_named_icon_slot (const QString &name) |
void | gui_preference_slot (const QString &key, const QString &value) |
Signals | |
void | append_history_signal (const QString &hist_entry) |
void | apply_new_settings (void) |
void | clear_history_signal (void) |
void | clear_workspace_signal (void) |
void | close_gui_signal (void) |
void | confirm_shutdown_signal (void) |
void | copy_image_to_clipboard_signal (const QString &file, bool remove_file) |
void | delete_debugger_pointer_signal (const QString &, int) |
void | directory_changed_signal (const QString &dir) |
void | edit_file_signal (const QString &file) |
void | edit_variable_signal (const QString &name, const octave_value &val) |
void | enter_debugger_signal (void) |
void | execute_command_in_terminal_signal (const QString &command) |
void | exit_debugger_signal (void) |
void | file_remove_signal (const QString &old_name, const QString &new_name) |
void | file_renamed_signal (bool load_new) |
void | focus_window_signal (const QString &win_name) |
void | get_named_icon_signal (const QString &name) |
void | gui_preference_signal (const QString &key, const QString &value) |
void | gui_status_update_signal (const QString &feature, const QString &status) |
void | insert_debugger_pointer_signal (const QString &, int) |
void | interpreter_output_signal (const QString &msg) |
void | new_command_line_signal (const QString &msg=QString()) |
void | refresh_variable_editor_signal (void) |
void | register_documentation_signal (const QString &file) |
void | set_history_signal (const QStringList &hist) |
void | set_workspace_signal (bool top_level, bool debug, const symbol_info_list &syminfo) |
void | settings_changed (const gui_settings *, bool) |
void | show_command_history_signal (void) |
void | show_community_news_signal (int serial) |
void | show_documentation_signal (const QString &file) |
void | show_file_browser_signal (void) |
void | show_preferences_signal (void) |
void | show_release_notes_signal (void) |
void | show_terminal_window_signal (void) |
void | show_workspace_signal (void) |
void | start_gui_signal (bool gui_app) |
void | unregister_documentation_signal (const QString &file) |
void | update_breakpoint_marker_signal (bool insert, const QString &file, int line, const QString &cond) |
void | update_gui_lexer_signal (bool update_apis_only) |
void | update_path_dialog_signal (void) |
void | update_prompt_signal (const QString &prompt) |
Public Member Functions | |
qt_interpreter_events (base_qobject &oct_qobj) | |
qt_interpreter_events (const qt_interpreter_events &)=delete | |
~qt_interpreter_events (void)=default | |
void | append_history (const std::string &hist_entry) |
void | apply_preferences (void) |
void | clear_history (void) |
void | clear_workspace (void) |
void | close_gui (void) |
bool | confirm_shutdown (void) |
bool | copy_image_to_clipboard (const std::string &file) |
int | debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option) |
void | directory_changed (const std::string &dir) |
void | display_exception (const execution_exception &ee, bool beep) |
bool | edit_file (const std::string &file) |
void | edit_variable (const std::string &name, const octave_value &val) |
void | enter_debugger_event (const std::string &fcn_name, const std::string &fcn_file_name, int line) |
void | execute_command_in_terminal (const std::string &command) |
void | execute_in_debugger_event (const std::string &file, int line) |
void | exit_debugger_event (void) |
std::list< std::string > | file_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &pathname, const std::string &multimode) |
void | file_remove (const std::string &old_name, const std::string &new_name) |
void | file_renamed (bool load_new=true) |
void | focus_window (const std::string win_name) |
uint8NDArray | get_named_icon (const std::string &icon_name) |
std::string | gui_preference (const std::string &key, const std::string &value) |
void | gui_status_update (const std::string &feature, const std::string &status) |
bool | have_dialogs (void) const |
std::list< std::string > | input_dialog (const std::list< std::string > &prompt, const std::string &title, const std::list< float > &nr, const std::list< float > &nc, const std::list< std::string > &defaults) |
virtual void | interpreter_interrupted (void) |
void | interpreter_output (const std::string &msg) |
std::pair< std::list< int >, int > | list_dialog (const std::list< std::string > &list, const std::string &mode, int width, int height, const std::list< int > &initial_value, const std::string &name, const std::list< std::string > &prompt, const std::string &ok_string, const std::string &cancel_string) |
void | lock (void) |
qt_interpreter_events & | operator= (const qt_interpreter_events &)=delete |
void | post_input_event (void) |
void | pre_input_event (void) |
bool | prompt_new_edit_file (const std::string &file) |
std::string | question_dialog (const std::string &msg, const std::string &title, const std::string &btn1, const std::string &btn2, const std::string &btn3, const std::string &btndef) |
void | register_documentation (const std::string &file) |
void | set_history (const string_vector &hist) |
void | set_workspace (bool top_level, bool debug, const symbol_info_list &syminfo, bool update_variable_editor) |
void | show_command_history (void) |
void | show_community_news (int serial) |
bool | show_documentation (const std::string &file) |
void | show_file_browser (void) |
void | show_preferences (void) |
void | show_release_notes (void) |
void | show_terminal_window (void) |
void | show_workspace (void) |
void | start_gui (bool gui_app=false) |
void | unlock (void) |
void | unregister_documentation (const std::string &file) |
void | update_breakpoint (bool insert, const std::string &file, int line, const std::string &cond) |
void | update_gui_lexer (void) |
void | update_path_dialog (void) |
void | update_prompt (const std::string &prompt) |
void | wait (void) |
void | wake_all (void) |
Private Member Functions | |
void | delete_debugger_pointer (const std::string &file, int line) |
QString | gui_preference_adjust (const QString &key, const QString &value) |
void | insert_debugger_pointer (const std::string &file, int line) |
Private Attributes | |
QMutex | m_mutex |
base_qobject & | m_octave_qobj |
QVariant | m_result |
QUIWidgetCreator | m_uiwidget_creator |
QWaitCondition | m_waitcondition |
Definition at line 68 of file qt-interpreter-events.h.
|
inherited |
Definition at line 105 of file event-manager.h.
qt_interpreter_events::qt_interpreter_events | ( | base_qobject & | oct_qobj | ) |
Definition at line 110 of file qt-interpreter-events.cc.
References confirm_shutdown_octave(), confirm_shutdown_signal(), get_named_icon_signal(), get_named_icon_slot(), gui_preference_signal(), and gui_preference_slot().
|
delete |
|
default |
|
virtual |
Reimplemented from interpreter_events.
Definition at line 597 of file qt-interpreter-events.cc.
References append_history_signal(), and Utils::fromStdString().
|
signal |
Referenced by append_history(), and base_qobject::history_widget().
|
signal |
Referenced by apply_preferences(), and main_window::construct_octave_qt_link().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 257 of file qt-interpreter-events.cc.
References apply_new_settings().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 602 of file qt-interpreter-events.cc.
References clear_history_signal().
|
signal |
Referenced by clear_history(), and base_qobject::history_widget().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 577 of file qt-interpreter-events.cc.
References clear_workspace_signal().
|
signal |
Referenced by clear_workspace(), and base_qobject::workspace_widget().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 140 of file qt-interpreter-events.cc.
References close_gui_signal(), base_qobject::experimental_terminal_widget(), and m_octave_qobj.
|
signal |
Referenced by close_gui(), and base_qobject::start_gui().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 312 of file qt-interpreter-events.cc.
References confirm_shutdown_signal(), m_mutex, m_result, and wait().
|
slot |
Referenced by qt_interpreter_events().
|
signal |
Referenced by qt_interpreter_events(), and confirm_shutdown().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 467 of file qt-interpreter-events.cc.
References copy_image_to_clipboard_signal(), and Utils::fromStdString().
|
signal |
Referenced by base_qobject::base_qobject(), and copy_image_to_clipboard().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 351 of file qt-interpreter-events.cc.
References Utils::fromStdString(), m_uiwidget_creator, and QUIWidgetCreator::message_dialog().
|
private |
Referenced by execute_in_debugger_event().
|
signal |
Referenced by main_window::construct_octave_qt_link().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 541 of file qt-interpreter-events.cc.
References directory_changed_signal(), and Utils::fromStdString().
|
signal |
|
virtual |
Reimplemented from interpreter_events.
Definition at line 507 of file qt-interpreter-events.cc.
References base_qobject::experimental_terminal_widget(), Utils::fromStdString(), base_qobject::have_terminal_window(), interpreter_output_signal(), m_octave_qobj, and new_command_line_signal().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 299 of file qt-interpreter-events.cc.
References edit_file_signal(), and Utils::fromStdString().
|
signal |
Referenced by edit_file().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 306 of file qt-interpreter-events.cc.
References edit_variable_signal(), and Utils::fromStdString().
|
signal |
Referenced by base_qobject::base_qobject(), and edit_variable().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 613 of file qt-interpreter-events.cc.
References enter_debugger_signal(), and insert_debugger_pointer().
|
signal |
|
virtual |
Reimplemented from interpreter_events.
Definition at line 479 of file qt-interpreter-events.cc.
References execute_command_in_terminal_signal(), and Utils::fromStdString().
|
signal |
Referenced by main_window::construct_octave_qt_link(), and execute_command_in_terminal().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 626 of file qt-interpreter-events.cc.
References delete_debugger_pointer().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 632 of file qt-interpreter-events.cc.
References exit_debugger_signal().
|
signal |
|
virtual |
Reimplemented from interpreter_events.
Definition at line 147 of file qt-interpreter-events.cc.
References dirname(), QUIWidgetCreator::file_dialog(), filter(), Utils::fromStdString(), m_uiwidget_creator, and make_filter_list().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 546 of file qt-interpreter-events.cc.
References file_remove_signal(), Utils::fromStdString(), m_mutex, and wait().
|
signal |
Referenced by main_window::construct(), and file_remove().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 559 of file qt-interpreter-events.cc.
References file_renamed_signal().
|
signal |
Referenced by main_window::adopt_editor_widget(), and file_renamed().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 474 of file qt-interpreter-events.cc.
References focus_window_signal(), and Utils::fromStdString().
|
signal |
Referenced by base_qobject::base_qobject(), focus_window(), and base_qobject::start_gui().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 394 of file qt-interpreter-events.cc.
References Utils::fromStdString(), get_named_icon_signal(), m_mutex, m_result, and wait().
|
signal |
Referenced by qt_interpreter_events(), and get_named_icon().
|
slot |
Definition at line 437 of file qt-interpreter-events.cc.
References base_qobject::get_resource_manager(), resource_manager::icon(), m_mutex, m_octave_qobj, m_result, and wake_all().
Referenced by qt_interpreter_events().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 448 of file qt-interpreter-events.cc.
References Utils::fromStdString(), gui_preference_signal(), m_mutex, m_result, and wait().
|
private |
|
signal |
Referenced by qt_interpreter_events(), and gui_preference().
|
slot |
Referenced by qt_interpreter_events().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 529 of file qt-interpreter-events.cc.
References Utils::fromStdString(), and gui_status_update_signal().
|
signal |
Referenced by main_window::construct_octave_qt_link(), and gui_status_update().
|
inlinevirtual |
Reimplemented from interpreter_events.
Definition at line 89 of file qt-interpreter-events.h.
|
virtual |
Reimplemented from interpreter_events.
Definition at line 169 of file qt-interpreter-events.cc.
References Utils::fromStdString(), QUIWidgetCreator::input_dialog(), m_uiwidget_creator, and make_qstring_list().
|
private |
Referenced by enter_debugger_event().
|
signal |
Referenced by main_window::construct_octave_qt_link().
|
inlinevirtualinherited |
Definition at line 283 of file event-manager.h.
|
virtual |
Reimplemented from interpreter_events.
Definition at line 495 of file qt-interpreter-events.cc.
References base_qobject::experimental_terminal_widget(), Utils::fromStdString(), base_qobject::have_terminal_window(), interpreter_output_signal(), and m_octave_qobj.
|
signal |
Referenced by display_exception(), interpreter_output(), and base_qobject::terminal_widget().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 190 of file qt-interpreter-events.cc.
References Utils::fromStdString(), QUIWidgetCreator::list_dialog(), m_uiwidget_creator, and make_qstring_list().
|
inline |
Definition at line 207 of file qt-interpreter-events.h.
References m_mutex.
Referenced by main_window::file_remove_proxy().
|
signal |
Referenced by display_exception(), and base_qobject::terminal_widget().
|
delete |
|
virtual |
Reimplemented from interpreter_events.
Definition at line 610 of file qt-interpreter-events.cc.
|
virtual |
Reimplemented from interpreter_events.
Definition at line 607 of file qt-interpreter-events.cc.
|
virtual |
Reimplemented from interpreter_events.
Definition at line 324 of file qt-interpreter-events.cc.
References ed_create_new_file(), Utils::fromStdString(), base_qobject::get_resource_manager(), resource_manager::get_settings(), m_octave_qobj, m_uiwidget_creator, make_absolute(), and QUIWidgetCreator::message_dialog().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 216 of file qt-interpreter-events.cc.
References Utils::fromStdString(), m_uiwidget_creator, and QUIWidgetCreator::message_dialog().
|
signal |
Referenced by set_workspace(), and base_qobject::variable_editor_widget().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 485 of file qt-interpreter-events.cc.
References Utils::fromStdString(), and register_documentation_signal().
|
signal |
Referenced by base_qobject::documentation_widget(), and register_documentation().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 587 of file qt-interpreter-events.cc.
References Utils::fromStdString(), string_vector::numel(), and set_history_signal().
|
signal |
Referenced by base_qobject::history_widget(), and set_history().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 564 of file qt-interpreter-events.cc.
References refresh_variable_editor_signal(), and set_workspace_signal().
|
signal |
Referenced by set_workspace(), and base_qobject::workspace_widget().
|
signal |
Referenced by main_window::construct_octave_qt_link().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 279 of file qt-interpreter-events.cc.
References show_command_history_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_command_history().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 289 of file qt-interpreter-events.cc.
References show_community_news_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_community_news().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 267 of file qt-interpreter-events.cc.
References Utils::fromStdString(), and show_documentation_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_documentation().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 274 of file qt-interpreter-events.cc.
References show_file_browser_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_file_browser().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 252 of file qt-interpreter-events.cc.
References show_preferences_signal().
|
signal |
Referenced by main_window::construct_octave_qt_link(), and show_preferences().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 294 of file qt-interpreter-events.cc.
References show_release_notes_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_release_notes().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 262 of file qt-interpreter-events.cc.
References show_terminal_window_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_terminal_window().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 284 of file qt-interpreter-events.cc.
References show_workspace_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and show_workspace().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 134 of file qt-interpreter-events.cc.
References base_qobject::experimental_terminal_widget(), m_octave_qobj, and start_gui_signal().
|
signal |
Referenced by base_qobject::base_qobject(), and start_gui().
|
inline |
Definition at line 211 of file qt-interpreter-events.h.
References m_mutex.
Referenced by main_window::file_remove_proxy().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 490 of file qt-interpreter-events.cc.
References Utils::fromStdString(), and unregister_documentation_signal().
|
signal |
Referenced by base_qobject::documentation_widget(), and unregister_documentation().
|
virtual |
Reimplemented from interpreter_events.
|
signal |
Referenced by main_window::construct_octave_qt_link().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 536 of file qt-interpreter-events.cc.
References update_gui_lexer_signal().
|
signal |
Referenced by main_window::construct_octave_qt_link(), and update_gui_lexer().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 247 of file qt-interpreter-events.cc.
References update_path_dialog_signal().
|
signal |
Referenced by main_window::handle_set_path_dialog_request(), and update_path_dialog().
|
virtual |
Reimplemented from interpreter_events.
Definition at line 582 of file qt-interpreter-events.cc.
References Utils::fromStdString(), and update_prompt_signal().
|
signal |
Referenced by base_qobject::terminal_widget(), and update_prompt().
|
inline |
Definition at line 209 of file qt-interpreter-events.h.
References m_mutex, and m_waitcondition.
Referenced by confirm_shutdown(), file_remove(), get_named_icon(), and gui_preference().
|
inline |
Definition at line 213 of file qt-interpreter-events.h.
References m_waitcondition.
Referenced by main_window::file_remove_proxy(), and get_named_icon_slot().
|
private |
Definition at line 324 of file qt-interpreter-events.h.
Referenced by confirm_shutdown(), file_remove(), get_named_icon(), get_named_icon_slot(), gui_preference(), lock(), unlock(), and wait().
|
private |
Definition at line 318 of file qt-interpreter-events.h.
Referenced by close_gui(), display_exception(), get_named_icon_slot(), interpreter_output(), prompt_new_edit_file(), and start_gui().
|
private |
Definition at line 322 of file qt-interpreter-events.h.
Referenced by confirm_shutdown(), get_named_icon(), get_named_icon_slot(), and gui_preference().
|
private |
Definition at line 320 of file qt-interpreter-events.h.
Referenced by debug_cd_or_addpath_error(), file_dialog(), input_dialog(), list_dialog(), prompt_new_edit_file(), and question_dialog().
|
private |
Definition at line 326 of file qt-interpreter-events.h.
Referenced by wait(), and wake_all().