Mercurial > hg > octave-nkf
diff libgui/src/terminal-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 | 4b3a4bf8569b |
children |
line wrap: on
line diff
--- a/libgui/src/terminal-dockwidget.cc +++ b/libgui/src/terminal-dockwidget.cc @@ -38,9 +38,15 @@ setWindowTitle (tr ("Command Window")); setWidget (&terminal); + connect (parent (), SIGNAL (settings_changed (const QSettings *)), + this, SLOT (notice_settings (const QSettings *))); + connect (this, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_visibility (bool))); + connect (parent (), SIGNAL (relay_command_signal (const QString&)), + this, SLOT (relay_command (const QString&))); + // topLevelChanged is emitted when floating property changes (floating // = true) connect (this, SIGNAL (topLevelChanged (bool)),