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

#include "file-editor-tab.h"

Inheritance diagram for octave::file_editor_tab:
Collaboration diagram for octave::file_editor_tab:

Classes

struct  bp_info
 
struct  breakpoint_info
 

Public Slots

void change_editor_state (const QWidget *ID)
 
void comment_selected_text (const QWidget *ID, bool input_str)
 
void context_edit (const QWidget *ID)
 
void context_help (const QWidget *ID, bool)
 
void context_run (const QWidget *ID)
 
void convert_eol (const QWidget *ID, QsciScintilla::EolMode)
 
void delete_debugger_pointer (const QWidget *ID, int line=-1)
 
void do_breakpoint_marker (bool insert, const QWidget *ID, int line=-1, const QString &cond="")
 
void file_has_changed (const QString &path, bool do_close=false)
 
void goto_line (const QWidget *ID, int line=-1)
 
void handle_context_menu_break_condition (int linenr)
 
void handle_context_menu_edit (const QString &)
 
void handle_copy_available (bool enableCopy)
 
void handle_margin_clicked (int line, int margin, Qt::KeyboardModifiers state)
 
void handle_request_add_breakpoint (int line, const QString &cond)
 
void handle_request_remove_breakpoint (int line)
 
void indent_selected_text (const QWidget *ID)
 
void insert_debugger_pointer (const QWidget *ID, int line=-1)
 
QString load_file (const QString &fileName)
 
void move_match_brace (const QWidget *ID, bool select)
 
void new_file (const QString &commands=QString())
 
void next_bookmark (const QWidget *ID)
 
void next_breakpoint (const QWidget *ID)
 
void notice_settings (const gui_settings *settings, bool init=false)
 
void previous_bookmark (const QWidget *ID)
 
void previous_breakpoint (const QWidget *ID)
 
void print_file (const QWidget *ID)
 
void recover_from_exit (void)
 
void remove_all_breakpoints (const QWidget *ID)
 
void remove_bookmark (const QWidget *ID)
 
void run_file (const QWidget *ID, bool step_into=false)
 
void save_file (const QWidget *ID)
 
void save_file (const QWidget *ID, const QString &fileName, bool remove_on_success)
 
void save_file_as (const QWidget *ID)
 
void scintilla_command (const QWidget *, unsigned int)
 
void set_current_directory (const QString &dir)
 
void set_encoding (const QString &new_encoding)
 
void set_focus (const QWidget *ID)
 
void set_modified (bool modified=true)
 
void show_auto_completion (const QWidget *ID)
 
void smart_indent_line_or_selected_text (const QWidget *ID)
 
void toggle_bookmark (const QWidget *ID)
 
void toggle_breakpoint (const QWidget *ID)
 
void uncomment_selected_text (const QWidget *ID)
 
void unindent_selected_text (const QWidget *ID)
 
void update_breakpoints_handler (const octave_value_list &argout)
 
void update_window_title (bool modified)
 
void zoom_in (const QWidget *ID)
 
void zoom_normal (const QWidget *ID)
 
void zoom_out (const QWidget *ID)
 

Signals

void api_entries_added (void)
 
void autoc_closed (void)
 
void confirm_dbquit_and_save_signal (const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints)
 
void dbstop_if (const QString &prompt, int line, const QString &cond)
 
void debug_quit_signal (void)
 
void do_save_file_signal (const QString &file_to_save, bool remove_on_success, bool restore_breakpoints)
 
void edit_area_changed (octave_qscintilla *edit_area)
 
void edit_mfile_request (const QString &, const QString &, const QString &, int)
 
void editor_check_conflict_save (const QString &saveFileName, bool remove_on_success)
 
void editor_state_changed (bool copy_available, bool is_octave_file)
 
void file_name_changed (const QString &fileName, const QString &toolTip, bool modified)
 
void find_linenr_just_before (int linenr, int &original_linenr, int &editor_linenr)
 
void find_translated_line_number (int original_linenr, int &translated_linenr, marker *&)
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void maybe_remove_next (int remove_line)
 
void mru_add_file (const QString &file_name, const QString &encoding)
 
void remove_all_breakpoints (void)
 
void remove_all_positions (void)
 
void remove_breakpoint_via_debugger_linenr (int debugger_linenr)
 
void remove_position_via_debugger_linenr (int debugger_linenr)
 
void report_marker_linenr (QIntList &lines, QStringList &conditions)
 
void request_add_breakpoint (int line, const QString &cond)
 
void request_add_octave_apis (const QStringList &)
 
void request_open_file (const QString &, const QString &=QString())
 
void request_remove_breakpoint_via_editor_linenr (int editor_linenr)
 
void run_file_signal (const QFileInfo &info)
 
void set_focus_editor_signal (QWidget *)
 
void tab_ready_to_close (void)
 
void tab_remove_request (void)
 
void update_breakpoints_signal (const octave_value_list &args)
 

Public Member Functions

 file_editor_tab (base_qobject &oct_qobj, const QString &directory="")
 A file_editor_tab object consists of a text area and three left margins. More...
 
 ~file_editor_tab (void)
 
int check_file_modified (bool remove=false)
 
bool conditional_close (void)
 
QString encoding (void) const
 
QString file_name (void) const
 
octave_qscintillaqsci_edit_area (void)
 
void update_breakpoints ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
void set_file_name (const QString &fileName)
 

Private Slots

void auto_margin_width (void)
 
void confirm_dbquit_and_save (const QString &file_to_save, const QString &base_name, bool remove_on_success, bool restore_breakpoints)
 
void do_save_file (const QString &file_to_save, bool remove_on_success, bool restore_breakpoints)
 
void handle_add_octave_apis (const QStringList &api_entries)
 
void handle_api_entries_added (void)
 
void handle_char_added (int character)
 
void handle_current_enc_changed (const QString &enc)
 
void handle_cursor_moved (int line, int col)
 
void handle_dbstop_if (const QString &prompt, int line, const QString &cond)
 
void handle_decode_warning_answer (QAbstractButton *btn)
 
void handle_double_click (int p, int l, int modifier)
 
void handle_file_reload_answer (int decision)
 
void handle_file_resave_answer (int decision)
 
void handle_lines_changed (void)
 
void handle_remove_next (int remove_line)
 
void handle_save_as_filter_selected (const QString &filter)
 
void handle_save_file_as_answer (const QString &fileName)
 
void handle_save_file_as_answer_cancel (void)
 
void handle_save_file_as_answer_close (const QString &fileName)
 
void save_apis_info (void)
 

Private Member Functions

void add_breakpoint_event (const bp_info &info)
 
void center_current_line (bool always=true)
 
void check_restore_breakpoints (void)
 
QTextCodec * check_valid_codec (void)
 
bool check_valid_identifier (QString file_name)
 
QsciScintilla::EolMode detect_eol_mode (void)
 
void do_comment_selected_text (bool comment, bool input_str=false)
 
void do_indent_selected_text (bool indent)
 
void do_smart_indent_line_or_selected_text (void)
 
QString get_function_name (void)
 
void save_file (const QString &saveFileName, bool remove_on_success=false, bool restore_breakpoints=true)
 
void save_file_as (bool remove_on_success=false)
 
void show_dialog (QDialog *dlg, bool modal)
 
bool unchanged_or_saved (void)
 
void update_eol_indicator (void)
 
void update_lexer (void)
 
void update_lexer_settings (void)
 
bool valid_file_name (const QString &file=QString())
 

Private Attributes

bool m_always_reload_changed_files
 
int m_auto_endif
 
bool m_autoc_active
 
QStringList m_bp_conditions
 
QIntList m_bp_lines
 
int m_bp_restore_count
 
breakpoint_info m_breakpoint_info
 
QString m_ced
 
int m_col
 
QLabel * m_col_indicator
 
bool m_copy_available
 
octave_qscintillam_edit_area
 
QLabel * m_enc_indicator
 
QString m_encoding
 
QLabel * m_eol_indicator
 
QString m_file_name
 
QString m_file_name_short
 
QFileSystemWatcher m_file_system_watcher
 
bool m_highlight_all_occurrences
 
int m_ind_char_width
 
bool m_is_octave_file
 
QDateTime m_last_modified
 
QsciAPIs * m_lexer_apis
 
int m_line
 
int m_line_break
 
bool m_line_break_comments
 
bool m_lines_changed
 
bool m_long_title
 
QString m_new_encoding
 
base_qobjectm_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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ file_editor_tab()

octave::file_editor_tab::file_editor_tab ( base_qobject oct_qobj,
const QString &  directory_arg = "" 
)

A file_editor_tab object consists of a text area and three left margins.

The first holds breakpoints, bookmarks, and the debug program counter. The second holds line numbers. The third holds "fold" marks, to hide sections of text.

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

References api_entries_added(), octave::marker::bookmark, octave::marker::breakpoint, octave::marker::cond_break, confirm_dbquit_and_save(), confirm_dbquit_and_save_signal(), dbstop_if(), octave::marker::debugger_position, do_save_file(), do_save_file_signal(), ed_default_enc(), file_has_changed(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), handle_api_entries_added(), handle_char_added(), handle_context_menu_break_condition(), handle_context_menu_edit(), handle_copy_available(), handle_cursor_moved(), handle_dbstop_if(), handle_double_click(), handle_lines_changed(), handle_margin_clicked(), handle_remove_next(), handle_request_add_breakpoint(), interpreter_event(), gui_pref::key, m_autoc_active, m_bp_conditions, m_bp_lines, m_bp_restore_count, m_breakpoint_info, m_ced, m_col, m_col_indicator, m_edit_area, m_enc_indicator, m_encoding, m_eol_indicator, m_file_name, m_file_system_watcher, m_is_octave_file, m_last_modified, m_lexer_apis, m_line, m_lines_changed, m_new_encoding, m_octave_qobj, m_row_indicator, m_status_bar, maybe_remove_next(), notice_settings(), octave_locale_charset_wrapper(), octave::file_editor_tab::breakpoint_info::remove_line, octave::file_editor_tab::breakpoint_info::remove_next, request_add_breakpoint(), octave::marker::unsure_debugger_position, and update_window_title().

◆ ~file_editor_tab()

octave::file_editor_tab::~file_editor_tab ( void  )

Member Function Documentation

◆ add_breakpoint_event()

◆ api_entries_added

void octave::file_editor_tab::api_entries_added ( void  )
signal

◆ auto_margin_width

void octave::file_editor_tab::auto_margin_width ( void  )
privateslot

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

References m_edit_area.

Referenced by notice_settings(), update_lexer_settings(), zoom_in(), zoom_normal(), and zoom_out().

◆ autoc_closed

void octave::file_editor_tab::autoc_closed ( void  )
signal

Referenced by handle_cursor_moved().

◆ center_current_line()

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

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

References m_edit_area.

Referenced by goto_line(), and insert_debugger_pointer().

◆ change_editor_state

void octave::file_editor_tab::change_editor_state ( const QWidget ID)
slot

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

References editor_state_changed(), m_copy_available, and m_is_octave_file.

◆ check_file_modified()

int octave::file_editor_tab::check_file_modified ( bool  remove = false)

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

References m_edit_area, m_file_name, save_file(), tab_ready_to_close(), and valid_file_name().

Referenced by closeEvent().

◆ check_restore_breakpoints()

void octave::file_editor_tab::check_restore_breakpoints ( void  )
private

◆ check_valid_codec()

QTextCodec * octave::file_editor_tab::check_valid_codec ( void  )
private

◆ check_valid_identifier()

bool octave::file_editor_tab::check_valid_identifier ( QString  file_name)
private

◆ closeEvent()

void octave::file_editor_tab::closeEvent ( QCloseEvent *  event)
protected

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

References check_file_modified(), and tab_remove_request().

◆ comment_selected_text

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

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

References do_comment_selected_text().

◆ conditional_close()

◆ confirm_dbquit_and_save

void octave::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 octave::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 octave::file_editor_tab::context_edit ( const QWidget ID)
slot

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

References octave::octave_qscintilla::context_edit(), and m_edit_area.

◆ context_help

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

◆ context_run

void octave::file_editor_tab::context_run ( const QWidget ID)
slot

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

References octave::octave_qscintilla::context_run(), and m_edit_area.

◆ convert_eol

void octave::file_editor_tab::convert_eol ( const QWidget ID,
QsciScintilla::EolMode  eol_mode 
)
slot

◆ dbstop_if

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

◆ debug_quit_signal

void octave::file_editor_tab::debug_quit_signal ( void  )
signal

◆ delete_debugger_pointer

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

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

References remove_position_via_debugger_linenr().

◆ detect_eol_mode()

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

◆ do_breakpoint_marker

◆ do_comment_selected_text()

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

◆ do_indent_selected_text()

void octave::file_editor_tab::do_indent_selected_text ( bool  indent)
private

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

References m_edit_area.

Referenced by indent_selected_text(), and unindent_selected_text().

◆ do_save_file

void octave::file_editor_tab::do_save_file ( const QString &  file_to_save,
bool  remove_on_success,
bool  restore_breakpoints 
)
privateslot

◆ do_save_file_signal

void octave::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 octave::file_editor_tab::do_smart_indent_line_or_selected_text ( void  )
private

◆ edit_area_changed

void octave::file_editor_tab::edit_area_changed ( octave_qscintilla edit_area)
signal

Referenced by set_focus().

◆ edit_mfile_request

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

◆ editor_check_conflict_save

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

◆ editor_state_changed

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

◆ encoding()

QString octave::file_editor_tab::encoding ( void  ) const
inline

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

References m_encoding.

Referenced by octave::file_editor::handle_file_remove().

◆ file_has_changed

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

◆ file_name()

QString octave::file_editor_tab::file_name ( void  ) const
inline

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

References m_file_name.

Referenced by check_valid_identifier().

◆ file_name_changed

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

Referenced by update_window_title().

◆ find_linenr_just_before

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

◆ find_translated_line_number

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

◆ get_function_name()

QString octave::file_editor_tab::get_function_name ( void  )
private

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

References m_edit_area.

Referenced by save_file_as().

◆ goto_line

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

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

References center_current_line(), m_bp_restore_count, and m_edit_area.

◆ handle_add_octave_apis

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

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

References api_entries_added(), and m_lexer_apis.

Referenced by update_lexer().

◆ handle_api_entries_added

void octave::file_editor_tab::handle_api_entries_added ( void  )
privateslot

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

References m_lexer_apis, m_prep_apis_path, and save_apis_info().

Referenced by file_editor_tab().

◆ handle_char_added

◆ handle_context_menu_break_condition

void octave::file_editor_tab::handle_context_menu_break_condition ( int  linenr)
slot

◆ handle_context_menu_edit

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

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

References edit_mfile_request(), m_ced, m_edit_area, and m_file_name.

Referenced by file_editor_tab().

◆ handle_copy_available

void octave::file_editor_tab::handle_copy_available ( bool  enableCopy)
slot

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

References editor_state_changed(), m_copy_available, and m_is_octave_file.

Referenced by file_editor_tab().

◆ handle_current_enc_changed

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

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

References m_new_encoding.

Referenced by handle_decode_warning_answer().

◆ handle_cursor_moved

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

◆ handle_dbstop_if

◆ handle_decode_warning_answer

void octave::file_editor_tab::handle_decode_warning_answer ( QAbstractButton *  btn)
privateslot

◆ handle_double_click

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

◆ handle_file_reload_answer

void octave::file_editor_tab::handle_file_reload_answer ( int  decision)
privateslot

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

References load_file(), m_file_name, and m_file_system_watcher.

Referenced by file_has_changed().

◆ handle_file_resave_answer

void octave::file_editor_tab::handle_file_resave_answer ( int  decision)
privateslot

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

References m_edit_area, m_file_name, and save_file().

Referenced by file_has_changed().

◆ handle_lines_changed

void octave::file_editor_tab::handle_lines_changed ( void  )
privateslot

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

References m_lines_changed.

Referenced by file_editor_tab().

◆ handle_margin_clicked

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

◆ handle_remove_next

void octave::file_editor_tab::handle_remove_next ( int  remove_line)
privateslot

◆ handle_request_add_breakpoint

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

◆ handle_request_remove_breakpoint

◆ handle_save_as_filter_selected

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

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

References filter().

Referenced by save_file_as().

◆ handle_save_file_as_answer

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

◆ handle_save_file_as_answer_cancel

void octave::file_editor_tab::handle_save_file_as_answer_cancel ( void  )
privateslot

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

References m_edit_area.

Referenced by save_file_as().

◆ handle_save_file_as_answer_close

void octave::file_editor_tab::handle_save_file_as_answer_close ( const QString &  fileName)
privateslot

◆ indent_selected_text

void octave::file_editor_tab::indent_selected_text ( const QWidget ID)
slot

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

References do_indent_selected_text().

◆ insert_debugger_pointer

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

void octave::file_editor_tab::interpreter_event ( const meth_callback meth)
signal

◆ load_file

◆ maybe_remove_next

void octave::file_editor_tab::maybe_remove_next ( int  remove_line)
signal

Referenced by file_editor_tab().

◆ move_match_brace

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

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

References m_edit_area.

◆ mru_add_file

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

Referenced by set_file_name().

◆ new_file

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

◆ next_bookmark

void octave::file_editor_tab::next_bookmark ( const QWidget ID)
slot

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

References octave::marker::bookmark, and m_edit_area.

◆ next_breakpoint

void octave::file_editor_tab::next_breakpoint ( const QWidget ID)
slot

◆ notice_settings

◆ previous_bookmark

void octave::file_editor_tab::previous_bookmark ( const QWidget ID)
slot

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

References octave::marker::bookmark, and m_edit_area.

◆ previous_breakpoint

void octave::file_editor_tab::previous_breakpoint ( const QWidget ID)
slot

◆ print_file

void octave::file_editor_tab::print_file ( const QWidget ID)
slot

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

References m_edit_area.

◆ qsci_edit_area()

octave_qscintilla* octave::file_editor_tab::qsci_edit_area ( void  )
inline

◆ recover_from_exit

void octave::file_editor_tab::recover_from_exit ( void  )
slot

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

References check_restore_breakpoints(), and m_edit_area.

◆ remove_all_breakpoints [1/2]

◆ remove_all_breakpoints [2/2]

void octave::file_editor_tab::remove_all_breakpoints ( void  )
signal

◆ remove_all_positions

void octave::file_editor_tab::remove_all_positions ( void  )
signal

◆ remove_bookmark

void octave::file_editor_tab::remove_bookmark ( const QWidget ID)
slot

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

References octave::marker::bookmark, and m_edit_area.

◆ remove_breakpoint_via_debugger_linenr

void octave::file_editor_tab::remove_breakpoint_via_debugger_linenr ( int  debugger_linenr)
signal

Referenced by do_breakpoint_marker().

◆ remove_position_via_debugger_linenr

void octave::file_editor_tab::remove_position_via_debugger_linenr ( int  debugger_linenr)
signal

◆ report_marker_linenr

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

◆ request_add_breakpoint

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

◆ request_add_octave_apis

void octave::file_editor_tab::request_add_octave_apis ( const QStringList &  )
signal

◆ request_open_file

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

◆ request_remove_breakpoint_via_editor_linenr

void octave::file_editor_tab::request_remove_breakpoint_via_editor_linenr ( int  editor_linenr)
signal

◆ run_file

◆ run_file_signal

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

Referenced by run_file().

◆ save_apis_info

void octave::file_editor_tab::save_apis_info ( void  )
privateslot

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

References m_lexer_apis, and m_prep_apis_file.

Referenced by handle_api_entries_added().

◆ save_file() [1/3]

◆ save_file [2/3]

void octave::file_editor_tab::save_file ( const QWidget ID)
slot

◆ save_file [3/3]

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

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

References save_file().

◆ save_file_as() [1/2]

◆ save_file_as [2/2]

void octave::file_editor_tab::save_file_as ( const QWidget ID)
slot

◆ scintilla_command

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

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

References m_edit_area.

◆ set_current_directory

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

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

References m_ced.

◆ set_encoding

void octave::file_editor_tab::set_encoding ( const QString &  new_encoding)
slot

◆ set_file_name()

void octave::file_editor_tab::set_file_name ( const QString &  fileName)
protected

◆ set_focus

void octave::file_editor_tab::set_focus ( const QWidget ID)
slot

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

References edit_area_changed(), and m_edit_area.

◆ set_focus_editor_signal

void octave::file_editor_tab::set_focus_editor_signal ( QWidget )
signal

Referenced by file_has_changed().

◆ set_modified

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

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

References m_edit_area.

Referenced by set_encoding().

◆ show_auto_completion

void octave::file_editor_tab::show_auto_completion ( const QWidget ID)
slot

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

References m_autoc_active, and m_edit_area.

◆ show_dialog()

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

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

Referenced by do_save_file(), and save_file_as().

◆ smart_indent_line_or_selected_text

void octave::file_editor_tab::smart_indent_line_or_selected_text ( const QWidget ID)
slot

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

References do_smart_indent_line_or_selected_text().

◆ tab_ready_to_close

void octave::file_editor_tab::tab_ready_to_close ( void  )
signal

◆ tab_remove_request

void octave::file_editor_tab::tab_remove_request ( void  )
signal

Referenced by closeEvent(), and do_save_file().

◆ toggle_bookmark

void octave::file_editor_tab::toggle_bookmark ( const QWidget ID)
slot

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

References octave::marker::bookmark, and m_edit_area.

◆ toggle_breakpoint

void octave::file_editor_tab::toggle_breakpoint ( const QWidget ID)
slot

◆ unchanged_or_saved()

bool octave::file_editor_tab::unchanged_or_saved ( void  )
private

◆ uncomment_selected_text

void octave::file_editor_tab::uncomment_selected_text ( const QWidget ID)
slot

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

References do_comment_selected_text().

◆ unindent_selected_text

void octave::file_editor_tab::unindent_selected_text ( const QWidget ID)
slot

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

References do_indent_selected_text().

◆ update_breakpoints()

void octave::file_editor_tab::update_breakpoints ( )

◆ update_breakpoints_handler

void octave::file_editor_tab::update_breakpoints_handler ( const octave_value_list argout)
slot

◆ update_breakpoints_signal

void octave::file_editor_tab::update_breakpoints_signal ( const octave_value_list args)
signal

Referenced by update_breakpoints().

◆ update_eol_indicator()

void octave::file_editor_tab::update_eol_indicator ( void  )
private

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

References m_edit_area, and m_eol_indicator.

Referenced by convert_eol(), load_file(), and new_file().

◆ update_lexer()

void octave::file_editor_tab::update_lexer ( void  )
private

◆ update_lexer_settings()

◆ update_window_title

void octave::file_editor_tab::update_window_title ( bool  modified)
slot

◆ valid_file_name()

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

◆ zoom_in

void octave::file_editor_tab::zoom_in ( const QWidget ID)
slot

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

References auto_margin_width(), and m_edit_area.

◆ zoom_normal

void octave::file_editor_tab::zoom_normal ( const QWidget ID)
slot

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

References auto_margin_width(), and m_edit_area.

◆ zoom_out

void octave::file_editor_tab::zoom_out ( const QWidget ID)
slot

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

References auto_margin_width(), and m_edit_area.

Member Data Documentation

◆ m_always_reload_changed_files

bool octave::file_editor_tab::m_always_reload_changed_files
private

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

Referenced by file_has_changed(), and notice_settings().

◆ m_auto_endif

int octave::file_editor_tab::m_auto_endif
private

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

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_autoc_active

bool octave::file_editor_tab::m_autoc_active
private

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

Referenced by file_editor_tab(), handle_cursor_moved(), and show_auto_completion().

◆ m_bp_conditions

QStringList octave::file_editor_tab::m_bp_conditions
private

◆ m_bp_lines

QIntList octave::file_editor_tab::m_bp_lines
private

◆ m_bp_restore_count

int octave::file_editor_tab::m_bp_restore_count
private

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

Referenced by file_editor_tab(), check_restore_breakpoints(), and goto_line().

◆ m_breakpoint_info

breakpoint_info octave::file_editor_tab::m_breakpoint_info
private

◆ m_ced

QString octave::file_editor_tab::m_ced
private

◆ m_col

int octave::file_editor_tab::m_col
private

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

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

◆ m_col_indicator

QLabel* octave::file_editor_tab::m_col_indicator
private

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

Referenced by file_editor_tab(), and handle_cursor_moved().

◆ m_copy_available

bool octave::file_editor_tab::m_copy_available
private

◆ m_edit_area

◆ m_enc_indicator

QLabel* octave::file_editor_tab::m_enc_indicator
private

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

Referenced by file_editor_tab(), do_save_file(), and set_encoding().

◆ m_encoding

QString octave::file_editor_tab::m_encoding
private

◆ m_eol_indicator

QLabel* octave::file_editor_tab::m_eol_indicator
private

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

Referenced by file_editor_tab(), and update_eol_indicator().

◆ m_file_name

◆ m_file_name_short

QString octave::file_editor_tab::m_file_name_short
private

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

◆ m_file_system_watcher

QFileSystemWatcher octave::file_editor_tab::m_file_system_watcher
private

◆ m_highlight_all_occurrences

bool octave::file_editor_tab::m_highlight_all_occurrences
private

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

Referenced by handle_double_click(), and notice_settings().

◆ m_ind_char_width

int octave::file_editor_tab::m_ind_char_width
private

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

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_is_octave_file

bool octave::file_editor_tab::m_is_octave_file
private

◆ m_last_modified

QDateTime octave::file_editor_tab::m_last_modified
private

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

Referenced by file_editor_tab(), file_has_changed(), and set_file_name().

◆ m_lexer_apis

QsciAPIs* octave::file_editor_tab::m_lexer_apis
private

◆ m_line

int octave::file_editor_tab::m_line
private

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

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

◆ m_line_break

int octave::file_editor_tab::m_line_break
private

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

Referenced by handle_char_added(), and notice_settings().

◆ m_line_break_comments

bool octave::file_editor_tab::m_line_break_comments
private

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

Referenced by handle_char_added(), and notice_settings().

◆ m_lines_changed

bool octave::file_editor_tab::m_lines_changed
private

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

Referenced by file_editor_tab(), handle_cursor_moved(), and handle_lines_changed().

◆ m_long_title

bool octave::file_editor_tab::m_long_title
private

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

Referenced by notice_settings(), and update_window_title().

◆ m_new_encoding

QString octave::file_editor_tab::m_new_encoding
private

◆ m_octave_qobj

◆ m_prep_apis_file

QString octave::file_editor_tab::m_prep_apis_file
private

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

Referenced by save_apis_info(), and update_lexer_settings().

◆ m_prep_apis_path

QString octave::file_editor_tab::m_prep_apis_path
private

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

Referenced by handle_api_entries_added(), and update_lexer_settings().

◆ m_row_indicator

QLabel* octave::file_editor_tab::m_row_indicator
private

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

Referenced by file_editor_tab(), and handle_cursor_moved().

◆ m_save_as_desired_eol

QsciScintilla::EolMode octave::file_editor_tab::m_save_as_desired_eol
private

◆ m_smart_indent

bool octave::file_editor_tab::m_smart_indent
private

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

Referenced by handle_cursor_moved(), and notice_settings().

◆ m_status_bar

QStatusBar* octave::file_editor_tab::m_status_bar
private

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

Referenced by file_editor_tab(), and notice_settings().


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