The attached patch modifies main view so that it can be reused as viewports -- viewports in which you can manipulate objects as in main view.
The following key combinations apply to both main view and viewports :
1) Ctrl-Right-Click on a tile : Opens a new viewport, centred on that tile
2) Shift-Right-Click on a tile : The current viewport (or main view) will follow any convoy on that tile
3) Ctrl+Shift-Right-Click on a tile : Check if a convoy is on that tile; if yes, open a new viewport and follow that convoy
You can also spawn a new viewport by Ctrl-Right-Clicking on any "old", static viewport.
There are 2 buttons in the upper left corner of the viewport. The first one will recenter the main view. The second one toggles between rezooming and fixed scale. The button images are not good -- those are drawn by me for the sake of testing only. (If this patch can go into the trunk, I hope that some master Simutrans painter can draw better ones.

)
The viewports are also visible in the minimap. The main view is still shown with a yellow bounding box, while other viewports are shown with light purple bounding boxes.
I have compiled an
unofficial Windows GDI version for those who want to test without dealing with the code, but please bear in mind that there may be bugs. Also included in the zip file is a .pak file which contains the button images which are required to load Simutrans without error (please place it in your pakset folder).
us (site down, do not visit) ]/files/get/5pGFAgk8gE/viewport-test.zip]http://files.[ simutrans [dot] us (site down, do not visit) ]/files/get/5pGFAgk8gE/viewport-test.zipTesting, comments and bug reports are welcome
