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

Represents the main window. More...

#include "main-window.h"

Inheritance diagram for main_window:
Collaboration diagram for main_window:

Public Types

typedef std::pair< int, int > int_pair
 
typedef std::pair< std::string, std::string > name_pair
 

Public Slots

void accept_directory_line_edit (void)
 
void browse_for_directory (void)
 
void change_directory_up (void)
 
void copyClipboard (void)
 
void debug_continue (void)
 
void debug_quit (void)
 
void debug_step_into (void)
 
void debug_step_out (void)
 
void debug_step_over (void)
 
void do_reset_windows (bool show=true, bool save=true, bool force_all=false)
 
void edit_mfile (const QString &, int)
 
void editor_tabs_changed (bool, bool)
 
void execute_command_in_terminal (const QString &dir)
 
void file_remove_proxy (const QString &o, const QString &n)
 
void focus_changed (QWidget *w_old, QWidget *w_new)
 
void focus_console_after_command (void)
 
void focus_window (const QString &win_name)
 
QList< octave_dock_widget * > get_dock_widget_list (void)
 Returns a list of dock widgets. More...
 
QPalette getFusionDarkPalette ()
 
void go_to_previous_widget (void)
 
void handle_clear_command_window_request (void)
 
void handle_clear_history_request (void)
 
void handle_clear_workspace_request (void)
 
void handle_delete_debugger_pointer_request (const QString &file, int line)
 
void handle_edit_mfile_request (const QString &name, const QString &file, const QString &curr_dir, int line)
 
void handle_enter_debugger (void)
 
void handle_exit_debugger (void)
 
void handle_gui_status_update (const QString &feature, const QString &status)
 
void handle_insert_debugger_pointer_request (const QString &file, int line)
 
void handle_load_workspace_request (const QString &file=QString())
 
void handle_new_figure_request (void)
 
void handle_octave_ready ()
 
void handle_open_any_request (const QString &file=QString())
 
void handle_profiler_status_update (bool)
 
void handle_save_workspace_request (void)
 
void handle_set_path_dialog_request (void)
 
void handle_undo_request (void)
 
void handle_update_breakpoint_marker_request (bool insert, const QString &file, int line, const QString &cond)
 
void init_terminal_size (void)
 
void modify_path (const QStringList &dir_list, bool rm, bool subdirs)
 
void notice_settings (const gui_settings *settings, bool update_by_worker=false)
 
void open_bug_tracker_page (void)
 
void open_contribute_page (void)
 
void open_donate_page (void)
 
void open_octave_packages_page (void)
 
void open_online_documentation_page (void)
 
void pasteClipboard (void)
 
void prepare_to_exit (void)
 
void process_settings_dialog_request (const QString &desired_tab=QString())
 
void profiler_session (void)
 
void profiler_session_resume (void)
 
void profiler_show (void)
 
void profiler_stop (void)
 
void read_settings (void)
 
void report_status_message (const QString &statusMessage)
 
void request_new_function (bool triggered=true)
 
void request_new_script (const QString &commands=QString())
 
void request_open_file (void)
 
void request_reload_settings (void)
 
void reset_windows (void)
 
void run_file_in_terminal (const QFileInfo &info)
 
void selectAll (void)
 
void set_current_working_directory (const QString &dir)
 
void set_screen_size (int ht, int wd)
 
void set_window_layout (gui_settings *settings)
 
void show_about_octave (void)
 
void update_octave_directory (const QString &dir)
 
void write_settings (void)
 
void find_files (const QString &startdir=QDir::currentPath())
 Find files dialog. More...
 
void find_files_finished (int)
 Find files dialog. More...
 
void clipboard_has_changed (void)
 Handling the clipboard. More...
 
void clear_clipboard ()
 Handling the clipboard. More...
 

Signals

void active_dock_changed (octave_dock_widget *, octave_dock_widget *)
 
void add_actions_signal (QList< QAction * > action_list)
 
void close_gui_signal (void)
 
void copyClipboard_signal (void)
 
void delete_debugger_pointer_signal (const QString &file, int line)
 
void editor_focus_changed (bool)
 
void execute_command_signal (const QString &command)
 
void init_terminal_size_signal (void)
 
void init_window_menu (void)
 
void insert_debugger_pointer_signal (const QString &file, int line)
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void new_file_signal (const QString &)
 
void open_file_signal (const QString &)
 
void open_file_signal (const QString &file, const QString &enc, int line)
 
void pasteClipboard_signal (void)
 
void selectAll_signal (void)
 
void settings_changed (const gui_settings *)
 
void show_community_news_signal (int serial)
 
void show_release_notes_signal (void)
 
void step_into_file_signal (void)
 
void undo_signal (void)
 
void update_breakpoint_marker_signal (bool insert, const QString &file, int line, const QString &cond)
 
void update_gui_lexer_signal (bool)
 
void warning_function_not_found_signal (const QString &message)
 

Public Member Functions

 main_window (base_qobject &oct_qobj)
 
 ~main_window (void)
 
bool command_window_has_focus (void) const
 
bool confirm_shutdown (void)
 
void focus_command_window (void)
 
void make_dock_widget_connections (octave_dock_widget *dw)
 

Protected Member Functions

void closeEvent (QCloseEvent *closeEvent)
 

Private Slots

void disable_menu_shortcuts (bool disable)
 
void request_open_files (const QStringList &open_file_names)
 
void restore_create_file_setting (void)
 
void set_file_encoding (const QString &new_encoding)
 
void warning_function_not_found (const QString &message)
 

Private Member Functions

QAction * add_action (QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=nullptr)
 
void adopt_dock_widgets (void)
 
void adopt_documentation_widget (void)
 
void adopt_editor_widget (void)
 
void adopt_file_browser_widget (void)
 
void adopt_history_widget (void)
 
void adopt_terminal_widget (void)
 
void adopt_variable_editor_widget (void)
 
void adopt_workspace_widget (void)
 
void configure_shortcuts (void)
 
void construct (void)
 
void construct_central_widget (void)
 
void construct_debug_menu (QMenuBar *p)
 
QAction * construct_debug_menu_item (const char *icon, const QString &item, const char *member)
 
void construct_documentation_menu (QMenu *p)
 
void construct_edit_menu (QMenuBar *p)
 
void construct_file_menu (QMenuBar *p)
 
void construct_help_menu (QMenuBar *p)
 
void construct_menu_bar (void)
 
void construct_new_menu (QMenu *p)
 
void construct_news_menu (QMenuBar *p)
 
void construct_octave_qt_link (void)
 
void construct_tool_bar (void)
 
void construct_tools_menu (QMenuBar *p)
 
void construct_window_menu (QMenuBar *p)
 
QAction * construct_window_menu_item (QMenu *p, const QString &item, bool checkable, QWidget *)
 
QList< octave_dock_widget * > dock_widget_list (void)
 
QMenum_add_menu (QMenuBar *p, QString text)
 
void resize_dock (QDockWidget *dw, int width, int height)
 
void set_default_geometry (void)
 
void update_default_encoding (const QString &default_encoding)
 

Private Attributes

QAction * m_about_octave_action
 
octave_dock_widgetm_active_dock
 
QWidgetm_active_editor
 
QAction * m_clear_clipboard_action
 
QAction * m_clear_command_history_action
 
QAction * m_clear_command_window_action
 
QAction * m_clear_workspace_action
 
QClipboard * m_clipboard
 
QAction * m_command_window_action
 
QAction * m_contribute_action
 
QAction * m_copy_action
 
QAction * m_current_news_action
 
QAction * m_debug_continue
 
QMenum_debug_menu
 
QAction * m_debug_quit
 
QAction * m_debug_step_into
 
QAction * m_debug_step_out
 
QAction * m_debug_step_over
 
QString m_default_encoding
 
QPalette m_default_palette
 
QString m_default_style
 
QAction * m_developer_action
 
QAction * m_documentation_action
 
QAction * m_editor_action
 
QMenuBarm_editor_menubar
 
QAction * m_exit_action
 
external_editor_interfacem_external_editor
 
QAction * m_file_browser_action
 
QString m_file_encoding
 
QAction * m_find_files_action
 
find_files_dialogm_find_files_dlg
 Find files dialog. More...
 
QHash< QMenu *, QStringList > m_hash_menu_text
 
QAction * m_history_action
 
QAction * m_load_workspace_action
 
QToolBar * m_main_tool_bar
 
QAction * m_new_figure_action
 
QAction * m_new_function_action
 
QAction * m_new_script_action
 
QAction * m_octave_packages_action
 
base_qobjectm_octave_qobj
 
QAction * m_ondisk_doc_action
 
QAction * m_online_doc_action
 
QAction * m_open_action
 
QAction * m_paste_action
 
QAction * m_preferences_action
 
octave_dock_widgetm_previous_dock
 
QAction * m_previous_dock_action
 
QAction * m_profiler_resume
 
QAction * m_profiler_show
 
QAction * m_profiler_start
 
led_indicatorm_profiler_status_indicator
 
QAction * m_profiler_stop
 
QAction * m_release_notes_action
 
QWidgetm_release_notes_window
 Release notes window. More...
 
QAction * m_report_bug_action
 
QAction * m_reset_windows_action
 
QAction * m_save_workspace_action
 
QAction * m_select_all_action
 
QAction * m_set_path_action
 
QPointer< set_path_dialogm_set_path_dlg
 Set path dialog. More...
 
QPointer< settings_dialogm_settings_dlg
 Settings dialog as guarded pointer (set to 0 when deleted). More...
 
QAction * m_show_command_window_action
 
QAction * m_show_documentation_action
 
QAction * m_show_editor_action
 
QAction * m_show_file_browser_action
 
QAction * m_show_history_action
 
QAction * m_show_variable_editor_action
 
QAction * m_show_workspace_action
 
QStatusBar * m_status_bar
 Toolbar. More...
 
QAction * m_undo_action
 
QAction * m_variable_editor_action
 
QAction * m_workspace_action
 
QPointer< terminal_dock_widgetm_command_window
 Dock widgets. More...
 
QPointer< history_dock_widgetm_history_window
 Dock widgets. More...
 
QPointer< files_dock_widgetm_file_browser_window
 Dock widgets. More...
 
QPointer< documentation_dock_widgetm_doc_browser_window
 Dock widgets. More...
 
QPointer< file_editor_interfacem_editor_window
 Dock widgets. More...
 
QPointer< workspace_viewm_workspace_window
 Dock widgets. More...
 
QPointer< variable_editorm_variable_editor_window
 Dock widgets. More...
 
bool m_prevent_readline_conflicts
 Some class global flags. More...
 
bool m_prevent_readline_conflicts_menu
 Some class global flags. More...
 
bool m_suppress_dbg_location
 Some class global flags. More...
 
bool m_editor_has_tabs
 Some class global flags. More...
 
bool m_editor_is_octave_file
 Some class global flags. More...
 
bool m_closing
 Flag for closing the whole application. More...
 
QComboBox * m_current_directory_combo_box
 For Toolbars. More...
 
QLineEditm_current_directory_line_edit
 For Toolbars. More...
 
static const int current_directory_max_visible = 16
 For Toolbars. More...
 
static const int current_directory_max_count = 16
 For Toolbars. More...
 

Detailed Description

Represents the main window.

Definition at line 72 of file main-window.h.

Member Typedef Documentation

◆ int_pair

typedef std::pair<int, int> main_window::int_pair

Definition at line 79 of file main-window.h.

◆ name_pair

typedef std::pair<std::string, std::string> main_window::name_pair

Definition at line 78 of file main-window.h.

Constructor & Destructor Documentation

◆ main_window()

◆ ~main_window()

main_window::~main_window ( void  )

Definition at line 219 of file main-window.cc.

Member Function Documentation

◆ accept_directory_line_edit

void main_window::accept_directory_line_edit ( void  )
slot

Definition at line 1133 of file main-window.cc.

References m_current_directory_combo_box, and set_current_working_directory().

Referenced by construct_tool_bar().

◆ active_dock_changed

void main_window::active_dock_changed ( octave_dock_widget ,
octave_dock_widget  
)
signal

◆ add_action()

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

◆ add_actions_signal

void main_window::add_actions_signal ( QList< QAction * >  action_list)
signal

◆ adopt_dock_widgets()

◆ adopt_documentation_widget()

void main_window::adopt_documentation_widget ( void  )
private

◆ adopt_editor_widget()

void main_window::adopt_editor_widget ( void  )
private

Definition at line 350 of file main-window.cc.

References external_editor_interface::call_custom_editor(), base_qobject::connect_interpreter_events(), debug_continue(), debug_quit(), file_editor::debug_quit_signal(), delete_debugger_pointer_signal(), qt_interpreter_events::directory_changed_signal(), file_editor::edit_mfile_request(), editor_focus_changed(), editor_tabs_changed(), file_editor::editor_tabs_changed_signal(), file_editor::enable_menu_shortcuts(), qt_interpreter_events::enter_debugger_signal(), execute_command_in_terminal(), file_editor::execute_command_in_terminal_signal(), qt_interpreter_events::exit_debugger_signal(), files_dock_widget::file_remove_signal(), qt_interpreter_events::file_renamed_signal(), files_dock_widget::file_renamed_signal(), focus_console_after_command(), file_editor::focus_console_after_command_signal(), file_editor::handle_delete_debugger_pointer_request(), handle_edit_mfile_request(), file_editor::handle_enter_debug_mode(), file_editor::handle_exit_debug_mode(), file_editor::handle_file_remove(), file_editor::handle_file_renamed(), file_editor::handle_insert_debugger_pointer_request(), file_editor::handle_update_breakpoint_marker_request(), insert_debugger_pointer_signal(), base_qobject::interpreter_qobj(), m_active_editor, m_editor_menubar, m_editor_window, m_external_editor, m_file_browser_window, m_octave_qobj, make_dock_widget_connections(), process_settings_dialog_request(), interpreter_qobject::qt_link(), file_editor::request_dbcont_signal(), file_editor::request_open_file_external(), external_editor_interface::request_settings_dialog(), file_editor::request_settings_dialog(), file_editor::request_step_into_file(), run_file_in_terminal(), file_editor::run_file_signal(), step_into_file_signal(), update_breakpoint_marker_signal(), file_editor::update_gui_lexer_signal(), update_gui_lexer_signal(), and file_editor::update_octave_directory().

Referenced by adopt_dock_widgets().

◆ adopt_file_browser_widget()

◆ adopt_history_widget()

◆ adopt_terminal_widget()

◆ adopt_variable_editor_widget()

void main_window::adopt_variable_editor_widget ( void  )
private

◆ adopt_workspace_widget()

void main_window::adopt_workspace_widget ( void  )
private

◆ browse_for_directory

◆ change_directory_up

void main_window::change_directory_up ( void  )
slot

Definition at line 1124 of file main-window.cc.

References set_current_working_directory().

Referenced by construct_tool_bar().

◆ clear_clipboard

void main_window::clear_clipboard ( void  )
slot

Handling the clipboard.

Definition at line 1923 of file main-window.cc.

References m_clipboard.

Referenced by construct_edit_menu().

◆ clipboard_has_changed

void main_window::clipboard_has_changed ( void  )
slot

Handling the clipboard.

Definition at line 1909 of file main-window.cc.

References m_clear_clipboard_action, m_clipboard, and m_paste_action.

Referenced by construct_edit_menu().

◆ close_gui_signal

void main_window::close_gui_signal ( void  )
signal

◆ closeEvent()

void main_window::closeEvent ( QCloseEvent *  closeEvent)
protected

◆ command_window_has_focus()

bool main_window::command_window_has_focus ( void  ) const

◆ configure_shortcuts()

void main_window::configure_shortcuts ( void  )
private

Definition at line 2672 of file main-window.cc.

References base_qobject::get_shortcut_manager(), m_about_octave_action, m_active_dock, m_clear_clipboard_action, m_clear_command_history_action, m_clear_command_window_action, m_clear_workspace_action, m_command_window, m_command_window_action, m_contribute_action, m_copy_action, m_current_news_action, m_debug_continue, m_debug_quit, m_debug_step_into, m_debug_step_out, m_debug_step_over, m_developer_action, m_documentation_action, m_editor_action, m_exit_action, m_file_browser_action, m_find_files_action, m_history_action, m_load_workspace_action, m_new_figure_action, m_new_function_action, m_new_script_action, m_octave_packages_action, m_octave_qobj, m_ondisk_doc_action, m_online_doc_action, m_open_action, m_paste_action, m_preferences_action, m_prevent_readline_conflicts, m_previous_dock_action, m_profiler_resume, m_profiler_show, m_profiler_start, m_profiler_stop, m_release_notes_action, m_report_bug_action, m_reset_windows_action, m_save_workspace_action, m_select_all_action, m_set_path_action, m_show_command_window_action, m_show_documentation_action, m_show_editor_action, m_show_file_browser_action, m_show_history_action, m_show_variable_editor_action, m_show_workspace_action, m_undo_action, m_variable_editor_action, m_workspace_action, sc_main_debug_continue(), sc_main_debug_quit(), sc_main_debug_step_into(), sc_main_debug_step_out(), sc_main_debug_step_over(), sc_main_edit_clear_clipboard(), sc_main_edit_clear_command_window(), sc_main_edit_clear_history(), sc_main_edit_clear_workspace(), sc_main_edit_copy(), sc_main_edit_find_in_files(), sc_main_edit_paste(), sc_main_edit_preferences(), sc_main_edit_select_all(), sc_main_edit_set_path(), sc_main_edit_undo(), sc_main_file_exit(), sc_main_file_load_workspace(), sc_main_file_new_figure(), sc_main_file_new_file(), sc_main_file_new_function(), sc_main_file_open_file(), sc_main_file_save_workspace(), sc_main_help_about(), sc_main_help_contribute(), sc_main_help_developer(), sc_main_help_ondisk_doc(), sc_main_help_online_doc(), sc_main_help_packages(), sc_main_help_report_bug(), sc_main_news_community_news(), sc_main_news_release_notes(), sc_main_tools_resume_profiler(), sc_main_tools_show_profiler(), sc_main_tools_start_profiler(), sc_main_window_command(), sc_main_window_doc(), sc_main_window_editor(), sc_main_window_file_browser(), sc_main_window_history(), sc_main_window_previous_dock(), sc_main_window_reset(), sc_main_window_show_command(), sc_main_window_show_doc(), sc_main_window_show_editor(), sc_main_window_show_file_browser(), sc_main_window_show_history(), sc_main_window_show_variable_editor(), sc_main_window_show_workspace(), sc_main_window_variable_editor(), sc_main_window_workspace(), and shortcut_manager::set_shortcut().

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

◆ confirm_shutdown()

◆ construct()

◆ construct_central_widget()

void main_window::construct_central_widget ( void  )
private

Definition at line 2050 of file main-window.cc.

◆ construct_debug_menu()

◆ construct_debug_menu_item()

QAction * main_window::construct_debug_menu_item ( const char *  icon,
const QString &  item,
const char *  member 
)
private

◆ construct_documentation_menu()

void main_window::construct_documentation_menu ( QMenu p)
private

◆ construct_edit_menu()

◆ construct_file_menu()

◆ construct_help_menu()

◆ construct_menu_bar()

◆ construct_new_menu()

◆ construct_news_menu()

void main_window::construct_news_menu ( QMenuBar p)
private

◆ construct_octave_qt_link()

◆ construct_tool_bar()

◆ construct_tools_menu()

void main_window::construct_tools_menu ( QMenuBar p)
private

◆ construct_window_menu()

◆ construct_window_menu_item()

QAction * main_window::construct_window_menu_item ( QMenu p,
const QString &  item,
bool  checkable,
QWidget widget 
)
private

Definition at line 2452 of file main-window.cc.

Referenced by construct_window_menu().

◆ copyClipboard

void main_window::copyClipboard ( void  )
slot

Definition at line 1702 of file main-window.cc.

References copyClipboard_signal(), and m_current_directory_combo_box.

Referenced by construct_edit_menu().

◆ copyClipboard_signal

void main_window::copyClipboard_signal ( void  )
signal

◆ debug_continue

void main_window::debug_continue ( void  )
slot

◆ debug_quit

void main_window::debug_quit ( void  )
slot

◆ debug_step_into

void main_window::debug_step_into ( void  )
slot

◆ debug_step_out

void main_window::debug_step_out ( void  )
slot

◆ debug_step_over

void main_window::debug_step_over ( void  )
slot

◆ delete_debugger_pointer_signal

void main_window::delete_debugger_pointer_signal ( const QString &  file,
int  line 
)
signal

◆ disable_menu_shortcuts

void main_window::disable_menu_shortcuts ( bool  disable)
privateslot

Definition at line 1928 of file main-window.cc.

References m_hash_menu_text.

Referenced by focus_changed(), and notice_settings().

◆ do_reset_windows

◆ dock_widget_list()

◆ edit_mfile

void main_window::edit_mfile ( const QString &  name,
int  line 
)
slot

Definition at line 826 of file main-window.cc.

References handle_edit_mfile_request().

Referenced by adopt_terminal_widget().

◆ editor_focus_changed

void main_window::editor_focus_changed ( bool  )
signal

◆ editor_tabs_changed

void main_window::editor_tabs_changed ( bool  have_tabs,
bool  is_octave 
)
slot

Definition at line 2444 of file main-window.cc.

References m_debug_step_over, m_editor_has_tabs, and m_editor_is_octave_file.

Referenced by adopt_editor_widget().

◆ execute_command_in_terminal

◆ execute_command_signal

void main_window::execute_command_signal ( const QString &  command)
signal

◆ file_remove_proxy

void main_window::file_remove_proxy ( const QString &  o,
const QString &  n 
)
slot

◆ find_files

◆ find_files_finished

void main_window::find_files_finished ( int  )
inlineslot

Find files dialog.

Definition at line 226 of file main-window.h.

Referenced by find_files().

◆ focus_changed

◆ focus_command_window()

◆ focus_console_after_command

void main_window::focus_console_after_command ( void  )
slot

◆ focus_window

void main_window::focus_window ( const QString &  win_name)
slot

◆ get_dock_widget_list

QList<octave_dock_widget *> main_window::get_dock_widget_list ( void  )
inlineslot

Returns a list of dock widgets.

Definition at line 239 of file main-window.h.

References dock_widget_list().

◆ getFusionDarkPalette

QPalette main_window::getFusionDarkPalette ( )
slot

Definition at line 1018 of file main-window.cc.

Referenced by notice_settings().

◆ go_to_previous_widget

void main_window::go_to_previous_widget ( void  )
slot

Definition at line 1063 of file main-window.cc.

References octave_dock_widget::activate(), and m_previous_dock.

Referenced by construct_window_menu().

◆ handle_clear_command_window_request

void main_window::handle_clear_command_window_request ( void  )
slot

◆ handle_clear_history_request

void main_window::handle_clear_history_request ( void  )
slot

◆ handle_clear_workspace_request

void main_window::handle_clear_workspace_request ( void  )
slot

Definition at line 745 of file main-window.cc.

References Fclear(), and interpreter_event().

Referenced by construct_edit_menu().

◆ handle_delete_debugger_pointer_request

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

◆ handle_edit_mfile_request

void main_window::handle_edit_mfile_request ( const QString &  name,
const QString &  file,
const QString &  curr_dir,
int  line 
)
slot

◆ handle_enter_debugger

void main_window::handle_enter_debugger ( void  )
slot

◆ handle_exit_debugger

void main_window::handle_exit_debugger ( void  )
slot

◆ handle_gui_status_update

void main_window::handle_gui_status_update ( const QString &  feature,
const QString &  status 
)
slot

Definition at line 1747 of file main-window.cc.

References handle_profiler_status_update().

Referenced by construct_octave_qt_link().

◆ handle_insert_debugger_pointer_request

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

◆ handle_load_workspace_request

◆ handle_new_figure_request

void main_window::handle_new_figure_request ( void  )
slot

Definition at line 1217 of file main-window.cc.

References Fbuiltin(), Fdrawnow(), interpreter_event(), and ovl().

Referenced by construct_new_menu().

◆ handle_octave_ready

◆ handle_open_any_request

void main_window::handle_open_any_request ( const QString &  file = QString ())
slot

◆ handle_profiler_status_update

void main_window::handle_profiler_status_update ( bool  active)
slot

◆ handle_save_workspace_request

void main_window::handle_save_workspace_request ( void  )
slot

◆ handle_set_path_dialog_request

◆ handle_undo_request

void main_window::handle_undo_request ( void  )
slot

◆ handle_update_breakpoint_marker_request

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

◆ init_terminal_size

void main_window::init_terminal_size ( void  )
slot

Definition at line 1580 of file main-window.cc.

References init_terminal_size_signal().

◆ init_terminal_size_signal

void main_window::init_terminal_size_signal ( void  )
signal

◆ init_window_menu

void main_window::init_window_menu ( void  )
signal

◆ insert_debugger_pointer_signal

void main_window::insert_debugger_pointer_signal ( const QString &  file,
int  line 
)
signal

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

void main_window::interpreter_event ( const meth_callback meth)
signal

◆ m_add_menu()

QMenu * main_window::m_add_menu ( QMenuBar p,
QString  text 
)
private

◆ make_dock_widget_connections()

◆ modify_path

void main_window::modify_path ( const QStringList &  dir_list,
bool  rm,
bool  subdirs 
)
slot

◆ new_file_signal

void main_window::new_file_signal ( const QString &  )
signal

◆ notice_settings

◆ open_bug_tracker_page

void main_window::open_bug_tracker_page ( void  )
slot

Definition at line 858 of file main-window.cc.

Referenced by construct_help_menu().

◆ open_contribute_page

void main_window::open_contribute_page ( void  )
slot

Definition at line 868 of file main-window.cc.

Referenced by construct_help_menu().

◆ open_donate_page

void main_window::open_donate_page ( void  )
slot

Definition at line 873 of file main-window.cc.

Referenced by construct_help_menu().

◆ open_file_signal [1/2]

void main_window::open_file_signal ( const QString &  )
signal

◆ open_file_signal [2/2]

void main_window::open_file_signal ( const QString &  file,
const QString &  enc,
int  line 
)
signal

◆ open_octave_packages_page

void main_window::open_octave_packages_page ( void  )
slot

Definition at line 863 of file main-window.cc.

Referenced by construct_help_menu().

◆ open_online_documentation_page

void main_window::open_online_documentation_page ( void  )
slot

Definition at line 852 of file main-window.cc.

Referenced by construct_documentation_menu().

◆ pasteClipboard

void main_window::pasteClipboard ( void  )
slot

Definition at line 1717 of file main-window.cc.

References m_current_directory_combo_box, and pasteClipboard_signal().

Referenced by construct_edit_menu().

◆ pasteClipboard_signal

void main_window::pasteClipboard_signal ( void  )
signal

◆ prepare_to_exit

void main_window::prepare_to_exit ( void  )
slot

◆ process_settings_dialog_request

void main_window::process_settings_dialog_request ( const QString &  desired_tab = QString ())
slot

◆ profiler_session

void main_window::profiler_session ( void  )
slot

Definition at line 1963 of file main-window.cc.

References Ffeval(), interpreter_event(), and ovl().

Referenced by construct_tools_menu().

◆ profiler_session_resume

void main_window::profiler_session_resume ( void  )
slot

Definition at line 1974 of file main-window.cc.

References Ffeval(), interpreter_event(), and ovl().

Referenced by construct_tools_menu().

◆ profiler_show

void main_window::profiler_show ( void  )
slot

Definition at line 2008 of file main-window.cc.

References execute_command_in_terminal().

Referenced by construct_tools_menu().

◆ profiler_stop

void main_window::profiler_stop ( void  )
slot

Definition at line 1985 of file main-window.cc.

References Ffeval(), interpreter_event(), and ovl().

Referenced by construct_tools_menu().

◆ read_settings

◆ report_status_message

void main_window::report_status_message ( const QString &  statusMessage)
slot

Definition at line 658 of file main-window.cc.

References m_status_bar.

Referenced by adopt_terminal_widget().

◆ request_new_function

◆ request_new_script

void main_window::request_new_script ( const QString &  commands = QString ())
slot

Definition at line 1373 of file main-window.cc.

References new_file_signal().

Referenced by construct_new_menu().

◆ request_open_file

◆ request_open_files

void main_window::request_open_files ( const QStringList &  open_file_names)
privateslot

Definition at line 1957 of file main-window.cc.

References m_file_encoding, and open_file_signal().

Referenced by request_open_file().

◆ request_reload_settings

void main_window::request_reload_settings ( void  )
slot

◆ reset_windows

void main_window::reset_windows ( void  )
slot

Definition at line 2809 of file main-window.cc.

References do_reset_windows().

Referenced by construct_window_menu().

◆ resize_dock()

void main_window::resize_dock ( QDockWidget dw,
int  width,
int  height 
)
private

Definition at line 2778 of file main-window.cc.

Referenced by do_reset_windows().

◆ restore_create_file_setting

void main_window::restore_create_file_setting ( void  )
privateslot

◆ run_file_in_terminal

◆ selectAll

void main_window::selectAll ( void  )
slot

Definition at line 1733 of file main-window.cc.

References m_current_directory_combo_box, and selectAll_signal().

Referenced by construct_edit_menu().

◆ selectAll_signal

void main_window::selectAll_signal ( void  )
signal

◆ set_current_working_directory

void main_window::set_current_working_directory ( const QString &  dir)
slot

◆ set_default_geometry()

void main_window::set_default_geometry ( void  )
private

Definition at line 2800 of file main-window.cc.

References get_screen_geometry().

Referenced by do_reset_windows().

◆ set_file_encoding

void main_window::set_file_encoding ( const QString &  new_encoding)
privateslot

Definition at line 1949 of file main-window.cc.

References m_file_encoding.

◆ set_screen_size

void main_window::set_screen_size ( int  ht,
int  wd 
)
slot

Definition at line 1898 of file main-window.cc.

References interpreter_event(), and command_editor::set_screen_size().

Referenced by adopt_terminal_widget().

◆ set_window_layout

void main_window::set_window_layout ( gui_settings settings)
slot

◆ settings_changed

void main_window::settings_changed ( const gui_settings )
signal

◆ show_about_octave

void main_window::show_about_octave ( void  )
slot

◆ show_community_news_signal

void main_window::show_community_news_signal ( int  serial)
signal

◆ show_release_notes_signal

void main_window::show_release_notes_signal ( void  )
signal

◆ step_into_file_signal

void main_window::step_into_file_signal ( void  )
signal

◆ undo_signal

void main_window::undo_signal ( void  )
signal

◆ update_breakpoint_marker_signal

void main_window::update_breakpoint_marker_signal ( bool  insert,
const QString &  file,
int  line,
const QString &  cond 
)
signal

◆ update_default_encoding()

void main_window::update_default_encoding ( const QString &  default_encoding)
private

Definition at line 2762 of file main-window.cc.

References interpreter_event(), m_default_encoding, and ovl().

Referenced by handle_octave_ready(), and notice_settings().

◆ update_gui_lexer_signal

void main_window::update_gui_lexer_signal ( bool  )
signal

◆ update_octave_directory

void main_window::update_octave_directory ( const QString &  dir)
slot

Definition at line 1068 of file main-window.cc.

References m_current_directory_combo_box.

Referenced by construct_octave_qt_link().

◆ warning_function_not_found

void main_window::warning_function_not_found ( const QString &  message)
privateslot

Definition at line 1513 of file main-window.cc.

References message().

Referenced by construct().

◆ warning_function_not_found_signal

void main_window::warning_function_not_found_signal ( const QString &  message)
signal

◆ write_settings

Member Data Documentation

◆ current_directory_max_count

const int main_window::current_directory_max_count = 16
staticprivate

For Toolbars.

Definition at line 407 of file main-window.h.

Referenced by construct_tool_bar().

◆ current_directory_max_visible

const int main_window::current_directory_max_visible = 16
staticprivate

For Toolbars.

Definition at line 406 of file main-window.h.

Referenced by construct_tool_bar().

◆ m_about_octave_action

QAction* main_window::m_about_octave_action
private

Definition at line 398 of file main-window.h.

Referenced by configure_shortcuts(), and construct_help_menu().

◆ m_active_dock

octave_dock_widget* main_window::m_active_dock
private

◆ m_active_editor

QWidget* main_window::m_active_editor
private

Definition at line 333 of file main-window.h.

Referenced by adopt_editor_widget(), and construct_file_menu().

◆ m_clear_clipboard_action

QAction* main_window::m_clear_clipboard_action
private

Definition at line 362 of file main-window.h.

Referenced by clipboard_has_changed(), configure_shortcuts(), and construct_edit_menu().

◆ m_clear_command_history_action

QAction* main_window::m_clear_command_history_action
private

Definition at line 365 of file main-window.h.

Referenced by configure_shortcuts(), and construct_edit_menu().

◆ m_clear_command_window_action

QAction* main_window::m_clear_command_window_action
private

Definition at line 364 of file main-window.h.

Referenced by configure_shortcuts(), and construct_edit_menu().

◆ m_clear_workspace_action

QAction* main_window::m_clear_workspace_action
private

Definition at line 366 of file main-window.h.

Referenced by configure_shortcuts(), and construct_edit_menu().

◆ m_clipboard

QClipboard* main_window::m_clipboard
private

Definition at line 426 of file main-window.h.

Referenced by clear_clipboard(), clipboard_has_changed(), and construct_edit_menu().

◆ m_closing

bool main_window::m_closing
private

Flag for closing the whole application.

Definition at line 438 of file main-window.h.

◆ m_command_window

◆ m_command_window_action

QAction* main_window::m_command_window_action
private

Definition at line 382 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_contribute_action

QAction* main_window::m_contribute_action
private

Definition at line 396 of file main-window.h.

Referenced by configure_shortcuts(), and construct_help_menu().

◆ m_copy_action

QAction* main_window::m_copy_action
private

◆ m_current_directory_combo_box

QComboBox* main_window::m_current_directory_combo_box
private

◆ m_current_directory_line_edit

QLineEdit* main_window::m_current_directory_line_edit
private

For Toolbars.

Definition at line 408 of file main-window.h.

◆ m_current_news_action

QAction* main_window::m_current_news_action
private

Definition at line 401 of file main-window.h.

Referenced by configure_shortcuts(), and construct_news_menu().

◆ m_debug_continue

QAction* main_window::m_debug_continue
private

◆ m_debug_menu

QMenu* main_window::m_debug_menu
private

Definition at line 340 of file main-window.h.

Referenced by construct_debug_menu(), and construct_debug_menu_item().

◆ m_debug_quit

QAction* main_window::m_debug_quit
private

◆ m_debug_step_into

QAction* main_window::m_debug_step_into
private

◆ m_debug_step_out

QAction* main_window::m_debug_step_out
private

◆ m_debug_step_over

QAction* main_window::m_debug_step_over
private

◆ m_default_encoding

QString main_window::m_default_encoding
private

Definition at line 311 of file main-window.h.

Referenced by notice_settings(), and update_default_encoding().

◆ m_default_palette

QPalette main_window::m_default_palette
private

Definition at line 314 of file main-window.h.

Referenced by notice_settings().

◆ m_default_style

QString main_window::m_default_style
private

Definition at line 313 of file main-window.h.

Referenced by notice_settings().

◆ m_developer_action

QAction* main_window::m_developer_action
private

Definition at line 397 of file main-window.h.

Referenced by configure_shortcuts(), and construct_help_menu().

◆ m_doc_browser_window

QPointer<documentation_dock_widget> main_window::m_doc_browser_window
private

◆ m_documentation_action

QAction* main_window::m_documentation_action
private

Definition at line 387 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_editor_action

QAction* main_window::m_editor_action
private

Definition at line 386 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_editor_has_tabs

bool main_window::m_editor_has_tabs
private

Some class global flags.

Definition at line 433 of file main-window.h.

Referenced by editor_tabs_changed(), and handle_exit_debugger().

◆ m_editor_is_octave_file

bool main_window::m_editor_is_octave_file
private

Some class global flags.

Definition at line 434 of file main-window.h.

Referenced by editor_tabs_changed(), and handle_exit_debugger().

◆ m_editor_menubar

QMenuBar* main_window::m_editor_menubar
private

Definition at line 342 of file main-window.h.

Referenced by adopt_editor_widget(), and focus_changed().

◆ m_editor_window

◆ m_exit_action

QAction* main_window::m_exit_action
private

Definition at line 358 of file main-window.h.

Referenced by configure_shortcuts(), and construct_file_menu().

◆ m_external_editor

external_editor_interface* main_window::m_external_editor
private

Definition at line 332 of file main-window.h.

Referenced by adopt_editor_widget().

◆ m_file_browser_action

QAction* main_window::m_file_browser_action
private

Definition at line 385 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_file_browser_window

QPointer<files_dock_widget> main_window::m_file_browser_window
private

◆ m_file_encoding

QString main_window::m_file_encoding
private

Definition at line 441 of file main-window.h.

Referenced by request_open_files(), and set_file_encoding().

◆ m_find_files_action

QAction* main_window::m_find_files_action
private

Definition at line 367 of file main-window.h.

Referenced by configure_shortcuts(), construct_edit_menu(), and construct_menu_bar().

◆ m_find_files_dlg

find_files_dialog* main_window::m_find_files_dlg
private

Find files dialog.

Definition at line 417 of file main-window.h.

Referenced by find_files(), and prepare_to_exit().

◆ m_hash_menu_text

QHash<QMenu *, QStringList> main_window::m_hash_menu_text
private

Definition at line 309 of file main-window.h.

Referenced by disable_menu_shortcuts(), and m_add_menu().

◆ m_history_action

QAction* main_window::m_history_action
private

Definition at line 383 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_history_window

QPointer<history_dock_widget> main_window::m_history_window
private

◆ m_load_workspace_action

QAction* main_window::m_load_workspace_action
private

Definition at line 354 of file main-window.h.

Referenced by configure_shortcuts(), and construct_file_menu().

◆ m_main_tool_bar

QToolBar* main_window::m_main_tool_bar
private

Definition at line 338 of file main-window.h.

Referenced by construct_tool_bar(), focus_changed(), and notice_settings().

◆ m_new_figure_action

QAction* main_window::m_new_figure_action
private

Definition at line 353 of file main-window.h.

Referenced by configure_shortcuts(), and construct_new_menu().

◆ m_new_function_action

QAction* main_window::m_new_function_action
private

Definition at line 351 of file main-window.h.

Referenced by configure_shortcuts(), construct_menu_bar(), and construct_new_menu().

◆ m_new_script_action

QAction* main_window::m_new_script_action
private

◆ m_octave_packages_action

QAction* main_window::m_octave_packages_action
private

Definition at line 395 of file main-window.h.

Referenced by configure_shortcuts(), and construct_help_menu().

◆ m_octave_qobj

◆ m_ondisk_doc_action

QAction* main_window::m_ondisk_doc_action
private

Definition at line 392 of file main-window.h.

Referenced by configure_shortcuts(), and construct_documentation_menu().

◆ m_online_doc_action

QAction* main_window::m_online_doc_action
private

Definition at line 393 of file main-window.h.

Referenced by configure_shortcuts(), and construct_documentation_menu().

◆ m_open_action

QAction* main_window::m_open_action
private

◆ m_paste_action

QAction* main_window::m_paste_action
private

◆ m_preferences_action

QAction* main_window::m_preferences_action
private

Definition at line 357 of file main-window.h.

Referenced by configure_shortcuts(), and construct_edit_menu().

◆ m_prevent_readline_conflicts

bool main_window::m_prevent_readline_conflicts
private

Some class global flags.

Definition at line 430 of file main-window.h.

Referenced by configure_shortcuts(), and notice_settings().

◆ m_prevent_readline_conflicts_menu

bool main_window::m_prevent_readline_conflicts_menu
private

Some class global flags.

Definition at line 431 of file main-window.h.

Referenced by focus_changed(), and notice_settings().

◆ m_previous_dock

octave_dock_widget* main_window::m_previous_dock
private

Definition at line 335 of file main-window.h.

Referenced by adopt_dock_widgets(), focus_changed(), and go_to_previous_widget().

◆ m_previous_dock_action

QAction* main_window::m_previous_dock_action
private

Definition at line 389 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_profiler_resume

QAction* main_window::m_profiler_resume
private

◆ m_profiler_show

QAction* main_window::m_profiler_show
private

Definition at line 373 of file main-window.h.

Referenced by configure_shortcuts(), and construct_tools_menu().

◆ m_profiler_start

QAction* main_window::m_profiler_start
private

◆ m_profiler_status_indicator

led_indicator* main_window::m_profiler_status_indicator
private

Definition at line 319 of file main-window.h.

Referenced by handle_profiler_status_update().

◆ m_profiler_stop

QAction* main_window::m_profiler_stop
private

◆ m_release_notes_action

QAction* main_window::m_release_notes_action
private

Definition at line 400 of file main-window.h.

Referenced by configure_shortcuts(), and construct_news_menu().

◆ m_release_notes_window

QWidget* main_window::m_release_notes_window
private

Release notes window.

Definition at line 424 of file main-window.h.

◆ m_report_bug_action

QAction* main_window::m_report_bug_action
private

Definition at line 394 of file main-window.h.

Referenced by configure_shortcuts(), and construct_help_menu().

◆ m_reset_windows_action

QAction* main_window::m_reset_windows_action
private

Definition at line 390 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_save_workspace_action

QAction* main_window::m_save_workspace_action
private

Definition at line 355 of file main-window.h.

Referenced by configure_shortcuts(), and construct_file_menu().

◆ m_select_all_action

QAction* main_window::m_select_all_action
private

Definition at line 368 of file main-window.h.

Referenced by configure_shortcuts(), construct_edit_menu(), and construct_menu_bar().

◆ m_set_path_action

QAction* main_window::m_set_path_action
private

Definition at line 356 of file main-window.h.

Referenced by configure_shortcuts(), and construct_edit_menu().

◆ m_set_path_dlg

QPointer<set_path_dialog> main_window::m_set_path_dlg
private

Set path dialog.

Definition at line 420 of file main-window.h.

Referenced by handle_set_path_dialog_request(), and prepare_to_exit().

◆ m_settings_dlg

QPointer<settings_dialog> main_window::m_settings_dlg
private

Settings dialog as guarded pointer (set to 0 when deleted).

Definition at line 413 of file main-window.h.

Referenced by process_settings_dialog_request().

◆ m_show_command_window_action

QAction* main_window::m_show_command_window_action
private

Definition at line 375 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_documentation_action

QAction* main_window::m_show_documentation_action
private

Definition at line 380 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_editor_action

QAction* main_window::m_show_editor_action
private

Definition at line 379 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_file_browser_action

QAction* main_window::m_show_file_browser_action
private

Definition at line 378 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_history_action

QAction* main_window::m_show_history_action
private

Definition at line 376 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_variable_editor_action

QAction* main_window::m_show_variable_editor_action
private

Definition at line 381 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_workspace_action

QAction* main_window::m_show_workspace_action
private

Definition at line 377 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_status_bar

QStatusBar* main_window::m_status_bar
private

Toolbar.

Definition at line 318 of file main-window.h.

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

◆ m_suppress_dbg_location

bool main_window::m_suppress_dbg_location
private

Some class global flags.

Definition at line 432 of file main-window.h.

Referenced by debug_continue(), debug_step_into(), debug_step_out(), debug_step_over(), and notice_settings().

◆ m_undo_action

QAction* main_window::m_undo_action
private

◆ m_variable_editor_action

QAction* main_window::m_variable_editor_action
private

Definition at line 388 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_variable_editor_window

QPointer<variable_editor> main_window::m_variable_editor_window
private

Dock widgets.

Definition at line 329 of file main-window.h.

Referenced by adopt_variable_editor_widget(), construct_window_menu(), do_reset_windows(), and dock_widget_list().

◆ m_workspace_action

QAction* main_window::m_workspace_action
private

Definition at line 384 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_workspace_window

QPointer<workspace_view> main_window::m_workspace_window
private

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