History log of /haiku/src/apps/deskbar/BarSettings.h
Revision Date Author Comments
# ee78e4de 13-Apr-2013 John Scipione <jscipione@gmail.com>

Convert state variable from a uint32 to an int32


# 43917ef2 08-Mar-2013 John Scipione <jscipione@gmail.com>

Refactor settings so that defaults get set in 1 place.

* Move desk_settings and clock_settings struct to a new header entitled
'BarSettings.h' so it can be included in BarApp.h and PreferencesWindow.h.
* Refactor desk_settings to only include used, or at least relevant settings,
some cruft had built up over time.
* Refactor the InitSettings() method, all the B_OK checking wasn't working so
I removed it. Defaults get set up to and if the corresponding setting is
found in the settings file it is replaced, else, it is not.
* Reorder the struct and code so it goes in the order that the settings appear:
applications, then recent items, then window settings.
* Simplify the preferences window revert and defaults code based on using the
prebuild desk_settings structs in BarApp instead of creating our own and
copying. All initial setup is in the constructor.


# ee78e4de9f1ee2293d9e1c4b8b44db1bcf981530 13-Apr-2013 John Scipione <jscipione@gmail.com>

Convert state variable from a uint32 to an int32


# 43917ef2e0654197d1d98dc0ed50095f6c813d7a 08-Mar-2013 John Scipione <jscipione@gmail.com>

Refactor settings so that defaults get set in 1 place.

* Move desk_settings and clock_settings struct to a new header entitled
'BarSettings.h' so it can be included in BarApp.h and PreferencesWindow.h.
* Refactor desk_settings to only include used, or at least relevant settings,
some cruft had built up over time.
* Refactor the InitSettings() method, all the B_OK checking wasn't working so
I removed it. Defaults get set up to and if the corresponding setting is
found in the settings file it is replaced, else, it is not.
* Reorder the struct and code so it goes in the order that the settings appear:
applications, then recent items, then window settings.
* Simplify the preferences window revert and defaults code based on using the
prebuild desk_settings structs in BarApp instead of creating our own and
copying. All initial setup is in the constructor.