Rev 4990  of the trunk contains many important simplifications, some
of which I have wanted to do for years. All unit tests pass, pylint is
happy, and so am I.

This code should be safe enough, but as always, please report any
problems immediately.

>From the checking log:

QQQQQ
Global changes:

- Removed new_init and new_ctor switches.
- Removed many bits of commented out code.
- Made the guiName argument to the nullGui optional,
  and removed the default name ('nullGui') from all calls.
- Moved all calls to c.config.get from finishCreate methods to the
ctors.

leoApp.py:

- g.newCommander now simply imports leo.core.leoCommands and calls the
ctor.
  This is an extremely important simplification of Leo's startup code.

- g.newCommander now simply returns c, not (c,c.frame).
  This has been bugging me for years.

- Replaced g.app.computeWindowTitle with c.computeWindowTitle.

- Renamed newLeoCommanderAndFrame to newCommander.
  Removed the initEditCommanders and updateRecentFiles args.
  The g.app.initing flag replaces the args, where it is needed.

leoFileCommands.py:

- Removed a very ugly recent piece of code required by the now-defunct
  5-Phase load in g.openWithFileName.

leoFrame.py and qtGui.py:

- Added a c arg to the leoFrame class and subclasses.
  This removes several wretched hacks that set frame.c after c had
been created!
  This is possible only because c.__init__ now creates all frames.

leoGlobals.py:

- Removed the recent muck from g.openWithFileName.

leoKeys.py:

- Removed the never-used useGlobalKillbuffer & useGlobalRegisters
ivars
  and related code.

leoMenu.py:

- Simplified the ctor and finishCreate methods.

QQQQQ

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