GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
file_editor_tab Class Reference

#include "file-editor-tab.h"

Inheritance diagram for file_editor_tab:
Collaboration diagram for file_editor_tab:

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_qscintillaqsci_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
 
QLabelm_col_indicator
 
bool m_copy_available
 
octave_qscintillam_edit_area
 
QLabelm_enc_indicator
 
QString m_encoding
 
QLabelm_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_qobjectm_octave_qobj
 
QString m_prep_apis_file
 
QString m_prep_apis_path
 
QLabelm_row_indicator
 
QsciScintilla::EolMode m_save_as_desired_eol
 
bool m_smart_indent
 
QStatusBar * m_status_bar
 

Detailed Description

Definition at line 51 of file file-editor-tab.h.

Constructor & Destructor Documentation

◆ file_editor_tab()

◆ ~file_editor_tab()

file_editor_tab::~file_editor_tab ( void  )

Member Function Documentation

◆ add_breakpoint_event()

void file_editor_tab::add_breakpoint_event ( int  line,
const QString &  cond 
)
private

◆ api_entries_added

void file_editor_tab::api_entries_added ( void  )
signal

◆ auto_margin_width

void file_editor_tab::auto_margin_width ( void  )
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().

◆ autoc_closed

void file_editor_tab::autoc_closed ( void  )
signal

◆ center_current_line()

void file_editor_tab::center_current_line ( bool  always = true)
private

Definition at line 3139 of file file-editor-tab.cc.

References m_edit_area.

Referenced by goto_line(), and insert_debugger_pointer().

◆ change_editor_state

void file_editor_tab::change_editor_state ( const QWidget ID)
slot

◆ check_file_modified()

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().

◆ check_restore_breakpoints()

void file_editor_tab::check_restore_breakpoints ( void  )
private

◆ check_valid_codec()

QTextCodec * file_editor_tab::check_valid_codec ( void  )
private

◆ check_valid_identifier()

bool file_editor_tab::check_valid_identifier ( QString  file_name)
private

◆ closeEvent()

void file_editor_tab::closeEvent ( QCloseEvent *  event)
protected

Definition at line 308 of file file-editor-tab.cc.

References check_file_modified(), and tab_remove_request().

◆ comment_selected_text

void file_editor_tab::comment_selected_text ( const QWidget ID,
bool  input_str 
)
slot

Definition at line 1309 of file file-editor-tab.cc.

References do_comment_selected_text().

Referenced by file_editor::make_file_editor_tab().

◆ conditional_close()

◆ confirm_dbquit_and_save

void file_editor_tab::confirm_dbquit_and_save ( const QString &  file_to_save,
const QString &  base_name,
bool  remove_on_success,
bool  restore_breakpoints 
)
privateslot

◆ confirm_dbquit_and_save_signal

void file_editor_tab::confirm_dbquit_and_save_signal ( const QString &  file_to_save,
const QString &  base_name,
bool  remove_on_success,
bool  restore_breakpoints 
)
signal

Referenced by file_editor_tab().

◆ context_edit

void file_editor_tab::context_edit ( const QWidget ID)
slot

◆ context_help

void file_editor_tab::context_help ( const QWidget ID,
bool  doc 
)
slot

◆ context_run

void file_editor_tab::context_run ( const QWidget ID)
slot

◆ convert_eol

void file_editor_tab::convert_eol ( const QWidget ID,
QsciScintilla::EolMode  eol_mode 
)
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().

◆ dbstop_if

void file_editor_tab::dbstop_if ( const QString &  prompt,
int  line,
const QString &  cond 
)
signal

◆ debug_quit_signal

void file_editor_tab::debug_quit_signal ( void  )
signal

◆ delete_debugger_pointer

void file_editor_tab::delete_debugger_pointer ( const QWidget ID,
int  line = -1 
)
slot

◆ detect_eol_mode()

QsciScintilla::EolMode file_editor_tab::detect_eol_mode ( void  )
private

◆ do_breakpoint_marker

◆ do_comment_selected_text()

void file_editor_tab::do_comment_selected_text ( bool  comment,
bool  input_str = false 
)
private

◆ do_indent_selected_text()

void file_editor_tab::do_indent_selected_text ( bool  indent)
private

Definition at line 1499 of file file-editor-tab.cc.

References m_edit_area.

Referenced by indent_selected_text(), and unindent_selected_text().

◆ do_save_file

◆ do_save_file_signal

void file_editor_tab::do_save_file_signal ( const QString &  file_to_save,
bool  remove_on_success,
bool  restore_breakpoints 
)
signal

◆ do_smart_indent_line_or_selected_text()

void file_editor_tab::do_smart_indent_line_or_selected_text ( void  )
private

◆ edit_area_changed

void file_editor_tab::edit_area_changed ( octave_qscintilla edit_area)
signal

◆ edit_mfile_request

void file_editor_tab::edit_mfile_request ( const QString &  ,
const QString &  ,
const QString &  ,
int   
)
signal

◆ editor_check_conflict_save

void file_editor_tab::editor_check_conflict_save ( const QString &  saveFileName,
bool  remove_on_success 
)
signal

◆ editor_state_changed

void file_editor_tab::editor_state_changed ( bool  copy_available,
bool  is_octave_file,
bool  is_modified 
)
signal

◆ enable_file_watcher()

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().

◆ encoding()

QString file_editor_tab::encoding ( void  ) const
inline

Definition at line 71 of file file-editor-tab.h.

References m_encoding.

Referenced by check_valid_codec().

◆ file_has_changed

void file_editor_tab::file_has_changed ( const QString &  path,
bool  do_close = false 
)
slot

◆ file_name()

QString file_editor_tab::file_name ( void  ) const
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().

◆ file_name_changed

void file_editor_tab::file_name_changed ( const QString &  fileName,
const QString &  toolTip,
bool  modified 
)
signal

◆ find_linenr_just_before

void file_editor_tab::find_linenr_just_before ( int  linenr,
int &  original_linenr,
int &  editor_linenr 
)
signal

◆ find_translated_line_number

void file_editor_tab::find_translated_line_number ( int  original_linenr,
int &  translated_linenr,
marker *&   
)
signal

◆ get_all_bookmarks()

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.

◆ get_function_name()

QString file_editor_tab::get_function_name ( void  )
private

Definition at line 3353 of file file-editor-tab.cc.

References m_edit_area.

Referenced by save_file_as().

◆ goto_line

void file_editor_tab::goto_line ( const QWidget ID,
int  line = -1 
)
slot

◆ handle_add_octave_apis

void file_editor_tab::handle_add_octave_apis ( const QStringList &  api_entries)
privateslot

Definition at line 973 of file file-editor-tab.cc.

References api_entries_added(), and m_lexer_apis.

Referenced by update_lexer().

◆ handle_api_entries_added

void file_editor_tab::handle_api_entries_added ( void  )
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().

◆ handle_char_added

◆ handle_context_menu_break_condition

void file_editor_tab::handle_context_menu_break_condition ( int  linenr)
slot

◆ handle_context_menu_edit

void file_editor_tab::handle_context_menu_edit ( const QString &  word_at_cursor)
slot

◆ handle_copy_available

void file_editor_tab::handle_copy_available ( bool  enableCopy)
slot

◆ handle_current_enc_changed

void file_editor_tab::handle_current_enc_changed ( const QString &  enc)
privateslot

Definition at line 1990 of file file-editor-tab.cc.

References m_new_encoding.

Referenced by handle_decode_warning_answer().

◆ handle_cursor_moved

void file_editor_tab::handle_cursor_moved ( int  line,
int  col 
)
privateslot

◆ handle_dbstop_if

void file_editor_tab::handle_dbstop_if ( const QString &  prompt,
int  line,
const QString &  cond 
)
privateslot

◆ handle_decode_warning_answer

void file_editor_tab::handle_decode_warning_answer ( QAbstractButton *  btn)
privateslot

◆ handle_double_click

void file_editor_tab::handle_double_click ( int  p,
int  l,
int  modifier 
)
privateslot

◆ handle_file_reload_answer

void file_editor_tab::handle_file_reload_answer ( int  decision)
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().

◆ handle_file_resave_answer

void file_editor_tab::handle_file_resave_answer ( int  decision)
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().

◆ handle_lines_changed

void file_editor_tab::handle_lines_changed ( void  )
privateslot

Definition at line 3166 of file file-editor-tab.cc.

References m_lines_changed.

◆ handle_margin_clicked

void file_editor_tab::handle_margin_clicked ( int  line,
int  margin,
Qt::KeyboardModifiers  state 
)
slot

◆ handle_remove_next

void file_editor_tab::handle_remove_next ( int  remove_line)
privateslot

◆ handle_request_add_breakpoint

void file_editor_tab::handle_request_add_breakpoint ( int  line,
const QString &  cond 
)
slot

◆ handle_request_remove_breakpoint

void file_editor_tab::handle_request_remove_breakpoint ( int  line)
slot

◆ handle_save_as_filter_selected

void file_editor_tab::handle_save_as_filter_selected ( const QString &  filter)
privateslot

Definition at line 2502 of file file-editor-tab.cc.

References filter().

Referenced by save_file_as().

◆ handle_save_file_as_answer

void file_editor_tab::handle_save_file_as_answer ( const QString &  fileName)
privateslot

◆ handle_save_file_as_answer_cancel

void file_editor_tab::handle_save_file_as_answer_cancel ( void  )
privateslot

Definition at line 2669 of file file-editor-tab.cc.

References m_edit_area.

Referenced by save_file_as().

◆ handle_save_file_as_answer_close

void file_editor_tab::handle_save_file_as_answer_close ( const QString &  fileName)
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().

◆ indent_selected_text

void file_editor_tab::indent_selected_text ( const QWidget ID)
slot

Definition at line 1326 of file file-editor-tab.cc.

References do_indent_selected_text().

Referenced by file_editor::make_file_editor_tab().

◆ insert_debugger_pointer

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

void file_editor_tab::interpreter_event ( const meth_callback meth)
signal

◆ load_file

◆ maybe_remove_next

void file_editor_tab::maybe_remove_next ( int  remove_line)
signal

◆ move_match_brace

void file_editor_tab::move_match_brace ( const QWidget ID,
bool  select 
)
slot

Definition at line 1461 of file file-editor-tab.cc.

References m_edit_area.

Referenced by file_editor::make_file_editor_tab().

◆ mru_add_file

void file_editor_tab::mru_add_file ( const QString &  file_name,
const QString &  encoding 
)
signal

◆ new_file

void file_editor_tab::new_file ( const QString &  commands = QString ())
slot

◆ next_bookmark

void file_editor_tab::next_bookmark ( const QWidget ID)
slot

◆ next_breakpoint

void file_editor_tab::next_breakpoint ( const QWidget ID)
slot

◆ notice_settings

◆ previous_bookmark

void file_editor_tab::previous_bookmark ( const QWidget ID)
slot

◆ previous_breakpoint

void file_editor_tab::previous_breakpoint ( const QWidget ID)
slot

◆ print_file

void file_editor_tab::print_file ( const QWidget ID)
slot

Definition at line 1053 of file file-editor-tab.cc.

References m_edit_area.

Referenced by file_editor::make_file_editor_tab().

◆ qsci_edit_area()

octave_qscintilla* file_editor_tab::qsci_edit_area ( void  )
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().

◆ recover_from_exit

void file_editor_tab::recover_from_exit ( void  )
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().

◆ remove_all_breakpoints

◆ remove_all_breakpoints_signal

void file_editor_tab::remove_all_breakpoints_signal ( void  )
signal

◆ remove_all_positions

void file_editor_tab::remove_all_positions ( void  )
signal

◆ remove_bookmark

void file_editor_tab::remove_bookmark ( const QWidget ID)
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().

◆ remove_breakpoint_via_debugger_linenr

void file_editor_tab::remove_breakpoint_via_debugger_linenr ( int  debugger_linenr)
signal

Referenced by do_breakpoint_marker().

◆ remove_position_via_debugger_linenr

void file_editor_tab::remove_position_via_debugger_linenr ( int  debugger_linenr)
signal

◆ report_marker_linenr

void file_editor_tab::report_marker_linenr ( QIntList lines,
QStringList &  conditions 
)
signal

◆ request_add_breakpoint

void file_editor_tab::request_add_breakpoint ( int  line,
const QString &  cond 
)
signal

Referenced by file_editor_tab().

◆ request_add_octave_apis

void file_editor_tab::request_add_octave_apis ( const QStringList &  )
signal

◆ request_open_file

void file_editor_tab::request_open_file ( const QString &  ,
const QString &  = QString() 
)
signal

◆ request_remove_breakpoint_via_editor_linenr

void file_editor_tab::request_remove_breakpoint_via_editor_linenr ( int  editor_linenr)
signal

◆ run_file

◆ run_file_signal

void file_editor_tab::run_file_signal ( const QFileInfo &  info)
signal

◆ save_apis_info

void file_editor_tab::save_apis_info ( void  )
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().

◆ save_file() [1/3]

◆ save_file [2/3]

void file_editor_tab::save_file ( const QWidget ID)
slot

◆ save_file [3/3]

void file_editor_tab::save_file ( const QWidget ID,
const QString &  fileName,
bool  remove_on_success 
)
slot

Definition at line 1036 of file file-editor-tab.cc.

References save_file().

◆ save_file_as() [1/2]

◆ save_file_as [2/2]

void file_editor_tab::save_file_as ( const QWidget ID)
slot

◆ scintilla_command

void file_editor_tab::scintilla_command ( const QWidget ID,
unsigned int  sci_msg 
)
slot

Definition at line 1300 of file file-editor-tab.cc.

References m_edit_area.

Referenced by file_editor::make_file_editor_tab().

◆ set_current_directory

void file_editor_tab::set_current_directory ( const QString &  dir)
slot

Definition at line 326 of file file-editor-tab.cc.

References m_ced.

Referenced by file_editor::make_file_editor_tab().

◆ set_encoding

void file_editor_tab::set_encoding ( const QString &  new_encoding)
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().

◆ set_file_name()

void file_editor_tab::set_file_name ( const QString &  fileName)

◆ set_focus

void file_editor_tab::set_focus ( const QWidget ID)
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().

◆ set_focus_editor_signal

void file_editor_tab::set_focus_editor_signal ( QWidget )
signal

◆ set_modified

void file_editor_tab::set_modified ( bool  modified = true)
slot

Definition at line 1800 of file file-editor-tab.cc.

References m_edit_area.

Referenced by set_encoding().

◆ show_auto_completion

void file_editor_tab::show_auto_completion ( const QWidget ID)
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().

◆ show_dialog()

void file_editor_tab::show_dialog ( QDialog dlg,
bool  modal 
)
private

Definition at line 1735 of file file-editor-tab.cc.

Referenced by do_save_file(), and save_file_as().

◆ smart_indent_line_or_selected_text

void file_editor_tab::smart_indent_line_or_selected_text ( const QWidget ID)
slot

◆ tab_ready_to_close

void file_editor_tab::tab_ready_to_close ( void  )
signal

◆ tab_remove_request

void file_editor_tab::tab_remove_request ( void  )
signal

◆ toggle_bookmark

void file_editor_tab::toggle_bookmark ( const QWidget ID)
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().

◆ toggle_breakpoint

void file_editor_tab::toggle_breakpoint ( const QWidget ID)
slot

◆ unchanged_or_saved()

bool file_editor_tab::unchanged_or_saved ( void  )
private

◆ uncomment_selected_text

void file_editor_tab::uncomment_selected_text ( const QWidget ID)
slot

Definition at line 1318 of file file-editor-tab.cc.

References do_comment_selected_text().

Referenced by file_editor::make_file_editor_tab().

◆ unindent_selected_text

void file_editor_tab::unindent_selected_text ( const QWidget ID)
slot

Definition at line 1334 of file file-editor-tab.cc.

References do_indent_selected_text().

Referenced by file_editor::make_file_editor_tab().

◆ update_breakpoints()

void file_editor_tab::update_breakpoints ( )

◆ update_breakpoints_handler

void file_editor_tab::update_breakpoints_handler ( const octave_value_list argout)
slot

◆ update_breakpoints_signal

void file_editor_tab::update_breakpoints_signal ( const octave_value_list args)
signal

Referenced by update_breakpoints().

◆ update_eol_indicator()

void file_editor_tab::update_eol_indicator ( void  )
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().

◆ update_lexer()

void file_editor_tab::update_lexer ( void  )
private

◆ update_lexer_settings

◆ update_rowcol_indicator

void file_editor_tab::update_rowcol_indicator ( int  line,
int  col 
)
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().

◆ update_window_title

void file_editor_tab::update_window_title ( bool  modified)
slot

◆ valid_file_name()

bool file_editor_tab::valid_file_name ( const QString &  file = QString ())
private

◆ zoom_in

void file_editor_tab::zoom_in ( const QWidget ID)
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().

◆ zoom_normal

void file_editor_tab::zoom_normal ( const QWidget ID)
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().

◆ zoom_out

void file_editor_tab::zoom_out ( const QWidget ID)
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().

Member Data Documentation

◆ m_always_reload_changed_files

bool file_editor_tab::m_always_reload_changed_files
private

Definition at line 318 of file file-editor-tab.h.

Referenced by file_has_changed(), and notice_settings().

◆ m_auto_endif

int file_editor_tab::m_auto_endif
private

Definition at line 320 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_autoc_active

bool file_editor_tab::m_autoc_active
private

Definition at line 315 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), and show_auto_completion().

◆ m_bp_conditions

QStringList file_editor_tab::m_bp_conditions
private

◆ m_bp_lines

QIntList file_editor_tab::m_bp_lines
private

◆ m_bp_restore_count

int file_editor_tab::m_bp_restore_count
private

Definition at line 338 of file file-editor-tab.h.

Referenced by check_restore_breakpoints(), and goto_line().

◆ m_breakpoint_info

breakpoint_info file_editor_tab::m_breakpoint_info
private

Definition at line 347 of file file-editor-tab.h.

Referenced by handle_remove_next(), insert_debugger_pointer(), and run_file().

◆ m_ced

QString file_editor_tab::m_ced
private

◆ m_col

int file_editor_tab::m_col
private

Definition at line 335 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), load_file(), and update_rowcol_indicator().

◆ m_col_indicator

QLabel* file_editor_tab::m_col_indicator
private

Definition at line 302 of file file-editor-tab.h.

Referenced by update_rowcol_indicator().

◆ m_copy_available

bool file_editor_tab::m_copy_available
private

◆ m_edit_area

◆ m_enc_indicator

QLabel* file_editor_tab::m_enc_indicator
private

Definition at line 304 of file file-editor-tab.h.

Referenced by do_save_file(), and set_encoding().

◆ m_encoding

QString file_editor_tab::m_encoding
private

◆ m_eol_indicator

QLabel* file_editor_tab::m_eol_indicator
private

Definition at line 303 of file file-editor-tab.h.

Referenced by update_eol_indicator().

◆ m_file_name

◆ m_file_name_short

QString file_editor_tab::m_file_name_short
private

Definition at line 309 of file file-editor-tab.h.

◆ m_file_system_watcher

QFileSystemWatcher file_editor_tab::m_file_system_watcher
private

◆ m_highlight_all_occurrences

bool file_editor_tab::m_highlight_all_occurrences
private

Definition at line 337 of file file-editor-tab.h.

Referenced by handle_double_click(), and notice_settings().

◆ m_ind_char_width

int file_editor_tab::m_ind_char_width
private

Definition at line 321 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_is_octave_file

◆ m_last_modified

QDateTime file_editor_tab::m_last_modified
private

Definition at line 313 of file file-editor-tab.h.

Referenced by file_has_changed(), and set_file_name().

◆ m_lexer_apis

QsciAPIs* file_editor_tab::m_lexer_apis
private

◆ m_line

int file_editor_tab::m_line
private

Definition at line 334 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), load_file(), and update_rowcol_indicator().

◆ m_line_break

int file_editor_tab::m_line_break
private

Definition at line 332 of file file-editor-tab.h.

Referenced by handle_char_added(), and notice_settings().

◆ m_line_break_comments

bool file_editor_tab::m_line_break_comments
private

Definition at line 333 of file file-editor-tab.h.

Referenced by handle_char_added(), and notice_settings().

◆ m_lines_changed

bool file_editor_tab::m_lines_changed
private

Definition at line 336 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), and handle_lines_changed().

◆ m_new_encoding

QString file_editor_tab::m_new_encoding
private

◆ m_octave_qobj

◆ m_prep_apis_file

QString file_editor_tab::m_prep_apis_file
private

Definition at line 330 of file file-editor-tab.h.

Referenced by save_apis_info(), and update_lexer_settings().

◆ m_prep_apis_path

QString file_editor_tab::m_prep_apis_path
private

Definition at line 329 of file file-editor-tab.h.

Referenced by handle_api_entries_added(), and update_lexer_settings().

◆ m_row_indicator

QLabel* file_editor_tab::m_row_indicator
private

Definition at line 301 of file file-editor-tab.h.

Referenced by update_rowcol_indicator().

◆ m_save_as_desired_eol

QsciScintilla::EolMode file_editor_tab::m_save_as_desired_eol
private

Definition at line 306 of file file-editor-tab.h.

Referenced by notice_settings().

◆ m_smart_indent

bool file_editor_tab::m_smart_indent
private

Definition at line 319 of file file-editor-tab.h.

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_status_bar

QStatusBar* file_editor_tab::m_status_bar
private

Definition at line 300 of file file-editor-tab.h.

Referenced by notice_settings().


The documentation for this class was generated from the following files: