Before, on current layer change it would switch to undo stack
of freshly activated layer, ignoring the layer set in the combo box
(and the undo stack it switched to was the one for editing)
Clean up API. Remove QgsPanelWidgetPage - no longer needed
QgsPanelWidgetStack widget manages back button and breadcrumb.
QgsPanelWidget manages state of active widget.
The reason for removing instances of "#include <QtGui>" is twofold:
1) Including it will probably include more than is actually needed. Plus,
it hide what is actually needed, especially if in a header
2) Qt 5 splits Gui into Gui and Widgets, so being explict about what is
needed gets around this problem
- Allows for any number of undo/redo commands with only one refresh
- Significantly decreases time needed to cancel or redo many edits
- Disable undo/redo dock's widgets and toolbar actions when layer not in editing mode
There are undo/redo actions in Edit menu, in Advanced digitizing toolbar
and there is a new dock widget displaying undo stack of active layer.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10921 c8812cc2-4d05-0410-92ff-de0c093fc19c