On Mon, 24 Aug 2015 09:21:36 -0500
"Edward K. Ream" <[email protected]> wrote:
[snip]
> > Again, wordy, but I think easy enough to understand.
>
> I agree. And even if the user hits "cancel", they now have know
> what's available and where.
Right, I think this menu based setting editing which tells you what
it's doing and why very quickly empowers the user to understand how to
do it themselves.
> Note "Reload settings" isn't working as effectively as I think it
> > should, that may need to be addressed as well. Unrelated to the new
> > code.
>
> Reload settings is going to be a project, for several reasons. Many
> classes cache settings so they don't have to keep calling
> c.config.getX. This is/was purely an abbreviation, but caching a
> setting means that it's impossible to change the setting. Going
> through the code an replacing the abbreviations with "dynamic" calls
> to c.config.getX isn't rocked science, it's merely tedious and
> perhaps error prone.
I was really only referring to Reload settings to see appearance
changes, which I think should work. I thought it used to work,
although checkout some old revisions didn't hit a point where it did.
Maybe it's just not rebuilding / re-applying the stylesheet when it
should.
Certainly a lot of classes cache settings, I've done it often enough
when I'm concerned that the code is heavily used in UI updates etc. and
self.some_int seems faster than self.c.config.getInt('some_int'),
although in reality the difference may not be important.
Cheers -Terry
> > So, this isn't a silver bullet for the newbie setting editing woes,
> > but it does eliminate a lot of the Leo specific knowledge required
> > (apart from "edit a headline"). Also this new approach can be
> > developed further based on feedback, just wanted to get what I had
> > so far into the main branch for testing etc.
>
> I approve. It's a reasonable middle ground. Imo, it's better
> than .ini files (not Leonine) or gui-based ways to change settings.
> 5 or 10 years ago I played around with such a thing. It will never
> be a good idea.
>
> Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.