Merged the data and calculation windows
Code cleanup and minor gui fix
- Moved the 3d resolution settings to the toolbar
- Added the local bulb preferences
- Code clean up
- Removed old code
- Fixed compilation warning