Remove panning code from Viewer.

This code is now in ZoomableView.
Fix some compiler warnings in Viewer.
Remove unnused method in DataSheet.