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

#include "file-editor.h"

Inheritance diagram for octave::file_editor:
Collaboration diagram for octave::file_editor:

Classes

struct  session_data
 
struct  tab_info
 

Public Types

typedef std::map< QString, tab_info >::const_iterator editor_tab_map_const_iterator
 
typedef std::map< QString, tab_info >::iterator editor_tab_map_iterator
 
enum  shared_actions_idx {
  NEW_SCRIPT_ACTION = 0, NEW_FUNCTION_ACTION, OPEN_ACTION, FIND_FILES_ACTION,
  UNDO_ACTION, COPY_ACTION, PASTE_ACTION, SELECTALL_ACTION
}
 

Public Slots

void active_tab_changed (int index)
 
bool check_closing (void)
 
void check_conflict_save (const QString &fileName, bool remove_on_success)
 
void enable_menu_shortcuts (bool)
 
void focus (void)
 
void handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *)
 
void handle_add_filename_to_list (const QString &fileName, const QString &encoding, QWidget *ID)
 
void handle_delete_debugger_pointer_request (const QString &file, int line)
 
void handle_edit_file_request (const QString &file)
 
void handle_editor_state_changed (bool enableCopy, bool is_octave_file)
 
void handle_file_name_changed (const QString &fileName, const QString &toolTip)
 
void handle_file_remove (const QString &, const QString &)
 
void handle_file_renamed (bool load_new=true)
 
void handle_insert_debugger_pointer_request (const QString &file, int line)
 
void handle_mru_add_file (const QString &file_name, const QString &encoding)
 
void handle_settings (const QSettings *)
 
void handle_tab_close_request (int index)
 
void handle_tab_remove_request (void)
 
void handle_update_breakpoint_marker_request (bool insert, const QString &file, int line, const QString &cond)
 
void handle_visibility (bool visible)
 
QMainWindowmain_win (void)
 
void notice_settings (const QSettings *settings)
 
void request_close_all_files (bool)
 
void request_close_file (bool)
 
void request_close_other_files (bool)
 
void request_comment_selected_text (bool)
 
void request_comment_var_selected_text (bool)
 
void request_completion (bool)
 
void request_context_doc (bool)
 
void request_context_edit (bool)
 
void request_context_help (bool)
 
void request_context_run (bool)
 
void request_conv_eol_mac (bool)
 
void request_conv_eol_unix (bool)
 
void request_conv_eol_windows (bool)
 
void request_copy_line (bool)
 
void request_cut (bool)
 
void request_cut_line (bool)
 
void request_delete_end_line (bool)
 
void request_delete_end_word (bool)
 
void request_delete_line (bool)
 
void request_delete_start_line (bool)
 
void request_delete_start_word (bool)
 
void request_duplicate_selection (bool)
 
void request_find (bool)
 
void request_find_next (bool)
 
void request_find_previous (bool)
 
void request_goto_line (bool)
 
void request_indent_selected_text (bool)
 
void request_lower_case (bool)
 
void request_move_match_brace (bool)
 
void request_mru_open_file (QAction *action)
 
void request_new_file (const QString &commands)
 
void request_next_bookmark (bool)
 
void request_next_breakpoint (bool)
 
void request_previous_bookmark (bool)
 
void request_previous_breakpoint (bool)
 
void request_print_file (bool)
 
void request_redo (bool)
 
void request_remove_bookmark (bool)
 
void request_remove_breakpoint (bool)
 
void request_run_file (bool)
 
void request_save_file (bool)
 
void request_save_file_as (bool)
 
void request_sel_match_brace (bool)
 
void request_smart_indent_line_or_selected_text (void)
 
void request_toggle_bookmark (bool)
 
void request_toggle_breakpoint (bool)
 
void request_transpose_line (bool)
 
void request_uncomment_selected_text (bool)
 
void request_unindent_selected_text (bool)
 
void request_upper_case (bool)
 
void save_settings (void)
 
void set_focus (QWidget *fet)
 
void set_shortcuts (void)
 
void update_octave_directory (const QString &dir)
 

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed. More...
 
void execute_command_in_terminal_signal (const QString &)
 
void fetab_change_request (const QWidget *ID)
 
void fetab_check_modified_file (void)
 
void fetab_comment_selected_text (const QWidget *ID, bool)
 
void fetab_completion (const QWidget *)
 
void fetab_context_edit (const QWidget *ID)
 
void fetab_context_help (const QWidget *ID, bool)
 
void fetab_context_run (const QWidget *ID)
 
void fetab_convert_eol (const QWidget *ID, QsciScintilla::EolMode eol_mode)
 
void fetab_delete_debugger_pointer (const QWidget *ID, int line=-1)
 
void fetab_do_breakpoint_marker (bool insert, const QWidget *ID, int line=-1, const QString &="")
 
void fetab_file_name_query (const QWidget *ID)
 
void fetab_find (const QWidget *ID, QList< QAction *>)
 
void fetab_find_next (const QWidget *ID)
 
void fetab_find_previous (const QWidget *ID)
 
void fetab_goto_line (const QWidget *ID, int line=-1)
 
void fetab_indent_selected_text (const QWidget *ID)
 
void fetab_insert_debugger_pointer (const QWidget *ID, int line=-1)
 
void fetab_move_match_brace (const QWidget *ID, bool select)
 
void fetab_next_bookmark (const QWidget *ID)
 
void fetab_next_breakpoint (const QWidget *ID)
 
void fetab_previous_bookmark (const QWidget *ID)
 
void fetab_previous_breakpoint (const QWidget *ID)
 
void fetab_print_file (const QWidget *ID)
 
void fetab_recover_from_exit (void)
 
void fetab_remove_all_breakpoints (const QWidget *ID)
 
void fetab_remove_bookmark (const QWidget *ID)
 
void fetab_run_file (const QWidget *ID)
 
void fetab_save_file (const QWidget *ID, const QString &fileName, bool remove_on_success)
 
void fetab_save_file (const QWidget *ID)
 
void fetab_save_file_as (const QWidget *ID)
 
void fetab_scintilla_command (const QWidget *ID, unsigned int sci_msg)
 
void fetab_set_directory (const QString &dir)
 
void fetab_set_focus (const QWidget *ID)
 
void fetab_settings_changed (const QSettings *settings)
 
void fetab_smart_indent_line_or_selected_text (const QWidget *ID)
 
void fetab_toggle_bookmark (const QWidget *ID)
 
void fetab_toggle_breakpoint (const QWidget *ID)
 
void fetab_uncomment_selected_text (const QWidget *ID)
 
void fetab_unindent_selected_text (const QWidget *ID)
 
void fetab_zoom_in (const QWidget *ID)
 
void fetab_zoom_normal (const QWidget *ID)
 
void fetab_zoom_out (const QWidget *ID)
 
void file_loaded_signal (void)
 
void request_open_file_external (const QString &file_name, int line)
 
void request_settings_dialog (const QString &)
 

Public Member Functions

 file_editor (QWidget *p)
 
 ~file_editor (void)
 
void check_actions (void)
 
virtual void connect_visibility_changed (void)
 
QMenudebug_menu (void)
 
void empty_script (bool startup, bool visible)
 
QMenuget_mru_menu (void)
 
void handle_enter_debug_mode (void)
 
void handle_exit_debug_mode (void)
 
void insert_global_actions (QList< QAction *>)
 
void make_widget (bool dock=true)
 
void make_window (void)
 
void restore_session (QSettings *settings)
 
void set_predecessor_widget (octave_dock_widget *prev_widget)
 
void set_title (const QString &)
 
QToolBar * toolbar (void)
 

Protected Slots

void copyClipboard (void)
 
void do_undo (void)
 
bool eventFilter (QObject *obj, QEvent *e)
 Event filter for double clicks into the window decoration elements. More...
 
virtual void handle_visibility_changed (bool visible)
 Slot to steer changing visibility from outside. More...
 
void pasteClipboard (void)
 
void selectAll (void)
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dropEvent (QDropEvent *event)
 
QWidgetfocusWidget (void)
 

Protected Attributes

QToolButtonm_close_button
 
QAction * m_dock_action
 
QToolButtonm_dock_button
 
int m_icon_size
 
QWidgetm_title_widget
 

Private Types

enum  { MaxMRUFiles = 10 }
 

Private Slots

void create_context_menu (QMenu *)
 
void edit_status_update (bool, bool)
 
void request_open_file (const QString &fileName, const QString &encoding=QString(), int line=-1, bool debug_pointer=false, bool breakpoint_marker=false, bool insert=true, const QString &cond="")
 
void request_preferences (bool)
 
void request_styles_preferences (bool)
 
void show_eol_chars (bool)
 
void show_hscrollbar (bool)
 
void show_indent_guides (bool)
 
void show_line_numbers (bool)
 
void show_long_line (bool)
 
void show_statusbar (bool)
 
void show_toolbar (bool)
 
void show_white_space (bool)
 
void zoom_in (bool)
 
void zoom_normal (bool)
 
void zoom_out (bool)
 

Private Member Functions

QAction * add_action (QMenu *menu, const QString &text, const char *member, QWidget *receiver=nullptr)
 
QAction * add_action (QMenu *menu, const QIcon &icon, const QString &text, const char *member, QWidget *receiver=nullptr)
 
void add_file_editor_tab (file_editor_tab *f, const QString &fn)
 
QMenuadd_menu (QMenuBar *p, QString text)
 
bool call_custom_editor (const QString &file_name=QString(), int line=-1)
 
void construct (void)
 
bool editor_tab_has_focus (void)
 
QWidgetfind_tab_widget (const QString &openFileName)
 
void handle_dir_remove (const QString &old_name, const QString &new_name)
 
bool is_editor_console_tabbed (void)
 
void mru_menu_update (void)
 
void toggle_preference (const QString &preference, bool def)
 

Private Attributes

QString m_ced
 
QAction * m_close_action
 
QAction * m_close_all_action
 
QAction * m_close_others_action
 
bool m_closed
 
QAction * m_comment_selection_action
 
QAction * m_comment_var_selection_action
 
QAction * m_completion_action
 
QAction * m_context_doc_action
 
QAction * m_context_help_action
 
QAction * m_conv_eol_mac_action
 
QAction * m_conv_eol_unix_action
 
QAction * m_conv_eol_windows_action
 
QAction * m_copy_action
 
QAction * m_copy_line_action
 
QAction * m_cut_action
 
QAction * m_cut_line_action
 
QMenum_debug_menu
 
QAction * m_delete_end_line_action
 
QAction * m_delete_end_word_action
 
QAction * m_delete_line_action
 
QAction * m_delete_start_line_action
 
QAction * m_delete_start_word_action
 
QAction * m_duplicate_selection_action
 
QMenum_edit_cmd_menu
 
QMenum_edit_fmt_menu
 
QAction * m_edit_function_action
 
QMenum_edit_menu
 
QMenum_edit_nav_menu
 
std::map< QString, tab_infom_editor_tab_map
 
QList< QAction * > m_fetab_actions
 
QMenum_fileMenu
 
QAction * m_find_action
 
QAction * m_find_files_action
 
QAction * m_find_next_action
 
QAction * m_find_previous_action
 
QAction * m_goto_line_action
 
QHash< QMenu *, QStringList > m_hash_menu_text
 
QAction * m_indent_selection_action
 
QAction * m_lower_case_action
 
int m_marker_breakpoint
 
QMenuBarm_menu_bar
 
QAction * m_move_tab_left_action
 
QAction * m_move_tab_right_action
 
QAction * m_move_to_matching_brace
 
QAction * m_mru_file_actions [MaxMRUFiles]
 
QMenum_mru_file_menu
 
QStringList m_mru_files
 
QStringList m_mru_files_encodings
 
QAction * m_new_action
 
QAction * m_new_function_action
 
QAction * m_next_bookmark_action
 
QAction * m_next_breakpoint_action
 
bool m_no_focus
 
QAction * m_open_action
 
QAction * m_paste_action
 
QAction * m_popdown_mru_action
 
QAction * m_preferences_action
 
QAction * m_previous_bookmark_action
 
QAction * m_previous_breakpoint_action
 
QAction * m_print_action
 
QAction * m_redo_action
 
QAction * m_remove_all_breakpoints_action
 
QAction * m_remove_bookmark_action
 
QAction * m_run_action
 
QAction * m_run_selection_action
 
QAction * m_save_action
 
QAction * m_save_as_action
 
QAction * m_sel_to_matching_brace
 
QAction * m_selectall_action
 
QAction * m_show_eol_action
 
QAction * m_show_hscrollbar_action
 
QAction * m_show_indguide_action
 
QAction * m_show_linenum_action
 
QAction * m_show_longline_action
 
QAction * m_show_statusbar_action
 
QAction * m_show_toolbar_action
 
QAction * m_show_whitespace_action
 
QAction * m_smart_indent_line_or_selection_action
 
QAction * m_styles_preferences_action
 
QAction * m_switch_left_tab_action
 
QAction * m_switch_right_tab_action
 
file_editor_tab_widgetm_tab_widget
 
QStringList m_tmp_closed_files
 
QAction * m_toggle_bookmark_action
 
QAction * m_toggle_breakpoint_action
 
QToolBar * m_tool_bar
 
QAction * m_transpose_line_action
 
QAction * m_uncomment_selection_action
 
QAction * m_undo_action
 
QAction * m_unindent_selection_action
 
QAction * m_upper_case_action
 
QMenum_view_editor_menu
 
QAction * m_zoom_in_action
 
QAction * m_zoom_normal_action
 
QAction * m_zoom_out_action
 

Detailed Description

Definition at line 62 of file file-editor.h.

Member Typedef Documentation

◆ editor_tab_map_const_iterator

Definition at line 75 of file file-editor.h.

◆ editor_tab_map_iterator

Definition at line 74 of file file-editor.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxMRUFiles 

Definition at line 446 of file file-editor.h.

◆ shared_actions_idx

Enumerator
NEW_SCRIPT_ACTION 
NEW_FUNCTION_ACTION 
OPEN_ACTION 
FIND_FILES_ACTION 
UNDO_ACTION 
COPY_ACTION 
PASTE_ACTION 
SELECTALL_ACTION 

Definition at line 102 of file file-editor.h.

Constructor & Destructor Documentation

◆ file_editor()

◆ ~file_editor()

octave::file_editor::~file_editor ( void  )

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

References m_mru_file_menu.

Member Function Documentation

◆ active_changed

void octave::octave_dock_widget::active_changed ( bool  active)
signalinherited

◆ active_tab_changed

void octave::file_editor::active_tab_changed ( int  index)
slot

Definition at line 778 of file file-editor.cc.

References fetab_change_request(), focus(), and m_tab_widget.

Referenced by construct().

◆ add_action() [1/2]

QAction * octave::file_editor::add_action ( QMenu menu,
const QString &  text,
const char *  member,
QWidget receiver = nullptr 
)
private

Definition at line 2385 of file file-editor.cc.

Referenced by construct().

◆ add_action() [2/2]

QAction * octave::file_editor::add_action ( QMenu menu,
const QIcon &  icon,
const QString &  text,
const char *  member,
QWidget receiver = nullptr 
)
private

Definition at line 2392 of file file-editor.cc.

References a.

◆ add_file_editor_tab()

void octave::file_editor::add_file_editor_tab ( file_editor_tab f,
const QString &  fn 
)
private

Definition at line 2048 of file file-editor.cc.

References check_actions(), check_conflict_save(), create_context_menu(), edit_status_update(), execute_command_in_terminal_signal(), f, fetab_change_request(), fetab_check_modified_file(), fetab_comment_selected_text(), fetab_completion(), fetab_context_edit(), fetab_context_help(), fetab_context_run(), fetab_convert_eol(), fetab_delete_debugger_pointer(), fetab_do_breakpoint_marker(), fetab_file_name_query(), fetab_find(), fetab_find_next(), fetab_find_previous(), fetab_goto_line(), fetab_indent_selected_text(), fetab_insert_debugger_pointer(), fetab_move_match_brace(), fetab_next_bookmark(), fetab_next_breakpoint(), fetab_previous_bookmark(), fetab_previous_breakpoint(), fetab_print_file(), fetab_recover_from_exit(), fetab_remove_all_breakpoints(), fetab_remove_bookmark(), fetab_run_file(), fetab_save_file(), fetab_save_file_as(), fetab_scintilla_command(), fetab_set_directory(), fetab_set_focus(), fetab_settings_changed(), fetab_smart_indent_line_or_selected_text(), fetab_toggle_bookmark(), fetab_toggle_breakpoint(), fetab_uncomment_selected_text(), fetab_unindent_selected_text(), fetab_zoom_in(), fetab_zoom_normal(), fetab_zoom_out(), find(), handle_add_filename_to_list(), handle_editor_state_changed(), handle_file_name_changed(), handle_mru_add_file(), handle_tab_remove_request(), m_tab_widget, octave::octave_dock_widget::main_win(), notice_settings(), request_open_file(), set_focus(), zoom_in(), zoom_normal(), and zoom_out().

Referenced by request_new_file(), and request_open_file().

◆ add_menu()

QMenu * octave::file_editor::add_menu ( QMenuBar p,
QString  text 
)
private

Definition at line 2416 of file file-editor.cc.

References m_hash_menu_text, name, and p.

Referenced by construct().

◆ call_custom_editor()

bool octave::file_editor::call_custom_editor ( const QString &  file_name = QString (),
int  line = -1 
)
private

◆ check_actions()

◆ check_closing

◆ check_conflict_save

void octave::file_editor::check_conflict_save ( const QString &  fileName,
bool  remove_on_success 
)
slot

Definition at line 817 of file file-editor.cc.

References arg, fetab_save_file(), find_tab_widget(), i, and m_tab_widget.

Referenced by add_file_editor_tab().

◆ closeEvent()

void octave::file_editor::closeEvent ( QCloseEvent *  event)
protectedvirtual

Reimplemented from octave::octave_dock_widget.

Definition at line 1455 of file file-editor.cc.

References check_closing(), e, octave::resource_manager::get_settings(), and m_closed.

◆ connect_visibility_changed()

void octave::octave_dock_widget::connect_visibility_changed ( void  )
virtualinherited

◆ construct()

void octave::file_editor::construct ( void  )
private

Definition at line 1507 of file file-editor.cc.

References active_tab_changed(), add_action(), add_menu(), check_actions(), execute_command_in_terminal_signal(), octave::tab_bar::get_context_menu(), octave::resource_manager::get_settings(), octave::file_editor_tab_widget::get_tab_bar(), handle_tab_close_request(), i, octave::resource_manager::icon(), m_close_action, m_close_all_action, m_close_others_action, m_comment_selection_action, m_comment_var_selection_action, m_completion_action, m_context_doc_action, m_context_help_action, m_conv_eol_mac_action, m_conv_eol_unix_action, m_conv_eol_windows_action, m_copy_line_action, m_cut_action, m_cut_line_action, m_debug_menu, m_delete_end_line_action, m_delete_end_word_action, m_delete_line_action, m_delete_start_line_action, m_delete_start_word_action, m_duplicate_selection_action, m_edit_cmd_menu, m_edit_fmt_menu, m_edit_function_action, m_edit_menu, m_edit_nav_menu, m_fileMenu, m_find_action, m_find_next_action, m_find_previous_action, m_goto_line_action, m_indent_selection_action, m_lower_case_action, m_menu_bar, m_move_tab_left_action, m_move_tab_right_action, m_move_to_matching_brace, m_mru_file_actions, m_mru_file_menu, m_mru_files, m_mru_files_encodings, m_next_bookmark_action, m_next_breakpoint_action, m_popdown_mru_action, m_preferences_action, m_previous_bookmark_action, m_previous_breakpoint_action, m_print_action, m_redo_action, m_remove_all_breakpoints_action, m_remove_bookmark_action, m_run_action, m_run_selection_action, m_save_action, m_save_as_action, m_sel_to_matching_brace, m_show_eol_action, m_show_hscrollbar_action, m_show_indguide_action, m_show_linenum_action, m_show_longline_action, m_show_statusbar_action, m_show_toolbar_action, m_show_whitespace_action, m_smart_indent_line_or_selection_action, m_styles_preferences_action, m_switch_left_tab_action, m_switch_right_tab_action, m_tab_widget, m_toggle_bookmark_action, m_toggle_breakpoint_action, m_tool_bar, m_transpose_line_action, m_uncomment_selection_action, m_unindent_selection_action, m_upper_case_action, m_view_editor_menu, m_zoom_in_action, m_zoom_normal_action, m_zoom_out_action, octave::octave_dock_widget::main_win(), MaxMRUFiles, mru_menu_update(), request_close_all_files(), request_close_file(), request_close_other_files(), request_comment_selected_text(), request_comment_var_selected_text(), request_completion(), request_context_doc(), request_context_edit(), request_context_help(), request_context_run(), request_conv_eol_mac(), request_conv_eol_unix(), request_conv_eol_windows(), request_copy_line(), request_cut(), request_cut_line(), request_delete_end_line(), request_delete_end_word(), request_delete_line(), request_delete_start_line(), request_delete_start_word(), request_duplicate_selection(), request_find(), request_find_next(), request_find_previous(), request_goto_line(), request_indent_selected_text(), request_lower_case(), request_move_match_brace(), request_mru_open_file(), request_next_bookmark(), request_next_breakpoint(), request_preferences(), request_previous_bookmark(), request_previous_breakpoint(), request_print_file(), request_redo(), request_remove_bookmark(), request_remove_breakpoint(), request_run_file(), request_save_file(), request_save_file_as(), request_sel_match_brace(), request_settings_dialog(), request_smart_indent_line_or_selected_text(), request_styles_preferences(), request_toggle_bookmark(), request_toggle_breakpoint(), request_transpose_line(), request_uncomment_selected_text(), request_unindent_selected_text(), request_upper_case(), octave::label_dock_widget::set_title(), show_eol_chars(), show_hscrollbar(), show_indent_guides(), show_line_numbers(), show_long_line(), show_statusbar(), show_toolbar(), show_white_space(), zoom_in(), zoom_normal(), and zoom_out().

Referenced by file_editor().

◆ copyClipboard

void octave::file_editor::copyClipboard ( void  )
protectedslot

Definition at line 1148 of file file-editor.cc.

References editor_tab_has_focus(), fetab_scintilla_command(), and m_tab_widget.

◆ create_context_menu

◆ debug_menu()

QMenu* octave::file_editor::debug_menu ( void  )
inlinevirtual

Implements octave::file_editor_interface.

Definition at line 96 of file file-editor.h.

References m_debug_menu.

◆ do_undo

void octave::file_editor::do_undo ( void  )
protectedslot

Definition at line 1169 of file file-editor.cc.

References editor_tab_has_focus(), fetab_scintilla_command(), and m_tab_widget.

◆ dragEnterEvent()

void octave::file_editor::dragEnterEvent ( QDragEnterEvent *  event)
protected

Definition at line 1474 of file file-editor.cc.

References e.

◆ dropEvent()

void octave::file_editor::dropEvent ( QDropEvent *  event)
protected

Definition at line 1482 of file file-editor.cc.

References e, request_open_file(), and url.

◆ edit_status_update

void octave::file_editor::edit_status_update ( bool  undo,
bool  redo 
)
privateslot

Definition at line 1447 of file file-editor.cc.

References m_redo_action, and m_undo_action.

Referenced by add_file_editor_tab().

◆ editor_tab_has_focus()

bool octave::file_editor::editor_tab_has_focus ( void  )
private

◆ empty_script()

void octave::file_editor::empty_script ( bool  startup,
bool  visible 
)
virtual

◆ enable_menu_shortcuts

void octave::file_editor::enable_menu_shortcuts ( bool  enable)
slot

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

References i, m_copy_action, m_hash_menu_text, and m_undo_action.

◆ eventFilter

bool octave::octave_dock_widget::eventFilter ( QObject obj,
QEvent *  e 
)
protectedslotinherited

Event filter for double clicks into the window decoration elements.

Definition at line 345 of file octave-dock-widget.cc.

References e.

◆ execute_command_in_terminal_signal

void octave::file_editor::execute_command_in_terminal_signal ( const QString &  )
signal

Referenced by add_file_editor_tab(), and construct().

◆ fetab_change_request

void octave::file_editor::fetab_change_request ( const QWidget ID)
signal

◆ fetab_check_modified_file

void octave::file_editor::fetab_check_modified_file ( void  )
signal

◆ fetab_comment_selected_text

void octave::file_editor::fetab_comment_selected_text ( const QWidget ID,
bool   
)
signal

◆ fetab_completion

void octave::file_editor::fetab_completion ( const QWidget )
signal

◆ fetab_context_edit

void octave::file_editor::fetab_context_edit ( const QWidget ID)
signal

◆ fetab_context_help

void octave::file_editor::fetab_context_help ( const QWidget ID,
bool   
)
signal

◆ fetab_context_run

void octave::file_editor::fetab_context_run ( const QWidget ID)
signal

◆ fetab_convert_eol

void octave::file_editor::fetab_convert_eol ( const QWidget ID,
QsciScintilla::EolMode  eol_mode 
)
signal

◆ fetab_delete_debugger_pointer

void octave::file_editor::fetab_delete_debugger_pointer ( const QWidget ID,
int  line = -1 
)
signal

◆ fetab_do_breakpoint_marker

void octave::file_editor::fetab_do_breakpoint_marker ( bool  insert,
const QWidget ID,
int  line = -1,
const QString &  = "" 
)
signal

◆ fetab_file_name_query

void octave::file_editor::fetab_file_name_query ( const QWidget ID)
signal

◆ fetab_find

void octave::file_editor::fetab_find ( const QWidget ID,
QList< QAction *>   
)
signal

◆ fetab_find_next

void octave::file_editor::fetab_find_next ( const QWidget ID)
signal

◆ fetab_find_previous

void octave::file_editor::fetab_find_previous ( const QWidget ID)
signal

◆ fetab_goto_line

void octave::file_editor::fetab_goto_line ( const QWidget ID,
int  line = -1 
)
signal

◆ fetab_indent_selected_text

void octave::file_editor::fetab_indent_selected_text ( const QWidget ID)
signal

◆ fetab_insert_debugger_pointer

void octave::file_editor::fetab_insert_debugger_pointer ( const QWidget ID,
int  line = -1 
)
signal

◆ fetab_move_match_brace

void octave::file_editor::fetab_move_match_brace ( const QWidget ID,
bool  select 
)
signal

◆ fetab_next_bookmark

void octave::file_editor::fetab_next_bookmark ( const QWidget ID)
signal

◆ fetab_next_breakpoint

void octave::file_editor::fetab_next_breakpoint ( const QWidget ID)
signal

◆ fetab_previous_bookmark

void octave::file_editor::fetab_previous_bookmark ( const QWidget ID)
signal

◆ fetab_previous_breakpoint

void octave::file_editor::fetab_previous_breakpoint ( const QWidget ID)
signal

◆ fetab_print_file

void octave::file_editor::fetab_print_file ( const QWidget ID)
signal

◆ fetab_recover_from_exit

void octave::file_editor::fetab_recover_from_exit ( void  )
signal

◆ fetab_remove_all_breakpoints

void octave::file_editor::fetab_remove_all_breakpoints ( const QWidget ID)
signal

◆ fetab_remove_bookmark

void octave::file_editor::fetab_remove_bookmark ( const QWidget ID)
signal

◆ fetab_run_file

void octave::file_editor::fetab_run_file ( const QWidget ID)
signal

◆ fetab_save_file [1/2]

void octave::file_editor::fetab_save_file ( const QWidget ID,
const QString &  fileName,
bool  remove_on_success 
)
signal

◆ fetab_save_file [2/2]

void octave::file_editor::fetab_save_file ( const QWidget ID)
signal

◆ fetab_save_file_as

void octave::file_editor::fetab_save_file_as ( const QWidget ID)
signal

◆ fetab_scintilla_command

◆ fetab_set_directory

void octave::file_editor::fetab_set_directory ( const QString &  dir)
signal

◆ fetab_set_focus

void octave::file_editor::fetab_set_focus ( const QWidget ID)
signal

◆ fetab_settings_changed

void octave::file_editor::fetab_settings_changed ( const QSettings *  settings)
signal

◆ fetab_smart_indent_line_or_selected_text

void octave::file_editor::fetab_smart_indent_line_or_selected_text ( const QWidget ID)
signal

◆ fetab_toggle_bookmark

void octave::file_editor::fetab_toggle_bookmark ( const QWidget ID)
signal

◆ fetab_toggle_breakpoint

void octave::file_editor::fetab_toggle_breakpoint ( const QWidget ID)
signal

◆ fetab_uncomment_selected_text

void octave::file_editor::fetab_uncomment_selected_text ( const QWidget ID)
signal

◆ fetab_unindent_selected_text

void octave::file_editor::fetab_unindent_selected_text ( const QWidget ID)
signal

◆ fetab_zoom_in

void octave::file_editor::fetab_zoom_in ( const QWidget ID)
signal

Referenced by add_file_editor_tab(), and zoom_in().

◆ fetab_zoom_normal

void octave::file_editor::fetab_zoom_normal ( const QWidget ID)
signal

Referenced by add_file_editor_tab(), and zoom_normal().

◆ fetab_zoom_out

void octave::file_editor::fetab_zoom_out ( const QWidget ID)
signal

Referenced by add_file_editor_tab(), and zoom_out().

◆ file_loaded_signal

void octave::file_editor::file_loaded_signal ( void  )
signal

Referenced by request_open_file().

◆ find_tab_widget()

QWidget * octave::file_editor::find_tab_widget ( const QString &  openFileName)
private

◆ focus

void octave::file_editor::focus ( void  )
slot

◆ focusWidget()

QWidget * octave::octave_dock_widget::focusWidget ( void  )
protectedinherited

Definition at line 246 of file octave-dock-widget.cc.

References Faddeeva::w().

Referenced by editor_tab_has_focus().

◆ get_mru_menu()

QMenu* octave::file_editor::get_mru_menu ( void  )
inlinevirtual

Implements octave::file_editor_interface.

Definition at line 94 of file file-editor.h.

References m_mru_file_menu.

◆ handle_active_dock_changed

void octave::octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slotinherited

◆ handle_add_filename_to_list

void octave::file_editor::handle_add_filename_to_list ( const QString &  fileName,
const QString &  encoding,
QWidget ID 
)
slot

Definition at line 769 of file file-editor.cc.

References m_editor_tab_map.

Referenced by add_file_editor_tab().

◆ handle_delete_debugger_pointer_request

void octave::file_editor::handle_delete_debugger_pointer_request ( const QString &  file,
int  line 
)
slot

◆ handle_dir_remove()

void octave::file_editor::handle_dir_remove ( const QString &  old_name,
const QString &  new_name 
)
private

◆ handle_edit_file_request

void octave::file_editor::handle_edit_file_request ( const QString &  file)
slot

Definition at line 911 of file file-editor.cc.

References file, and request_open_file().

◆ handle_editor_state_changed

void octave::file_editor::handle_editor_state_changed ( bool  enableCopy,
bool  is_octave_file 
)
slot

◆ handle_enter_debug_mode()

void octave::file_editor::handle_enter_debug_mode ( void  )
virtual

Implements octave::file_editor_interface.

Definition at line 148 of file file-editor.cc.

References m_run_action.

◆ handle_exit_debug_mode()

void octave::file_editor::handle_exit_debug_mode ( void  )
virtual

◆ handle_file_name_changed

void octave::file_editor::handle_file_name_changed ( const QString &  fileName,
const QString &  toolTip 
)
slot

Definition at line 721 of file file-editor.cc.

References fname, i, and m_tab_widget.

Referenced by add_file_editor_tab().

◆ handle_file_remove

void octave::file_editor::handle_file_remove ( const QString &  old_name,
const QString &  new_name 
)
slot

◆ handle_file_renamed

void octave::file_editor::handle_file_renamed ( bool  load_new = true)
slot

Definition at line 965 of file file-editor.cc.

References i, m_no_focus, m_tmp_closed_files, and request_open_file().

◆ handle_insert_debugger_pointer_request

void octave::file_editor::handle_insert_debugger_pointer_request ( const QString &  file,
int  line 
)
slot

Definition at line 877 of file file-editor.cc.

References file, and request_open_file().

◆ handle_mru_add_file

void octave::file_editor::handle_mru_add_file ( const QString &  file_name,
const QString &  encoding 
)
slot

◆ handle_settings

◆ handle_tab_close_request

void octave::file_editor::handle_tab_close_request ( int  index)
slot

Definition at line 738 of file file-editor.cc.

References octave::file_editor_tab::conditional_close(), and m_tab_widget.

Referenced by construct().

◆ handle_tab_remove_request

void octave::file_editor::handle_tab_remove_request ( void  )
slot

Definition at line 746 of file file-editor.cc.

References check_actions(), focus(), i, and m_tab_widget.

Referenced by add_file_editor_tab().

◆ handle_update_breakpoint_marker_request

void octave::file_editor::handle_update_breakpoint_marker_request ( bool  insert,
const QString &  file,
int  line,
const QString &  cond 
)
slot

Definition at line 903 of file file-editor.cc.

References file, and request_open_file().

◆ handle_visibility

void octave::file_editor::handle_visibility ( bool  visible)
slot

◆ handle_visibility_changed

virtual void octave::octave_dock_widget::handle_visibility_changed ( bool  visible)
inlineprotectedvirtualslotinherited

Slot to steer changing visibility from outside.

Definition at line 132 of file octave-dock-widget.h.

References octave::octave_dock_widget::active_changed().

Referenced by octave::octave_dock_widget::octave_dock_widget(), and octave::terminal_dock_widget::terminal_dock_widget().

◆ insert_global_actions()

◆ is_editor_console_tabbed()

bool octave::file_editor::is_editor_console_tabbed ( void  )
private

Definition at line 1491 of file file-editor.cc.

References i, octave::octave_dock_widget::main_win(), and Faddeeva::w().

Referenced by request_open_file().

◆ main_win

◆ make_widget()

◆ make_window()

◆ mru_menu_update()

void octave::file_editor::mru_menu_update ( void  )
private

◆ notice_settings

◆ pasteClipboard

void octave::file_editor::pasteClipboard ( void  )
protectedslot

Definition at line 1155 of file file-editor.cc.

References editor_tab_has_focus(), fetab_scintilla_command(), and m_tab_widget.

◆ request_close_all_files

void octave::file_editor::request_close_all_files ( bool  )
slot

Definition at line 438 of file file-editor.cc.

References octave::file_editor_tab::conditional_close(), and m_tab_widget.

Referenced by construct().

◆ request_close_file

void octave::file_editor::request_close_file ( bool  )
slot

Definition at line 431 of file file-editor.cc.

References octave::file_editor_tab::conditional_close(), and m_tab_widget.

Referenced by construct().

◆ request_close_other_files

void octave::file_editor::request_close_other_files ( bool  )
slot

Definition at line 450 of file file-editor.cc.

References octave::file_editor_tab::conditional_close(), and m_tab_widget.

Referenced by construct().

◆ request_comment_selected_text

void octave::file_editor::request_comment_selected_text ( bool  )
slot

Definition at line 635 of file file-editor.cc.

References fetab_comment_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_comment_var_selected_text

void octave::file_editor::request_comment_var_selected_text ( bool  )
slot

Definition at line 645 of file file-editor.cc.

References fetab_comment_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_completion

void octave::file_editor::request_completion ( bool  )
slot

Definition at line 716 of file file-editor.cc.

References fetab_completion(), and m_tab_widget.

Referenced by construct().

◆ request_context_doc

void octave::file_editor::request_context_doc ( bool  )
slot

Definition at line 499 of file file-editor.cc.

References fetab_context_help(), and m_tab_widget.

Referenced by construct().

◆ request_context_edit

void octave::file_editor::request_context_edit ( bool  )
slot

Definition at line 504 of file file-editor.cc.

References fetab_context_edit(), and m_tab_widget.

Referenced by construct().

◆ request_context_help

void octave::file_editor::request_context_help ( bool  )
slot

Definition at line 494 of file file-editor.cc.

References fetab_context_help(), and m_tab_widget.

Referenced by construct().

◆ request_context_run

void octave::file_editor::request_context_run ( bool  )
slot

Definition at line 524 of file file-editor.cc.

References fetab_context_run(), and m_tab_widget.

Referenced by construct().

◆ request_conv_eol_mac

void octave::file_editor::request_conv_eol_mac ( bool  )
slot

Definition at line 690 of file file-editor.cc.

References fetab_convert_eol(), and m_tab_widget.

Referenced by construct().

◆ request_conv_eol_unix

void octave::file_editor::request_conv_eol_unix ( bool  )
slot

Definition at line 684 of file file-editor.cc.

References fetab_convert_eol(), and m_tab_widget.

Referenced by construct().

◆ request_conv_eol_windows

void octave::file_editor::request_conv_eol_windows ( bool  )
slot

Definition at line 678 of file file-editor.cc.

References fetab_convert_eol(), and m_tab_widget.

Referenced by construct().

◆ request_copy_line

void octave::file_editor::request_copy_line ( bool  )
slot

Definition at line 611 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_cut

void octave::file_editor::request_cut ( bool  )
slot

Definition at line 488 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_cut_line

void octave::file_editor::request_cut_line ( bool  )
slot

Definition at line 617 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_delete_end_line

void octave::file_editor::request_delete_end_line ( bool  )
slot

Definition at line 599 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_delete_end_word

void octave::file_editor::request_delete_end_word ( bool  )
slot

Definition at line 587 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_delete_line

void octave::file_editor::request_delete_line ( bool  )
slot

Definition at line 605 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_delete_start_line

void octave::file_editor::request_delete_start_line ( bool  )
slot

Definition at line 593 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_delete_start_word

void octave::file_editor::request_delete_start_word ( bool  )
slot

Definition at line 581 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_duplicate_selection

void octave::file_editor::request_duplicate_selection ( bool  )
slot

Definition at line 623 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_find

void octave::file_editor::request_find ( bool  )
slot

Definition at line 696 of file file-editor.cc.

References fetab_find(), m_fetab_actions, and m_tab_widget.

Referenced by construct().

◆ request_find_next

void octave::file_editor::request_find_next ( bool  )
slot

Definition at line 701 of file file-editor.cc.

References fetab_find_next(), and m_tab_widget.

Referenced by construct().

◆ request_find_previous

void octave::file_editor::request_find_previous ( bool  )
slot

Definition at line 706 of file file-editor.cc.

References fetab_find_previous(), and m_tab_widget.

Referenced by construct().

◆ request_goto_line

void octave::file_editor::request_goto_line ( bool  )
slot

Definition at line 711 of file file-editor.cc.

References fetab_goto_line(), and m_tab_widget.

Referenced by construct().

◆ request_indent_selected_text

void octave::file_editor::request_indent_selected_text ( bool  )
slot

Definition at line 663 of file file-editor.cc.

References fetab_indent_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_lower_case

void octave::file_editor::request_lower_case ( bool  )
slot

Definition at line 657 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_move_match_brace

void octave::file_editor::request_move_match_brace ( bool  )
slot

Definition at line 549 of file file-editor.cc.

References fetab_move_match_brace(), and m_tab_widget.

Referenced by construct().

◆ request_mru_open_file

void octave::file_editor::request_mru_open_file ( QAction *  action)
slot

Definition at line 468 of file file-editor.cc.

References request_open_file().

Referenced by construct().

◆ request_new_file

void octave::file_editor::request_new_file ( const QString &  commands)
slot

◆ request_next_bookmark

void octave::file_editor::request_next_bookmark ( bool  )
slot

Definition at line 534 of file file-editor.cc.

References fetab_next_bookmark(), and m_tab_widget.

Referenced by construct().

◆ request_next_breakpoint

void octave::file_editor::request_next_breakpoint ( bool  )
slot

Definition at line 565 of file file-editor.cc.

References fetab_next_breakpoint(), and m_tab_widget.

Referenced by construct().

◆ request_open_file

◆ request_open_file_external

void octave::file_editor::request_open_file_external ( const QString &  file_name,
int  line 
)
signal

Referenced by call_custom_editor().

◆ request_preferences

void octave::file_editor::request_preferences ( bool  )
privateslot

Definition at line 1351 of file file-editor.cc.

References request_settings_dialog().

Referenced by construct().

◆ request_previous_bookmark

void octave::file_editor::request_previous_bookmark ( bool  )
slot

Definition at line 539 of file file-editor.cc.

References fetab_previous_bookmark(), and m_tab_widget.

Referenced by construct().

◆ request_previous_breakpoint

void octave::file_editor::request_previous_breakpoint ( bool  )
slot

Definition at line 570 of file file-editor.cc.

References fetab_previous_breakpoint(), and m_tab_widget.

Referenced by construct().

◆ request_print_file

void octave::file_editor::request_print_file ( bool  )
slot

Definition at line 477 of file file-editor.cc.

References fetab_print_file(), and m_tab_widget.

Referenced by construct().

◆ request_redo

void octave::file_editor::request_redo ( bool  )
slot

Definition at line 482 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_remove_bookmark

void octave::file_editor::request_remove_bookmark ( bool  )
slot

Definition at line 544 of file file-editor.cc.

References fetab_remove_bookmark(), and m_tab_widget.

Referenced by construct().

◆ request_remove_breakpoint

void octave::file_editor::request_remove_breakpoint ( bool  )
slot

Definition at line 575 of file file-editor.cc.

References fetab_remove_all_breakpoints(), and m_tab_widget.

Referenced by construct().

◆ request_run_file

void octave::file_editor::request_run_file ( bool  )
slot

Definition at line 519 of file file-editor.cc.

References fetab_run_file(), and m_tab_widget.

Referenced by construct().

◆ request_save_file

void octave::file_editor::request_save_file ( bool  )
slot

Definition at line 509 of file file-editor.cc.

References fetab_save_file(), and m_tab_widget.

Referenced by construct().

◆ request_save_file_as

void octave::file_editor::request_save_file_as ( bool  )
slot

Definition at line 514 of file file-editor.cc.

References fetab_save_file_as(), and m_tab_widget.

Referenced by construct().

◆ request_sel_match_brace

void octave::file_editor::request_sel_match_brace ( bool  )
slot

Definition at line 554 of file file-editor.cc.

References fetab_move_match_brace(), and m_tab_widget.

Referenced by construct().

◆ request_settings_dialog

void octave::file_editor::request_settings_dialog ( const QString &  )
signal

◆ request_smart_indent_line_or_selected_text

void octave::file_editor::request_smart_indent_line_or_selected_text ( void  )
slot

Definition at line 673 of file file-editor.cc.

References fetab_smart_indent_line_or_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_styles_preferences

void octave::file_editor::request_styles_preferences ( bool  )
privateslot

Definition at line 1356 of file file-editor.cc.

References request_settings_dialog().

Referenced by construct().

◆ request_toggle_bookmark

void octave::file_editor::request_toggle_bookmark ( bool  )
slot

Definition at line 529 of file file-editor.cc.

References fetab_toggle_bookmark(), and m_tab_widget.

Referenced by construct().

◆ request_toggle_breakpoint

void octave::file_editor::request_toggle_breakpoint ( bool  )
slot

Definition at line 560 of file file-editor.cc.

References fetab_toggle_breakpoint(), and m_tab_widget.

Referenced by construct().

◆ request_transpose_line

void octave::file_editor::request_transpose_line ( bool  )
slot

Definition at line 629 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ request_uncomment_selected_text

void octave::file_editor::request_uncomment_selected_text ( bool  )
slot

Definition at line 640 of file file-editor.cc.

References fetab_uncomment_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_unindent_selected_text

void octave::file_editor::request_unindent_selected_text ( bool  )
slot

Definition at line 668 of file file-editor.cc.

References fetab_unindent_selected_text(), and m_tab_widget.

Referenced by construct().

◆ request_upper_case

void octave::file_editor::request_upper_case ( bool  )
slot

Definition at line 651 of file file-editor.cc.

References fetab_scintilla_command(), and m_tab_widget.

Referenced by construct().

◆ restore_session()

void octave::file_editor::restore_session ( QSettings *  settings)
virtual

◆ save_settings

◆ selectAll

void octave::file_editor::selectAll ( void  )
protectedslot

Definition at line 1162 of file file-editor.cc.

References editor_tab_has_focus(), fetab_scintilla_command(), and m_tab_widget.

◆ set_focus

void octave::file_editor::set_focus ( QWidget fet)
slot

Definition at line 311 of file file-editor.cc.

References octave::octave_dock_widget::focus(), and m_tab_widget.

Referenced by add_file_editor_tab().

◆ set_predecessor_widget()

void octave::octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)
inherited

◆ set_shortcuts

void octave::file_editor::set_shortcuts ( void  )
slot

Definition at line 1034 of file file-editor.cc.

References m_close_action, m_close_all_action, m_close_others_action, m_comment_selection_action, m_comment_var_selection_action, m_completion_action, m_context_doc_action, m_context_help_action, m_conv_eol_mac_action, m_conv_eol_unix_action, m_conv_eol_windows_action, m_copy_line_action, m_cut_action, m_cut_line_action, m_delete_end_line_action, m_delete_end_word_action, m_delete_line_action, m_delete_start_line_action, m_delete_start_word_action, m_duplicate_selection_action, m_edit_function_action, m_find_action, m_find_next_action, m_find_previous_action, m_goto_line_action, m_indent_selection_action, m_lower_case_action, m_move_tab_left_action, m_move_tab_right_action, m_move_to_matching_brace, m_next_bookmark_action, m_next_breakpoint_action, m_preferences_action, m_previous_bookmark_action, m_previous_breakpoint_action, m_print_action, m_redo_action, m_remove_all_breakpoints_action, m_remove_bookmark_action, m_run_action, m_run_selection_action, m_save_action, m_save_as_action, m_sel_to_matching_brace, m_show_eol_action, m_show_hscrollbar_action, m_show_indguide_action, m_show_linenum_action, m_show_longline_action, m_show_statusbar_action, m_show_toolbar_action, m_show_whitespace_action, m_smart_indent_line_or_selection_action, m_styles_preferences_action, m_switch_left_tab_action, m_switch_right_tab_action, m_toggle_bookmark_action, m_toggle_breakpoint_action, m_transpose_line_action, m_uncomment_selection_action, m_unindent_selection_action, m_upper_case_action, m_zoom_in_action, m_zoom_normal_action, m_zoom_out_action, and octave::shortcut_manager::set_shortcut().

Referenced by notice_settings().

◆ set_title()

◆ show_eol_chars

void octave::file_editor::show_eol_chars ( bool  )
privateslot

Definition at line 1371 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_hscrollbar

void octave::file_editor::show_hscrollbar ( bool  )
privateslot

Definition at line 1396 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_indent_guides

void octave::file_editor::show_indent_guides ( bool  )
privateslot

Definition at line 1376 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_line_numbers

void octave::file_editor::show_line_numbers ( bool  )
privateslot

Definition at line 1361 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_long_line

void octave::file_editor::show_long_line ( bool  )
privateslot

Definition at line 1381 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_statusbar

void octave::file_editor::show_statusbar ( bool  )
privateslot

Definition at line 1391 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_toolbar

void octave::file_editor::show_toolbar ( bool  )
privateslot

Definition at line 1386 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ show_white_space

void octave::file_editor::show_white_space ( bool  )
privateslot

Definition at line 1366 of file file-editor.cc.

References toggle_preference().

Referenced by construct().

◆ toggle_preference()

void octave::file_editor::toggle_preference ( const QString &  preference,
bool  def 
)
private

◆ toolbar()

QToolBar* octave::file_editor::toolbar ( void  )
inlinevirtual

Implements octave::file_editor_interface.

Definition at line 98 of file file-editor.h.

References m_tool_bar.

◆ update_octave_directory

void octave::file_editor::update_octave_directory ( const QString &  dir)
slot

Definition at line 1142 of file file-editor.cc.

References fetab_set_directory(), and m_ced.

◆ zoom_in

void octave::file_editor::zoom_in ( bool  )
privateslot

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

References fetab_zoom_in(), and m_tab_widget.

Referenced by add_file_editor_tab(), and construct().

◆ zoom_normal

void octave::file_editor::zoom_normal ( bool  )
privateslot

Definition at line 1411 of file file-editor.cc.

References fetab_zoom_normal(), and m_tab_widget.

Referenced by add_file_editor_tab(), and construct().

◆ zoom_out

void octave::file_editor::zoom_out ( bool  )
privateslot

Definition at line 1406 of file file-editor.cc.

References fetab_zoom_out(), and m_tab_widget.

Referenced by add_file_editor_tab(), and construct().

Member Data Documentation

◆ m_ced

QString octave::file_editor::m_ced
private

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

Referenced by file_editor(), request_new_file(), and update_octave_directory().

◆ m_close_action

QAction* octave::file_editor::m_close_action
private

Definition at line 410 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_close_all_action

QAction* octave::file_editor::m_close_all_action
private

Definition at line 411 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_close_button

QToolButton* octave::label_dock_widget::m_close_button
protectedinherited

◆ m_close_others_action

QAction* octave::file_editor::m_close_others_action
private

Definition at line 412 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_closed

bool octave::file_editor::m_closed
private

Definition at line 443 of file file-editor.h.

Referenced by closeEvent(), file_editor(), and handle_visibility().

◆ m_comment_selection_action

QAction* octave::file_editor::m_comment_selection_action
private

Definition at line 349 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_comment_var_selection_action

QAction* octave::file_editor::m_comment_var_selection_action
private

Definition at line 350 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_completion_action

QAction* octave::file_editor::m_completion_action
private

Definition at line 393 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_context_doc_action

QAction* octave::file_editor::m_context_doc_action
private

Definition at line 364 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_context_help_action

QAction* octave::file_editor::m_context_help_action
private

Definition at line 363 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_conv_eol_mac_action

QAction* octave::file_editor::m_conv_eol_mac_action
private

Definition at line 357 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_conv_eol_unix_action

QAction* octave::file_editor::m_conv_eol_unix_action
private

Definition at line 356 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_conv_eol_windows_action

QAction* octave::file_editor::m_conv_eol_windows_action
private

Definition at line 355 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_copy_action

QAction* octave::file_editor::m_copy_action
private

◆ m_copy_line_action

QAction* octave::file_editor::m_copy_line_action
private

Definition at line 383 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_cut_action

QAction* octave::file_editor::m_cut_action
private

◆ m_cut_line_action

QAction* octave::file_editor::m_cut_line_action
private

Definition at line 384 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_debug_menu

QMenu* octave::file_editor::m_debug_menu
private

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

Referenced by construct(), and debug_menu().

◆ m_delete_end_line_action

QAction* octave::file_editor::m_delete_end_line_action
private

Definition at line 381 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_delete_end_word_action

QAction* octave::file_editor::m_delete_end_word_action
private

Definition at line 379 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_delete_line_action

QAction* octave::file_editor::m_delete_line_action
private

Definition at line 382 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_delete_start_line_action

QAction* octave::file_editor::m_delete_start_line_action
private

Definition at line 380 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_delete_start_word_action

QAction* octave::file_editor::m_delete_start_word_action
private

Definition at line 378 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_dock_action

◆ m_dock_button

QToolButton* octave::label_dock_widget::m_dock_button
protectedinherited

◆ m_duplicate_selection_action

QAction* octave::file_editor::m_duplicate_selection_action
private

Definition at line 385 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_edit_cmd_menu

QMenu* octave::file_editor::m_edit_cmd_menu
private

Definition at line 431 of file file-editor.h.

Referenced by check_actions(), construct(), and create_context_menu().

◆ m_edit_fmt_menu

QMenu* octave::file_editor::m_edit_fmt_menu
private

Definition at line 432 of file file-editor.h.

Referenced by check_actions(), construct(), and create_context_menu().

◆ m_edit_function_action

QAction* octave::file_editor::m_edit_function_action
private

Definition at line 406 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_edit_menu

QMenu* octave::file_editor::m_edit_menu
private

Definition at line 430 of file file-editor.h.

Referenced by construct(), and insert_global_actions().

◆ m_edit_nav_menu

QMenu* octave::file_editor::m_edit_nav_menu
private

Definition at line 433 of file file-editor.h.

Referenced by check_actions(), construct(), and create_context_menu().

◆ m_editor_tab_map

std::map<QString, tab_info> octave::file_editor::m_editor_tab_map
private

◆ m_fetab_actions

QList<QAction*> octave::file_editor::m_fetab_actions
private

Definition at line 437 of file file-editor.h.

Referenced by file_editor(), and request_find().

◆ m_fileMenu

QMenu* octave::file_editor::m_fileMenu
private

Definition at line 434 of file file-editor.h.

Referenced by construct(), and insert_global_actions().

◆ m_find_action

QAction* octave::file_editor::m_find_action
private

◆ m_find_files_action

QAction* octave::file_editor::m_find_files_action
private

Definition at line 391 of file file-editor.h.

Referenced by create_context_menu(), and insert_global_actions().

◆ m_find_next_action

QAction* octave::file_editor::m_find_next_action
private

◆ m_find_previous_action

QAction* octave::file_editor::m_find_previous_action
private

◆ m_goto_line_action

QAction* octave::file_editor::m_goto_line_action
private

Definition at line 392 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_hash_menu_text

QHash<QMenu*, QStringList> octave::file_editor::m_hash_menu_text
private

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

Referenced by add_menu(), and enable_menu_shortcuts().

◆ m_icon_size

int octave::label_dock_widget::m_icon_size
protectedinherited

◆ m_indent_selection_action

QAction* octave::file_editor::m_indent_selection_action
private

Definition at line 352 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_lower_case_action

QAction* octave::file_editor::m_lower_case_action
private

Definition at line 348 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_marker_breakpoint

int octave::file_editor::m_marker_breakpoint
private

Definition at line 441 of file file-editor.h.

◆ m_menu_bar

QMenuBar* octave::file_editor::m_menu_bar
private

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

Referenced by construct().

◆ m_move_tab_left_action

QAction* octave::file_editor::m_move_tab_left_action
private

Definition at line 422 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_move_tab_right_action

QAction* octave::file_editor::m_move_tab_right_action
private

Definition at line 423 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_move_to_matching_brace

QAction* octave::file_editor::m_move_to_matching_brace
private

Definition at line 395 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_mru_file_actions

QAction* octave::file_editor::m_mru_file_actions[MaxMRUFiles]
private

Definition at line 448 of file file-editor.h.

Referenced by construct(), and mru_menu_update().

◆ m_mru_file_menu

QMenu* octave::file_editor::m_mru_file_menu
private

Definition at line 447 of file file-editor.h.

Referenced by construct(), get_mru_menu(), insert_global_actions(), and ~file_editor().

◆ m_mru_files

QStringList octave::file_editor::m_mru_files
private

Definition at line 449 of file file-editor.h.

Referenced by construct(), handle_mru_add_file(), and mru_menu_update().

◆ m_mru_files_encodings

QStringList octave::file_editor::m_mru_files_encodings
private

Definition at line 450 of file file-editor.h.

Referenced by construct(), handle_mru_add_file(), and mru_menu_update().

◆ m_new_action

QAction* octave::file_editor::m_new_action
private

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

◆ m_new_function_action

QAction* octave::file_editor::m_new_function_action
private

Definition at line 344 of file file-editor.h.

◆ m_next_bookmark_action

QAction* octave::file_editor::m_next_bookmark_action
private

Definition at line 397 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_next_breakpoint_action

QAction* octave::file_editor::m_next_breakpoint_action
private

Definition at line 426 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_no_focus

bool octave::file_editor::m_no_focus
private

◆ m_open_action

QAction* octave::file_editor::m_open_action
private

Definition at line 345 of file file-editor.h.

◆ m_paste_action

QAction* octave::file_editor::m_paste_action
private

Definition at line 361 of file file-editor.h.

Referenced by create_context_menu(), file_editor(), and insert_global_actions().

◆ m_popdown_mru_action

QAction* octave::file_editor::m_popdown_mru_action
private

Definition at line 407 of file file-editor.h.

Referenced by construct(), and insert_global_actions().

◆ m_preferences_action

QAction* octave::file_editor::m_preferences_action
private

Definition at line 417 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_previous_bookmark_action

QAction* octave::file_editor::m_previous_bookmark_action
private

Definition at line 398 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_previous_breakpoint_action

QAction* octave::file_editor::m_previous_breakpoint_action
private

Definition at line 427 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_print_action

QAction* octave::file_editor::m_print_action
private

Definition at line 402 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_redo_action

QAction* octave::file_editor::m_redo_action
private

◆ m_remove_all_breakpoints_action

QAction* octave::file_editor::m_remove_all_breakpoints_action
private

Definition at line 428 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_remove_bookmark_action

QAction* octave::file_editor::m_remove_bookmark_action
private

Definition at line 400 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_run_action

QAction* octave::file_editor::m_run_action
private

◆ m_run_selection_action

QAction* octave::file_editor::m_run_selection_action
private

◆ m_save_action

QAction* octave::file_editor::m_save_action
private

Definition at line 408 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_save_as_action

QAction* octave::file_editor::m_save_as_action
private

Definition at line 409 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_sel_to_matching_brace

QAction* octave::file_editor::m_sel_to_matching_brace
private

Definition at line 396 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_selectall_action

QAction* octave::file_editor::m_selectall_action
private

Definition at line 362 of file file-editor.h.

Referenced by create_context_menu(), file_editor(), and insert_global_actions().

◆ m_show_eol_action

QAction* octave::file_editor::m_show_eol_action
private

Definition at line 368 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_hscrollbar_action

QAction* octave::file_editor::m_show_hscrollbar_action
private

Definition at line 373 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_indguide_action

QAction* octave::file_editor::m_show_indguide_action
private

Definition at line 369 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_linenum_action

QAction* octave::file_editor::m_show_linenum_action
private

Definition at line 366 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_longline_action

QAction* octave::file_editor::m_show_longline_action
private

Definition at line 370 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_statusbar_action

QAction* octave::file_editor::m_show_statusbar_action
private

Definition at line 372 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_toolbar_action

QAction* octave::file_editor::m_show_toolbar_action
private

Definition at line 371 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_show_whitespace_action

QAction* octave::file_editor::m_show_whitespace_action
private

Definition at line 367 of file file-editor.h.

Referenced by construct(), notice_settings(), and set_shortcuts().

◆ m_smart_indent_line_or_selection_action

QAction* octave::file_editor::m_smart_indent_line_or_selection_action
private

Definition at line 354 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_styles_preferences_action

QAction* octave::file_editor::m_styles_preferences_action
private

Definition at line 418 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_switch_left_tab_action

QAction* octave::file_editor::m_switch_left_tab_action
private

Definition at line 420 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_switch_right_tab_action

QAction* octave::file_editor::m_switch_right_tab_action
private

Definition at line 421 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_tab_widget

file_editor_tab_widget* octave::file_editor::m_tab_widget
private

Definition at line 439 of file file-editor.h.

Referenced by active_tab_changed(), add_file_editor_tab(), check_actions(), check_closing(), check_conflict_save(), construct(), copyClipboard(), do_undo(), empty_script(), focus(), handle_delete_debugger_pointer_request(), handle_editor_state_changed(), handle_file_name_changed(), handle_tab_close_request(), handle_tab_remove_request(), notice_settings(), pasteClipboard(), request_close_all_files(), request_close_file(), request_close_other_files(), request_comment_selected_text(), request_comment_var_selected_text(), request_completion(), request_context_doc(), request_context_edit(), request_context_help(), request_context_run(), request_conv_eol_mac(), request_conv_eol_unix(), request_conv_eol_windows(), request_copy_line(), request_cut(), request_cut_line(), request_delete_end_line(), request_delete_end_word(), request_delete_line(), request_delete_start_line(), request_delete_start_word(), request_duplicate_selection(), request_find(), request_find_next(), request_find_previous(), request_goto_line(), request_indent_selected_text(), request_lower_case(), request_move_match_brace(), request_next_bookmark(), request_next_breakpoint(), request_open_file(), request_previous_bookmark(), request_previous_breakpoint(), request_print_file(), request_redo(), request_remove_bookmark(), request_remove_breakpoint(), request_run_file(), request_save_file(), request_save_file_as(), request_sel_match_brace(), request_smart_indent_line_or_selected_text(), request_toggle_bookmark(), request_toggle_breakpoint(), request_transpose_line(), request_uncomment_selected_text(), request_unindent_selected_text(), request_upper_case(), selectAll(), set_focus(), zoom_in(), zoom_normal(), and zoom_out().

◆ m_title_widget

◆ m_tmp_closed_files

QStringList octave::file_editor::m_tmp_closed_files
private

Definition at line 456 of file file-editor.h.

Referenced by handle_dir_remove(), handle_file_remove(), and handle_file_renamed().

◆ m_toggle_bookmark_action

QAction* octave::file_editor::m_toggle_bookmark_action
private

Definition at line 399 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_toggle_breakpoint_action

QAction* octave::file_editor::m_toggle_breakpoint_action
private

Definition at line 425 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_tool_bar

QToolBar* octave::file_editor::m_tool_bar
private

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

Referenced by construct(), insert_global_actions(), notice_settings(), and toolbar().

◆ m_transpose_line_action

QAction* octave::file_editor::m_transpose_line_action
private

Definition at line 386 of file file-editor.h.

Referenced by construct(), and set_shortcuts().

◆ m_uncomment_selection_action

QAction* octave::file_editor::m_uncomment_selection_action
private

Definition at line 351 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_undo_action

QAction* octave::file_editor::m_undo_action
private

◆ m_unindent_selection_action

QAction* octave::file_editor::m_unindent_selection_action
private

Definition at line 353 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_upper_case_action

QAction* octave::file_editor::m_upper_case_action
private

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

Referenced by construct(), and set_shortcuts().

◆ m_view_editor_menu

QMenu* octave::file_editor::m_view_editor_menu
private

Definition at line 435 of file file-editor.h.

Referenced by check_actions(), and construct().

◆ m_zoom_in_action

QAction* octave::file_editor::m_zoom_in_action
private

Definition at line 374 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_zoom_normal_action

QAction* octave::file_editor::m_zoom_normal_action
private

Definition at line 376 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().

◆ m_zoom_out_action

QAction* octave::file_editor::m_zoom_out_action
private

Definition at line 375 of file file-editor.h.

Referenced by check_actions(), construct(), and set_shortcuts().


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