#include "file-editor-tab.h"
Classes | |
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_lexer_settings (bool update_apis_only=false) |
void | update_rowcol_indicator (int line, int col) |
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, bool is_modified) |
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_signal (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 (int line, const QString &cond) |
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) |
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 |
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 106 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(), octave::octave_qscintilla::context_menu_break_condition_signal(), octave::octave_qscintilla::context_menu_edit_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(), octave::octave_qscintilla::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(), path, octave::file_editor_tab::breakpoint_info::remove_line, octave::file_editor_tab::breakpoint_info::remove_next, request_add_breakpoint(), octave::marker::unsure_debugger_position, update_rowcol_indicator(), octave::octave_qscintilla::update_rowcol_indicator_signal(), and update_window_title().
octave::file_editor_tab::~file_editor_tab | ( | void | ) |
Definition at line 280 of file file-editor-tab.cc.
References lexer, m_edit_area, remove_all_breakpoints_signal(), and remove_all_positions().
|
private |
Definition at line 1324 of file file-editor-tab.cc.
References octave::bp_table::add_breakpoint_in_file(), tree_evaluator::get_bp_table(), interpreter::get_evaluator(), interpreter_event(), m_file_name, and maybe_remove_next().
Referenced by handle_request_add_breakpoint().
|
signal |
Referenced by file_editor_tab(), handle_add_octave_apis(), and update_lexer_settings().
|
privateslot |
Definition at line 2807 of file file-editor-tab.cc.
Referenced by update_lexer_settings(), zoom_in(), zoom_normal(), and zoom_out().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab().
|
private |
Definition at line 3003 of file file-editor-tab.cc.
Referenced by goto_line().
|
slot |
Definition at line 2822 of file file-editor-tab.cc.
Referenced by octave::file_editor::make_file_editor_tab().
Definition at line 1671 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 1741 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 recover_from_exit().
|
private |
Definition at line 2407 of file file-editor-tab.cc.
References free(), and octave_u32_conv_to_encoding_strict().
Referenced by save_file().
|
private |
Definition at line 2384 of file file-editor-tab.cc.
References valid_identifier().
|
protected |
Definition at line 307 of file file-editor-tab.cc.
References check_file_modified(), and tab_remove_request().
Definition at line 1245 of file file-editor-tab.cc.
References do_comment_selected_text().
Referenced by octave::file_editor::make_file_editor_tab().
bool octave::file_editor_tab::conditional_close | ( | void | ) |
Definition at line 2817 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 2032 of file file-editor-tab.cc.
References symbol_table::clear_user_function(), tree_evaluator::dbquit(), do_save_file_signal(), interpreter::get_evaluator(), 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 976 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_edit(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
Definition at line 968 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_help_doc(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1060 of file file-editor-tab.cc.
References octave::octave_qscintilla::context_run(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1286 of file file-editor-tab.cc.
References m_edit_area, and update_eol_indicator().
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by file_editor_tab(), handle_context_menu_break_condition(), and handle_dbstop_if().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab().
Definition at line 2938 of file file-editor-tab.cc.
Referenced by octave::file_editor::make_file_editor_tab().
|
private |
Definition at line 1920 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 2947 of file file-editor-tab.cc.
References octave::marker::get_cond(), and octave::marker::set_cond().
Referenced by octave::file_editor::make_file_editor_tab(), and update_breakpoints_handler().
|
private |
Definition at line 1487 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 1423 of file file-editor-tab.cc.
References m_edit_area.
Referenced by indent_selected_text(), and unindent_selected_text().
|
privateslot |
Definition at line 2182 of file file-editor-tab.cc.
References ed_force_newline(), ed_rm_trailing_spaces(), and octave::resource_manager::get_settings().
Referenced by file_editor_tab().
|
signal |
Referenced by file_editor_tab(), confirm_dbquit_and_save(), and save_file().
|
private |
Definition at line 1460 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 octave::file_editor::make_file_editor_tab(), and set_focus().
|
signal |
Referenced by handle_context_menu_edit(), and octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by handle_copy_available(), octave::file_editor::make_file_editor_tab(), 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 2538 of file file-editor-tab.cc.
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 octave::file_editor::copy_full_file_path().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab(), and update_window_title().
|
signal |
|
signal |
|
private |
Definition at line 3217 of file file-editor-tab.cc.
Definition at line 1355 of file file-editor-tab.cc.
References center_current_line(), m_bp_restore_count, m_edit_area, and octave::octave_qscintilla::setCursorPosition().
Referenced by octave::file_editor::make_file_editor_tab().
|
privateslot |
Definition at line 929 of file file-editor-tab.cc.
References api_entries_added(), and m_lexer_apis.
Referenced by update_lexer().
|
privateslot |
Definition at line 937 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 3079 of file file-editor-tab.cc.
Referenced by file_editor_tab().
|
slot |
Definition at line 377 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 330 of file file-editor-tab.cc.
References edit_mfile_request(), m_ced, m_edit_area, m_file_name, and octave::octave_qscintilla::setCursorPosition().
Referenced by file_editor_tab().
|
slot |
Definition at line 1651 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, m_edit_area, and m_is_octave_file.
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1915 of file file-editor-tab.cc.
References m_new_encoding.
Referenced by handle_decode_warning_answer().
Definition at line 3036 of file file-editor-tab.cc.
Referenced by file_editor_tab().
|
privateslot |
Definition at line 421 of file file-editor-tab.cc.
References octave::bp_table::condition_valid(), dbstop_if(), eval_error(), octave::Utils::fromStdString(), tree_evaluator::get_bp_table(), interpreter::get_error_system(), interpreter::get_evaluator(), interpreter_event(), error_system::interpreter_try(), interpreter::recover_from_exception(), and request_add_breakpoint().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1858 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().
Definition at line 3143 of file file-editor-tab.cc.
Referenced by file_editor_tab().
|
privateslot |
Definition at line 2831 of file file-editor-tab.cc.
|
privateslot |
Definition at line 2845 of file file-editor-tab.cc.
|
privateslot |
Definition at line 3030 of file file-editor-tab.cc.
Referenced by file_editor_tab().
|
slot |
Definition at line 560 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 1345 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 1134 of file file-editor-tab.cc.
References add_breakpoint_event(), and m_is_octave_file.
Referenced by file_editor_tab(), check_restore_breakpoints(), handle_margin_clicked(), run_file(), and toggle_breakpoint().
|
slot |
Definition at line 1143 of file file-editor-tab.cc.
References tree_evaluator::get_bp_table(), interpreter::get_evaluator(), interpreter_event(), m_file_name, and octave::bp_table::remove_breakpoint_from_file().
Referenced by handle_margin_clicked().
|
privateslot |
Definition at line 2365 of file file-editor-tab.cc.
References filter().
|
privateslot |
Definition at line 2473 of file file-editor-tab.cc.
|
privateslot |
Definition at line 2532 of file file-editor-tab.cc.
|
privateslot |
Definition at line 2520 of file file-editor-tab.cc.
|
slot |
Definition at line 1262 of file file-editor-tab.cc.
References do_indent_selected_text().
Referenced by octave::file_editor::make_file_editor_tab().
Definition at line 2864 of file file-editor-tab.cc.
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
|
signal |
|
slot |
Definition at line 1761 of file file-editor-tab.cc.
References detect_eol_mode(), ed_force_newline(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), handle_decode_warning_answer(), m_col, m_copy_available, m_edit_area, m_encoding, m_file_name, m_line, m_octave_qobj, set_file_name(), octave::octave_qscintilla::setCursorPosition(), update_eol_indicator(), and update_window_title().
Referenced by octave::file_editor::request_open_file().
|
signal |
Referenced by file_editor_tab(), and add_breakpoint_event().
Definition at line 1385 of file file-editor-tab.cc.
References m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab(), and set_file_name().
|
slot |
Definition at line 2013 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 1084 of file file-editor-tab.cc.
References octave::marker::bookmark, m_edit_area, and octave::octave_qscintilla::setCursorPosition().
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1176 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::marker::cond_break, m_edit_area, and octave::octave_qscintilla::setCursorPosition().
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 2633 of file file-editor-tab.cc.
References 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_default_eol_mode(), ed_highlight_all_occurrences(), ed_highlight_current_line(), 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_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(), and gui_pref::key.
Referenced by file_editor_tab().
|
slot |
Definition at line 1105 of file file-editor-tab.cc.
References octave::marker::bookmark, m_edit_area, and octave::octave_qscintilla::setCursorPosition().
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1198 of file file-editor-tab.cc.
References octave::marker::breakpoint, octave::marker::cond_break, m_edit_area, and octave::octave_qscintilla::setCursorPosition().
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1009 of file file-editor-tab.cc.
References m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
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 1729 of file file-editor-tab.cc.
References check_restore_breakpoints(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1218 of file file-editor-tab.cc.
References tree_evaluator::get_bp_table(), interpreter::get_evaluator(), interpreter_event(), m_file_name, and octave::bp_table::remove_all_breakpoints_from_file().
Referenced by check_restore_breakpoints(), and octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by ~file_editor_tab().
|
signal |
Referenced by ~file_editor_tab().
|
slot |
Definition at line 1125 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
|
signal |
|
signal |
Referenced by 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(), and octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by toggle_breakpoint().
Definition at line 1024 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, m_is_octave_file, octave::file_editor_tab::breakpoint_info::remove_next, run_file_signal(), save_file(), and valid_file_name().
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab(), and run_file().
|
privateslot |
Definition at line 954 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 2067 of file file-editor-tab.cc.
References tree_evaluator::backtrace(), octave::sys::canonicalize_file_name(), check_valid_codec(), do_save_file_signal(), interpreter::get_evaluator(), interpreter::get_symbol_table(), tree_evaluator::in_debug_repl(), interpreter_event(), m_bp_conditions, m_bp_lines, m_encoding, m_new_encoding, interpreter::recover_from_exception(), report_marker_linenr(), save_file_as(), octave_base_value::user_code_value(), and valid_file_name().
|
slot |
Definition at line 984 of file file-editor-tab.cc.
References m_file_name, and save_file().
Referenced by check_file_modified(), octave::file_editor::make_file_editor_tab(), run_file(), save_file(), and unchanged_or_saved().
|
slot |
Definition at line 992 of file file-editor-tab.cc.
References save_file().
|
private |
Definition at line 2274 of file file-editor-tab.cc.
References octave::resource_manager::get_settings(), and global_use_native_dialogs().
|
slot |
Definition at line 1001 of file file-editor-tab.cc.
References save_file_as().
Referenced by octave::file_editor::make_file_editor_tab(), save_file(), and save_file_as().
Definition at line 1236 of file file-editor-tab.cc.
References m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 325 of file file-editor-tab.cc.
References m_ced.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 296 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 492 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, m_edit_area, m_encoding, m_file_name, m_file_system_watcher, m_is_octave_file, m_last_modified, mru_add_file(), and update_lexer().
Referenced by load_file().
|
slot |
Definition at line 960 of file file-editor-tab.cc.
References edit_area_changed(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1724 of file file-editor-tab.cc.
References m_edit_area.
Referenced by set_encoding().
|
slot |
Definition at line 1396 of file file-editor-tab.cc.
References m_autoc_active, and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
Definition at line 1659 of file file-editor-tab.cc.
|
slot |
Definition at line 1278 of file file-editor-tab.cc.
References do_smart_indent_line_or_selected_text().
Referenced by octave::file_editor::make_file_editor_tab().
|
signal |
Referenced by octave::file_editor::check_closing(), and check_file_modified().
|
signal |
Referenced by closeEvent(), and octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1068 of file file-editor-tab.cc.
References octave::marker::bookmark, and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1157 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().
Referenced by octave::file_editor::make_file_editor_tab().
|
private |
Definition at line 539 of file file-editor-tab.cc.
References m_edit_area, m_file_name, save_file(), and valid_file_name().
Referenced by handle_context_menu_break_condition(), handle_margin_clicked(), and toggle_breakpoint().
|
slot |
Definition at line 1254 of file file-editor-tab.cc.
References do_comment_selected_text().
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1270 of file file-editor-tab.cc.
References do_indent_selected_text().
Referenced by octave::file_editor::make_file_editor_tab().
void octave::file_editor_tab::update_breakpoints | ( | ) |
Definition at line 1974 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 1996 of file file-editor-tab.cc.
References octave_map::contents(), do_breakpoint_marker(), octave::Utils::fromStdString(), m_file_name, and octave_map::numel().
Referenced by update_breakpoints().
|
signal |
Referenced by update_breakpoints().
|
private |
Definition at line 1958 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 589 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().
|
slot |
Definition at line 700 of file file-editor-tab.cc.
References octave::lexer::lexer(), api_entries_added(), auto_margin_width(), interpreter::autoloaded_functions(), symbol_table::built_in_function_names(), octave_value_list::cell_value(), ed_code_completion_octave_builtins(), ed_code_completion_octave_functions(), ed_color_mode(), ed_line_numbers_size(), ed_show_line_numbers(), octave::f(), load_path::fcn_names(), Fiskeyword(), octave::Utils::fromStdString(), interpreter::get_load_path(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), interpreter::get_symbol_table(), octave::interpolate_color(), 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, Alloc >::numel(), string_vector::numel(), OCTAVE_VERSION, octave::resource_manager::read_lexer_settings(), request_add_octave_apis(), and octave::octave_qscintilla::set_selection_marker_color().
Referenced by octave::file_editor::make_file_editor_tab(), and update_lexer().
Definition at line 3067 of file file-editor-tab.cc.
Referenced by file_editor_tab().
|
slot |
Definition at line 1634 of file file-editor-tab.cc.
References file_name_changed(), m_file_name, and valid_file_name().
Referenced by file_editor_tab(), load_file(), new_file(), and octave::file_editor::request_open_file().
|
private |
Definition at line 521 of file file-editor-tab.cc.
References m_file_name.
Referenced by check_file_modified(), run_file(), save_file(), unchanged_or_saved(), update_lexer(), and update_window_title().
|
slot |
Definition at line 1297 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1315 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
slot |
Definition at line 1306 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by octave::file_editor::make_file_editor_tab().
|
private |
Definition at line 313 of file file-editor-tab.h.
|
private |
Definition at line 315 of file file-editor-tab.h.
|
private |
Definition at line 310 of file file-editor-tab.h.
Referenced by file_editor_tab(), and show_auto_completion().
|
private |
Definition at line 321 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 320 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 333 of file file-editor-tab.h.
Referenced by file_editor_tab(), check_restore_breakpoints(), and goto_line().
|
private |
Definition at line 342 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_remove_next(), and run_file().
|
private |
Definition at line 305 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_context_menu_edit(), and set_current_directory().
|
private |
Definition at line 330 of file file-editor-tab.h.
Referenced by file_editor_tab(), and load_file().
|
private |
Definition at line 297 of file file-editor-tab.h.
Referenced by file_editor_tab().
|
private |
Definition at line 311 of file file-editor-tab.h.
Referenced by handle_copy_available(), load_file(), and set_file_name().
|
private |
Definition at line 293 of file file-editor-tab.h.
Referenced by file_editor_tab(), ~file_editor_tab(), check_file_modified(), context_edit(), context_help(), context_run(), convert_eol(), detect_eol_mode(), do_comment_selected_text(), do_indent_selected_text(), do_smart_indent_line_or_selected_text(), goto_line(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_copy_available(), handle_decode_warning_answer(), handle_margin_clicked(), load_file(), move_match_brace(), new_file(), next_bookmark(), next_breakpoint(), previous_bookmark(), previous_breakpoint(), print_file(), qsci_edit_area(), recover_from_exit(), remove_bookmark(), run_file(), scintilla_command(), set_encoding(), set_file_name(), 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 299 of file file-editor-tab.h.
Referenced by file_editor_tab(), and set_encoding().
|
private |
Definition at line 306 of file file-editor-tab.h.
Referenced by file_editor_tab(), encoding(), load_file(), save_file(), set_encoding(), and set_file_name().
|
private |
Definition at line 298 of file file-editor-tab.h.
Referenced by file_editor_tab(), and update_eol_indicator().
|
private |
Definition at line 303 of file file-editor-tab.h.
Referenced by file_editor_tab(), add_breakpoint_event(), check_file_modified(), file_name(), handle_context_menu_edit(), handle_decode_warning_answer(), handle_request_remove_breakpoint(), load_file(), remove_all_breakpoints(), run_file(), save_file(), set_file_name(), unchanged_or_saved(), update_breakpoints(), update_breakpoints_handler(), update_lexer(), update_window_title(), and valid_file_name().
|
private |
Definition at line 304 of file file-editor-tab.h.
|
private |
Definition at line 318 of file file-editor-tab.h.
Referenced by file_editor_tab(), and set_file_name().
|
private |
Definition at line 332 of file file-editor-tab.h.
|
private |
Definition at line 316 of file file-editor-tab.h.
|
private |
Definition at line 312 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_copy_available(), handle_request_add_breakpoint(), run_file(), set_file_name(), update_lexer(), and update_lexer_settings().
|
private |
Definition at line 308 of file file-editor-tab.h.
Referenced by file_editor_tab(), and set_file_name().
|
private |
Definition at line 323 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 329 of file file-editor-tab.h.
Referenced by file_editor_tab(), and load_file().
|
private |
Definition at line 327 of file file-editor-tab.h.
|
private |
Definition at line 328 of file file-editor-tab.h.
|
private |
Definition at line 331 of file file-editor-tab.h.
Referenced by file_editor_tab().
|
private |
Definition at line 307 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_current_enc_changed(), handle_decode_warning_answer(), and save_file().
|
private |
Definition at line 262 of file file-editor-tab.h.
Referenced by file_editor_tab(), detect_eol_mode(), do_comment_selected_text(), handle_decode_warning_answer(), load_file(), new_file(), and update_lexer_settings().
|
private |
Definition at line 325 of file file-editor-tab.h.
Referenced by save_apis_info(), and update_lexer_settings().
|
private |
Definition at line 324 of file file-editor-tab.h.
Referenced by handle_api_entries_added(), and update_lexer_settings().
|
private |
Definition at line 296 of file file-editor-tab.h.
Referenced by file_editor_tab().
|
private |
Definition at line 301 of file file-editor-tab.h.
|
private |
Definition at line 314 of file file-editor-tab.h.
|
private |
Definition at line 295 of file file-editor-tab.h.
Referenced by file_editor_tab().