#include "file-editor-tab.h"
Classes | |
struct | bp_info |
struct | breakpoint_info |
Public Slots | |
void | change_editor_state (const QWidget *ID) |
void | comment_selected_text (const QWidget *ID, bool input_str) |
void | context_edit (const QWidget *ID) |
void | context_help (const QWidget *ID, bool) |
void | context_run (const QWidget *ID) |
void | convert_eol (const QWidget *ID, QsciScintilla::EolMode) |
void | delete_debugger_pointer (const QWidget *ID, int line=-1) |
void | do_breakpoint_marker (bool insert, const QWidget *ID, int line=-1, const QString &cond="") |
void | file_has_changed (const QString &path, bool do_close=false) |
void | goto_line (const QWidget *ID, int line=-1) |
void | handle_context_menu_break_condition (int linenr) |
void | handle_context_menu_edit (const QString &) |
void | handle_copy_available (bool enableCopy) |
void | handle_margin_clicked (int line, int margin, Qt::KeyboardModifiers state) |
void | handle_request_add_breakpoint (int line, const QString &cond) |
void | handle_request_remove_breakpoint (int line) |
void | indent_selected_text (const QWidget *ID) |
void | insert_debugger_pointer (const QWidget *ID, int line=-1) |
QString | load_file (const QString &fileName) |
void | move_match_brace (const QWidget *ID, bool select) |
void | new_file (const QString &commands=QString()) |
void | next_bookmark (const QWidget *ID) |
void | next_breakpoint (const QWidget *ID) |
void | notice_settings (const gui_settings *settings, bool init=false) |
void | previous_bookmark (const QWidget *ID) |
void | previous_breakpoint (const QWidget *ID) |
void | print_file (const QWidget *ID) |
void | recover_from_exit (void) |
void | remove_all_breakpoints (const QWidget *ID) |
void | remove_bookmark (const QWidget *ID) |
void | run_file (const QWidget *ID, bool step_into=false) |
void | save_file (const QWidget *ID) |
void | save_file (const QWidget *ID, const QString &fileName, bool remove_on_success) |
void | save_file_as (const QWidget *ID) |
void | scintilla_command (const QWidget *, unsigned int) |
void | set_current_directory (const QString &dir) |
void | set_encoding (const QString &new_encoding) |
void | set_focus (const QWidget *ID) |
void | set_modified (bool modified=true) |
void | show_auto_completion (const QWidget *ID) |
void | smart_indent_line_or_selected_text (const QWidget *ID) |
void | toggle_bookmark (const QWidget *ID) |
void | toggle_breakpoint (const QWidget *ID) |
void | uncomment_selected_text (const QWidget *ID) |
void | unindent_selected_text (const QWidget *ID) |
void | update_breakpoints_handler (const octave_value_list &argout) |
void | update_window_title (bool modified) |
void | zoom_in (const QWidget *ID) |
void | zoom_normal (const QWidget *ID) |
void | zoom_out (const QWidget *ID) |
Signals | |
void | api_entries_added (void) |
void | autoc_closed (void) |
void | confirm_dbquit_and_save_signal (const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints) |
void | dbstop_if (const QString &prompt, int line, const QString &cond) |
void | debug_quit_signal (void) |
void | do_save_file_signal (const QString &file_to_save, bool remove_on_success, bool restore_breakpoints) |
void | edit_area_changed (octave_qscintilla *edit_area) |
void | edit_mfile_request (const QString &, const QString &, const QString &, int) |
void | editor_check_conflict_save (const QString &saveFileName, bool remove_on_success) |
void | editor_state_changed (bool copy_available, bool is_octave_file) |
void | file_name_changed (const QString &fileName, const QString &toolTip, bool modified) |
void | find_linenr_just_before (int linenr, int &original_linenr, int &editor_linenr) |
void | find_translated_line_number (int original_linenr, int &translated_linenr, marker *&) |
void | interpreter_event (const fcn_callback &fcn) |
void | interpreter_event (const meth_callback &meth) |
void | maybe_remove_next (int remove_line) |
void | mru_add_file (const QString &file_name, const QString &encoding) |
void | remove_all_breakpoints (void) |
void | remove_all_positions (void) |
void | remove_breakpoint_via_debugger_linenr (int debugger_linenr) |
void | remove_position_via_debugger_linenr (int debugger_linenr) |
void | report_marker_linenr (QIntList &lines, QStringList &conditions) |
void | request_add_breakpoint (int line, const QString &cond) |
void | request_add_octave_apis (const QStringList &) |
void | request_open_file (const QString &, const QString &=QString()) |
void | request_remove_breakpoint_via_editor_linenr (int editor_linenr) |
void | run_file_signal (const QFileInfo &info) |
void | set_focus_editor_signal (QWidget *) |
void | tab_ready_to_close (void) |
void | tab_remove_request (void) |
void | update_breakpoints_signal (const octave_value_list &args) |
Public Member Functions | |
file_editor_tab (base_qobject &oct_qobj, const QString &directory="") | |
A file_editor_tab object consists of a text area and three left margins. More... | |
~file_editor_tab (void) | |
int | check_file_modified (bool remove=false) |
bool | conditional_close (void) |
QString | encoding (void) const |
QString | file_name (void) const |
octave_qscintilla * | qsci_edit_area (void) |
void | update_breakpoints () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
void | set_file_name (const QString &fileName) |
Private Slots | |
void | auto_margin_width (void) |
void | confirm_dbquit_and_save (const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints) |
void | do_save_file (const QString &file_to_save, bool remove_on_success, bool restore_breakpoints) |
void | handle_add_octave_apis (const QStringList &api_entries) |
void | handle_api_entries_added (void) |
void | handle_char_added (int character) |
void | handle_current_enc_changed (const QString &enc) |
void | handle_cursor_moved (int line, int col) |
void | handle_dbstop_if (const QString &prompt, int line, const QString &cond) |
void | handle_decode_warning_answer (QAbstractButton *btn) |
void | handle_double_click (int p, int l, int modifier) |
void | handle_file_reload_answer (int decision) |
void | handle_file_resave_answer (int decision) |
void | handle_lines_changed (void) |
void | handle_remove_next (int remove_line) |
void | handle_save_as_filter_selected (const QString &filter) |
void | handle_save_file_as_answer (const QString &fileName) |
void | handle_save_file_as_answer_cancel (void) |
void | handle_save_file_as_answer_close (const QString &fileName) |
void | save_apis_info (void) |
Private Member Functions | |
void | add_breakpoint_event (const bp_info &info) |
void | center_current_line (bool always=true) |
void | check_restore_breakpoints (void) |
QTextCodec * | check_valid_codec (void) |
bool | check_valid_identifier (QString file_name) |
QsciScintilla::EolMode | detect_eol_mode (void) |
void | do_comment_selected_text (bool comment, bool input_str=false) |
void | do_indent_selected_text (bool indent) |
void | do_smart_indent_line_or_selected_text (void) |
QString | get_function_name (void) |
void | save_file (const QString &saveFileName, bool remove_on_success=false, bool restore_breakpoints=true) |
void | save_file_as (bool remove_on_success=false) |
void | show_dialog (QDialog *dlg, bool modal) |
bool | unchanged_or_saved (void) |
void | update_eol_indicator (void) |
void | update_lexer (void) |
void | update_lexer_settings (void) |
bool | valid_file_name (const QString &file=QString()) |
Private Attributes | |
bool | m_always_reload_changed_files |
int | m_auto_endif |
bool | m_autoc_active |
QStringList | m_bp_conditions |
QIntList | m_bp_lines |
int | m_bp_restore_count |
breakpoint_info | m_breakpoint_info |
QString | m_ced |
int | m_col |
QLabel * | m_col_indicator |
bool | m_copy_available |
octave_qscintilla * | m_edit_area |
QLabel * | m_enc_indicator |
QString | m_encoding |
QLabel * | m_eol_indicator |
QString | m_file_name |
QString | m_file_name_short |
QFileSystemWatcher | m_file_system_watcher |
bool | m_highlight_all_occurrences |
int | m_ind_char_width |
bool | m_is_octave_file |
QDateTime | m_last_modified |
QsciAPIs * | m_lexer_apis |
int | m_line |
int | m_line_break |
bool | m_line_break_comments |
bool | m_lines_changed |
bool | m_long_title |
QString | m_new_encoding |
base_qobject & | m_octave_qobj |
QString | m_prep_apis_file |
QString | m_prep_apis_path |
QLabel * | m_row_indicator |
QsciScintilla::EolMode | m_save_as_desired_eol |
bool | m_smart_indent |
QStatusBar * | m_status_bar |
Definition at line 51 of file file-editor-tab.h.
octave::file_editor_tab::file_editor_tab | ( | base_qobject & | oct_qobj, |
const QString & | directory_arg = "" |
||
) |
A file_editor_tab object consists of a text area and three left margins.
The first holds breakpoints, bookmarks, and the debug program counter. The second holds line numbers. The third holds "fold" marks, to hide sections of text.
Definition at line 102 of file file-editor-tab.cc.
References api_entries_added(), octave::marker::bookmark, octave::marker::breakpoint, octave::marker::cond_break, confirm_dbquit_and_save(), confirm_dbquit_and_save_signal(), dbstop_if(), octave::marker::debugger_position, do_save_file(), do_save_file_signal(), ed_default_enc(), file_has_changed(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), handle_api_entries_added(), handle_char_added(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_copy_available(), handle_cursor_moved(), handle_dbstop_if(), handle_double_click(), handle_lines_changed(), handle_margin_clicked(), handle_remove_next(), handle_request_add_breakpoint(), interpreter_event(), gui_pref::key, m_autoc_active, m_bp_conditions, m_bp_lines, m_bp_restore_count, m_breakpoint_info, m_ced, m_col, m_col_indicator, m_edit_area, m_enc_indicator, m_encoding, m_eol_indicator, m_file_name, m_file_system_watcher, m_is_octave_file, m_last_modified, m_lexer_apis, m_line, m_lines_changed, m_new_encoding, m_octave_qobj, m_row_indicator, m_status_bar, maybe_remove_next(), notice_settings(), octave_locale_charset_wrapper(), octave::file_editor_tab::breakpoint_info::remove_line, octave::file_editor_tab::breakpoint_info::remove_next, request_add_breakpoint(), octave::marker::unsure_debugger_position, and update_window_title().
octave::file_editor_tab::~file_editor_tab | ( | void | ) |
Definition at line 277 of file file-editor-tab.cc.
References lexer, m_edit_area, remove_all_breakpoints(), and remove_all_positions().
|
private |
Definition at line 1354 of file file-editor-tab.cc.
References octave::load_path::contains_file_in_dir(), octave::file_editor_tab::bp_info::dir, octave::file_editor_tab::bp_info::file, octave::interpreter::get_load_path(), interpreter_event(), and octave::file_editor_tab::bp_info::line.
Referenced by handle_request_add_breakpoint().
|
signal |
Referenced by file_editor_tab(), handle_add_octave_apis(), and update_lexer_settings().
|
privateslot |
Definition at line 2787 of file file-editor-tab.cc.
References m_edit_area.
Referenced by notice_settings(), update_lexer_settings(), zoom_in(), zoom_normal(), and zoom_out().
|
signal |
Referenced by handle_cursor_moved().
|
private |
Definition at line 2988 of file file-editor-tab.cc.
References m_edit_area.
Referenced by goto_line(), and insert_debugger_pointer().
|
slot |
Definition at line 2802 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, and m_is_octave_file.
int octave::file_editor_tab::check_file_modified | ( | bool | remove = false | ) |
Definition at line 1721 of file file-editor-tab.cc.
References m_edit_area, m_file_name, save_file(), tab_ready_to_close(), and valid_file_name().
Referenced by closeEvent().
|
private |
Definition at line 1791 of file file-editor-tab.cc.
References handle_request_add_breakpoint(), m_bp_conditions, m_bp_lines, m_bp_restore_count, and remove_all_breakpoints().
Referenced by do_save_file(), and recover_from_exit().
|
private |
Definition at line 2410 of file file-editor-tab.cc.
References free(), octave::jit_convention::length, m_edit_area, m_encoding, and octave_u32_conv_to_encoding_strict().
Referenced by do_save_file(), and save_file().
|
private |
Definition at line 2387 of file file-editor-tab.cc.
References file_name(), and octave::valid_identifier().
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
protected |
Definition at line 304 of file file-editor-tab.cc.
References check_file_modified(), and tab_remove_request().
|
slot |
Definition at line 1275 of file file-editor-tab.cc.
References do_comment_selected_text().
bool octave::file_editor_tab::conditional_close | ( | void | ) |
Definition at line 2797 of file file-editor-tab.cc.
Referenced by octave::file_editor::handle_tab_close_request(), octave::file_editor::request_close_all_files(), octave::file_editor::request_close_file(), and octave::file_editor::request_close_other_files().
|
privateslot |
Definition at line 2066 of file file-editor-tab.cc.
References octave::symbol_table::clear_user_function(), octave::tree_evaluator::dbquit(), do_save_file_signal(), octave::interpreter::get_evaluator(), octave::interpreter::get_symbol_table(), interpreter_event(), and octave::command_editor::interrupt().
Referenced by file_editor_tab().
|
signal |
Referenced by file_editor_tab().
|
slot |
Definition at line 963 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_edit(), and m_edit_area.
|
slot |
Definition at line 955 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_help_doc(), and m_edit_area.
|
slot |
Definition at line 1043 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_run(), and m_edit_area.
|
slot |
Definition at line 1316 of file file-editor-tab.cc.
References m_edit_area, and update_eol_indicator().
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
signal |
Referenced by file_editor_tab(), handle_context_menu_break_condition(), and handle_dbstop_if().
|
signal |
|
slot |
Definition at line 2916 of file file-editor-tab.cc.
References remove_position_via_debugger_linenr().
|
private |
Definition at line 1954 of file file-editor-tab.cc.
References ed_default_eol_mode(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), m_edit_area, and m_octave_qobj.
Referenced by load_file().
|
slot |
Definition at line 2925 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::marker::cond_break, find_linenr_just_before(), find_translated_line_number(), octave::marker::get_cond(), handle_request_remove_breakpoint(), m_edit_area, remove_all_breakpoints(), remove_breakpoint_via_debugger_linenr(), report_marker_linenr(), request_remove_breakpoint_via_editor_linenr(), and octave::marker::set_cond().
Referenced by update_breakpoints_handler().
|
private |
Definition at line 1533 of file file-editor-tab.cc.
References octave::octave_qscintilla::comment_string(), ed_last_comment_str(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), len, m_edit_area, and m_octave_qobj.
Referenced by comment_selected_text(), and uncomment_selected_text().
|
private |
Definition at line 1469 of file file-editor-tab.cc.
References m_edit_area.
Referenced by indent_selected_text(), and unindent_selected_text().
|
privateslot |
Definition at line 2216 of file file-editor-tab.cc.
References check_restore_breakpoints(), check_valid_codec(), m_edit_area, m_enc_indicator, m_encoding, m_file_system_watcher, set_file_name(), show_dialog(), tab_ready_to_close(), tab_remove_request(), and update_window_title().
Referenced by file_editor_tab().
|
signal |
Referenced by file_editor_tab(), confirm_dbquit_and_save(), and save_file().
|
private |
Definition at line 1506 of file file-editor-tab.cc.
References m_edit_area, and octave::octave_qscintilla::smart_indent_line_or_selected_text().
Referenced by smart_indent_line_or_selected_text().
|
signal |
Referenced by set_focus().
|
signal |
Referenced by handle_context_menu_edit().
|
signal |
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
signal |
Referenced by change_editor_state(), handle_copy_available(), and set_file_name().
|
inline |
Definition at line 69 of file file-editor-tab.h.
References m_encoding.
Referenced by octave::file_editor::handle_file_remove().
|
slot |
Definition at line 2519 of file file-editor-tab.cc.
References handle_file_reload_answer(), handle_file_resave_answer(), load_file(), m_always_reload_changed_files, m_edit_area, m_file_name, m_file_system_watcher, m_last_modified, and set_focus_editor_signal().
Referenced by file_editor_tab(), and octave::file_editor::handle_file_remove().
|
inline |
Definition at line 68 of file file-editor-tab.h.
References m_file_name.
Referenced by check_valid_identifier().
|
signal |
Referenced by update_window_title().
|
signal |
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
|
signal |
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
|
private |
Definition at line 3197 of file file-editor-tab.cc.
References m_edit_area.
Referenced by save_file_as().
|
slot |
Definition at line 1401 of file file-editor-tab.cc.
References center_current_line(), m_bp_restore_count, and m_edit_area.
|
privateslot |
Definition at line 916 of file file-editor-tab.cc.
References api_entries_added(), and m_lexer_apis.
Referenced by update_lexer().
|
privateslot |
Definition at line 924 of file file-editor-tab.cc.
References m_lexer_apis, m_prep_apis_path, and save_apis_info().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 3059 of file file-editor-tab.cc.
References octave::octave_qscintilla::comment_string(), octave::octave_qscintilla::get_current_position(), octave::octave_qscintilla::is_style_comment(), m_edit_area, m_line_break, m_line_break_comments, octave::octave_qscintilla::ST_LINE_COMMENT, and octave::octave_qscintilla::ST_NONE.
Referenced by file_editor_tab().
|
slot |
Definition at line 374 of file file-editor-tab.cc.
References octave::marker::cond_break, dbstop_if(), m_bp_conditions, m_bp_lines, m_edit_area, report_marker_linenr(), and unchanged_or_saved().
Referenced by file_editor_tab().
|
slot |
Definition at line 327 of file file-editor-tab.cc.
References edit_mfile_request(), m_ced, m_edit_area, and m_file_name.
Referenced by file_editor_tab().
|
slot |
Definition at line 1702 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, and m_is_octave_file.
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1949 of file file-editor-tab.cc.
References m_new_encoding.
Referenced by handle_decode_warning_answer().
|
privateslot |
Definition at line 3021 of file file-editor-tab.cc.
References autoc_closed(), m_auto_endif, m_autoc_active, m_col, m_col_indicator, m_edit_area, m_ind_char_width, m_is_octave_file, m_line, m_lines_changed, m_row_indicator, m_smart_indent, and octave::octave_qscintilla::smart_indent().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 418 of file file-editor-tab.cc.
References octave::bp_table::condition_valid(), dbstop_if(), eval_error(), QtHandles::Utils::fromStdString(), octave::tree_evaluator::get_bp_table(), octave::interpreter::get_error_system(), octave::interpreter::get_evaluator(), interpreter_event(), octave::error_system::interpreter_try(), octave::interpreter::recover_from_exception(), and request_add_breakpoint().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1892 of file file-editor-tab.cc.
References octave::resource_manager::combo_encoding(), octave::base_qobject::get_resource_manager(), handle_current_enc_changed(), m_edit_area, m_file_name, m_new_encoding, m_octave_qobj, and request_open_file().
Referenced by load_file().
|
privateslot |
Definition at line 3123 of file file-editor-tab.cc.
References octave::octave_qscintilla::clear_selection_markers(), m_edit_area, m_highlight_all_occurrences, octave::octave_qscintilla::set_word_selection(), and octave::octave_qscintilla::show_selection_markers().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 2810 of file file-editor-tab.cc.
References load_file(), m_file_name, and m_file_system_watcher.
Referenced by file_has_changed().
|
privateslot |
Definition at line 2824 of file file-editor-tab.cc.
References m_edit_area, m_file_name, and save_file().
Referenced by file_has_changed().
|
privateslot |
Definition at line 3015 of file file-editor-tab.cc.
References m_lines_changed.
Referenced by file_editor_tab().
|
slot |
Definition at line 556 of file file-editor-tab.cc.
References octave::marker::bookmark, octave::marker::breakpoint, octave::marker::cond_break, handle_request_add_breakpoint(), handle_request_remove_breakpoint(), m_edit_area, octave::state, and unchanged_or_saved().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1391 of file file-editor-tab.cc.
References m_breakpoint_info, octave::file_editor_tab::breakpoint_info::remove_line, and octave::file_editor_tab::breakpoint_info::remove_next.
Referenced by file_editor_tab().
|
slot |
Definition at line 1147 of file file-editor-tab.cc.
References add_breakpoint_event(), and m_file_name.
Referenced by file_editor_tab(), check_restore_breakpoints(), handle_margin_clicked(), run_file(), and toggle_breakpoint().
|
slot |
Definition at line 1155 of file file-editor-tab.cc.
References octave::load_path::contains_file_in_dir(), octave::file_editor_tab::bp_info::dir, octave::file_editor_tab::bp_info::file, octave::interpreter::get_load_path(), interpreter_event(), octave::file_editor_tab::bp_info::line, and m_file_name.
Referenced by do_breakpoint_marker(), handle_margin_clicked(), and insert_debugger_pointer().
|
privateslot |
Definition at line 2374 of file file-editor-tab.cc.
References filter().
Referenced by save_file_as().
|
privateslot |
Definition at line 2475 of file file-editor-tab.cc.
References check_valid_identifier(), convert_eol(), editor_check_conflict_save(), m_edit_area, m_file_name, m_save_as_desired_eol, save_file(), and save_file_as().
Referenced by save_file_as().
|
privateslot |
Definition at line 2513 of file file-editor-tab.cc.
References m_edit_area.
Referenced by save_file_as().
|
privateslot |
Definition at line 2494 of file file-editor-tab.cc.
References check_valid_identifier(), convert_eol(), editor_check_conflict_save(), m_edit_area, m_save_as_desired_eol, and save_file_as().
Referenced by save_file_as().
|
slot |
Definition at line 1292 of file file-editor-tab.cc.
References do_indent_selected_text().
|
slot |
Definition at line 2843 of file file-editor-tab.cc.
References center_current_line(), octave::marker::debugger_position, octave::file_editor_tab::breakpoint_info::do_not_remove_line, find_linenr_just_before(), find_translated_line_number(), handle_request_remove_breakpoint(), m_breakpoint_info, m_edit_area, remove_all_positions(), octave::file_editor_tab::breakpoint_info::remove_line, remove_position_via_debugger_linenr(), and octave::marker::unsure_debugger_position.
|
signal |
|
signal |
|
slot |
Definition at line 1811 of file file-editor-tab.cc.
References detect_eol_mode(), handle_decode_warning_answer(), m_col, m_copy_available, m_edit_area, m_encoding, m_file_name, m_line, set_file_name(), update_eol_indicator(), and update_window_title().
Referenced by file_has_changed(), handle_file_reload_answer(), and octave::file_editor::request_open_file().
|
signal |
Referenced by file_editor_tab().
|
slot |
Definition at line 1431 of file file-editor-tab.cc.
References m_edit_area.
|
signal |
Referenced by set_file_name().
|
slot |
Definition at line 2047 of file file-editor-tab.cc.
References ed_default_eol_mode(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), m_edit_area, m_octave_qobj, update_eol_indicator(), update_lexer(), and update_window_title().
Referenced by octave::file_editor::request_new_file().
|
slot |
Definition at line 1067 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
|
slot |
Definition at line 1199 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::marker::cond_break, and m_edit_area.
|
slot |
Definition at line 2614 of file file-editor-tab.cc.
References auto_margin_width(), cs_cursor_blinking(), ed_always_reload_changed_files(), ed_auto_endif(), ed_auto_indent(), ed_backspace_unindents_line(), ed_break_lines(), ed_break_lines_comments(), ed_code_completion(), ed_code_completion_case(), ed_code_completion_document(), ed_code_completion_keywords(), ed_code_completion_replace(), ed_code_completion_threshold(), ed_code_folding(), ed_highlight_all_occurrences(), ed_highlight_current_line(), ed_highlight_current_line_color(), ed_indent_uses_tabs(), ed_indent_width(), ed_long_line_column(), ed_long_line_marker(), ed_long_line_marker_background(), ed_long_line_marker_line(), ed_long_window_title(), ed_show_edit_status_bar(), ed_show_eol_chars(), ed_show_hscroll_bar(), ed_show_indent_guides(), ed_show_line_numbers(), ed_show_white_space(), ed_show_white_space_indent(), ed_tab_indents_line(), ed_tab_width(), ed_wrap_lines(), global_cursor_blinking(), gui_pref::key, m_always_reload_changed_files, m_auto_endif, m_edit_area, m_highlight_all_occurrences, m_ind_char_width, m_line_break, m_line_break_comments, m_long_title, m_smart_indent, m_status_bar, update_lexer_settings(), and update_window_title().
Referenced by file_editor_tab().
|
slot |
Definition at line 1088 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
|
slot |
Definition at line 1221 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::marker::cond_break, and m_edit_area.
|
slot |
Definition at line 996 of file file-editor-tab.cc.
References m_edit_area.
|
inline |
Definition at line 61 of file file-editor-tab.h.
References m_edit_area.
Referenced by octave::file_editor::find_create(), octave::file_editor::handle_file_remove(), and octave::file_editor::request_open_file().
|
slot |
Definition at line 1779 of file file-editor-tab.cc.
References check_restore_breakpoints(), and m_edit_area.
|
slot |
Definition at line 1241 of file file-editor-tab.cc.
References octave::load_path::contains_file_in_dir(), octave::file_editor_tab::bp_info::dir, octave::file_editor_tab::bp_info::file, octave::interpreter::get_load_path(), interpreter_event(), and m_file_name.
|
signal |
Referenced by ~file_editor_tab(), check_restore_breakpoints(), and do_breakpoint_marker().
|
signal |
Referenced by ~file_editor_tab(), and insert_debugger_pointer().
|
slot |
Definition at line 1108 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
|
signal |
Referenced by do_breakpoint_marker().
|
signal |
Referenced by delete_debugger_pointer(), and insert_debugger_pointer().
|
signal |
Referenced by do_breakpoint_marker(), handle_context_menu_break_condition(), and save_file().
|
signal |
Referenced by file_editor_tab(), and handle_dbstop_if().
|
signal |
Referenced by update_lexer(), and update_lexer_settings().
|
signal |
Referenced by handle_decode_warning_answer().
|
signal |
Referenced by do_breakpoint_marker(), and toggle_breakpoint().
|
slot |
Definition at line 1011 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::file_editor_tab::breakpoint_info::do_not_remove_line, handle_request_add_breakpoint(), m_breakpoint_info, m_edit_area, m_file_name, octave::file_editor_tab::breakpoint_info::remove_next, run_file_signal(), save_file(), and valid_file_name().
|
signal |
Referenced by run_file().
|
privateslot |
Definition at line 941 of file file-editor-tab.cc.
References m_lexer_apis, and m_prep_apis_file.
Referenced by handle_api_entries_added().
|
private |
Definition at line 2101 of file file-editor-tab.cc.
References octave::tree_evaluator::backtrace(), octave::sys::canonicalize_file_name(), check_valid_codec(), do_save_file_signal(), for(), octave::interpreter::get_evaluator(), octave::interpreter::get_symbol_table(), octave::tree_evaluator::in_debug_repl(), interpreter_event(), m_bp_conditions, m_bp_lines, m_encoding, m_new_encoding, octave::interpreter::recover_from_exception(), report_marker_linenr(), save_file_as(), octave_base_value::user_code_value(), and valid_file_name().
|
slot |
Definition at line 971 of file file-editor-tab.cc.
References m_file_name.
Referenced by check_file_modified(), handle_file_resave_answer(), handle_save_file_as_answer(), run_file(), save_file(), and unchanged_or_saved().
|
slot |
Definition at line 979 of file file-editor-tab.cc.
References save_file().
|
private |
Definition at line 2295 of file file-editor-tab.cc.
References get_function_name(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), global_use_native_dialogs(), handle_save_as_filter_selected(), handle_save_file_as_answer(), handle_save_file_as_answer_cancel(), handle_save_file_as_answer_close(), m_ced, m_edit_area, m_encoding, m_file_name, m_new_encoding, m_octave_qobj, show_dialog(), and valid_file_name().
|
slot |
Definition at line 988 of file file-editor-tab.cc.
Referenced by handle_save_file_as_answer(), handle_save_file_as_answer_close(), and save_file().
|
slot |
Definition at line 1266 of file file-editor-tab.cc.
References m_edit_area.
|
slot |
Definition at line 322 of file file-editor-tab.cc.
References m_ced.
|
slot |
Definition at line 293 of file file-editor-tab.cc.
References m_edit_area, m_enc_indicator, m_encoding, and set_modified().
Referenced by octave::file_editor::request_open_file().
|
protected |
Definition at line 489 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, m_encoding, m_file_name, m_file_system_watcher, m_is_octave_file, m_last_modified, mru_add_file(), and update_lexer().
Referenced by do_save_file(), and load_file().
|
slot |
Definition at line 947 of file file-editor-tab.cc.
References edit_area_changed(), and m_edit_area.
|
signal |
Referenced by file_has_changed().
|
slot |
Definition at line 1774 of file file-editor-tab.cc.
References m_edit_area.
Referenced by set_encoding().
|
slot |
Definition at line 1442 of file file-editor-tab.cc.
References m_autoc_active, and m_edit_area.
|
private |
Definition at line 1709 of file file-editor-tab.cc.
Referenced by do_save_file(), and save_file_as().
|
slot |
Definition at line 1308 of file file-editor-tab.cc.
References do_smart_indent_line_or_selected_text().
|
signal |
Referenced by check_file_modified(), and do_save_file().
|
signal |
Referenced by closeEvent(), and do_save_file().
|
slot |
Definition at line 1051 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
|
slot |
Definition at line 1180 of file file-editor-tab.cc.
References octave::marker::breakpoint, handle_request_add_breakpoint(), m_edit_area, request_remove_breakpoint_via_editor_linenr(), and unchanged_or_saved().
|
private |
Definition at line 535 of file file-editor-tab.cc.
References m_edit_area, m_file_name, retval, save_file(), and valid_file_name().
Referenced by handle_context_menu_break_condition(), handle_margin_clicked(), and toggle_breakpoint().
|
slot |
Definition at line 1284 of file file-editor-tab.cc.
References do_comment_selected_text().
|
slot |
Definition at line 1300 of file file-editor-tab.cc.
References do_indent_selected_text().
void octave::file_editor_tab::update_breakpoints | ( | ) |
Definition at line 2008 of file file-editor-tab.cc.
References Fdbstatus(), interpreter_event(), m_file_name, ovl(), update_breakpoints_handler(), and update_breakpoints_signal().
Referenced by octave::file_editor::request_open_file().
|
slot |
Definition at line 2030 of file file-editor-tab.cc.
References octave_map::contents(), do_breakpoint_marker(), QtHandles::Utils::fromStdString(), m_file_name, and octave_map::numel().
Referenced by update_breakpoints().
|
signal |
Referenced by update_breakpoints().
|
private |
Definition at line 1992 of file file-editor-tab.cc.
References m_edit_area, and m_eol_indicator.
Referenced by convert_eol(), load_file(), and new_file().
|
private |
Definition at line 585 of file file-editor-tab.cc.
References octave::lexer::lexer(), handle_add_octave_apis(), lexer, m_edit_area, m_file_name, m_is_octave_file, m_lexer_apis, request_add_octave_apis(), update_lexer_settings(), and valid_file_name().
Referenced by new_file(), and set_file_name().
|
private |
Definition at line 689 of file file-editor-tab.cc.
References octave::lexer::lexer(), api_entries_added(), auto_margin_width(), octave::interpreter::autoloaded_functions(), octave::symbol_table::built_in_function_names(), octave_value_list::cell_value(), ed_code_completion_octave_builtins(), ed_code_completion_octave_functions(), ed_line_numbers_size(), ed_show_line_numbers(), octave::f(), octave::load_path::fcn_names(), Fiskeyword(), QtHandles::Utils::fromStdString(), octave::interpreter::get_load_path(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), octave::interpreter::get_symbol_table(), interpreter_event(), m_edit_area, m_is_octave_file, m_lexer_apis, m_octave_qobj, m_prep_apis_file, m_prep_apis_path, Array< T >::numel(), string_vector::numel(), OCTAVE_VERSION, request_add_octave_apis(), and octave::octave_qscintilla::set_selection_marker_color().
Referenced by notice_settings(), and update_lexer().
|
slot |
Definition at line 1680 of file file-editor-tab.cc.
References file_name_changed(), m_file_name, m_long_title, and valid_file_name().
Referenced by file_editor_tab(), do_save_file(), load_file(), new_file(), notice_settings(), and octave::file_editor::request_open_file().
|
private |
Definition at line 517 of file file-editor-tab.cc.
References m_file_name.
Referenced by check_file_modified(), run_file(), save_file(), save_file_as(), unchanged_or_saved(), update_lexer(), and update_window_title().
|
slot |
Definition at line 1327 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
|
slot |
Definition at line 1345 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
|
slot |
Definition at line 1336 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
|
private |
Definition at line 323 of file file-editor-tab.h.
Referenced by file_has_changed(), and notice_settings().
|
private |
Definition at line 325 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 319 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_cursor_moved(), and show_auto_completion().
|
private |
Definition at line 331 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_restore_breakpoints(), handle_context_menu_break_condition(), and save_file().
|
private |
Definition at line 330 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_restore_breakpoints(), handle_context_menu_break_condition(), and save_file().
|
private |
Definition at line 343 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_restore_breakpoints(), and goto_line().
|
private |
Definition at line 352 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_remove_next(), insert_debugger_pointer(), and run_file().
|
private |
Definition at line 314 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_context_menu_edit(), save_file_as(), and set_current_directory().
|
private |
Definition at line 340 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_cursor_moved(), and load_file().
|
private |
Definition at line 306 of file file-editor-tab.h.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 321 of file file-editor-tab.h.
Referenced by change_editor_state(), handle_copy_available(), load_file(), and set_file_name().
|
private |
Definition at line 302 of file file-editor-tab.h.
Referenced by file_editor_tab(), ~file_editor_tab(), auto_margin_width(), center_current_line(), check_file_modified(), check_valid_codec(), context_edit(), context_help(), context_run(), convert_eol(), detect_eol_mode(), do_breakpoint_marker(), do_comment_selected_text(), do_indent_selected_text(), do_save_file(), do_smart_indent_line_or_selected_text(), file_has_changed(), get_function_name(), goto_line(), handle_char_added(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_cursor_moved(), handle_decode_warning_answer(), handle_double_click(), handle_file_resave_answer(), handle_margin_clicked(), handle_save_file_as_answer(), handle_save_file_as_answer_cancel(), handle_save_file_as_answer_close(), insert_debugger_pointer(), load_file(), move_match_brace(), new_file(), next_bookmark(), next_breakpoint(), notice_settings(), previous_bookmark(), previous_breakpoint(), print_file(), qsci_edit_area(), recover_from_exit(), remove_bookmark(), run_file(), save_file_as(), scintilla_command(), set_encoding(), set_focus(), set_modified(), show_auto_completion(), toggle_bookmark(), toggle_breakpoint(), unchanged_or_saved(), update_eol_indicator(), update_lexer(), update_lexer_settings(), zoom_in(), zoom_normal(), and zoom_out().
|
private |
Definition at line 308 of file file-editor-tab.h.
Referenced by file_editor_tab(), do_save_file(), and set_encoding().
|
private |
Definition at line 315 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_valid_codec(), do_save_file(), encoding(), load_file(), save_file(), save_file_as(), set_encoding(), and set_file_name().
|
private |
Definition at line 307 of file file-editor-tab.h.
Referenced by file_editor_tab(), and update_eol_indicator().
|
private |
Definition at line 312 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_file_modified(), file_has_changed(), file_name(), handle_context_menu_edit(), handle_decode_warning_answer(), handle_file_reload_answer(), handle_file_resave_answer(), handle_request_add_breakpoint(), handle_request_remove_breakpoint(), handle_save_file_as_answer(), load_file(), remove_all_breakpoints(), run_file(), save_file(), save_file_as(), set_file_name(), unchanged_or_saved(), update_breakpoints(), update_breakpoints_handler(), update_lexer(), update_window_title(), and valid_file_name().
|
private |
Definition at line 313 of file file-editor-tab.h.
|
private |
Definition at line 328 of file file-editor-tab.h.
Referenced by file_editor_tab(), do_save_file(), file_has_changed(), handle_file_reload_answer(), and set_file_name().
|
private |
Definition at line 342 of file file-editor-tab.h.
Referenced by handle_double_click(), and notice_settings().
|
private |
Definition at line 326 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 322 of file file-editor-tab.h.
Referenced by file_editor_tab(), change_editor_state(), handle_copy_available(), handle_cursor_moved(), set_file_name(), update_lexer(), and update_lexer_settings().
|
private |
Definition at line 317 of file file-editor-tab.h.
Referenced by file_editor_tab(), file_has_changed(), and set_file_name().
|
private |
Definition at line 333 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_add_octave_apis(), handle_api_entries_added(), save_apis_info(), update_lexer(), and update_lexer_settings().
|
private |
Definition at line 339 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_cursor_moved(), and load_file().
|
private |
Definition at line 337 of file file-editor-tab.h.
Referenced by handle_char_added(), and notice_settings().
|
private |
Definition at line 338 of file file-editor-tab.h.
Referenced by handle_char_added(), and notice_settings().
|
private |
Definition at line 341 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_cursor_moved(), and handle_lines_changed().
|
private |
Definition at line 320 of file file-editor-tab.h.
Referenced by notice_settings(), and update_window_title().
|
private |
Definition at line 316 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_current_enc_changed(), handle_decode_warning_answer(), save_file(), and save_file_as().
|
private |
Definition at line 259 of file file-editor-tab.h.
Referenced by file_editor_tab(), detect_eol_mode(), do_comment_selected_text(), handle_decode_warning_answer(), new_file(), save_file_as(), and update_lexer_settings().
|
private |
Definition at line 335 of file file-editor-tab.h.
Referenced by save_apis_info(), and update_lexer_settings().
|
private |
Definition at line 334 of file file-editor-tab.h.
Referenced by handle_api_entries_added(), and update_lexer_settings().
|
private |
Definition at line 305 of file file-editor-tab.h.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 310 of file file-editor-tab.h.
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
private |
Definition at line 324 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 304 of file file-editor-tab.h.
Referenced by file_editor_tab(), and notice_settings().