diff libgui/src/files-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 3207f1d62e74
children
line wrap: on
line diff
--- a/libgui/src/files-dockwidget.cc	Sun Apr 07 04:14:31 2013 -0400
+++ b/libgui/src/files-dockwidget.cc	Sun Apr 07 04:29:10 2013 -0400
@@ -47,6 +47,12 @@
 
   setWidget (container);
 
+  connect (this, SIGNAL (open_file (const QString&)),
+           parent (), SLOT (open_file (const QString&)));
+
+  connect (this, SIGNAL (displayed_directory_changed (const QString&)),
+           parent (), SLOT (set_current_working_directory (const QString&)));
+
   // Create a toolbar
   _navigation_tool_bar = new QToolBar ("", container);
   _navigation_tool_bar->setAllowedAreas (Qt::TopToolBarArea);