[haiku-commits] Re: haiku: hrev48957 - data/artwork/icons src/kits/tracker

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 30 Mar 2015 09:38:56 +0200

Hi,

Am 30.03.2015 um 08:15 schrieb Adrien Destugues:
> Augustin wrote:
Changing this many lines of code to add a single boolean preference
is absolutely insane. We need a new preference-tracking system, and
one that can be reused in other applications, too.

We do have a BSettingsMessage class or something similar already (I
don't remember the exact name), which handles defaults/revert and
saving to a settings file. I think it doesn't handle sending
notifications to an app with StartWatching/SendNotices, but this
could be added to it.

A framework which generates the UI for a given model would be nice. It's not easy to make such an API and still offer lots of flexibility to influence the generated UI, but I think Augustin is absolutely right: way too much code has to be written, especially for these simple cases.

Best regards,
-Stephan


Other related posts: