diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-03-28 22:05:25 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-03-29 02:40:33 -0400 |
commit | 91d2a714f7e1e601bac462a225c9be6266f45066 (patch) | |
tree | 930919fc71f81dbb104dbdd712682234662153e6 /src/controllers/dlgprefcontroller.h | |
parent | 359864e6e00b0864f71f85bb6a68e829d1755e64 (diff) |
Re-work the interaction between preference pages, the preference dialog and controller manager.
* Make input/output table models mutate the preset and load it to the controller
on apply.
* Reset changes since the last apply on a cancel.
* Add an Apply button to the controller preference pages until we can get a
global apply button.
Diffstat (limited to 'src/controllers/dlgprefcontroller.h')
-rw-r--r-- | src/controllers/dlgprefcontroller.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/controllers/dlgprefcontroller.h b/src/controllers/dlgprefcontroller.h index cce7f88218..0c0bd35296 100644 --- a/src/controllers/dlgprefcontroller.h +++ b/src/controllers/dlgprefcontroller.h @@ -33,16 +33,18 @@ class DlgPrefController : public DlgPreferencePage { virtual ~DlgPrefController(); public slots: - // Called when the OK button is pressed. + // Called when we should apply / save our changes. void slotApply(); - // Called when the dialog is displayed. + // Called when we should cancel the changes made. + void slotCancel(); + // Called when preference dialog (not this dialog) is displayed. void slotUpdate(); // Called when the user toggles the enabled checkbox. void slotEnableDevice(bool enable); // Called when the user selects a preset from the combobox. void slotLoadPreset(int index); // Mark that we need to apply the settings. - void slotDirty (); + void slotDirty(); // Reload the mappings in the dropdown dialog void enumeratePresets(); @@ -51,8 +53,7 @@ class DlgPrefController : public DlgPreferencePage { void openController(Controller* pController); void closeController(Controller* pController); void loadPreset(Controller* pController, QString controllerName, bool force); - void clearInputs(); - void clearOutputs(); + void loadPreset(Controller* pController, ControllerPresetPointer pPreset); void mappingStarted(); void mappingEnded();; |