Request for Changes-20: Take screenshot
Contents
[Request for Changes - 20] Take screenshot
Status
- Author: Stéphane ALBERT
- Additional Contributors: none
- Submitted on 14/01/2016
- Voted :
- Proposed target release : 5.4
- Merged : http://git.orfeo-toolbox.org/otb.git/commit/
- Branch :
Summary
This RFC consists in implementing a 'Save screenshot' feature in Monteverdi and factorize the Qt-independent code in the OTB-Ice library.
Rationale
Ease screenshot capture for users.
Implementation details
Classes and files
OTB-Ice:
M Code/otbGlView.cxx M Code/otbGlView.h
otb::GlView::SaveScreenshot( const std::string & filename ) const
has been added.
Monteverdi:
M Code/Application/Monteverdi/mvdMainWindow.cxx M Code/Application/Monteverdi/mvdMainWindow.h M Code/Application/Monteverdi/mvdMainWindow.qrc M Code/Application/Monteverdi/mvdMainWindow.ui M Code/Common/Gui/mvdAbstractImageViewRenderer.h M Code/Common/Gui/mvdImageViewManipulator.cxx M Code/Common/Gui/mvdImageViewManipulator.h M Code/Common/Gui/mvdImageViewRenderer.cxx M Code/Common/Gui/mvdImageViewRenderer.h M Code/Common/Gui/mvdImageViewWidget.cxx M Code/Common/Gui/mvdImageViewWidget.h A Data/Icons/image-export_24x24.png
A CTRL+P
keyboard shortcut signal has been added to mvd::ImageViewManipulator
. It has been slotted in mvd::ImageViewWidget
and otb::GlView::SaveScreen()
has been interfaced in mvd::ImageViewRenderer
.
A 'Save screenshot' button has been added to the render tool-bar.
Applications
N/A
Tests
N/A
Documentation
Use the CTRL+P
keyboard shortcut from image-view (if it has focus, otherwise set focus to it by clicking into the image-view) or the 'Save screenshot' image button of the render tool-bar. A save file selection dialog will be openened in order for the user to selection the target file of the screenshot. Exceptions are caught and displayed in a pop-up dialog, is any.
Additional notes
N/A