GNU Octave 7.1.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  breakpoint_info
 

Public Slots

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

Signals

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

Public Member Functions

 file_editor_tab (base_qobject &oct_qobj, const QString &directory="")
 A file_editor_tab object consists of a text area and three left margins. More...
 
 ~file_editor_tab (void)
 
int check_file_modified (bool remove=false)
 
bool conditional_close (void)
 
QString encoding (void) const
 
QString file_name (void) const
 
octave_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 (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()

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

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

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

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

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

◆ ~file_editor_tab()

octave::file_editor_tab::~file_editor_tab ( void  )

Member Function Documentation

◆ add_breakpoint_event()

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

◆ 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 2807 of file file-editor-tab.cc.

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

◆ autoc_closed

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

◆ center_current_line()

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

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

Referenced by goto_line().

◆ change_editor_state

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

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

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

◆ check_file_modified()

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

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

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

Referenced by closeEvent().

◆ 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

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

References free(), and octave_u32_conv_to_encoding_strict().

Referenced by save_file().

◆ check_valid_identifier()

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

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

References valid_identifier().

◆ closeEvent()

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

Definition at line 307 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

◆ 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

◆ 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

◆ convert_eol

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

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

References m_edit_area, and update_eol_indicator().

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

◆ 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 2938 of file file-editor-tab.cc.

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

◆ detect_eol_mode()

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

◆ do_breakpoint_marker

void octave::file_editor_tab::do_breakpoint_marker ( bool  insert,
const QWidget ID,
int  line = -1,
const QString &  cond = "" 
)
slot

◆ 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 1423 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

◆ 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,
bool  is_modified 
)
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 octave::file_editor::copy_full_file_path().

◆ file_name_changed

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

◆ 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 3217 of file file-editor-tab.cc.

◆ goto_line

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

◆ handle_add_octave_apis

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

Definition at line 929 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 937 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

void octave::file_editor_tab::handle_char_added ( int  character)
privateslot

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

Referenced by file_editor_tab().

◆ 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

◆ handle_copy_available

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

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

References editor_state_changed(), m_copy_available, m_edit_area, and m_is_octave_file.

Referenced by file_editor_tab().

◆ handle_current_enc_changed

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

Definition at line 1915 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

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

Referenced by file_editor_tab().

◆ 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

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

Referenced by file_editor_tab().

◆ handle_file_reload_answer

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

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

◆ handle_file_resave_answer

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

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

◆ handle_lines_changed

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

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

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

void octave::file_editor_tab::handle_request_remove_breakpoint ( int  line)
slot

◆ handle_save_as_filter_selected

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

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

References filter().

◆ handle_save_file_as_answer

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

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

◆ handle_save_file_as_answer_cancel

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

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

◆ handle_save_file_as_answer_close

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

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

◆ indent_selected_text

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

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

References do_indent_selected_text().

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

◆ insert_debugger_pointer

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

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

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

◆ 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

◆ move_match_brace

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

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

References m_edit_area.

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

◆ mru_add_file

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

◆ 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

◆ 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

◆ 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 1009 of file file-editor-tab.cc.

References m_edit_area.

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

◆ 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

◆ remove_all_breakpoints

◆ remove_all_breakpoints_signal

void octave::file_editor_tab::remove_all_breakpoints_signal ( void  )
signal

Referenced by ~file_editor_tab().

◆ remove_all_positions

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

Referenced by ~file_editor_tab().

◆ remove_bookmark

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

◆ remove_breakpoint_via_debugger_linenr

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

◆ 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

Referenced by toggle_breakpoint().

◆ run_file

◆ run_file_signal

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

◆ save_apis_info

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

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

References m_lexer_apis, and m_prep_apis_file.

Referenced by handle_api_entries_added().

◆ 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 992 of file file-editor-tab.cc.

References save_file().

◆ save_file_as() [1/2]

void octave::file_editor_tab::save_file_as ( bool  remove_on_success = false)
private

◆ 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 1236 of file file-editor-tab.cc.

References m_edit_area.

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

◆ set_current_directory

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

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

References m_ced.

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

◆ 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 960 of file file-editor-tab.cc.

References edit_area_changed(), and m_edit_area.

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

◆ set_focus_editor_signal

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

◆ set_modified

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

Definition at line 1724 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 1396 of file file-editor-tab.cc.

References m_autoc_active, and m_edit_area.

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

◆ show_dialog()

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

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

◆ smart_indent_line_or_selected_text

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

◆ 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

◆ toggle_bookmark

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

◆ 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

◆ unindent_selected_text

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

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

References do_indent_selected_text().

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

◆ 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 1958 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_rowcol_indicator

void octave::file_editor_tab::update_rowcol_indicator ( int  line,
int  col 
)
slot

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

Referenced by file_editor_tab().

◆ 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 1297 of file file-editor-tab.cc.

References auto_margin_width(), and m_edit_area.

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

◆ zoom_normal

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

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

References auto_margin_width(), and m_edit_area.

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

◆ zoom_out

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

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

References auto_margin_width(), and m_edit_area.

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

Member Data Documentation

◆ m_always_reload_changed_files

bool octave::file_editor_tab::m_always_reload_changed_files
private

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

◆ m_auto_endif

int octave::file_editor_tab::m_auto_endif
private

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

◆ m_autoc_active

bool octave::file_editor_tab::m_autoc_active
private

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

Referenced by file_editor_tab(), 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 333 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

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

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

◆ m_ced

QString octave::file_editor_tab::m_ced
private

◆ m_col

int octave::file_editor_tab::m_col
private

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

Referenced by file_editor_tab(), and load_file().

◆ m_col_indicator

QLabel* octave::file_editor_tab::m_col_indicator
private

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

Referenced by file_editor_tab().

◆ m_copy_available

bool octave::file_editor_tab::m_copy_available
private

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

Referenced by handle_copy_available(), load_file(), and set_file_name().

◆ m_edit_area

◆ m_enc_indicator

QLabel* octave::file_editor_tab::m_enc_indicator
private

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

Referenced by file_editor_tab(), 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 298 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 304 of file file-editor-tab.h.

◆ m_file_system_watcher

QFileSystemWatcher octave::file_editor_tab::m_file_system_watcher
private

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

Referenced by file_editor_tab(), and set_file_name().

◆ m_highlight_all_occurrences

bool octave::file_editor_tab::m_highlight_all_occurrences
private

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

◆ m_ind_char_width

int octave::file_editor_tab::m_ind_char_width
private

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

◆ 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 308 of file file-editor-tab.h.

Referenced by file_editor_tab(), 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 329 of file file-editor-tab.h.

Referenced by file_editor_tab(), and load_file().

◆ m_line_break

int octave::file_editor_tab::m_line_break
private

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

◆ m_line_break_comments

bool octave::file_editor_tab::m_line_break_comments
private

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

◆ m_lines_changed

bool octave::file_editor_tab::m_lines_changed
private

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

Referenced by file_editor_tab().

◆ m_new_encoding

QString octave::file_editor_tab::m_new_encoding
private

◆ m_octave_qobj

base_qobject& octave::file_editor_tab::m_octave_qobj
private

◆ m_prep_apis_file

QString octave::file_editor_tab::m_prep_apis_file
private

Definition at line 325 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 324 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 296 of file file-editor-tab.h.

Referenced by file_editor_tab().

◆ m_save_as_desired_eol

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

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

◆ m_smart_indent

bool octave::file_editor_tab::m_smart_indent
private

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

◆ m_status_bar

QStatusBar* octave::file_editor_tab::m_status_bar
private

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

Referenced by file_editor_tab().


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