On Feb 14, 6:29 am, "Edward K. Ream" <[email protected]> wrote:

> I am working on two tracks: development of the LoadManager class and work (in 
> Leo's existing code base) that will eventually result in reading Leo files 
> only once.

> This will be a bit tricky if the **standard settings files** (leoSettings.leo 
> or myLeoSettings.leo) appear in the list of files to be loaded.

The simplest thing that could possibly work is to *reread*
leoSettings.leo or myLeoSettings.leo if they appear on the command
line, that is, if Leo is going to create a window for these files.
Leo will load files in two phases:

Phase 1: Load the standard settings files (using a nullGui).

The LoadManager will remember the created commander and the resulting
settings dictionaries.

Phase 2: Load all files on the command line (using the Qt Gui).

For each file on the command line (*including* standard settings files
if they appear there) the LoadManager will merge the global settings
computed in Phase 1 with the local settings.

To make this work, we need only ensure that calls to config.getX
happen after local settings have been computed.  To do this, we'll
enforce the rule that all calls to config.getX happen in the
finishCreate method or at some later time, not in any ctor.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to