Mercurial > hg > octave-nkf
diff libgui/src/history-dockwidget.cc @ 16455:38ed6bdd1f7f
move signal/slot connections from main window to sub window where possible
* main-window.cc (main_window::construct): Move the following
signal/slot connections to their respective sub-windows.
main_window::settings_changed to _file_editor::notice_settings.
main_window::settings_changed to command_window::notice_settings.
main_window::settings_changed to
file_browser_window::notice_settings.
file_browser_window::open_file to main_window::open_file.
file_browser_window::displayed_directory_changed to
main_window::set_current_working_directory.
main_window::relay_command_signal to command_window::relay_command.
history_window::command_create_script to main_window::new_file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 07 Apr 2013 04:29:10 -0400 |
parents | 744ff2fe11ce |
children |
line wrap: on
line diff
--- a/libgui/src/history-dockwidget.cc +++ b/libgui/src/history-dockwidget.cc @@ -41,8 +41,11 @@ setObjectName ("HistoryDockWidget"); setStatusTip (tr ("Browse and search the command history.")); - connect (this, SIGNAL (information (QString)), - p, SLOT (report_status_message (QString))); + connect (this, SIGNAL (command_create_script (const QString&)), + p, SLOT (new_file (const QString&))); + + connect (this, SIGNAL (information (const QString&)), + p, SLOT (report_status_message (const QString&))); connect (this, SIGNAL (command_double_clicked (const QString&)), p, SLOT (handle_command_double_clicked (const QString&)));