GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "octave-qt-link.h"
Public Types | |
typedef std::list< std::pair < std::string, std::string > > | filter_list |
Public Slots | |
void | terminal_interrupt (void) |
Signals | |
void | append_history_signal (const QString &hist_entry) |
void | change_directory_signal (const QString &dir) |
void | clear_history_signal (void) |
void | clear_workspace_signal (void) |
void | delete_debugger_pointer_signal (const QString &, int) |
void | edit_file_signal (const QString &file) |
void | enter_debugger_signal (void) |
void | execute_command_in_terminal_signal (const QString &command) |
void | execute_interpreter_signal (void) |
void | exit_debugger_signal (void) |
void | exit_signal (int status) |
void | insert_debugger_pointer_signal (const QString &, int) |
void | set_history_signal (const QStringList &hist) |
void | set_workspace_signal (bool top_level, const QString &scopes, const QStringList &symbols, const QStringList &class_names, const QStringList &dimensions, const QStringList &values, const QIntList &complex_flags) |
void | show_doc_signal (const QString &file) |
void | show_preferences_signal (void) |
void | update_breakpoint_marker_signal (bool insert, const QString &file, int line) |
Public Member Functions | |
octave_qt_link (void) | |
~octave_qt_link (void) | |
void | do_append_history (const std::string &hist_entry) |
void | do_change_directory (const std::string &dir) |
void | do_clear_history (void) |
void | do_clear_workspace (void) |
int | do_debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option) |
bool | do_edit_file (const std::string &file) |
void | do_enter_debugger_event (const std::string &file, int line) |
void | do_execute_command_in_terminal (const std::string &command) |
void | do_execute_in_debugger_event (const std::string &file, int line) |
bool | do_exit (int status) |
void | do_exit_debugger_event (void) |
std::list< std::string > | do_file_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &pathname, const std::string &multimode) |
std::list< std::string > | do_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) |
std::pair< std::list< int >, int > | do_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) |
int | do_message_dialog (const std::string &dlg, const std::string &msg, const std::string &title) |
void | do_post_input_event (void) |
void | do_pre_input_event (void) |
bool | do_prompt_new_edit_file (const std::string &file) |
std::string | do_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 | do_set_default_prompts (std::string &ps1, std::string &ps2, std::string &ps4) |
void | do_set_history (const string_vector &hist) |
void | do_set_workspace (bool top_level, const std::list< workspace_element > &ws) |
void | do_show_doc (const std::string &file) |
void | do_show_preferences (void) |
void | do_update_breakpoint (bool insert, const std::string &file, int line) |
void | execute_interpreter (void) |
Static Public Member Functions | |
static void | append_history (const std::string &hist_entry) |
static void | change_directory (const std::string &dir) |
static void | clear_history (void) |
static void | clear_workspace (void) |
static void | connect_link (octave_link *) |
static int | debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option) |
static void | discard_events (void) |
static bool | edit_file (const std::string &file) |
static bool | enabled (void) |
static void | enter_debugger_event (const std::string &file, int line) |
static void | entered_readline_hook (void) |
static void | execute_command_in_terminal (const std::string &command) |
static void | execute_in_debugger_event (const std::string &file, int line) |
static bool | exit (int status) |
static void | exit_debugger_event (void) |
static std::list< std::string > | file_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &dirname, const std::string &multimode) |
static bool | file_in_path (const std::string &file, const std::string &dir) |
static void | finished_readline_hook (void) |
static void | generate_events (void) |
static 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) |
static 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) |
static int | message_dialog (const std::string &dlg, const std::string &msg, const std::string &title) |
template<class T > | |
static void | post_event (T *obj, void(T::*method)(void)) |
template<class T , class A > | |
static void | post_event (T *obj, void(T::*method)(A), A arg) |
template<class T , class A > | |
static void | post_event (T *obj, void(T::*method)(const A &), const A &arg) |
template<class T , class A , class B > | |
static void | post_event (T *obj, void(T::*method)(const A &, const B &), const A &arg_a, const B &arg_b) |
static void | post_input_event (void) |
static void | pre_input_event (void) |
static void | process_events (bool disable=false) |
static bool | prompt_new_edit_file (const std::string &file) |
static 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) |
static void | set_default_prompts (std::string &ps1, std::string &ps2, std::string &ps4) |
static void | set_history (const string_vector &hist) |
static void | set_workspace (void) |
static void | set_workspace (bool top_level, const std::list< workspace_element > &ws) |
static bool | show_doc (const std::string &file) |
static bool | show_preferences () |
static void | update_breakpoint (bool insert, const std::string &file, int line) |
Protected Member Functions | |
void | do_discard_events (void) |
void | do_entered_readline_hook (void) |
void | do_finished_readline_hook (void) |
void | do_generate_events (void) |
template<class T > | |
void | do_post_event (T *obj, void(T::*method)(void)) |
template<class T , class A > | |
void | do_post_event (T *obj, void(T::*method)(A), A arg) |
template<class T , class A > | |
void | do_post_event (T *obj, void(T::*method)(const A &), const A &arg) |
void | do_process_events (void) |
Protected Attributes | |
bool | debugging |
octave_mutex * | event_queue_mutex |
event_queue | gui_event_queue |
bool | link_enabled |
Private Member Functions | |
octave_qt_link (const octave_qt_link &) | |
void | do_delete_debugger_pointer (const std::string &file, int line) |
void | do_insert_debugger_pointer (const std::string &file, int line) |
octave_qt_link & | operator= (const octave_qt_link &) |
Private Attributes | |
octave_interpreter * | command_interpreter |
QThread * | main_thread |
Definition at line 50 of file octave-qt-link.h.
|
inherited |
Definition at line 190 of file octave-link.h.
octave_qt_link::octave_qt_link | ( | void | ) |
Definition at line 46 of file octave-qt-link.cc.
References command_interpreter, execute_interpreter_signal(), and main_thread.
octave_qt_link::~octave_qt_link | ( | void | ) |
Definition at line 58 of file octave-qt-link.cc.
|
private |
|
inlinestaticinherited |
Definition at line 247 of file octave-link.h.
Referenced by edit_history_add_hist(), octave_base_reader::octave_gets(), and octave_history_write_timestamp().
|
signal |
Referenced by do_append_history().
|
inlinestaticinherited |
Definition at line 213 of file octave-link.h.
Referenced by octave_change_to_directory().
|
signal |
Referenced by do_change_directory().
Definition at line 253 of file octave-link.h.
Referenced by do_history().
Referenced by do_clear_history().
Definition at line 235 of file octave-link.h.
Referenced by Fclear().
Referenced by do_clear_workspace().
|
staticinherited |
Definition at line 72 of file octave-link.cc.
References error(), and octave_link::instance.
Referenced by main_window::construct_octave_qt_link().
|
inlinestaticinherited |
Definition at line 204 of file octave-link.h.
Referenced by file_in_path().
Referenced by do_delete_debugger_pointer().
Definition at line 76 of file octave-link.h.
|
virtual |
Implements octave_link.
Definition at line 403 of file octave-qt-link.cc.
References append_history_signal().
|
virtual |
Implements octave_link.
Definition at line 348 of file octave-qt-link.cc.
References change_directory_signal().
Implements octave_link.
Definition at line 409 of file octave-qt-link.cc.
References clear_history_signal().
Implements octave_link.
Definition at line 386 of file octave-qt-link.cc.
References clear_workspace_signal().
|
virtual |
Implements octave_link.
Definition at line 300 of file octave-qt-link.cc.
References QUIWidgetCreator::get_dialog_button(), QUIWidgetCreator::signal_dialog(), uiwidget_creator, and QUIWidgetCreator::wait().
Definition at line 469 of file octave-qt-link.cc.
References delete_debugger_pointer_signal().
Referenced by do_execute_in_debugger_event().
Definition at line 96 of file octave-link.cc.
References action_container::discard(), octave_link::event_queue_mutex, octave_link::gui_event_queue, octave_mutex::lock(), and octave_mutex::unlock().
|
virtual |
Implements octave_link.
Definition at line 75 of file octave-qt-link.cc.
References edit_file_signal().
Implements octave_link.
Definition at line 425 of file octave-qt-link.cc.
References do_insert_debugger_pointer(), and enter_debugger_signal().
Definition at line 388 of file octave-link.h.
|
virtual |
Implements octave_link.
Definition at line 354 of file octave-qt-link.cc.
References execute_command_in_terminal_signal().
Implements octave_link.
Definition at line 433 of file octave-qt-link.cc.
References do_delete_debugger_pointer().
Implements octave_link.
Definition at line 439 of file octave-qt-link.cc.
References exit_debugger_signal().
|
virtual |
Implements octave_link.
Definition at line 268 of file octave-qt-link.cc.
References arg(), QUIWidgetCreator::get_dialog_path(), QUIWidgetCreator::get_dialog_result(), QUIWidgetCreator::get_string_list(), make_filter_list(), QUIWidgetCreator::signal_filedialog(), uiwidget_creator, and QUIWidgetCreator::wait().
Definition at line 389 of file octave-link.h.
Definition at line 81 of file octave-link.cc.
|
virtual |
Implements octave_link.
Definition at line 238 of file octave-qt-link.cc.
References QUIWidgetCreator::get_string_list(), make_qstring_list(), QUIWidgetCreator::signal_inputlayout(), uiwidget_creator, and QUIWidgetCreator::wait().
Definition at line 463 of file octave-qt-link.cc.
References insert_debugger_pointer_signal().
Referenced by do_enter_debugger_event().
|
virtual |
Implements octave_link.
Definition at line 209 of file octave-qt-link.cc.
References QUIWidgetCreator::get_dialog_result(), QUIWidgetCreator::get_list_index(), make_qstring_list(), QUIWidgetCreator::signal_listview(), uiwidget_creator, and QUIWidgetCreator::wait().
|
virtual |
Implements octave_link.
Definition at line 111 of file octave-qt-link.cc.
References QUIWidgetCreator::get_dialog_result(), QUIWidgetCreator::signal_dialog(), uiwidget_creator, and QUIWidgetCreator::wait().
|
inlineprotectedinherited |
Definition at line 371 of file octave-link.h.
References action_container::add_method().
|
inlineprotectedinherited |
Definition at line 377 of file octave-link.h.
References action_container::add_method().
|
inlineprotectedinherited |
Definition at line 383 of file octave-link.h.
References action_container::add_method().
Implements octave_link.
Definition at line 420 of file octave-qt-link.cc.
Implements octave_link.
Definition at line 415 of file octave-qt-link.cc.
Definition at line 86 of file octave-link.cc.
References octave_link::event_queue_mutex, octave_link::gui_event_queue, octave_mutex::lock(), action_container::run(), and octave_mutex::unlock().
|
virtual |
Implements octave_link.
Definition at line 83 of file octave-qt-link.cc.
References arg(), QUIWidgetCreator::get_dialog_button(), resource_manager::get_settings(), QUIWidgetCreator::signal_dialog(), uiwidget_creator, and QUIWidgetCreator::wait().
|
virtual |
Implements octave_link.
Definition at line 129 of file octave-qt-link.cc.
References QUIWidgetCreator::get_dialog_button(), QUIWidgetCreator::signal_dialog(), uiwidget_creator, and QUIWidgetCreator::wait().
|
virtual |
Implements octave_link.
Definition at line 453 of file octave-qt-link.cc.
|
virtual |
Implements octave_link.
Definition at line 392 of file octave-qt-link.cc.
References Array< T >::length(), and set_history_signal().
|
virtual |
Implements octave_link.
Definition at line 360 of file octave-qt-link.cc.
References set_workspace_signal().
|
virtual |
Implements octave_link.
Definition at line 546 of file octave-qt-link.cc.
References show_doc_signal().
Implements octave_link.
Definition at line 540 of file octave-qt-link.cc.
References show_preferences_signal().
|
virtual |
Implements octave_link.
Definition at line 445 of file octave-qt-link.cc.
References update_breakpoint_marker_signal().
|
inlinestaticinherited |
Definition at line 134 of file octave-link.h.
Referenced by F__octave_link_edit_file__().
|
signal |
Referenced by do_edit_file().
Definition at line 313 of file octave-link.h.
Referenced by F__octave_link_enabled__(), and octave_link::set_workspace().
|
inlinestaticinherited |
Definition at line 271 of file octave-link.h.
Referenced by get_debug_input().
Referenced by do_enter_debugger_event().
Definition at line 121 of file octave-link.h.
Referenced by octave_readline_hook().
|
inlinestaticinherited |
Definition at line 220 of file octave-link.h.
|
signal |
Referenced by do_execute_command_in_terminal().
|
inlinestaticinherited |
Definition at line 281 of file octave-link.h.
Referenced by execute_in_debugger_handler().
Definition at line 61 of file octave-qt-link.cc.
References execute_interpreter_signal().
Referenced by main_window::construct_octave_qt_link().
Referenced by execute_interpreter(), and octave_qt_link().
Definition at line 82 of file octave-link.h.
Referenced by clean_up_and_exit().
Definition at line 287 of file octave-link.h.
Referenced by octave_base_reader::octave_gets().
Referenced by do_exit_debugger_event().
|
inlinestaticinherited |
Definition at line 193 of file octave-link.h.
Referenced by F__octave_link_file_dialog__().
|
static |
Definition at line 476 of file octave-qt-link.cc.
References octave_env::base_pathname(), load_path::contains_canonical(), octave_link::debug_cd_or_addpath_error(), Fcd(), load_path::find_file(), octave_env::get_current_directory(), ovl(), load_path::prepend(), and same_file().
Referenced by main_window::run_file_callback().
Definition at line 127 of file octave-link.h.
Referenced by octave_readline_hook().
Definition at line 56 of file octave-link.h.
Referenced by octave_readline_hook().
|
inlinestaticinherited |
Definition at line 179 of file octave-link.h.
Referenced by F__octave_link_input_dialog__().
Referenced by do_insert_debugger_pointer().
|
inlinestaticinherited |
Definition at line 162 of file octave-link.h.
Referenced by F__octave_link_list_dialog__().
|
inlinestaticinherited |
Definition at line 146 of file octave-link.h.
Referenced by F__octave_link_message_dialog__().
|
private |
|
inlinestaticinherited |
Definition at line 93 of file octave-link.h.
Referenced by main_window::closeEvent(), main_window::construct(), main_window::debug_continue(), main_window::debug_quit(), main_window::debug_step_into(), main_window::debug_step_out(), main_window::debug_step_over(), main_window::execute_command_callback(), main_window::handle_clear_command_window_request(), main_window::handle_clear_history_request(), main_window::handle_clear_workspace_request(), main_window::handle_load_workspace_request(), main_window::handle_new_figure_request(), main_window::handle_rename_variable_request(), main_window::handle_save_workspace_request(), main_window::handle_undo_request(), main_window::queue_command(), main_window::run_file_in_terminal(), and main_window::set_current_working_directory().
|
inlinestaticinherited |
Definition at line 100 of file octave-link.h.
|
inlinestaticinherited |
Definition at line 107 of file octave-link.h.
|
inlinestaticinherited |
Definition at line 114 of file octave-link.h.
Definition at line 265 of file octave-link.h.
Referenced by octave_base_reader::octave_gets().
Definition at line 259 of file octave-link.h.
Referenced by octave_base_reader::octave_gets().
Definition at line 65 of file octave-link.h.
Referenced by do_octave_atexit(), and octave_readline_hook().
|
inlinestaticinherited |
Definition at line 140 of file octave-link.h.
Referenced by F__octave_link_edit_file__().
|
inlinestaticinherited |
Definition at line 153 of file octave-link.h.
Referenced by F__octave_link_question_dialog__().
|
inlinestaticinherited |
Definition at line 306 of file octave-link.h.
Referenced by set_default_prompts().
|
inlinestaticinherited |
Definition at line 241 of file octave-link.h.
Referenced by do_history(), and initialize_history().
|
signal |
Referenced by do_set_history().
Definition at line 59 of file octave-link.cc.
References symbol_table::current_scope(), octave_link::do_set_workspace(), octave_link::enabled(), octave_link::instance, symbol_table::top_scope(), and symbol_table::workspace_info().
Referenced by Fclear(), get_debug_input(), main_window::load_workspace_callback(), octave_base_reader::octave_gets(), and main_window::rename_variable_callback().
|
inlinestaticinherited |
Definition at line 228 of file octave-link.h.
|
signal |
Referenced by do_set_workspace().
|
inlinestaticinherited |
Definition at line 331 of file octave-link.h.
Referenced by F__octave_link_show_doc__().
|
signal |
Referenced by do_show_doc().
|
inlinestaticinherited |
Definition at line 319 of file octave-link.h.
Referenced by F__octave_link_show_preferences__().
Referenced by do_show_preferences().
Definition at line 552 of file octave-qt-link.cc.
References command_interpreter, and octave_interpreter::interrupt().
|
inlinestaticinherited |
Definition at line 298 of file octave-link.h.
Referenced by tree_statement_list::add_breakpoint(), bp_table::do_remove_breakpoint_1(), and tree_statement_list::remove_all_breakpoints().
|
signal |
Referenced by do_update_breakpoint().
|
private |
Definition at line 147 of file octave-qt-link.h.
Referenced by octave_qt_link(), and terminal_interrupt().
|
protectedinherited |
Definition at line 363 of file octave-link.h.
|
protectedinherited |
Definition at line 358 of file octave-link.h.
Referenced by octave_link::do_discard_events(), and octave_link::do_process_events().
|
protectedinherited |
Definition at line 361 of file octave-link.h.
Referenced by octave_link::do_discard_events(), and octave_link::do_process_events().
|
protectedinherited |
Definition at line 364 of file octave-link.h.
|
private |
Definition at line 145 of file octave-qt-link.h.
Referenced by octave_qt_link().