GNU Octave  4.4.1
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::stringname_pair
 

Public Slots

void accept_directory_line_edit (void)
 
void browse_for_directory (void)
 
void change_directory (const QString &dir)
 
void change_directory_up (void)
 
void confirm_shutdown_octave (void)
 
void connect_uiwidget_links (void)
 
void connect_visibility_changed (void)
 
void copy_image_to_clipboard (const QString &file, bool remove_file)
 
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 edit_mfile (const QString &, int)
 
void execute_command_in_terminal (const QString &dir)
 
void focus_changed (QWidget *w_old, QWidget *w_new)
 
QList< octave_dock_widget * > get_dock_widget_list (void)
 Returns a list of dock widgets. More...
 
void handle_clear_command_window_request (void)
 
void handle_clear_history_request (void)
 
void handle_clear_workspace_request (void)
 
void handle_create_dialog (const QString &message, const QString &title, const QString &icon, const QStringList &button, const QString &defbutton, const QStringList &role)
 
void handle_create_filedialog (const QStringList &filters, const QString &title, const QString &filename, const QString &dirname, const QString &multimode)
 
void handle_create_inputlayout (const QStringList &, const QString &, const QFloatList &, const QFloatList &, const QStringList &)
 
void handle_create_listview (const QStringList &list, const QString &mode, int width, int height, const QIntList &initial, const QString &name, const QStringList &prompt, const QString &ok_string, const QString &cancel_string)
 
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_finished (int)
 
void handle_octave_ready ()
 
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_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 new_file (const QString &commands=QString())
 
void notice_settings (const QSettings *settings)
 
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 (QSettings *settings)
 
void show_about_octave (void)
 
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 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 QSettings *)
 
void show_doc_signal (const QString &)
 
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)
 

Public Member Functions

 main_window (QWidget *parent, gui_application *app_context)
 
 ~main_window (void)
 
bool command_window_has_focus (void) const
 
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)
 

Private Member Functions

QAction * add_action (QMenu *menu, const QIcon &icon, const QString &text, const char *member, const QWidget *receiver=nullptr)
 
void change_directory_callback (const std::string &directory)
 
void clear_command_window_callback (void)
 
void clear_history_callback (void)
 
void clear_workspace_callback (void)
 
void command_window_undo_callback (void)
 
void configure_shortcuts (void)
 
void construct (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)
 
bool focus_console_after_command (void)
 
void load_workspace_callback (const std::string &file)
 
QMenum_add_menu (QMenuBar *p, QString text)
 
void new_figure_callback (void)
 
void refresh_workspace_callback (void)
 
void rename_variable_callback (const name_pair &names)
 
void resize_command_window_callback (void)
 
void save_workspace_callback (const std::string &file)
 
void set_screen_size_callback (const int_pair &)
 

Private Attributes

QAction * m_about_octave_action
 
octave_dock_widgetm_active_dock
 
QWidgetm_active_editor
 
gui_applicationm_app_context
 
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
 
octave_command_queue m_cmd_queue
 Command queue and semaphore to synchronize execution signals and related callbacks. More...
 
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
 
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
 
octave_interpreterm_interpreter
 
QAction * m_load_workspace_action
 
QThreadm_main_thread
 
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
 
octave_qt_linkm_octave_qt_link
 
QAction * m_ondisk_doc_action
 
QAction * m_online_doc_action
 
QAction * m_open_action
 
QAction * m_paste_action
 
QAction * m_preferences_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
 
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_start_gui
 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 96 of file main-window.h.

Member Typedef Documentation

◆ int_pair

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

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

◆ name_pair

Definition at line 102 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 869 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

void octave::main_window::browse_for_directory ( void  )
slot

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

References focus_command_window(), and set_current_working_directory().

Referenced by construct_tool_bar().

◆ change_directory

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

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

References m_current_directory_combo_box.

Referenced by construct_octave_qt_link().

◆ change_directory_callback()

void octave::main_window::change_directory_callback ( const std::string directory)
private

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

References directory, Fcd(), and ovl().

Referenced by set_current_working_directory().

◆ change_directory_up

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

Definition at line 860 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 1644 of file main-window.cc.

References m_clipboard.

Referenced by construct_edit_menu().

◆ clear_command_window_callback()

void octave::main_window::clear_command_window_callback ( void  )
private

◆ clear_history_callback()

void octave::main_window::clear_history_callback ( void  )
private

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

References ovl().

Referenced by handle_clear_history_request().

◆ clear_workspace_callback()

void octave::main_window::clear_workspace_callback ( void  )
private

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

References octave::__get_interpreter__().

Referenced by handle_clear_workspace_request().

◆ clipboard_has_changed

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

Handling the clipboard.

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

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

References octave::octave_command_queue::add_cmd(), e, and m_cmd_queue.

◆ command_window_has_focus()

◆ command_window_undo_callback()

void octave::main_window::command_window_undo_callback ( void  )
private

◆ configure_shortcuts()

◆ confirm_shutdown_octave

◆ connect_uiwidget_links

void octave::main_window::connect_uiwidget_links ( void  )
slot

◆ connect_visibility_changed

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

◆ construct()

◆ 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 2279 of file main-window.cc.

References p.

Referenced by construct_window_menu().

◆ copy_image_to_clipboard

void octave::main_window::copy_image_to_clipboard ( const QString &  file,
bool  remove_file 
)
slot

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

References file.

Referenced by construct_octave_qt_link().

◆ copyClipboard

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

Definition at line 1310 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 1649 of file main-window.cc.

References i, and m_hash_menu_text.

Referenced by construct(), and notice_settings().

◆ display_community_news

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

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

References m_community_news_window, m_release_notes_icon, and min().

Referenced by load_and_display_community_news().

◆ display_release_notes

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

◆ dock_widget_list()

◆ edit_mfile

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

Definition at line 429 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 1683 of file main-window.cc.

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

Referenced by construct().

◆ editor_focus_changed

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

Referenced by construct(), and focus_changed().

◆ execute_command_in_terminal

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

◆ 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 252 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()

bool octave::main_window::focus_console_after_command ( void  )
private

◆ 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 269 of file main-window.h.

References dock_widget_list().

◆ handle_clear_command_window_request

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

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

References clear_command_window_callback(), and octave_link::post_event().

Referenced by construct_edit_menu().

◆ handle_clear_history_request

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

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

References clear_history_callback(), and octave_link::post_event().

Referenced by construct_edit_menu().

◆ handle_clear_workspace_request

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

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

References clear_workspace_callback(), and octave_link::post_event().

Referenced by construct_edit_menu().

◆ handle_create_dialog

void octave::main_window::handle_create_dialog ( const QString &  message,
const QString &  title,
const QString &  icon,
const QStringList &  button,
const QString &  defbutton,
const QStringList &  role 
)
slot

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

References message().

Referenced by connect_uiwidget_links().

◆ handle_create_filedialog

void octave::main_window::handle_create_filedialog ( const QStringList &  filters,
const QString &  title,
const QString &  filename,
const QString &  dirname,
const QString &  multimode 
)
slot

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

References octave::sys::file_ops::dirname(), and filename.

Referenced by connect_uiwidget_links().

◆ handle_create_inputlayout

void octave::main_window::handle_create_inputlayout ( const QStringList &  prompt,
const QString &  title,
const QFloatList nr,
const QFloatList nc,
const QStringList &  defaults 
)
slot

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

Referenced by connect_uiwidget_links().

◆ handle_create_listview

void octave::main_window::handle_create_listview ( const QStringList &  list,
const QString &  mode,
int  width,
int  height,
const QIntList initial,
const QString &  name,
const QStringList &  prompt,
const QString &  ok_string,
const QString &  cancel_string 
)
slot

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

References list, mode, and name.

Referenced by connect_uiwidget_links().

◆ 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

void octave::main_window::handle_load_workspace_request ( const QString &  file = QString ())
slot

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

References file, load_workspace_callback(), and octave_link::post_event().

Referenced by construct(), and construct_file_menu().

◆ handle_new_figure_request

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

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

References new_figure_callback(), and octave_link::post_event().

Referenced by construct_new_menu().

◆ handle_octave_finished

void octave::main_window::handle_octave_finished ( int  exit_status)
slot

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

Referenced by main_window().

◆ handle_octave_ready

◆ handle_register_doc

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

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

References file, and 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

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

References octave_link::post_event(), and rename_variable_callback().

Referenced by construct().

◆ handle_save_workspace_request

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

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

References file, octave_link::post_event(), and save_workspace_callback().

Referenced by construct_file_menu().

◆ handle_show_doc

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

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

References file, 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 1481 of file main-window.cc.

References file, and 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

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

References octave_link::post_event(), and refresh_workspace_callback().

Referenced by construct().

◆ init_terminal_size

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

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

References init_terminal_size_signal().

◆ 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

◆ load_and_display_community_news

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

◆ load_workspace_callback()

void octave::main_window::load_workspace_callback ( const std::string file)
private

◆ m_add_menu()

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

◆ new_figure_callback()

void octave::main_window::new_figure_callback ( void  )
private

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

References octave::__get_interpreter__(), and ovl().

Referenced by handle_new_figure_request().

◆ new_file

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

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

References commands, and 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 585 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 595 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 600 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 421 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 590 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 434 of file main-window.cc.

Referenced by construct_documentation_menu().

◆ pasteClipboard

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

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

References m_current_directory_combo_box, pasteClipboard_signal(), and str.

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

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

References m_find_files_dlg, octave::find_files_dialog::save_settings(), and write_settings().

Referenced by construct().

◆ process_settings_dialog_request

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

◆ read_settings

void octave::main_window::read_settings ( void  )
slot

◆ refresh_variable_editor

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

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

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

Referenced by construct().

◆ refresh_workspace_callback()

void octave::main_window::refresh_workspace_callback ( void  )
private

◆ register_doc_signal

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

◆ rename_variable_callback()

void octave::main_window::rename_variable_callback ( const name_pair names)
private

◆ report_status_message

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

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

References m_status_bar.

◆ request_new_function

void octave::main_window::request_new_function ( bool  triggered = true)
slot

◆ request_new_script

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

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

References commands, and 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 1677 of file main-window.cc.

References i, 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

◆ resize_command_window_callback()

void octave::main_window::resize_command_window_callback ( void  )
private

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

References octave::command_editor::resize_terminal().

Referenced by construct().

◆ restore_create_file_setting

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

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

References octave::resource_manager::get_settings(), and m_editor_window.

Referenced by request_new_function().

◆ run_file_in_terminal

void octave::main_window::run_file_in_terminal ( const QFileInfo &  info)
slot

◆ save_workspace_callback()

void octave::main_window::save_workspace_callback ( const std::string file)
private

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

References file, Fsave(), and ovl().

Referenced by handle_save_workspace_request().

◆ selectAll

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

Definition at line 1341 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_file_encoding

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

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

References m_file_encoding.

Referenced by request_open_file().

◆ set_global_shortcuts

◆ set_screen_size

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

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

References octave_link::post_event(), and set_screen_size_callback().

◆ set_screen_size_callback()

void octave::main_window::set_screen_size_callback ( const int_pair sz)
private

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

References octave::command_editor::set_screen_size(), and sz.

Referenced by set_screen_size().

◆ set_window_layout

void octave::main_window::set_window_layout ( QSettings *  settings)
slot

◆ settings_changed

void octave::main_window::settings_changed ( const QSettings *  )
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

◆ 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

◆ write_settings

void octave::main_window::write_settings ( void  )
slot

Member Data Documentation

◆ current_directory_max_count

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

For Toolbars.

Definition at line 443 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 442 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 434 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 379 of file main-window.h.

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

◆ m_active_editor

QWidget* octave::main_window::m_active_editor
private

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

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

◆ m_app_context

gui_application* octave::main_window::m_app_context
private

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

Referenced by 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 407 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 406 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 408 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 463 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 478 of file main-window.h.

Referenced by construct().

◆ m_cmd_queue

octave_command_queue octave::main_window::m_cmd_queue
private

Command queue and semaphore to synchronize execution signals and related callbacks.

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

Referenced by closeEvent(), debug_continue(), debug_quit(), debug_step_into(), debug_step_out(), debug_step_over(), execute_command_in_terminal(), and run_file_in_terminal().

◆ m_command_window

terminal_dock_widget* octave::main_window::m_command_window
private

◆ m_command_window_action

QAction* octave::main_window::m_command_window_action
private

Definition at line 419 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 459 of file main-window.h.

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

◆ m_contribute_action

QAction* octave::main_window::m_contribute_action
private

Definition at line 432 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 444 of file main-window.h.

◆ m_current_news_action

QAction* octave::main_window::m_current_news_action
private

Definition at line 437 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 385 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_developer_action

QAction* octave::main_window::m_developer_action
private

Definition at line 433 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 424 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 423 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_editor_window

◆ m_exit_action

QAction* octave::main_window::m_exit_action
private

Definition at line 400 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 376 of file main-window.h.

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

◆ m_file_browser_action

QAction* octave::main_window::m_file_browser_action
private

Definition at line 422 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 481 of file main-window.h.

Referenced by request_open_file(), 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 453 of file main-window.h.

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

◆ m_hash_menu_text

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

Definition at line 359 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 420 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_interpreter

octave_interpreter* octave::main_window::m_interpreter
private

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

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

◆ m_load_workspace_action

QAction* octave::main_window::m_load_workspace_action
private

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

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

◆ m_main_thread

QThread* octave::main_window::m_main_thread
private

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

Referenced by main_window().

◆ m_main_tool_bar

QToolBar* octave::main_window::m_main_tool_bar
private

Definition at line 383 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 396 of file main-window.h.

Referenced by construct_new_menu().

◆ 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 431 of file main-window.h.

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

◆ m_octave_qt_link

octave_qt_link* octave::main_window::m_octave_qt_link
private

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

Referenced by confirm_shutdown_octave(), construct(), and construct_octave_qt_link().

◆ 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 399 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 472 of file main-window.h.

Referenced by notice_settings(), and set_global_shortcuts().

◆ m_release_notes_action

QAction* octave::main_window::m_release_notes_action
private

Definition at line 436 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 381 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 457 of file main-window.h.

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

◆ m_report_bug_action

QAction* octave::main_window::m_report_bug_action
private

Definition at line 430 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 426 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 398 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_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 449 of file main-window.h.

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

◆ m_show_command_window_action

QAction* octave::main_window::m_show_command_window_action
private

Definition at line 412 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 417 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 416 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 415 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 413 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 418 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 414 of file main-window.h.

Referenced by configure_shortcuts(), and construct_window_menu().

◆ m_start_gui

bool octave::main_window::m_start_gui
private

Some class global flags.

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

Referenced by confirm_shutdown_octave(), construct(), construct_octave_qt_link(), handle_octave_ready(), and main_window().

◆ m_status_bar

QStatusBar* octave::main_window::m_status_bar
private

Toolbar.

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

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

◆ m_suppress_dbg_location

bool octave::main_window::m_suppress_dbg_location
private

Some class global flags.

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

Referenced by debug_continue(), debug_quit(), 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 425 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 421 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 357 of file main-window.h.

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

◆ m_workspace_window

workspace_view* octave::main_window::m_workspace_window
private

Dock widgets.

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

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


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