Adding apply/discard/reset functionality to settings dialog

This commit is contained in:
Dan Paulat 2022-12-22 00:16:59 -06:00
parent a6974e31a2
commit 87f611e026
10 changed files with 276 additions and 13 deletions

View file

@ -61,6 +61,11 @@ public:
*/
void SetValueToDefault() override;
/**
* Stages the default value of the settings variable.
*/
void StageDefault() override;
/**
* Sets the staged value of the settings variable.
*
@ -73,8 +78,11 @@ public:
/**
* Sets the current value of the settings variable to the staged value.
*
* @return true if the staged value was committed, false if no staged value
* is present.
*/
void Commit();
bool Commit();
/**
* Clears the staged value of the settings variable.