GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "main-window.h"
Public Types | |
typedef std::pair< std::string, std::string > | name_pair |
Signals | |
void | copyClipboard_signal (void) |
void | delete_debugger_pointer_signal (const QString &file, int line) |
void | insert_debugger_pointer_signal (const QString &file, int line) |
void | new_file_signal (const QString &) |
void | open_file_signal (const QString &) |
void | pasteClipboard_signal (void) |
void | set_widget_shortcuts_signal (bool) |
void | settings_changed (const QSettings *) |
void | show_doc_signal (const QString &) |
void | update_breakpoint_marker_signal (bool insert, const QString &file, int line) |
Public Member Functions | |
main_window (QWidget *parent=0) | |
~main_window (void) | |
bool | command_window_has_focus (void) const |
void | focus_command_window (void) |
Protected Member Functions | |
void | closeEvent (QCloseEvent *closeEvent) |
Static Private Attributes | |
static const int | current_directory_max_count = 16 |
static const int | current_directory_max_visible = 16 |
static const int | current_directory_width = 300 |
Definition at line 65 of file main-window.h.
typedef std::pair<std::string, std::string> main_window::name_pair |
Definition at line 71 of file main-window.h.
main_window::main_window | ( | QWidget * | parent = 0 | ) |
Definition at line 74 of file main-window.cc.
References construct(), resource_manager::get_settings(), and load_and_display_community_news().
main_window::~main_window | ( | void | ) |
Definition at line 121 of file main-window.cc.
References _cmd_queue, _octave_qt_link, _workspace_model, command_window, community_news_window, doc_browser_window, editor_window, file_browser_window, find_files_dlg, history_window, release_notes_window, status_bar, and workspace_window.
Definition at line 724 of file main-window.cc.
References _current_directory_combo_box, and set_current_working_directory().
Referenced by construct_tool_bar().
Definition at line 685 of file main-window.cc.
References focus_command_window(), and set_current_working_directory().
Referenced by construct_tool_bar().
|
slot |
Definition at line 667 of file main-window.cc.
References _current_directory_combo_box, file_browser_window, and files_dock_widget::update_octave_directory().
Referenced by construct_octave_qt_link().
|
private |
Definition at line 2089 of file main-window.cc.
Referenced by set_current_working_directory().
Definition at line 714 of file main-window.cc.
References set_current_working_directory().
Referenced by construct_tool_bar().
|
slot |
Definition at line 2248 of file main-window.cc.
References _clipboard.
Referenced by construct_edit_menu().
Definition at line 2032 of file main-window.cc.
References Fclc(), and command_editor::interrupt().
Referenced by handle_clear_command_window_request().
Definition at line 2045 of file main-window.cc.
References Fhistory(), and ovl().
Referenced by handle_clear_history_request().
Definition at line 2007 of file main-window.cc.
References Fclear().
Referenced by handle_clear_workspace_request().
|
slot |
Definition at line 2230 of file main-window.cc.
References _clear_clipboard_action, _clipboard, and _paste_action.
Referenced by construct_edit_menu().
|
protected |
Definition at line 848 of file main-window.cc.
References exit_callback(), and octave_link::post_event().
Definition at line 154 of file main-window.cc.
References command_window, and terminal_dock_widget::has_focus().
Referenced by handle_delete_debugger_pointer_request(), handle_insert_debugger_pointer_request(), and handle_update_breakpoint_marker_request().
Definition at line 2025 of file main-window.cc.
References command_editor::redisplay(), and command_editor::undo().
Referenced by handle_undo_request().
|
slot |
Definition at line 1014 of file main-window.cc.
References handle_create_dialog(), handle_create_filedialog(), handle_create_inputlayout(), handle_create_listview(), and uiwidget_creator.
Referenced by construct().
Definition at line 969 of file main-window.cc.
References octave_dock_widget::connect_visibility_changed(), and dock_widget_list().
Referenced by octave_start_gui().
Definition at line 1130 of file main-window.cc.
References _closing, _workspace_model, command_window, connect_uiwidget_links(), construct_menu_bar(), construct_octave_qt_link(), construct_tool_bar(), construct_warning_bar(), delete_debugger_pointer_signal(), doc_browser_window, editor_window, file_browser_window, find_files(), handle_delete_debugger_pointer_request(), handle_insert_debugger_pointer_request(), handle_load_workspace_request(), handle_update_breakpoint_marker_request(), history_window, insert_debugger_pointer_signal(), notice_settings(), octave_link::post_event(), prepare_to_exit(), resize_command_window_callback(), set_current_working_directory(), set_global_shortcuts(), set_widget_shortcuts_signal(), workspace_view::setModel(), settings_changed(), status_bar, update_breakpoint_marker_signal(), and workspace_window.
Referenced by main_window().
|
private |
Definition at line 1507 of file main-window.cc.
References _debug_continue, _debug_menu, _debug_quit, _debug_step_into, _debug_step_out, _debug_step_over, construct_debug_menu_item(), debug_continue(), file_editor_interface::debug_menu(), debug_quit(), debug_step_into(), debug_step_out(), debug_step_over(), and editor_window.
Referenced by construct_menu_bar().
|
private |
Referenced by construct_debug_menu().
|
private |
Definition at line 1489 of file main-window.cc.
References _debug_menu, file_editor_interface::debug_menu(), editor_window, and file_editor_interface::toolbar().
|
private |
Definition at line 1741 of file main-window.cc.
References doc_browser_window, and open_online_documentation_page().
Referenced by construct_help_menu().
|
private |
Definition at line 1429 of file main-window.cc.
References _clear_clipboard_action, _clipboard, _copy_action, _find_files_action, _paste_action, _undo_action, clear_clipboard(), clipboard_has_changed(), copyClipboard(), find_files(), handle_clear_command_window_request(), handle_clear_history_request(), handle_clear_workspace_request(), and pasteClipboard().
Referenced by construct_menu_bar().
|
private |
Definition at line 1346 of file main-window.cc.
References _exit_action, _open_action, construct_new_menu(), editor_window, file_editor_interface::get_mru_menu(), handle_load_workspace_request(), handle_save_workspace_request(), and process_settings_dialog_request().
Referenced by construct_menu_bar().
Definition at line 1858 of file main-window.cc.
References _gui_info_button, _main_tool_bar, and show_gui_info().
Referenced by construct_warning_bar(), and hide_warning_bar().
|
private |
Definition at line 1693 of file main-window.cc.
References construct_documentation_menu(), open_agora_page(), open_bug_tracker_page(), open_contribute_page(), open_developer_page(), open_octave_packages_page(), and show_about_octave().
Referenced by construct_menu_bar().
Definition at line 1328 of file main-window.cc.
References construct_debug_menu(), construct_edit_menu(), construct_file_menu(), construct_help_menu(), construct_news_menu(), and construct_window_menu().
Referenced by construct().
|
private |
Definition at line 1400 of file main-window.cc.
References _new_function_action, _new_script_action, editor_window, and handle_new_figure_request().
Referenced by construct_file_menu().
|
private |
Definition at line 1759 of file main-window.cc.
References display_release_notes(), and load_and_display_community_news().
Referenced by construct_menu_bar().
Definition at line 1236 of file main-window.cc.
References _octave_qt_link, _workspace_model, change_directory(), command_window, octave_link::connect_link(), delete_debugger_pointer_signal(), editor_window, execute_command_in_terminal(), octave_qt_link::execute_interpreter(), exit(), handle_delete_debugger_pointer_request(), handle_enter_debugger(), handle_exit_debugger(), handle_insert_debugger_pointer_request(), handle_rename_variable_request(), handle_show_doc(), handle_update_breakpoint_marker_request(), history_window, insert_debugger_pointer_signal(), process_settings_dialog_request(), show_doc_signal(), and update_breakpoint_marker_signal().
Referenced by construct().
Definition at line 1938 of file main-window.cc.
References _copy_action, _current_directory_combo_box, _main_tool_bar, _new_script_action, _open_action, _paste_action, _undo_action, accept_directory_line_edit(), browse_for_directory(), change_directory_up(), current_directory_max_count, current_directory_max_visible, current_directory_width, handle_undo_request(), and set_current_working_directory().
Referenced by construct().
Definition at line 1777 of file main-window.cc.
References _warning_bar, box(), construct_gui_info_button(), resource_manager::get_settings(), hide_warning_bar(), and show_gui_info().
Referenced by construct().
|
private |
Definition at line 1567 of file main-window.cc.
References command_window, construct_window_menu_item(), doc_browser_window, editor_window, file_browser_window, history_window, reset_windows(), and workspace_window.
Referenced by construct_menu_bar().
|
private |
Definition at line 1553 of file main-window.cc.
Referenced by construct_window_menu().
Definition at line 976 of file main-window.cc.
References _current_directory_combo_box, and copyClipboard_signal().
Referenced by construct_edit_menu().
Referenced by copyClipboard().
Definition at line 771 of file main-window.cc.
References debug_continue_callback(), and octave_link::post_event().
Referenced by construct_debug_menu().
Definition at line 2095 of file main-window.cc.
References Fdbcont(), and command_editor::interrupt().
Referenced by debug_continue().
Definition at line 795 of file main-window.cc.
References debug_quit_callback(), and octave_link::post_event().
Referenced by construct_debug_menu().
Definition at line 2134 of file main-window.cc.
References Fdbquit(), and command_editor::interrupt().
Referenced by debug_quit().
Definition at line 777 of file main-window.cc.
References debug_step_into_callback(), and octave_link::post_event().
Referenced by construct_debug_menu().
Definition at line 2110 of file main-window.cc.
References Fdbstep(), command_editor::interrupt(), and ovl().
Referenced by debug_step_into().
Definition at line 789 of file main-window.cc.
References debug_step_out_callback(), and octave_link::post_event().
Referenced by construct_debug_menu().
Definition at line 2126 of file main-window.cc.
References Fdbstep(), command_editor::interrupt(), and ovl().
Referenced by debug_step_out().
Definition at line 783 of file main-window.cc.
References debug_step_over_callback(), and octave_link::post_event().
Referenced by construct_debug_menu().
Definition at line 2118 of file main-window.cc.
References Fdbstep(), and command_editor::interrupt().
Referenced by debug_step_over().
Referenced by construct(), construct_octave_qt_link(), and handle_delete_debugger_pointer_request().
|
slot |
Definition at line 497 of file main-window.cc.
References _release_notes_icon, and community_news_window.
Referenced by load_and_display_community_news().
Definition at line 292 of file main-window.cc.
References _release_notes_icon, arg(), release_notes_window, and Voct_etc_dir.
Referenced by construct_news_menu().
|
inlineprivate |
Definition at line 284 of file main-window.h.
References command_window, doc_browser_window, editor_window, file_browser_window, history_window, and workspace_window.
Referenced by connect_visibility_changed(), notice_settings(), and set_window_layout().
|
private |
Definition at line 2051 of file main-window.cc.
References _cmd_processing, _cmd_queue, _cmd_queue_mutex, command_editor::get_current_line(), command_editor::interrupt(), octave_link::post_event(), command_editor::redisplay(), command_editor::replace_line(), and command_editor::set_initial_input().
Referenced by queue_command().
|
slot |
Definition at line 245 of file main-window.cc.
References focus_command_window(), and queue_command().
Referenced by construct_octave_qt_link().
Definition at line 652 of file main-window.cc.
Referenced by construct_octave_qt_link().
|
slot |
Definition at line 2148 of file main-window.cc.
References file_browser_window, find_files_dlg, find_files_finished(), open_file(), and find_files_dialog::set_search_dir().
Referenced by construct(), and construct_edit_menu().
Definition at line 2180 of file main-window.cc.
Referenced by find_files().
Definition at line 160 of file main-window.cc.
References command_window, and terminal_dock_widget::focus().
Referenced by browse_for_directory(), execute_command_in_terminal(), handle_delete_debugger_pointer_request(), handle_insert_debugger_pointer_request(), handle_update_breakpoint_marker_request(), and octave_start_gui().
Definition at line 233 of file main-window.cc.
References clear_command_window_callback(), and octave_link::post_event().
Referenced by construct_edit_menu().
Definition at line 239 of file main-window.cc.
References clear_history_callback(), and octave_link::post_event().
Referenced by construct_edit_menu().
Definition at line 210 of file main-window.cc.
References clear_workspace_callback(), and octave_link::post_event().
Referenced by construct_edit_menu().
|
slot |
Definition at line 1064 of file main-window.cc.
Referenced by connect_uiwidget_links().
|
slot |
Definition at line 1115 of file main-window.cc.
Referenced by connect_uiwidget_links().
|
slot |
Definition at line 1101 of file main-window.cc.
Referenced by connect_uiwidget_links().
|
slot |
Definition at line 1081 of file main-window.cc.
Referenced by connect_uiwidget_links().
Definition at line 813 of file main-window.cc.
References command_window_has_focus(), delete_debugger_pointer_signal(), and focus_command_window().
Referenced by construct(), and construct_octave_qt_link().
Definition at line 739 of file main-window.cc.
References _debug_continue, _debug_quit, _debug_step_into, _debug_step_out, _debug_step_over, editor_window, and file_editor_interface::handle_enter_debug_mode().
Referenced by construct_octave_qt_link().
Definition at line 755 of file main-window.cc.
References _debug_continue, _debug_quit, _debug_step_into, _debug_step_out, _debug_step_over, editor_window, and file_editor_interface::handle_exit_debug_mode().
Referenced by construct_octave_qt_link().
Definition at line 801 of file main-window.cc.
References command_window_has_focus(), focus_command_window(), and insert_debugger_pointer_signal().
Referenced by construct(), and construct_octave_qt_link().
|
slot |
Definition at line 196 of file main-window.cc.
References load_workspace_callback(), and octave_link::post_event().
Referenced by construct(), and construct_file_menu().
Definition at line 280 of file main-window.cc.
References new_figure_callback(), and octave_link::post_event().
Referenced by construct_new_menu().
|
slot |
Definition at line 216 of file main-window.cc.
References names(), octave_link::post_event(), and rename_variable_callback().
Referenced by construct_octave_qt_link().
Definition at line 184 of file main-window.cc.
References octave_link::post_event(), and save_workspace_callback().
Referenced by construct_file_menu().
|
slot |
Definition at line 2223 of file main-window.cc.
References doc_browser_window, and show_doc_signal().
Referenced by construct_octave_qt_link().
Definition at line 227 of file main-window.cc.
References command_window_undo_callback(), and octave_link::post_event().
Referenced by construct_tool_bar().
|
slot |
Definition at line 825 of file main-window.cc.
References command_window_has_focus(), focus_command_window(), and update_breakpoint_marker_signal().
Referenced by construct(), and construct_octave_qt_link().
Definition at line 1874 of file main-window.cc.
References _warning_bar, construct_gui_info_button(), and resource_manager::get_settings().
Referenced by construct_warning_bar().
Referenced by construct(), construct_octave_qt_link(), and handle_insert_debugger_pointer_request().
Definition at line 461 of file main-window.cc.
References display_community_news(), and resource_manager::get_settings().
Referenced by construct_news_menu(), and main_window().
|
private |
Definition at line 1999 of file main-window.cc.
References Fload(), ovl(), octave_link::set_workspace(), and symbol_table::workspace_info().
Referenced by handle_load_workspace_request().
Definition at line 2082 of file main-window.cc.
References Fbuiltin(), Fdrawnow(), and ovl().
Referenced by handle_new_figure_request().
|
slot |
Definition at line 166 of file main-window.cc.
References new_file_signal().
|
signal |
Referenced by new_file().
|
slot |
Definition at line 581 of file main-window.cc.
References _main_tool_bar, _release_notes_icon, dock_widget_list(), and resource_manager::update_network_settings().
Referenced by construct().
Definition at line 547 of file main-window.cc.
Referenced by construct_help_menu().
Definition at line 535 of file main-window.cc.
Referenced by construct_help_menu().
Definition at line 553 of file main-window.cc.
Referenced by construct_help_menu().
Definition at line 559 of file main-window.cc.
Referenced by construct_help_menu().
|
slot |
Definition at line 172 of file main-window.cc.
References open_file_signal().
Referenced by find_files().
|
signal |
Referenced by open_file().
Definition at line 541 of file main-window.cc.
Referenced by construct_help_menu().
Definition at line 286 of file main-window.cc.
Referenced by construct_documentation_menu().
Definition at line 992 of file main-window.cc.
References _current_directory_combo_box, and pasteClipboard_signal().
Referenced by construct_edit_menu().
Referenced by pasteClipboard().
Definition at line 646 of file main-window.cc.
References write_settings().
Referenced by construct().
|
slot |
Definition at line 565 of file main-window.cc.
References resource_manager::get_settings(), settings_changed(), and settings_dialog::write_changed_settings().
Referenced by construct_file_menu(), and construct_octave_qt_link().
|
private |
Definition at line 269 of file main-window.cc.
References _cmd_processing, _cmd_queue, _cmd_queue_mutex, execute_command_callback(), and octave_link::post_event().
Referenced by execute_command_in_terminal(), and run_file_callback().
Definition at line 855 of file main-window.cc.
References _current_directory_combo_box, resource_manager::get_settings(), set_window_layout(), and settings_changed().
Referenced by octave_start_gui().
Definition at line 2013 of file main-window.cc.
References symbol_table::rename(), octave_link::set_workspace(), and symbol_table::workspace_info().
Referenced by handle_rename_variable_request().
|
slot |
Definition at line 178 of file main-window.cc.
References status_bar.
Definition at line 658 of file main-window.cc.
References resource_manager::get_default_settings(), and set_window_layout().
Referenced by construct_window_menu().
Definition at line 2039 of file main-window.cc.
References command_editor::resize_terminal().
Referenced by construct().
|
private |
Definition at line 258 of file main-window.cc.
References octave_qt_link::file_in_path(), and queue_command().
Referenced by run_file_in_terminal().
|
slot |
Definition at line 252 of file main-window.cc.
References octave_link::post_event(), and run_file_callback().
|
private |
Definition at line 1993 of file main-window.cc.
References Fsave(), and ovl().
Referenced by handle_save_workspace_request().
|
slot |
Definition at line 700 of file main-window.cc.
References change_directory_callback(), and octave_link::post_event().
Referenced by accept_directory_line_edit(), browse_for_directory(), change_directory_up(), construct(), and construct_tool_bar().
Definition at line 2186 of file main-window.cc.
References _exit_action, _find_files_action, _new_function_action, _new_script_action, _open_action, and set_widget_shortcuts_signal().
Referenced by construct().
Referenced by construct(), and set_global_shortcuts().
|
slot |
Definition at line 878 of file main-window.cc.
References dock_widget_list(), octave_dock_widget::make_widget(), and octave_dock_widget::make_window().
Referenced by read_settings(), and reset_windows().
|
signal |
Referenced by construct(), process_settings_dialog_request(), and read_settings().
Definition at line 838 of file main-window.cc.
References message(), and octave_name_version_copyright_copying_warranty_and_bugs().
Referenced by construct_help_menu().
|
signal |
Referenced by construct_octave_qt_link(), and handle_show_doc().
Definition at line 1891 of file main-window.cc.
Referenced by construct_gui_info_button(), and construct_warning_bar().
|
signal |
Referenced by construct(), construct_octave_qt_link(), and handle_update_breakpoint_marker_request().
Definition at line 944 of file main-window.cc.
References _current_directory_combo_box, and resource_manager::get_settings().
Referenced by prepare_to_exit().
|
private |
Definition at line 319 of file main-window.h.
Referenced by clipboard_has_changed(), and construct_edit_menu().
|
private |
Definition at line 342 of file main-window.h.
Referenced by clear_clipboard(), clipboard_has_changed(), and construct_edit_menu().
|
private |
Definition at line 345 of file main-window.h.
Referenced by construct().
|
private |
Definition at line 349 of file main-window.h.
Referenced by execute_command_callback(), and queue_command().
|
private |
Definition at line 348 of file main-window.h.
Referenced by execute_command_callback(), queue_command(), and ~main_window().
|
private |
Definition at line 350 of file main-window.h.
Referenced by execute_command_callback(), and queue_command().
|
private |
Definition at line 317 of file main-window.h.
Referenced by construct_edit_menu(), and construct_tool_bar().
|
private |
Definition at line 326 of file main-window.h.
Referenced by accept_directory_line_edit(), change_directory(), construct_tool_bar(), copyClipboard(), pasteClipboard(), read_settings(), and write_settings().
|
private |
Definition at line 330 of file main-window.h.
|
private |
Definition at line 307 of file main-window.h.
Referenced by construct_debug_menu(), handle_enter_debugger(), and handle_exit_debugger().
|
private |
Definition at line 305 of file main-window.h.
Referenced by construct_debug_menu(), and construct_debug_menu_item().
|
private |
Definition at line 311 of file main-window.h.
Referenced by construct_debug_menu(), handle_enter_debugger(), and handle_exit_debugger().
|
private |
Definition at line 308 of file main-window.h.
Referenced by construct_debug_menu(), handle_enter_debugger(), and handle_exit_debugger().
|
private |
Definition at line 310 of file main-window.h.
Referenced by construct_debug_menu(), handle_enter_debugger(), and handle_exit_debugger().
|
private |
Definition at line 309 of file main-window.h.
Referenced by construct_debug_menu(), handle_enter_debugger(), and handle_exit_debugger().
|
private |
Definition at line 323 of file main-window.h.
Referenced by construct_file_menu(), and set_global_shortcuts().
|
private |
Definition at line 322 of file main-window.h.
Referenced by construct_edit_menu(), and set_global_shortcuts().
|
private |
Definition at line 303 of file main-window.h.
Referenced by construct_gui_info_button().
|
private |
Definition at line 300 of file main-window.h.
Referenced by construct_gui_info_button(), construct_tool_bar(), and notice_settings().
|
private |
Definition at line 314 of file main-window.h.
Referenced by construct_new_menu(), and set_global_shortcuts().
|
private |
Definition at line 313 of file main-window.h.
Referenced by construct_new_menu(), construct_tool_bar(), and set_global_shortcuts().
|
private |
Definition at line 340 of file main-window.h.
Referenced by construct_octave_qt_link(), and ~main_window().
|
private |
Definition at line 315 of file main-window.h.
Referenced by construct_file_menu(), construct_tool_bar(), and set_global_shortcuts().
|
private |
Definition at line 318 of file main-window.h.
Referenced by clipboard_has_changed(), construct_edit_menu(), and construct_tool_bar().
|
private |
Definition at line 298 of file main-window.h.
Referenced by display_community_news(), display_release_notes(), and notice_settings().
|
private |
Definition at line 320 of file main-window.h.
Referenced by construct_edit_menu(), and construct_tool_bar().
|
private |
Definition at line 302 of file main-window.h.
Referenced by construct_warning_bar(), and hide_warning_bar().
|
private |
Definition at line 272 of file main-window.h.
Referenced by construct(), construct_octave_qt_link(), and ~main_window().
|
private |
Definition at line 278 of file main-window.h.
Referenced by command_window_has_focus(), construct(), construct_octave_qt_link(), construct_window_menu(), dock_widget_list(), focus_command_window(), and ~main_window().
|
private |
Definition at line 338 of file main-window.h.
Referenced by display_community_news(), and ~main_window().
|
staticprivate |
Definition at line 329 of file main-window.h.
Referenced by construct_tool_bar().
|
staticprivate |
Definition at line 328 of file main-window.h.
Referenced by construct_tool_bar().
|
staticprivate |
Definition at line 327 of file main-window.h.
Referenced by construct_tool_bar().
|
private |
Definition at line 281 of file main-window.h.
Referenced by construct(), construct_documentation_menu(), construct_window_menu(), dock_widget_list(), handle_show_doc(), and ~main_window().
|
private |
Definition at line 282 of file main-window.h.
Referenced by construct(), construct_debug_menu(), construct_debug_menu_item(), construct_file_menu(), construct_new_menu(), construct_octave_qt_link(), construct_window_menu(), dock_widget_list(), handle_enter_debugger(), handle_exit_debugger(), and ~main_window().
|
private |
Definition at line 280 of file main-window.h.
Referenced by change_directory(), construct(), construct_window_menu(), dock_widget_list(), find_files(), and ~main_window().
|
private |
Definition at line 333 of file main-window.h.
Referenced by find_files(), and ~main_window().
|
private |
Definition at line 279 of file main-window.h.
Referenced by construct(), construct_octave_qt_link(), construct_window_menu(), dock_widget_list(), and ~main_window().
|
private |
Definition at line 336 of file main-window.h.
Referenced by display_release_notes(), and ~main_window().
|
private |
Definition at line 275 of file main-window.h.
Referenced by construct(), report_status_message(), and ~main_window().
|
private |
Definition at line 283 of file main-window.h.
Referenced by construct(), construct_window_menu(), dock_widget_list(), and ~main_window().