comparison libgui/src/m-editor/file-editor.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 10edb6f1ae98
comparison
equal deleted inserted replaced
16454:246d25c8761b 16455:38ed6bdd1f7f
798 vbox_layout->addWidget (_tool_bar); 798 vbox_layout->addWidget (_tool_bar);
799 vbox_layout->addWidget (_tab_widget); 799 vbox_layout->addWidget (_tab_widget);
800 vbox_layout->setMargin (0); 800 vbox_layout->setMargin (0);
801 editor_widget->setLayout (vbox_layout); 801 editor_widget->setLayout (vbox_layout);
802 setWidget (editor_widget); 802 setWidget (editor_widget);
803
804 connect (parent (), SIGNAL (settings_changed (const QSettings *)),
805 this, SLOT (notice_settings (const QSettings *)));
803 806
804 connect (new_action, 807 connect (new_action,
805 SIGNAL (triggered ()), this, SLOT (request_new_file ())); 808 SIGNAL (triggered ()), this, SLOT (request_new_file ()));
806 connect (open_action, 809 connect (open_action,
807 SIGNAL (triggered ()), this, SLOT (request_open_file ())); 810 SIGNAL (triggered ()), this, SLOT (request_open_file ()));