#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) |
void | enable_file_watcher (bool do_enable) |
QString | encoding (void) const |
QString | file_name (void) const |
QString | get_all_bookmarks (void) |
octave_qscintilla * | qsci_edit_area (void) |
void | set_file_name (const QString &fileName) |
void | update_breakpoints () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
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.
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 107 of file file-editor-tab.cc.
References api_entries_added(), marker::bookmark, marker::breakpoint, marker::cond_break, confirm_dbquit_and_save(), confirm_dbquit_and_save_signal(), octave_qscintilla::context_menu_break_condition_signal(), octave_qscintilla::context_menu_edit_signal(), dbstop_if(), marker::debugger_position, do_save_file(), do_save_file_signal(), ed_default_enc(), resource_manager::get_settings(), handle_api_entries_added(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_dbstop_if(), handle_remove_next(), handle_request_add_breakpoint(), interpreter_event(), octave_qscintilla::interpreter_event(), gui_pref::key, maybe_remove_next(), request_add_breakpoint(), marker::unsure_debugger_position, update_rowcol_indicator(), and octave_qscintilla::update_rowcol_indicator_signal().
file_editor_tab::~file_editor_tab | ( | void | ) |
Definition at line 281 of file file-editor-tab.cc.
References lexer, m_edit_area, remove_all_breakpoints_signal(), and remove_all_positions().
|
private |
Definition at line 1388 of file file-editor-tab.cc.
References 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 2943 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(), and file_editor::make_file_editor_tab().
|
private |
Definition at line 3139 of file file-editor-tab.cc.
References m_edit_area.
Referenced by goto_line(), and insert_debugger_pointer().
|
slot |
Definition at line 2958 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::make_file_editor_tab().
int file_editor_tab::check_file_modified | ( | bool | remove = false | ) |
Definition at line 1747 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 1817 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 2544 of file file-editor-tab.cc.
References encoding(), free(), m_edit_area, m_encoding, and octave_u32_conv_to_encoding_strict().
Referenced by do_save_file(), and save_file().
|
private |
Definition at line 2521 of file file-editor-tab.cc.
References file_name(), and valid_identifier().
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
protected |
Definition at line 308 of file file-editor-tab.cc.
References check_file_modified(), and tab_remove_request().
|
slot |
Definition at line 1309 of file file-editor-tab.cc.
References do_comment_selected_text().
Referenced by file_editor::make_file_editor_tab().
bool file_editor_tab::conditional_close | ( | void | ) |
Definition at line 2953 of file file-editor-tab.cc.
Referenced by file_editor::handle_tab_close_request(), file_editor::request_close_all_files(), file_editor::request_close_file(), and file_editor::request_close_other_files().
|
privateslot |
Definition at line 2119 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 command_editor::interrupt().
Referenced by file_editor_tab().
|
signal |
Referenced by file_editor_tab().
|
slot |
Definition at line 1020 of file file-editor-tab.cc.
References octave_qscintilla::context_edit(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1012 of file file-editor-tab.cc.
References octave_qscintilla::context_help_doc(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1104 of file file-editor-tab.cc.
References octave_qscintilla::context_run(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1350 of file file-editor-tab.cc.
References m_edit_area, and update_eol_indicator().
Referenced by file_editor::make_file_editor_tab().
|
signal |
Referenced by file_editor_tab(), handle_context_menu_break_condition(), and handle_dbstop_if().
|
signal |
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 3074 of file file-editor-tab.cc.
References remove_position_via_debugger_linenr().
Referenced by file_editor::make_file_editor_tab().
|
private |
Definition at line 1995 of file file-editor-tab.cc.
References ed_default_eol_mode(), base_qobject::get_resource_manager(), resource_manager::get_settings(), m_edit_area, and m_octave_qobj.
Referenced by load_file().
|
slot |
Definition at line 3083 of file file-editor-tab.cc.
References marker::breakpoint, marker::cond_break, find_linenr_just_before(), find_translated_line_number(), marker::get_cond(), marker::handle_find_just_before(), marker::handle_find_translation(), marker::handle_remove(), marker::handle_remove_via_original_linenr(), marker::handle_report_editor_linenr(), handle_request_remove_breakpoint(), marker::handle_request_remove_via_editor_linenr(), m_edit_area, remove_all_breakpoints_signal(), remove_breakpoint_via_debugger_linenr(), report_marker_linenr(), marker::request_remove(), request_remove_breakpoint_via_editor_linenr(), and marker::set_cond().
Referenced by file_editor::make_file_editor_tab(), and update_breakpoints_handler().
|
private |
Definition at line 1563 of file file-editor-tab.cc.
References octave_qscintilla::comment_string(), ed_last_comment_str(), base_qobject::get_resource_manager(), 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 1499 of file file-editor-tab.cc.
References m_edit_area.
Referenced by indent_selected_text(), and unindent_selected_text().
|
privateslot |
Definition at line 2299 of file file-editor-tab.cc.
References check_restore_breakpoints(), check_valid_codec(), ed_force_newline(), ed_rm_trailing_spaces(), octave_qscintilla::eol_string(), base_qobject::get_resource_manager(), resource_manager::get_settings(), m_edit_area, m_enc_indicator, m_encoding, m_file_system_watcher, m_octave_qobj, octave_qscintilla::replace_all(), set_file_name(), show_dialog(), tab_ready_to_close(), and tab_remove_request().
Referenced by file_editor_tab().
|
signal |
Referenced by file_editor_tab(), confirm_dbquit_and_save(), and save_file().
|
private |
Definition at line 1536 of file file-editor-tab.cc.
References m_edit_area, and octave_qscintilla::smart_indent_line_or_selected_text().
Referenced by smart_indent_line_or_selected_text().
|
signal |
Referenced by file_editor::make_file_editor_tab(), and set_focus().
|
signal |
Referenced by handle_context_menu_edit(), and file_editor::make_file_editor_tab().
|
signal |
|
signal |
Referenced by change_editor_state(), handle_copy_available(), file_editor::make_file_editor_tab(), and set_file_name().
void file_editor_tab::enable_file_watcher | ( | bool | do_enable | ) |
Definition at line 552 of file file-editor-tab.cc.
References m_file_name, and m_file_system_watcher.
Referenced by file_editor::handle_file_remove().
|
inline |
Definition at line 71 of file file-editor-tab.h.
References m_encoding.
Referenced by check_valid_codec().
|
slot |
Definition at line 2675 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().
|
inline |
Definition at line 70 of file file-editor-tab.h.
References m_file_name.
Referenced by check_valid_identifier(), and file_editor::copy_full_file_path().
|
signal |
Referenced by file_editor::make_file_editor_tab(), and update_window_title().
|
signal |
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
|
signal |
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
QString file_editor_tab::get_all_bookmarks | ( | void | ) |
Definition at line 1169 of file file-editor-tab.cc.
References marker::bookmark, and m_edit_area.
|
private |
Definition at line 3353 of file file-editor-tab.cc.
References m_edit_area.
Referenced by save_file_as().
|
slot |
Definition at line 1431 of file file-editor-tab.cc.
References center_current_line(), m_bp_restore_count, m_edit_area, and octave_qscintilla::setCursorPosition().
Referenced by file_editor::make_file_editor_tab().
|
privateslot |
Definition at line 973 of file file-editor-tab.cc.
References api_entries_added(), and m_lexer_apis.
Referenced by update_lexer().
|
privateslot |
Definition at line 981 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 3215 of file file-editor-tab.cc.
References octave_qscintilla::comment_string(), octave_qscintilla::get_current_position(), octave_qscintilla::is_style_comment(), m_edit_area, m_line_break, m_line_break_comments, octave_qscintilla::ST_LINE_COMMENT, and octave_qscintilla::ST_NONE.
|
slot |
Definition at line 378 of file file-editor-tab.cc.
References 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 331 of file file-editor-tab.cc.
References edit_mfile_request(), m_ced, m_edit_area, m_file_name, and octave_qscintilla::setCursorPosition().
Referenced by file_editor_tab().
|
slot |
Definition at line 1727 of file file-editor-tab.cc.
References editor_state_changed(), m_copy_available, m_edit_area, and m_is_octave_file.
|
privateslot |
Definition at line 1990 of file file-editor-tab.cc.
References m_new_encoding.
Referenced by handle_decode_warning_answer().
|
privateslot |
Definition at line 3172 of file file-editor-tab.cc.
References autoc_closed(), m_auto_endif, m_autoc_active, m_col, m_edit_area, m_ind_char_width, m_is_octave_file, m_line, m_lines_changed, m_smart_indent, octave_qscintilla::smart_indent(), and update_rowcol_indicator().
|
privateslot |
Definition at line 422 of file file-editor-tab.cc.
References dbstop_if(), eval_error(), Utils::fromStdString(), interpreter::get_error_system(), interpreter_event(), and interpreter::recover_from_exception().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1933 of file file-editor-tab.cc.
References resource_manager::combo_encoding(), 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 3279 of file file-editor-tab.cc.
References octave_qscintilla::clear_selection_markers(), m_edit_area, m_highlight_all_occurrences, octave_qscintilla::set_word_selection(), octave_qscintilla::setCursorPosition(), and octave_qscintilla::show_selection_markers().
|
privateslot |
Definition at line 2967 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 2981 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 3166 of file file-editor-tab.cc.
References m_lines_changed.
|
slot |
Definition at line 586 of file file-editor-tab.cc.
References marker::bookmark, marker::breakpoint, marker::cond_break, handle_request_add_breakpoint(), handle_request_remove_breakpoint(), m_edit_area, state, and unchanged_or_saved().
|
privateslot |
Definition at line 1421 of file file-editor-tab.cc.
References m_breakpoint_info, file_editor_tab::breakpoint_info::remove_line, and file_editor_tab::breakpoint_info::remove_next.
Referenced by file_editor_tab().
|
slot |
Definition at line 1198 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 1207 of file file-editor-tab.cc.
References tree_evaluator::get_bp_table(), interpreter::get_evaluator(), interpreter_event(), m_file_name, and bp_table::remove_breakpoint_from_file().
Referenced by do_breakpoint_marker(), handle_margin_clicked(), and insert_debugger_pointer().
|
privateslot |
Definition at line 2502 of file file-editor-tab.cc.
References filter().
Referenced by save_file_as().
|
privateslot |
Definition at line 2610 of file file-editor-tab.cc.
References check_valid_identifier(), editor_check_conflict_save(), m_edit_area, m_file_name, save_file(), and save_file_as().
Referenced by save_file_as().
|
privateslot |
Definition at line 2669 of file file-editor-tab.cc.
References m_edit_area.
Referenced by save_file_as().
|
privateslot |
Definition at line 2657 of file file-editor-tab.cc.
References check_valid_identifier(), editor_check_conflict_save(), and save_file_as().
Referenced by save_file_as().
|
slot |
Definition at line 1326 of file file-editor-tab.cc.
References do_indent_selected_text().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 3000 of file file-editor-tab.cc.
References center_current_line(), marker::debugger_position, file_editor_tab::breakpoint_info::do_not_remove_line, find_linenr_just_before(), find_translated_line_number(), marker::handle_remove(), marker::handle_remove_via_original_linenr(), handle_request_remove_breakpoint(), m_breakpoint_info, m_edit_area, remove_all_positions(), file_editor_tab::breakpoint_info::remove_line, remove_position_via_debugger_linenr(), and marker::unsure_debugger_position.
Referenced by file_editor::make_file_editor_tab().
|
signal |
|
signal |
|
slot |
Definition at line 1837 of file file-editor-tab.cc.
References detect_eol_mode(), ed_force_newline(), base_qobject::get_resource_manager(), 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_qscintilla::setCursorPosition(), and update_eol_indicator().
Referenced by file_has_changed(), handle_file_reload_answer(), and file_editor::request_open_file().
|
signal |
Referenced by file_editor_tab(), and add_breakpoint_event().
|
slot |
Definition at line 1461 of file file-editor-tab.cc.
References m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
signal |
Referenced by file_editor::make_file_editor_tab(), and set_file_name().
|
slot |
Definition at line 2100 of file file-editor-tab.cc.
References ed_default_eol_mode(), base_qobject::get_resource_manager(), resource_manager::get_settings(), m_edit_area, m_octave_qobj, update_eol_indicator(), update_lexer(), and update_window_title().
Referenced by file_editor::request_new_file().
|
slot |
Definition at line 1128 of file file-editor-tab.cc.
References marker::bookmark, m_edit_area, and octave_qscintilla::setCursorPosition().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1240 of file file-editor-tab.cc.
References marker::breakpoint, marker::cond_break, m_edit_area, and octave_qscintilla::setCursorPosition().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 2770 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_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(), 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_save_as_desired_eol, m_smart_indent, m_status_bar, update_lexer_settings(), and update_window_title().
|
slot |
Definition at line 1149 of file file-editor-tab.cc.
References marker::bookmark, m_edit_area, and octave_qscintilla::setCursorPosition().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1262 of file file-editor-tab.cc.
References marker::breakpoint, marker::cond_break, m_edit_area, and octave_qscintilla::setCursorPosition().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1053 of file file-editor-tab.cc.
References m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
inline |
Definition at line 61 of file file-editor-tab.h.
References m_edit_area.
Referenced by file_editor::find_create(), and file_editor::request_open_file().
|
slot |
Definition at line 1805 of file file-editor-tab.cc.
References check_restore_breakpoints(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1282 of file file-editor-tab.cc.
References tree_evaluator::get_bp_table(), interpreter::get_evaluator(), interpreter_event(), m_file_name, and bp_table::remove_all_breakpoints_from_file().
Referenced by check_restore_breakpoints(), and file_editor::make_file_editor_tab().
|
signal |
Referenced by ~file_editor_tab(), and do_breakpoint_marker().
|
signal |
Referenced by ~file_editor_tab(), and insert_debugger_pointer().
|
slot |
Definition at line 1189 of file file-editor-tab.cc.
References marker::bookmark, and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
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().
|
signal |
Referenced by update_lexer(), and update_lexer_settings().
|
signal |
Referenced by handle_decode_warning_answer(), and file_editor::make_file_editor_tab().
|
signal |
Referenced by do_breakpoint_marker(), and toggle_breakpoint().
|
slot |
Definition at line 1068 of file file-editor-tab.cc.
References marker::breakpoint, 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, file_editor_tab::breakpoint_info::remove_next, run_file_signal(), save_file(), and valid_file_name().
Referenced by file_editor::make_file_editor_tab().
|
signal |
Referenced by file_editor::make_file_editor_tab(), and run_file().
|
privateslot |
Definition at line 998 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 2168 of file file-editor-tab.cc.
References canonicalize_file_name(), check_valid_codec(), do_save_file_signal(), for(), interpreter::get_evaluator(), interpreter::get_symbol_table(), 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 1028 of file file-editor-tab.cc.
References m_file_name.
Referenced by check_file_modified(), handle_file_resave_answer(), handle_save_file_as_answer(), file_editor::make_file_editor_tab(), run_file(), save_file(), and unchanged_or_saved().
|
slot |
Definition at line 1036 of file file-editor-tab.cc.
References save_file().
|
private |
Definition at line 2411 of file file-editor-tab.cc.
References get_function_name(), base_qobject::get_resource_manager(), 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 1045 of file file-editor-tab.cc.
Referenced by handle_save_file_as_answer(), handle_save_file_as_answer_close(), file_editor::make_file_editor_tab(), and save_file().
|
slot |
Definition at line 1300 of file file-editor-tab.cc.
References m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 326 of file file-editor-tab.cc.
References m_ced.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 297 of file file-editor-tab.cc.
References m_edit_area, m_enc_indicator, m_encoding, and set_modified().
Referenced by file_editor::request_open_file().
void file_editor_tab::set_file_name | ( | const QString & | fileName | ) |
Definition at line 507 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(), update_lexer(), and update_window_title().
Referenced by do_save_file(), and load_file().
|
slot |
Definition at line 1004 of file file-editor-tab.cc.
References edit_area_changed(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
signal |
Referenced by file_has_changed(), and file_editor::make_file_editor_tab().
|
slot |
Definition at line 1800 of file file-editor-tab.cc.
References m_edit_area.
Referenced by set_encoding().
|
slot |
Definition at line 1472 of file file-editor-tab.cc.
References m_autoc_active, and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
private |
Definition at line 1735 of file file-editor-tab.cc.
Referenced by do_save_file(), and save_file_as().
|
slot |
Definition at line 1342 of file file-editor-tab.cc.
References do_smart_indent_line_or_selected_text().
Referenced by file_editor::make_file_editor_tab().
|
signal |
Referenced by file_editor::check_closing(), check_file_modified(), and do_save_file().
|
signal |
Referenced by closeEvent(), do_save_file(), and file_editor::make_file_editor_tab().
|
slot |
Definition at line 1112 of file file-editor-tab.cc.
References marker::bookmark, and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1221 of file file-editor-tab.cc.
References marker::breakpoint, handle_request_add_breakpoint(), m_edit_area, request_remove_breakpoint_via_editor_linenr(), and unchanged_or_saved().
Referenced by file_editor::make_file_editor_tab().
|
private |
Definition at line 565 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 1318 of file file-editor-tab.cc.
References do_comment_selected_text().
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1334 of file file-editor-tab.cc.
References do_indent_selected_text().
Referenced by file_editor::make_file_editor_tab().
void file_editor_tab::update_breakpoints | ( | ) |
Definition at line 2049 of file file-editor-tab.cc.
References Fdbstatus(), interpreter_event(), m_file_name, ovl(), update_breakpoints_handler(), and update_breakpoints_signal().
Referenced by file_editor::request_open_file().
|
slot |
Definition at line 2083 of file file-editor-tab.cc.
References octave_map::contents(), do_breakpoint_marker(), Utils::fromStdString(), m_file_name, and octave_map::numel().
Referenced by update_breakpoints().
|
signal |
Referenced by update_breakpoints().
|
private |
Definition at line 2033 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 614 of file file-editor-tab.cc.
References 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 725 of file file-editor-tab.cc.
References lexer::lexer(), api_entries_added(), auto_margin_width(), interpreter::autoloaded_functions(), symbol_table::built_in_function_names(), ed_code_completion_octave_builtins(), ed_code_completion_octave_functions(), ed_color_mode(), ed_highlight_current_line_color(), ed_line_numbers_size(), ed_show_line_numbers(), f, load_path::fcn_names(), Fiskeyword(), Utils::fromStdString(), interpreter::get_load_path(), base_qobject::get_resource_manager(), resource_manager::get_settings(), interpreter::get_symbol_table(), 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, resource_manager::read_lexer_settings(), request_add_octave_apis(), octave_qscintilla::set_selection_marker_color(), and settings_color_no_change().
Referenced by file_editor::make_file_editor_tab(), notice_settings(), and update_lexer().
|
slot |
Definition at line 3203 of file file-editor-tab.cc.
References m_col, m_col_indicator, m_line, and m_row_indicator.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
slot |
Definition at line 1710 of file file-editor-tab.cc.
References file_name_changed(), m_file_name, and valid_file_name().
Referenced by new_file(), notice_settings(), file_editor::request_open_file(), and set_file_name().
|
private |
Definition at line 539 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 1361 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1379 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
slot |
Definition at line 1370 of file file-editor-tab.cc.
References auto_margin_width(), and m_edit_area.
Referenced by file_editor::make_file_editor_tab().
|
private |
Definition at line 318 of file file-editor-tab.h.
Referenced by file_has_changed(), and notice_settings().
|
private |
Definition at line 320 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 315 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and show_auto_completion().
|
private |
Definition at line 326 of file file-editor-tab.h.
Referenced by check_restore_breakpoints(), handle_context_menu_break_condition(), and save_file().
|
private |
Definition at line 325 of file file-editor-tab.h.
Referenced by check_restore_breakpoints(), handle_context_menu_break_condition(), and save_file().
|
private |
Definition at line 338 of file file-editor-tab.h.
Referenced by check_restore_breakpoints(), and goto_line().
|
private |
Definition at line 347 of file file-editor-tab.h.
Referenced by handle_remove_next(), insert_debugger_pointer(), and run_file().
|
private |
Definition at line 310 of file file-editor-tab.h.
Referenced by handle_context_menu_edit(), save_file_as(), and set_current_directory().
|
private |
Definition at line 335 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), load_file(), and update_rowcol_indicator().
|
private |
Definition at line 302 of file file-editor-tab.h.
Referenced by update_rowcol_indicator().
|
private |
Definition at line 316 of file file-editor-tab.h.
Referenced by change_editor_state(), handle_copy_available(), load_file(), and set_file_name().
|
private |
Definition at line 298 of file file-editor-tab.h.
Referenced by ~file_editor_tab(), auto_margin_width(), center_current_line(), change_editor_state(), 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_all_bookmarks(), get_function_name(), goto_line(), handle_char_added(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_copy_available(), 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(), 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_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 304 of file file-editor-tab.h.
Referenced by do_save_file(), and set_encoding().
|
private |
Definition at line 311 of file file-editor-tab.h.
Referenced by check_valid_codec(), do_save_file(), encoding(), load_file(), save_file(), save_file_as(), set_encoding(), and set_file_name().
|
private |
Definition at line 303 of file file-editor-tab.h.
Referenced by update_eol_indicator().
|
private |
Definition at line 308 of file file-editor-tab.h.
Referenced by add_breakpoint_event(), check_file_modified(), enable_file_watcher(), file_has_changed(), file_name(), handle_context_menu_edit(), handle_decode_warning_answer(), handle_file_reload_answer(), handle_file_resave_answer(), 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 309 of file file-editor-tab.h.
|
private |
Definition at line 323 of file file-editor-tab.h.
Referenced by do_save_file(), enable_file_watcher(), file_has_changed(), handle_file_reload_answer(), and set_file_name().
|
private |
Definition at line 337 of file file-editor-tab.h.
Referenced by handle_double_click(), and notice_settings().
|
private |
Definition at line 321 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 317 of file file-editor-tab.h.
Referenced by change_editor_state(), handle_copy_available(), handle_cursor_moved(), handle_request_add_breakpoint(), run_file(), set_file_name(), update_lexer(), and update_lexer_settings().
|
private |
Definition at line 313 of file file-editor-tab.h.
Referenced by file_has_changed(), and set_file_name().
|
private |
Definition at line 328 of file file-editor-tab.h.
Referenced by handle_add_octave_apis(), handle_api_entries_added(), save_apis_info(), update_lexer(), and update_lexer_settings().
|
private |
Definition at line 334 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), load_file(), and update_rowcol_indicator().
|
private |
Definition at line 332 of file file-editor-tab.h.
Referenced by handle_char_added(), and notice_settings().
|
private |
Definition at line 333 of file file-editor-tab.h.
Referenced by handle_char_added(), and notice_settings().
|
private |
Definition at line 336 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and handle_lines_changed().
|
private |
Definition at line 312 of file file-editor-tab.h.
Referenced by handle_current_enc_changed(), handle_decode_warning_answer(), save_file(), and save_file_as().
|
private |
Definition at line 263 of file file-editor-tab.h.
Referenced by detect_eol_mode(), do_comment_selected_text(), do_save_file(), handle_decode_warning_answer(), load_file(), new_file(), save_file_as(), and update_lexer_settings().
|
private |
Definition at line 330 of file file-editor-tab.h.
Referenced by save_apis_info(), and update_lexer_settings().
|
private |
Definition at line 329 of file file-editor-tab.h.
Referenced by handle_api_entries_added(), and update_lexer_settings().
|
private |
Definition at line 301 of file file-editor-tab.h.
Referenced by update_rowcol_indicator().
|
private |
Definition at line 306 of file file-editor-tab.h.
Referenced by notice_settings().
|
private |
Definition at line 319 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 300 of file file-editor-tab.h.
Referenced by notice_settings().