enthought/enaml — pull request #137 by sccolbert (2012-04-05 17:49:15+00:00)
Title: Dock area

This adds support for basic dock panes in Enaml (on Qt only at the moment).

Summary of changes:

* On a `MainWindow` component, a menu bar is now specified by assigning an instance of `MenuBar` to the `menu_bar` attribute. Defining a menu bar as a child of the window is no longer allowed.
* On a `MainWindow` component, dock panes can be specified by assigning a `DockManager` instance to the `dock_manager` attribute. The `DockManager` constructor accepts `DockPane` instances as `*args`. A `DockPane` has attributes controlling its various features. A `DockPane` must have exactly one child which is the contents of the pane. This will normally be a `Container` but any `WidgetComponent` subclass will do.
* A `MainWindow` allocates enough size for its menu bar, dock panes, and central widget. The minimum size of the central widget will control the minimum size of the `MainWindow`. If the `minimum_size` attribute of the `MainWindow`