GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "file-editor-tab.h"
Classes | |
struct | bp_info |
Public Slots | |
void | change_editor_state (const QWidget *ID) |
void | check_modified_file (void) |
void | comment_selected_text (const QWidget *ID) |
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 &fileName) |
void | file_name_query (const QWidget *ID) |
void | find (const QWidget *ID, QList< QAction * >) |
void | find_next (const QWidget *ID) |
void | find_previous (const QWidget *ID) |
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_octave_result (QObject *requester, QString &command, octave_value_list &result) |
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 QSettings *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) |
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 | 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_window_title (bool modified) |
void | zoom_in (const QWidget *ID) |
void | zoom_normal (const QWidget *ID) |
void | zoom_out (const QWidget *ID) |
Signals | |
void | add_filename_to_list (const QString &, const QString &, QWidget *) |
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 | execute_command_in_terminal_signal (const QString &) |
void | file_name_changed (const QString &fileName, const QString &toolTip) |
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 | 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_find_next (void) |
void | request_find_previous (void) |
void | request_open_file (const QString &) |
void | request_remove_breakpoint_via_editor_linenr (int editor_linenr) |
void | run_file_signal (const QFileInfo &info) |
void | tab_remove_request () |
Public Member Functions | |
file_editor_tab (const QString &directory="") | |
A file_editor_tab object consists of a text area and three left margins. More... | |
~file_editor_tab (void) | |
bool | conditional_close (void) |
octave_qscintilla * | qsci_edit_area () |
Static Public Member Functions | |
static void | reset_cancel (void) |
static bool | was_cancelled (void) |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
void | set_file_name (const QString &fileName) |
Private Slots | |
void | auto_margin_width () |
void | handle_combo_enc_current_index (QString text) |
void | handle_combo_eol_current_index (int index) |
void | handle_cursor_moved (int line, int col) |
void | handle_file_modified_answer (int decision) |
void | handle_file_reload_answer (int decision) |
void | handle_file_resave_answer (int decision) |
void | handle_find_dialog_finished (int decision) |
void | handle_lines_changed (void) |
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 | handle_save_file_as_answer_close (const QString &fileName) |
void | save_apis_info () |
Private Member Functions | |
void | add_breakpoint_callback (const bp_info &info) |
void | add_octave_apis (octave_value_list key_ovl) |
void | center_current_line (bool always=true) |
int | check_file_modified () |
void | check_restore_breakpoints (void) |
bool | check_valid_codec (QTextCodec *codec) |
bool | check_valid_identifier (QString file_name) |
QString | comment_string (const QString &) |
QsciScintilla::EolMode | detect_eol_mode () |
void | do_comment_selected_text (bool comment) |
void | do_indent_selected_text (bool indent) |
void | do_smart_indent (void) |
bool | exit_debug_and_clear (const QString &full_name, const QString &base_name) |
QString | get_function_name () |
void | remove_all_breakpoints_callback (const bp_info &info) |
void | remove_breakpoint_callback (const bp_info &info) |
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 | update_lexer () |
bool | valid_file_name (const QString &file=QString()) |
Private Attributes | |
bool | _always_reload_changed_files |
QStringList | _bp_conditions |
QIntList | _bp_lines |
QString | _ced |
int | _col |
QLabel * | _col_indicator |
bool | _copy_available |
octave_qscintilla * | _edit_area |
QLabel * | _enc_indicator |
QString | _encoding |
QLabel * | _eol_indicator |
QString | _file_name |
QString | _file_name_short |
QFileSystemWatcher | _file_system_watcher |
find_dialog * | _find_dialog |
QRect | _find_dialog_geometry |
bool | _find_dialog_is_visible |
bool | _is_octave_file |
QsciAPIs * | _lexer_apis |
int | _line |
bool | _lines_changed |
bool | _long_title |
QString | _new_encoding |
QString | _prep_apis_file |
QLabel * | _row_indicator |
QsciScintilla::EolMode | _save_as_desired_eol |
bool | _smart_indent |
QStatusBar * | _status_bar |
Static Private Attributes | |
static bool | _cancelled = false |
Definition at line 48 of file file-editor-tab.h.
file_editor_tab::file_editor_tab | ( | 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 94 of file file-editor-tab.cc.
References _bp_conditions, _bp_lines, _ced, _col, _col_indicator, _edit_area, _enc_indicator, _encoding, _eol_indicator, _file_name, _file_system_watcher, _find_dialog, _find_dialog_is_visible, _is_octave_file, _lexer_apis, _line, _lines_changed, _new_encoding, _row_indicator, _status_bar, marker::bookmark, marker::breakpoint, marker::cond_break, marker::debugger_position, file_has_changed(), resource_manager::get_settings(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_copy_available(), handle_cursor_moved(), handle_lines_changed(), handle_margin_clicked(), notice_settings(), marker::unsure_debugger_position, and update_window_title().
file_editor_tab::~file_editor_tab | ( | void | ) |
Definition at line 231 of file file-editor-tab.cc.
References _edit_area, _find_dialog, lexer, remove_all_breakpoints(), and remove_all_positions().
|
private |
Definition at line 966 of file file-editor-tab.cc.
References bp_table::add_breakpoint(), file_editor_tab::bp_info::condition, file_editor_tab::bp_info::dir, file_editor_tab::bp_info::file, octave_qt_link::file_in_path(), file_editor_tab::bp_info::function_name, and file_editor_tab::bp_info::line.
Referenced by handle_context_menu_break_condition(), and handle_request_add_breakpoint().
|
signal |
Definition at line 413 of file moc-file-editor-tab.cc.
Referenced by file_name_query().
|
private |
Definition at line 759 of file file-editor-tab.cc.
References _lexer_apis, octave_value::cell_value(), Array< T >::elem(), Array< T >::numel(), and octave_value::string_value().
Referenced by update_lexer().
|
privateslot |
Definition at line 2348 of file file-editor-tab.cc.
References _edit_area, and number.
Referenced by notice_settings(), update_lexer(), zoom_in(), zoom_normal(), and zoom_out().
|
private |
Definition at line 2575 of file file-editor-tab.cc.
References _edit_area.
Referenced by goto_line(), and insert_debugger_pointer().
|
slot |
Definition at line 2365 of file file-editor-tab.cc.
References _copy_available, _find_dialog, _find_dialog_geometry, _find_dialog_is_visible, _is_octave_file, editor_state_changed(), and p.
|
private |
Definition at line 1469 of file file-editor-tab.cc.
References _cancelled, _edit_area, _file_name, arg, file, handle_file_modified_answer(), show_dialog(), and valid_file_name().
Referenced by check_modified_file(), and closeEvent().
|
slot |
Definition at line 817 of file file-editor-tab.cc.
References _cancelled, and check_file_modified().
|
private |
Definition at line 1563 of file file-editor-tab.cc.
References _bp_conditions, _bp_lines, handle_request_add_breakpoint(), and remove_all_breakpoints().
Referenced by recover_from_exit(), and save_file().
|
private |
Definition at line 2098 of file file-editor-tab.cc.
References _edit_area, _encoding, arg, No, and warning().
Referenced by save_file().
|
private |
Definition at line 2074 of file file-editor-tab.cc.
References arg, file, No, and valid_identifier().
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
|
protected |
Definition at line 267 of file file-editor-tab.cc.
References _cancelled, check_file_modified(), and tab_remove_request().
|
slot |
Definition at line 1128 of file file-editor-tab.cc.
References do_comment_selected_text().
|
private |
Definition at line 775 of file file-editor-tab.cc.
Referenced by do_comment_selected_text().
bool file_editor_tab::conditional_close | ( | void | ) |
Definition at line 2359 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().
|
slot |
Definition at line 808 of file file-editor-tab.cc.
References _edit_area, and octave_qscintilla::context_edit().
Definition at line 799 of file file-editor-tab.cc.
References _edit_area, and octave_qscintilla::context_help_doc().
|
slot |
Definition at line 888 of file file-editor-tab.cc.
References _edit_area, and octave_qscintilla::context_run().
|
slot |
Definition at line 1164 of file file-editor-tab.cc.
References _edit_area, and update_eol_indicator().
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
Definition at line 2503 of file file-editor-tab.cc.
References remove_position_via_debugger_linenr().
|
private |
Definition at line 1636 of file file-editor-tab.cc.
References _edit_area, and resource_manager::get_settings().
Referenced by load_file().
|
slot |
Definition at line 2513 of file file-editor-tab.cc.
References _edit_area, marker::breakpoint, marker::cond_break, find_linenr_just_before(), find_translated_line_number(), marker::get_cond(), handle_request_remove_breakpoint(), remove_all_breakpoints(), remove_breakpoint_via_debugger_linenr(), report_marker_linenr(), request_remove_breakpoint_via_editor_linenr(), and marker::set_cond().
|
private |
Definition at line 1371 of file file-editor-tab.cc.
References _edit_area, and comment_string().
Referenced by comment_selected_text(), and uncomment_selected_text().
|
private |
Definition at line 1333 of file file-editor-tab.cc.
References _edit_area.
Referenced by indent_selected_text(), and unindent_selected_text().
|
private |
Definition at line 2630 of file file-editor-tab.cc.
References _edit_area, and _line.
Referenced by handle_cursor_moved().
|
signal |
Definition at line 448 of file moc-file-editor-tab.cc.
Referenced by handle_context_menu_edit().
|
signal |
Definition at line 427 of file moc-file-editor-tab.cc.
Referenced by handle_save_file_as_answer(), and handle_save_file_as_answer_close().
Definition at line 400 of file moc-file-editor-tab.cc.
Referenced by change_editor_state(), handle_copy_available(), and set_file_name().
|
signal |
Definition at line 521 of file moc-file-editor-tab.cc.
Referenced by exit_debug_and_clear().
|
private |
Definition at line 1757 of file file-editor-tab.cc.
References octave_call_stack::backtrace(), octave::sys::canonicalize_file_name(), symbol_table::clear_user_function(), octave_map::contents(), e, execute_command_in_terminal_signal(), fcn, octave_function::fcn_file_name(), symbol_table::find(), octave_value::is_defined(), octave_value::is_user_code(), Array< T >::numel(), octave_sleep(), retval, string, and octave_value::user_code_value().
Referenced by save_file().
|
slot |
Definition at line 2165 of file file-editor-tab.cc.
References _always_reload_changed_files, _edit_area, _file_name, _file_system_watcher, arg, handle_file_reload_answer(), handle_file_resave_answer(), load_file(), and No.
Referenced by file_editor_tab().
|
signal |
Definition at line 393 of file moc-file-editor-tab.cc.
Referenced by update_window_title().
|
slot |
Definition at line 2393 of file file-editor-tab.cc.
References _encoding, _file_name, and add_filename_to_list().
Definition at line 1214 of file file-editor-tab.cc.
References _edit_area, _find_dialog, _find_dialog_geometry, _find_dialog_is_visible, find_next(), handle_find_dialog_finished(), find_dialog::init_search_text(), p, request_find_next(), and request_find_previous().
|
signal |
Definition at line 494 of file moc-file-editor-tab.cc.
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
|
slot |
Definition at line 1258 of file file-editor-tab.cc.
References request_find_next().
Referenced by find().
|
slot |
Definition at line 1265 of file file-editor-tab.cc.
References request_find_previous().
|
signal |
Definition at line 487 of file moc-file-editor-tab.cc.
Referenced by do_breakpoint_marker(), and insert_debugger_pointer().
|
private |
Definition at line 2679 of file file-editor-tab.cc.
References _edit_area.
Referenced by save_file_as().
Definition at line 1272 of file file-editor-tab.cc.
References _edit_area, and center_current_line().
|
privateslot |
Definition at line 2054 of file file-editor-tab.cc.
References _new_encoding, and text.
Referenced by save_file_as().
|
privateslot |
Definition at line 2048 of file file-editor-tab.cc.
References _save_as_desired_eol.
Referenced by save_file_as().
|
slot |
Definition at line 339 of file file-editor-tab.cc.
References _bp_conditions, _bp_lines, _edit_area, _file_name, add_breakpoint_callback(), buffer_error_messages, marker::cond_break, file_editor_tab::bp_info::condition, bp_table::condition_valid(), e, frame, last_error_message(), octave_link::post_event(), action_container::protect_var(), report_marker_linenr(), string, and unchanged_or_saved().
Referenced by file_editor_tab().
|
slot |
Definition at line 292 of file file-editor-tab.cc.
References _ced, _edit_area, _file_name, and edit_mfile_request().
Referenced by file_editor_tab().
|
slot |
Definition at line 1448 of file file-editor-tab.cc.
References _copy_available, _is_octave_file, and editor_state_changed().
Referenced by file_editor_tab().
Definition at line 2610 of file file-editor-tab.cc.
References _col, _col_indicator, _edit_area, _is_octave_file, _line, _lines_changed, _row_indicator, _smart_indent, do_smart_indent(), and show_auto_completion().
Referenced by file_editor_tab().
|
privateslot |
Definition at line 1524 of file file-editor-tab.cc.
References _cancelled, _edit_area, _file_name, and save_file().
Referenced by check_file_modified().
|
privateslot |
Definition at line 2405 of file file-editor-tab.cc.
References _file_name, _file_system_watcher, and load_file().
Referenced by file_has_changed().
|
privateslot |
Definition at line 2420 of file file-editor-tab.cc.
References _edit_area, _file_name, and save_file().
Referenced by file_has_changed().
|
privateslot |
Definition at line 1205 of file file-editor-tab.cc.
References _find_dialog, _find_dialog_geometry, and _find_dialog_is_visible.
Referenced by find().
|
privateslot |
Definition at line 2603 of file file-editor-tab.cc.
References _lines_changed.
Referenced by file_editor_tab().
|
slot |
Definition at line 486 of file file-editor-tab.cc.
References _edit_area, marker::bookmark, marker::breakpoint, marker::cond_break, handle_request_add_breakpoint(), handle_request_remove_breakpoint(), and unchanged_or_saved().
Referenced by file_editor_tab().
|
slot |
Definition at line 1702 of file file-editor-tab.cc.
|
slot |
Definition at line 1024 of file file-editor-tab.cc.
References _file_name, add_breakpoint_callback(), and octave_link::post_event().
Referenced by check_restore_breakpoints(), handle_margin_clicked(), and toggle_breakpoint().
|
slot |
Definition at line 1034 of file file-editor-tab.cc.
References _file_name, octave_link::post_event(), and remove_breakpoint_callback().
Referenced by do_breakpoint_marker(), and handle_margin_clicked().
|
privateslot |
Definition at line 2060 of file file-editor-tab.cc.
Referenced by save_file_as().
|
privateslot |
Definition at line 2118 of file file-editor-tab.cc.
References _edit_area, _file_name, _save_as_desired_eol, check_valid_identifier(), convert_eol(), editor_check_conflict_save(), save_file(), and save_file_as().
Referenced by save_file_as().
|
privateslot |
Definition at line 2158 of file file-editor-tab.cc.
References _edit_area.
Referenced by save_file_as().
|
privateslot |
Definition at line 2138 of file file-editor-tab.cc.
References _edit_area, _save_as_desired_eol, check_valid_identifier(), convert_eol(), editor_check_conflict_save(), and save_file_as().
Referenced by save_file_as().
|
slot |
Definition at line 1146 of file file-editor-tab.cc.
References do_indent_selected_text().
Definition at line 2440 of file file-editor-tab.cc.
References _edit_area, center_current_line(), marker::debugger_position, find_linenr_just_before(), find_translated_line_number(), remove_all_positions(), remove_position_via_debugger_linenr(), and marker::unsure_debugger_position.
|
slot |
Definition at line 1583 of file file-editor-tab.cc.
References _copy_available, _edit_area, _encoding, detect_eol_mode(), file, set_file_name(), update_eol_indicator(), and update_window_title().
Referenced by file_has_changed(), handle_file_reload_answer(), and file_editor::request_open_file().
Definition at line 1295 of file file-editor-tab.cc.
References _edit_area.
|
signal |
Definition at line 420 of file moc-file-editor-tab.cc.
Referenced by set_file_name().
|
slot |
Definition at line 1727 of file file-editor-tab.cc.
References _edit_area, resource_manager::get_settings(), update_eol_indicator(), update_lexer(), and update_window_title().
Referenced by file_editor::request_new_file().
|
slot |
Definition at line 914 of file file-editor-tab.cc.
References _edit_area, and marker::bookmark.
|
slot |
Definition at line 1063 of file file-editor-tab.cc.
References _edit_area, marker::breakpoint, and marker::cond_break.
Definition at line 2228 of file file-editor-tab.cc.
References _always_reload_changed_files, _edit_area, _long_title, _smart_indent, _status_bar, auto_margin_width(), update_lexer(), and update_window_title().
Referenced by file_editor_tab().
|
slot |
Definition at line 936 of file file-editor-tab.cc.
References _edit_area, and marker::bookmark.
|
slot |
Definition at line 1086 of file file-editor-tab.cc.
References _edit_area, marker::breakpoint, and marker::cond_break.
|
slot |
Definition at line 855 of file file-editor-tab.cc.
References _edit_area.
|
inline |
Definition at line 58 of file file-editor-tab.h.
References _edit_area.
Referenced by file_editor::add_file_editor_tab(), and file_editor::request_open_file().
|
slot |
Definition at line 1550 of file file-editor-tab.cc.
References _edit_area, and check_restore_breakpoints().
|
slot |
Definition at line 1107 of file file-editor-tab.cc.
References _file_name, octave_link::post_event(), and remove_all_breakpoints_callback().
|
signal |
Definition at line 481 of file moc-file-editor-tab.cc.
Referenced by check_restore_breakpoints(), do_breakpoint_marker(), and ~file_editor_tab().
|
private |
Definition at line 986 of file file-editor-tab.cc.
References file_editor_tab::bp_info::dir, file_editor_tab::bp_info::file, octave_qt_link::file_in_path(), file_editor_tab::bp_info::function_name, and bp_table::remove_all_breakpoints_in_file().
Referenced by remove_all_breakpoints().
|
signal |
Definition at line 515 of file moc-file-editor-tab.cc.
Referenced by insert_debugger_pointer(), and ~file_editor_tab().
|
slot |
Definition at line 957 of file file-editor-tab.cc.
References _edit_area, and marker::bookmark.
|
private |
Definition at line 976 of file file-editor-tab.cc.
References file_editor_tab::bp_info::dir, file_editor_tab::bp_info::file, octave_qt_link::file_in_path(), file_editor_tab::bp_info::function_name, file_editor_tab::bp_info::line, and bp_table::remove_breakpoint().
Referenced by handle_request_remove_breakpoint().
|
signal |
Definition at line 467 of file moc-file-editor-tab.cc.
Referenced by do_breakpoint_marker().
|
signal |
Definition at line 508 of file moc-file-editor-tab.cc.
Referenced by delete_debugger_pointer(), and insert_debugger_pointer().
|
signal |
Definition at line 501 of file moc-file-editor-tab.cc.
Referenced by do_breakpoint_marker(), handle_context_menu_break_condition(), and save_file().
|
signal |
Definition at line 455 of file moc-file-editor-tab.cc.
Referenced by find(), and find_next().
|
signal |
Definition at line 461 of file moc-file-editor-tab.cc.
Referenced by find(), and find_previous().
|
signal |
Definition at line 441 of file moc-file-editor-tab.cc.
|
signal |
Definition at line 474 of file moc-file-editor-tab.cc.
Referenced by do_breakpoint_marker(), and toggle_breakpoint().
|
inlinestatic |
Definition at line 63 of file file-editor-tab.h.
References _cancelled.
Referenced by file_editor::check_closing().
|
slot |
Definition at line 871 of file file-editor-tab.cc.
References _edit_area, _file_name, run_file_signal(), save_file(), and valid_file_name().
|
signal |
Definition at line 434 of file moc-file-editor-tab.cc.
Referenced by run_file().
|
privateslot |
Definition at line 769 of file file-editor-tab.cc.
References _lexer_apis, and _prep_apis_file.
Referenced by update_lexer().
|
slot |
Definition at line 827 of file file-editor-tab.cc.
References _file_name.
Referenced by handle_file_modified_answer(), handle_file_resave_answer(), handle_save_file_as_answer(), run_file(), save_file(), and unchanged_or_saved().
|
slot |
Definition at line 836 of file file-editor-tab.cc.
References save_file().
|
private |
Definition at line 1822 of file file-editor-tab.cc.
References _bp_conditions, _bp_lines, _edit_area, _enc_indicator, _encoding, _file_system_watcher, _new_encoding, arg, check_restore_breakpoints(), check_valid_codec(), exit_debug_and_clear(), file, Fisdebugmode(), is_true(), report_marker_linenr(), save_file_as(), set_file_name(), show_dialog(), tab_remove_request(), update_window_title(), and valid_file_name().
|
slot |
Definition at line 846 of file file-editor-tab.cc.
Referenced by handle_save_file_as_answer(), handle_save_file_as_answer_close(), and save_file().
Definition at line 1928 of file file-editor-tab.cc.
References _ced, _edit_area, _encoding, _file_name, _new_encoding, _save_as_desired_eol, resource_manager::combo_encoding(), fname, get_function_name(), handle_combo_enc_current_index(), handle_combo_eol_current_index(), handle_save_as_filter_selected(), handle_save_file_as_answer(), handle_save_file_as_answer_cancel(), handle_save_file_as_answer_close(), show_dialog(), and valid_file_name().
Definition at line 1119 of file file-editor-tab.cc.
References _edit_area.
|
slot |
Definition at line 286 of file file-editor-tab.cc.
References _ced.
|
slot |
Definition at line 255 of file file-editor-tab.cc.
References _edit_area, _enc_indicator, _encoding, and set_modified().
Referenced by file_editor::request_open_file().
|
protected |
Definition at line 422 of file file-editor-tab.cc.
References _copy_available, _encoding, _file_name, _file_system_watcher, _is_octave_file, editor_state_changed(), mru_add_file(), and update_lexer().
Referenced by load_file(), and save_file().
|
slot |
Definition at line 791 of file file-editor-tab.cc.
References _edit_area.
|
slot |
Definition at line 1544 of file file-editor-tab.cc.
References _edit_area.
Referenced by set_encoding().
|
slot |
Definition at line 1307 of file file-editor-tab.cc.
References _edit_area, and s.
Referenced by handle_cursor_moved().
Definition at line 1456 of file file-editor-tab.cc.
Referenced by check_file_modified(), save_file(), and save_file_as().
|
signal |
Definition at line 407 of file moc-file-editor-tab.cc.
Referenced by closeEvent(), and save_file().
|
slot |
Definition at line 897 of file file-editor-tab.cc.
References _edit_area, and marker::bookmark.
|
slot |
Definition at line 1043 of file file-editor-tab.cc.
References _edit_area, marker::breakpoint, handle_request_add_breakpoint(), request_remove_breakpoint_via_editor_linenr(), and unchanged_or_saved().
|
private |
Definition at line 464 of file file-editor-tab.cc.
References _edit_area, _file_name, retval, and save_file().
Referenced by handle_context_menu_break_condition(), handle_margin_clicked(), and toggle_breakpoint().
|
slot |
Definition at line 1137 of file file-editor-tab.cc.
References do_comment_selected_text().
|
slot |
Definition at line 1155 of file file-editor-tab.cc.
References do_indent_selected_text().
|
private |
Definition at line 1683 of file file-editor-tab.cc.
References _edit_area, and _eol_indicator.
Referenced by convert_eol(), load_file(), and new_file().
|
private |
Definition at line 515 of file file-editor-tab.cc.
References _edit_area, _file_name, _is_octave_file, _lexer_apis, _prep_apis_file, add_octave_apis(), auto_margin_width(), F__builtins__(), F__keywords__(), F__list_functions__(), QtHandles::Utils::fromStdString(), fs, resource_manager::get_settings(), h, lexer, OCTAVE_VERSION, s, save_apis_info(), valid_file_name(), and Voctave_home.
Referenced by new_file(), notice_settings(), and set_file_name().
|
slot |
Definition at line 1422 of file file-editor-tab.cc.
References _file_name, _long_title, file, file_name_changed(), and valid_file_name().
Referenced by file_editor_tab(), load_file(), new_file(), notice_settings(), file_editor::request_open_file(), and save_file().
|
private |
Definition at line 445 of file file-editor-tab.cc.
References _file_name.
Referenced by check_file_modified(), run_file(), save_file(), save_file_as(), update_lexer(), and update_window_title().
|
inlinestatic |
Definition at line 64 of file file-editor-tab.h.
References _cancelled.
Referenced by file_editor::check_closing().
|
slot |
Definition at line 1175 of file file-editor-tab.cc.
References _edit_area, and auto_margin_width().
|
slot |
Definition at line 1195 of file file-editor-tab.cc.
References _edit_area, and auto_margin_width().
|
slot |
Definition at line 1185 of file file-editor-tab.cc.
References _edit_area, and auto_margin_width().
|
private |
Definition at line 284 of file file-editor-tab.h.
Referenced by file_has_changed(), and notice_settings().
|
private |
Definition at line 290 of file file-editor-tab.h.
Referenced by check_restore_breakpoints(), file_editor_tab(), handle_context_menu_break_condition(), and save_file().
|
private |
Definition at line 289 of file file-editor-tab.h.
Referenced by check_restore_breakpoints(), file_editor_tab(), handle_context_menu_break_condition(), and save_file().
Definition at line 299 of file file-editor-tab.h.
Referenced by check_file_modified(), check_modified_file(), closeEvent(), handle_file_modified_answer(), reset_cancel(), and was_cancelled().
|
private |
Definition at line 277 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 302 of file file-editor-tab.h.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 269 of file file-editor-tab.h.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 282 of file file-editor-tab.h.
Referenced by change_editor_state(), handle_copy_available(), load_file(), and set_file_name().
|
private |
Definition at line 265 of file file-editor-tab.h.
Referenced by 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_smart_indent(), file_editor_tab(), file_has_changed(), find(), get_function_name(), goto_line(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_cursor_moved(), handle_file_modified_answer(), 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(), 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(), zoom_in(), zoom_normal(), zoom_out(), and ~file_editor_tab().
|
private |
Definition at line 271 of file file-editor-tab.h.
Referenced by file_editor_tab(), save_file(), and set_encoding().
|
private |
Definition at line 278 of file file-editor-tab.h.
Referenced by check_valid_codec(), file_editor_tab(), file_name_query(), load_file(), save_file(), save_file_as(), set_encoding(), and set_file_name().
|
private |
Definition at line 270 of file file-editor-tab.h.
Referenced by file_editor_tab(), and update_eol_indicator().
|
private |
Definition at line 275 of file file-editor-tab.h.
Referenced by check_file_modified(), file_editor_tab(), file_has_changed(), file_name_query(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_file_modified_answer(), handle_file_reload_answer(), handle_file_resave_answer(), handle_request_add_breakpoint(), handle_request_remove_breakpoint(), handle_save_file_as_answer(), remove_all_breakpoints(), run_file(), save_file(), save_file_as(), set_file_name(), unchanged_or_saved(), update_lexer(), update_window_title(), and valid_file_name().
|
private |
Definition at line 276 of file file-editor-tab.h.
|
private |
Definition at line 287 of file file-editor-tab.h.
Referenced by file_editor_tab(), file_has_changed(), handle_file_reload_answer(), save_file(), and set_file_name().
|
private |
Definition at line 292 of file file-editor-tab.h.
Referenced by change_editor_state(), file_editor_tab(), find(), handle_find_dialog_finished(), and ~file_editor_tab().
|
private |
Definition at line 294 of file file-editor-tab.h.
Referenced by change_editor_state(), find(), and handle_find_dialog_finished().
|
private |
Definition at line 293 of file file-editor-tab.h.
Referenced by change_editor_state(), file_editor_tab(), find(), and handle_find_dialog_finished().
|
private |
Definition at line 283 of file file-editor-tab.h.
Referenced by change_editor_state(), file_editor_tab(), handle_copy_available(), handle_cursor_moved(), set_file_name(), and update_lexer().
|
private |
Definition at line 296 of file file-editor-tab.h.
Referenced by add_octave_apis(), file_editor_tab(), save_apis_info(), and update_lexer().
|
private |
Definition at line 301 of file file-editor-tab.h.
Referenced by do_smart_indent(), file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 303 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_cursor_moved(), and handle_lines_changed().
|
private |
Definition at line 281 of file file-editor-tab.h.
Referenced by notice_settings(), and update_window_title().
|
private |
Definition at line 279 of file file-editor-tab.h.
Referenced by file_editor_tab(), handle_combo_enc_current_index(), save_file(), and save_file_as().
|
private |
Definition at line 297 of file file-editor-tab.h.
Referenced by save_apis_info(), and update_lexer().
|
private |
Definition at line 268 of file file-editor-tab.h.
Referenced by file_editor_tab(), and handle_cursor_moved().
|
private |
Definition at line 273 of file file-editor-tab.h.
Referenced by handle_combo_eol_current_index(), handle_save_file_as_answer(), handle_save_file_as_answer_close(), and save_file_as().
|
private |
Definition at line 285 of file file-editor-tab.h.
Referenced by handle_cursor_moved(), and notice_settings().
|
private |
Definition at line 267 of file file-editor-tab.h.
Referenced by file_editor_tab(), and notice_settings().