Mercurial > octave-nkf
diff libgui/src/main-window.cc @ 17676:c060ad097056
add menu entries to the editor for directly accessing the editor's settings
* settings-dialog.ui: tabs with self explaining names
* settings-dialog.cc(constructor): name of desired tab as new parameter,
open the last or desired tab depending on this parameter;
(destructor, write_lexer_settings): update to new tab names
* settings-dialog.h: new parameter in constructor
* main-window.cc(process_settings_dialog_request): name of desired tab as new
parameter, settings-dialog is created with this parameter
* main-window.h: new parameter for process_settings_dialog_request
* file-editor.cc(request_preferences,request_styles_preferences): new slots
emtting a new signal for opening the settings dialog via the main window;
(construct): new actions for opening the editor and editor styles settings
* file-editor.h: new actions, related slots and signal for main window
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 17 Oct 2013 20:29:17 +0200 |
parents | dd125b5e8090 |
children | 65544374c1cf |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Thu Oct 17 10:44:36 2013 -0700 +++ b/libgui/src/main-window.cc Thu Oct 17 20:29:17 2013 +0200 @@ -306,9 +306,9 @@ } void -main_window::process_settings_dialog_request (void) +main_window::process_settings_dialog_request (const QString& desired_tab) { - settings_dialog *settingsDialog = new settings_dialog (this); + settings_dialog *settingsDialog = new settings_dialog (this, desired_tab); int change_settings = settingsDialog->exec (); if (change_settings == QDialog::Accepted) {