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

Represents the main window. More...

#include "main-window.h"

Inheritance diagram for octave::main_window:
Collaboration diagram for octave::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 connect_visibility_changed (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 display_community_news (const QString &news)
 
void display_release_notes (void)
 
void do_reset_windows (bool show_it=true)
 
void edit_mfile (const QString &, int)
 
void editor_tabs_changed (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...
 
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_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_register_doc (const QString &file)
 
void handle_rename_variable_request (const QString &old_name, const QString &new_name)
 
void handle_save_workspace_request (void)
 
void handle_set_path_dialog_request (void)
 
void handle_show_doc (const QString &file)
 
void handle_undo_request (void)
 
void handle_unregister_doc (const QString &file)
 
void handle_update_breakpoint_marker_request (bool insert, const QString &file, int line, const QString &cond)
 
void init_terminal_size (void)
 
void load_and_display_community_news (int serial=-1)
 
void modify_path (const octave_value_list &dir_list, bool rm, bool subdirs)
 
void new_file (const QString &commands=QString())
 
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_file (const QString &file_name=QString(), int line=-1)
 
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 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_global_shortcuts (bool enable)
 Setting global shortcuts. More...
 
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 copyClipboard_signal (void)
 
void delete_debugger_pointer_signal (const QString &file, int line)
 
void editor_focus_changed (bool)
 
void init_terminal_size_signal (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 register_doc_signal (const QString &)
 
void selectAll_signal (void)
 
void settings_changed (const gui_settings *)
 
void show_doc_signal (const QString &)
 
void step_into_file_signal (void)
 
void undo_signal (void)
 
void unregister_doc_signal (const QString &)
 
void update_breakpoint_marker_signal (bool insert, const QString &file, int line, const QString &cond)
 
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)
 

Protected Member Functions

void closeEvent (QCloseEvent *closeEvent)
 

Private Slots

void disable_menu_shortcuts (bool disable)
 
void edit_variable (const QString &name, const octave_value &)
 Opens the variable editor for name. More...
 
void handle_variable_editor_update (void)
 
void refresh_variable_editor (void)
 
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 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_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)
 
void get_screen_geometry (int *width, int *height)
 
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
 
QWidgetm_community_news_window
 
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
 
QString m_default_style
 
QAction * m_developer_action
 
QAction * m_documentation_action
 
QAction * m_editor_action
 
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_release_notes_action
 
QString m_release_notes_icon
 
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
 
workspace_modelm_workspace_model
 
terminal_dock_widgetm_command_window
 Dock widgets. More...
 
history_dock_widgetm_history_window
 Dock widgets. More...
 
files_dock_widgetm_file_browser_window
 Dock widgets. More...
 
documentation_dock_widgetm_doc_browser_window
 Dock widgets. More...
 
file_editor_interfacem_editor_window
 Dock widgets. More...
 
workspace_viewm_workspace_window
 Dock widgets. More...
 
variable_editorm_variable_editor_window
 Dock widgets. More...
 
bool m_prevent_readline_conflicts
 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_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 75 of file main-window.h.

Member Typedef Documentation

◆ int_pair

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

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

◆ name_pair

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

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

Constructor & Destructor Documentation

◆ main_window()

◆ ~main_window()

Member Function Documentation

◆ accept_directory_line_edit

void octave::main_window::accept_directory_line_edit ( void  )
slot

Definition at line 1024 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 octave::main_window::active_dock_changed ( octave_dock_widget ,
octave_dock_widget  
)
signal

Referenced by focus_changed(), and notice_settings().

◆ add_action()

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

◆ add_actions_signal

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

◆ browse_for_directory

◆ change_directory_up

void octave::main_window::change_directory_up ( void  )
slot

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

References set_current_working_directory().

Referenced by construct_tool_bar().

◆ clear_clipboard

void octave::main_window::clear_clipboard ( void  )
slot

Handling the clipboard.

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

References m_clipboard.

Referenced by construct_edit_menu().

◆ clipboard_has_changed

void octave::main_window::clipboard_has_changed ( void  )
slot

Handling the clipboard.

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

References m_clear_clipboard_action, m_clipboard, and m_paste_action.

Referenced by construct_edit_menu().

◆ closeEvent()

void octave::main_window::closeEvent ( QCloseEvent *  closeEvent)
protected

◆ command_window_has_focus()

bool octave::main_window::command_window_has_focus ( void  ) const

◆ configure_shortcuts()

void octave::main_window::configure_shortcuts ( void  )
private

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

References octave::base_qobject::get_shortcut_manager(), m_about_octave_action, m_clear_clipboard_action, m_clear_command_history_action, m_clear_command_window_action, m_clear_workspace_action, 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_previous_dock_action, 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_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 octave::shortcut_manager::set_shortcut().

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

◆ confirm_shutdown()

◆ connect_visibility_changed

void octave::main_window::connect_visibility_changed ( void  )
slot

◆ construct()

◆ construct_central_widget()

void octave::main_window::construct_central_widget ( void  )
private

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

Referenced by main_window().

◆ construct_debug_menu()

◆ construct_debug_menu_item()

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

◆ construct_documentation_menu()

void octave::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 octave::main_window::construct_news_menu ( QMenuBar p)
private

◆ construct_octave_qt_link()

◆ construct_tool_bar()

◆ construct_window_menu()

◆ construct_window_menu_item()

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

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

Referenced by construct_window_menu().

◆ copyClipboard

void octave::main_window::copyClipboard ( void  )
slot

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

References copyClipboard_signal(), and m_current_directory_combo_box.

Referenced by construct_edit_menu().

◆ copyClipboard_signal

void octave::main_window::copyClipboard_signal ( void  )
signal

Referenced by copyClipboard().

◆ debug_continue

void octave::main_window::debug_continue ( void  )
slot

◆ debug_quit

void octave::main_window::debug_quit ( void  )
slot

◆ debug_step_into

void octave::main_window::debug_step_into ( void  )
slot

◆ debug_step_out

void octave::main_window::debug_step_out ( void  )
slot

◆ debug_step_over

void octave::main_window::debug_step_over ( void  )
slot

◆ delete_debugger_pointer_signal

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

◆ disable_menu_shortcuts

void octave::main_window::disable_menu_shortcuts ( bool  disable)
privateslot

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

References m_hash_menu_text.

Referenced by construct(), and notice_settings().

◆ display_community_news

void octave::main_window::display_community_news ( const QString &  news)
slot

◆ display_release_notes

void octave::main_window::display_release_notes ( void  )
slot

◆ do_reset_windows

◆ dock_widget_list()

◆ edit_mfile

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

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

References handle_edit_mfile_request(), and name.

◆ edit_variable

void octave::main_window::edit_variable ( const QString &  name,
const octave_value val 
)
privateslot

Opens the variable editor for name.

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

References octave::variable_editor::edit_variable(), and m_variable_editor_window.

Referenced by construct().

◆ editor_focus_changed

void octave::main_window::editor_focus_changed ( bool  )
signal

Referenced by construct(), and focus_changed().

◆ editor_tabs_changed

void octave::main_window::editor_tabs_changed ( bool  have_tabs)
slot

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

References m_debug_step_over, and m_editor_has_tabs.

Referenced by construct().

◆ execute_command_in_terminal

◆ file_remove_proxy

◆ find_files

void octave::main_window::find_files ( const QString &  startdir = QDir::currentPath ())
slot

◆ find_files_finished

void octave::main_window::find_files_finished ( int  )
inlineslot

Find files dialog.

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

Referenced by find_files().

◆ focus_changed

void octave::main_window::focus_changed ( QWidget w_old,
QWidget w_new 
)
slot

◆ focus_command_window()

◆ focus_console_after_command

void octave::main_window::focus_console_after_command ( void  )
slot

◆ focus_window

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

◆ get_dock_widget_list

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

Returns a list of dock widgets.

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

References dock_widget_list().

◆ get_screen_geometry()

void octave::main_window::get_screen_geometry ( int *  width,
int *  height 
)
private

◆ go_to_previous_widget

void octave::main_window::go_to_previous_widget ( void  )
slot

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

References octave::octave_dock_widget::activate(), and m_previous_dock.

Referenced by construct_window_menu().

◆ handle_clear_command_window_request

void octave::main_window::handle_clear_command_window_request ( void  )
slot

◆ handle_clear_history_request

void octave::main_window::handle_clear_history_request ( void  )
slot

◆ handle_clear_workspace_request

void octave::main_window::handle_clear_workspace_request ( void  )
slot

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

References Fclear(), and interpreter_event().

Referenced by construct_edit_menu().

◆ handle_delete_debugger_pointer_request

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

◆ handle_edit_mfile_request

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

◆ handle_enter_debugger

void octave::main_window::handle_enter_debugger ( void  )
slot

◆ handle_exit_debugger

void octave::main_window::handle_exit_debugger ( void  )
slot

◆ handle_insert_debugger_pointer_request

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

◆ handle_load_workspace_request

◆ handle_new_figure_request

void octave::main_window::handle_new_figure_request ( void  )
slot

Definition at line 1101 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 octave::main_window::handle_open_any_request ( const QString &  file = QString ())
slot

◆ handle_register_doc

void octave::main_window::handle_register_doc ( const QString &  file)
slot

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

References register_doc_signal().

Referenced by construct_octave_qt_link().

◆ handle_rename_variable_request

void octave::main_window::handle_rename_variable_request ( const QString &  old_name,
const QString &  new_name 
)
slot

◆ handle_save_workspace_request

void octave::main_window::handle_save_workspace_request ( void  )
slot

◆ handle_set_path_dialog_request

void octave::main_window::handle_set_path_dialog_request ( void  )
slot

◆ handle_show_doc

void octave::main_window::handle_show_doc ( const QString &  file)
slot

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

References m_doc_browser_window, and show_doc_signal().

Referenced by construct_octave_qt_link().

◆ handle_undo_request

void octave::main_window::handle_undo_request ( void  )
slot

◆ handle_unregister_doc

void octave::main_window::handle_unregister_doc ( const QString &  file)
slot

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

References unregister_doc_signal().

Referenced by construct_octave_qt_link().

◆ handle_update_breakpoint_marker_request

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

◆ handle_variable_editor_update

void octave::main_window::handle_variable_editor_update ( void  )
privateslot

◆ init_terminal_size

void octave::main_window::init_terminal_size ( void  )
slot

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

References init_terminal_size_signal().

Referenced by main_window().

◆ init_terminal_size_signal

void octave::main_window::init_terminal_size_signal ( void  )
signal

Referenced by init_terminal_size().

◆ insert_debugger_pointer_signal

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

◆ interpreter_event [1/2]

◆ interpreter_event [2/2]

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

◆ load_and_display_community_news

void octave::main_window::load_and_display_community_news ( int  serial = -1)
slot

◆ m_add_menu()

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

◆ modify_path

void octave::main_window::modify_path ( const octave_value_list dir_list,
bool  rm,
bool  subdirs 
)
slot

◆ new_file

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

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

References new_file_signal().

◆ new_file_signal

void octave::main_window::new_file_signal ( const QString &  )
signal

◆ notice_settings

◆ open_bug_tracker_page

void octave::main_window::open_bug_tracker_page ( void  )
slot

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

Referenced by construct_help_menu().

◆ open_contribute_page

void octave::main_window::open_contribute_page ( void  )
slot

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

Referenced by construct_help_menu().

◆ open_donate_page

void octave::main_window::open_donate_page ( void  )
slot

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

Referenced by construct_help_menu().

◆ open_file

void octave::main_window::open_file ( const QString &  file_name = QString (),
int  line = -1 
)
slot

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

References open_file_signal().

Referenced by find_files().

◆ open_file_signal [1/2]

void octave::main_window::open_file_signal ( const QString &  )
signal

◆ open_file_signal [2/2]

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

◆ open_octave_packages_page

void octave::main_window::open_octave_packages_page ( void  )
slot

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

Referenced by construct_help_menu().

◆ open_online_documentation_page

void octave::main_window::open_online_documentation_page ( void  )
slot

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

Referenced by construct_documentation_menu().

◆ pasteClipboard

void octave::main_window::pasteClipboard ( void  )
slot

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

References m_current_directory_combo_box, and pasteClipboard_signal().

Referenced by construct_edit_menu().

◆ pasteClipboard_signal

void octave::main_window::pasteClipboard_signal ( void  )
signal

Referenced by pasteClipboard().

◆ prepare_to_exit

void octave::main_window::prepare_to_exit ( void  )
slot

◆ process_settings_dialog_request

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

◆ read_settings

◆ refresh_variable_editor

void octave::main_window::refresh_variable_editor ( void  )
privateslot

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

References m_variable_editor_window, and octave::variable_editor::refresh().

Referenced by construct().

◆ register_doc_signal

void octave::main_window::register_doc_signal ( const QString &  )
signal

◆ report_status_message

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

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

References m_status_bar.

◆ request_new_function

◆ request_new_script

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

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

References new_file_signal().

Referenced by construct_new_menu().

◆ request_open_file

◆ request_open_files

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

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

References m_file_encoding, and open_file_signal().

Referenced by request_open_file().

◆ request_reload_settings

void octave::main_window::request_reload_settings ( void  )
slot

◆ reset_windows

void octave::main_window::reset_windows ( void  )
slot

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

References do_reset_windows().

Referenced by construct_window_menu().

◆ resize_dock()

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

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

Referenced by do_reset_windows().

◆ restore_create_file_setting

void octave::main_window::restore_create_file_setting ( void  )
privateslot

◆ run_file_in_terminal

◆ selectAll

void octave::main_window::selectAll ( void  )
slot

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

References m_current_directory_combo_box, and selectAll_signal().

Referenced by construct_edit_menu().

◆ selectAll_signal

void octave::main_window::selectAll_signal ( void  )
signal

Referenced by selectAll().

◆ set_current_working_directory

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

◆ set_default_geometry()

void octave::main_window::set_default_geometry ( void  )
private

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

References get_screen_geometry().

Referenced by do_reset_windows().

◆ set_file_encoding

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

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

References m_file_encoding.

◆ set_global_shortcuts

◆ set_screen_size

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

◆ set_window_layout

void octave::main_window::set_window_layout ( gui_settings settings)
slot

◆ settings_changed

void octave::main_window::settings_changed ( const gui_settings )
signal

◆ show_about_octave

void octave::main_window::show_about_octave ( void  )
slot

◆ show_doc_signal

void octave::main_window::show_doc_signal ( const QString &  )
signal

◆ step_into_file_signal

void octave::main_window::step_into_file_signal ( void  )
signal

Referenced by construct(), and debug_step_over().

◆ undo_signal

void octave::main_window::undo_signal ( void  )
signal

Referenced by handle_undo_request().

◆ unregister_doc_signal

void octave::main_window::unregister_doc_signal ( const QString &  )
signal

◆ update_breakpoint_marker_signal

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

◆ update_default_encoding()

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

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

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

Referenced by handle_octave_ready(), and notice_settings().

◆ update_octave_directory

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

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

References m_current_directory_combo_box.

Referenced by construct_octave_qt_link().

◆ warning_function_not_found

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

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

References message().

Referenced by construct().

◆ warning_function_not_found_signal

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

◆ write_settings

Member Data Documentation

◆ current_directory_max_count

const int octave::main_window::current_directory_max_count = 16
staticprivate

For Toolbars.

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

Referenced by construct_tool_bar().

◆ current_directory_max_visible

const int octave::main_window::current_directory_max_visible = 16
staticprivate

For Toolbars.

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

Referenced by construct_tool_bar().

◆ m_about_octave_action

QAction* octave::main_window::m_about_octave_action
private

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

Referenced by configure_shortcuts(), construct_help_menu(), and set_global_shortcuts().

◆ m_active_dock

octave_dock_widget* octave::main_window::m_active_dock
private

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

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

◆ m_active_editor

QWidget* octave::main_window::m_active_editor
private

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

Referenced by main_window(), construct_new_menu(), and construct_octave_qt_link().

◆ m_clear_clipboard_action

QAction* octave::main_window::m_clear_clipboard_action
private

◆ m_clear_command_history_action

QAction* octave::main_window::m_clear_command_history_action
private

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

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

◆ m_clear_command_window_action

QAction* octave::main_window::m_clear_command_window_action
private

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

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

◆ m_clear_workspace_action

QAction* octave::main_window::m_clear_workspace_action
private

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

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

◆ m_clipboard

QClipboard* octave::main_window::m_clipboard
private

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

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

◆ m_closing

bool octave::main_window::m_closing
private

Flag for closing the whole application.

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

◆ m_command_window

◆ m_command_window_action

QAction* octave::main_window::m_command_window_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_community_news_window

QWidget* octave::main_window::m_community_news_window
private

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

Referenced by ~main_window(), and display_community_news().

◆ m_contribute_action

QAction* octave::main_window::m_contribute_action
private

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

Referenced by configure_shortcuts(), construct_help_menu(), and set_global_shortcuts().

◆ m_copy_action

QAction* octave::main_window::m_copy_action
private

◆ m_current_directory_combo_box

QComboBox* octave::main_window::m_current_directory_combo_box
private

◆ m_current_directory_line_edit

QLineEdit* octave::main_window::m_current_directory_line_edit
private

For Toolbars.

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

◆ m_current_news_action

QAction* octave::main_window::m_current_news_action
private

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

Referenced by configure_shortcuts(), construct_news_menu(), and set_global_shortcuts().

◆ m_debug_continue

QAction* octave::main_window::m_debug_continue
private

◆ m_debug_menu

QMenu* octave::main_window::m_debug_menu
private

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

Referenced by construct_debug_menu(), and construct_debug_menu_item().

◆ m_debug_quit

QAction* octave::main_window::m_debug_quit
private

◆ m_debug_step_into

QAction* octave::main_window::m_debug_step_into
private

◆ m_debug_step_out

QAction* octave::main_window::m_debug_step_out
private

◆ m_debug_step_over

QAction* octave::main_window::m_debug_step_over
private

◆ m_default_encoding

QString octave::main_window::m_default_encoding
private

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

Referenced by main_window(), notice_settings(), and update_default_encoding().

◆ m_default_style

QString octave::main_window::m_default_style
private

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

Referenced by main_window(), and notice_settings().

◆ m_developer_action

QAction* octave::main_window::m_developer_action
private

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

Referenced by configure_shortcuts(), construct_help_menu(), and set_global_shortcuts().

◆ m_doc_browser_window

documentation_dock_widget* octave::main_window::m_doc_browser_window
private

◆ m_documentation_action

QAction* octave::main_window::m_documentation_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_editor_action

QAction* octave::main_window::m_editor_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_editor_has_tabs

bool octave::main_window::m_editor_has_tabs
private

Some class global flags.

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

Referenced by editor_tabs_changed(), and handle_exit_debugger().

◆ m_editor_window

◆ m_exit_action

QAction* octave::main_window::m_exit_action
private

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

Referenced by configure_shortcuts(), construct_file_menu(), and set_global_shortcuts().

◆ m_external_editor

external_editor_interface* octave::main_window::m_external_editor
private

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

Referenced by main_window(), ~main_window(), and construct().

◆ m_file_browser_action

QAction* octave::main_window::m_file_browser_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_file_browser_window

files_dock_widget* octave::main_window::m_file_browser_window
private

◆ m_file_encoding

QString octave::main_window::m_file_encoding
private

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

Referenced by request_open_files(), and set_file_encoding().

◆ m_find_files_action

QAction* octave::main_window::m_find_files_action
private

◆ m_find_files_dlg

find_files_dialog* octave::main_window::m_find_files_dlg
private

Find files dialog.

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

Referenced by ~main_window(), find_files(), and prepare_to_exit().

◆ m_hash_menu_text

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

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

Referenced by disable_menu_shortcuts(), and m_add_menu().

◆ m_history_action

QAction* octave::main_window::m_history_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_history_window

history_dock_widget* octave::main_window::m_history_window
private

◆ m_load_workspace_action

QAction* octave::main_window::m_load_workspace_action
private

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

Referenced by configure_shortcuts(), construct_file_menu(), and set_global_shortcuts().

◆ m_main_tool_bar

QToolBar* octave::main_window::m_main_tool_bar
private

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

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

◆ m_new_figure_action

QAction* octave::main_window::m_new_figure_action
private

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

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

◆ m_new_function_action

QAction* octave::main_window::m_new_function_action
private

◆ m_new_script_action

QAction* octave::main_window::m_new_script_action
private

◆ m_octave_packages_action

QAction* octave::main_window::m_octave_packages_action
private

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

Referenced by configure_shortcuts(), construct_help_menu(), and set_global_shortcuts().

◆ m_octave_qobj

◆ m_ondisk_doc_action

QAction* octave::main_window::m_ondisk_doc_action
private

◆ m_online_doc_action

QAction* octave::main_window::m_online_doc_action
private

◆ m_open_action

QAction* octave::main_window::m_open_action
private

◆ m_paste_action

QAction* octave::main_window::m_paste_action
private

◆ m_preferences_action

QAction* octave::main_window::m_preferences_action
private

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

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

◆ m_prevent_readline_conflicts

bool octave::main_window::m_prevent_readline_conflicts
private

Some class global flags.

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

Referenced by notice_settings(), and set_global_shortcuts().

◆ m_previous_dock

octave_dock_widget* octave::main_window::m_previous_dock
private

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

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

◆ m_previous_dock_action

QAction* octave::main_window::m_previous_dock_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_release_notes_action

QAction* octave::main_window::m_release_notes_action
private

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

Referenced by configure_shortcuts(), construct_news_menu(), and set_global_shortcuts().

◆ m_release_notes_icon

QString octave::main_window::m_release_notes_icon
private

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

Referenced by display_community_news(), display_release_notes(), and notice_settings().

◆ m_release_notes_window

QWidget* octave::main_window::m_release_notes_window
private

Release notes window.

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

Referenced by ~main_window(), and display_release_notes().

◆ m_report_bug_action

QAction* octave::main_window::m_report_bug_action
private

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

Referenced by configure_shortcuts(), construct_help_menu(), and set_global_shortcuts().

◆ m_reset_windows_action

QAction* octave::main_window::m_reset_windows_action
private

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

Referenced by configure_shortcuts(), construct_window_menu(), and set_global_shortcuts().

◆ m_save_workspace_action

QAction* octave::main_window::m_save_workspace_action
private

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

Referenced by configure_shortcuts(), construct_file_menu(), and set_global_shortcuts().

◆ m_select_all_action

QAction* octave::main_window::m_select_all_action
private

◆ m_set_path_action

QAction* octave::main_window::m_set_path_action
private

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

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

◆ m_set_path_dlg

QPointer<set_path_dialog> octave::main_window::m_set_path_dlg
private

Set path dialog.

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

Referenced by handle_set_path_dialog_request(), and prepare_to_exit().

◆ m_settings_dlg

QPointer<settings_dialog> octave::main_window::m_settings_dlg
private

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

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

Referenced by process_settings_dialog_request().

◆ m_show_command_window_action

QAction* octave::main_window::m_show_command_window_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_documentation_action

QAction* octave::main_window::m_show_documentation_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_editor_action

QAction* octave::main_window::m_show_editor_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_file_browser_action

QAction* octave::main_window::m_show_file_browser_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_history_action

QAction* octave::main_window::m_show_history_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_variable_editor_action

QAction* octave::main_window::m_show_variable_editor_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_show_workspace_action

QAction* octave::main_window::m_show_workspace_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_status_bar

QStatusBar* octave::main_window::m_status_bar
private

Toolbar.

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

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

◆ m_suppress_dbg_location

bool octave::main_window::m_suppress_dbg_location
private

Some class global flags.

Definition at line 425 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* octave::main_window::m_undo_action
private

◆ m_variable_editor_action

QAction* octave::main_window::m_variable_editor_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_variable_editor_window

variable_editor* octave::main_window::m_variable_editor_window
private

◆ m_workspace_action

QAction* octave::main_window::m_workspace_action
private

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

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_workspace_model

workspace_model* octave::main_window::m_workspace_model
private

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

Referenced by main_window(), ~main_window(), construct(), and construct_octave_qt_link().

◆ m_workspace_window

workspace_view* octave::main_window::m_workspace_window
private

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