Mercurial > octave
diff libgui/src/settings-dialog.h @ 19631:4e85ca0b4887 gui-release
add apply button to the settings dialog (bug #44081)
* main-window.cc (process_settings_dialog_request) connect signal for
applying the changes, settings dialog is non modal now;
(request_reload_settings): new slot for siganl from settings dialog when
when apply button was clicked
* main-window .h: new slot request_reload_settings
* settings-dialog.cc (constructor): connect signal when button box is clicked
to the new slot button_clicked;
(button_clicked): new slot
* settings-dialog.h: new signal and related slot
* settings-dialog.ui: new applay button
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 25 Jan 2015 12:22:48 +0100 |
parents | d93293218966 |
children | 101ce4eaa56c |
line wrap: on
line diff
--- a/libgui/src/settings-dialog.h Sat Jan 24 22:46:20 2015 +0100 +++ b/libgui/src/settings-dialog.h Sun Jan 25 12:22:48 2015 +0100 @@ -46,12 +46,18 @@ ~settings_dialog (); void write_changed_settings (); +signals: + void apply_new_settings (); + private slots: void get_octave_dir (); void get_file_browser_dir (); void get_dir (QLineEdit*, const QString&); void set_disabled_pref_file_browser_dir (bool disable); + // slots for dialog's buttons + void button_clicked (QAbstractButton *button); + // slots for import/export-buttons of shortcut sets void import_shortcut_set1 (); void export_shortcut_set1 ();