mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add preview mode to multi plots
* Apply margins matching the Page Layout so the plot is a preview of the PDF output * Currently not a user setting, just switched off for plots based on MultiPlotPage and on for plots based on MultiPlotWindow
This commit is contained in:
@@ -465,6 +465,18 @@ bool RimMultiPlotWindow::acceptDrops() const
|
||||
return m_acceptDrops;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimMultiPlotWindow::previewModeEnabled() const
|
||||
{
|
||||
if ( m_viewer )
|
||||
{
|
||||
return m_viewer->previewModeEnabled();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -103,6 +103,8 @@ public:
|
||||
void setAcceptDrops( bool acceptDrops );
|
||||
bool acceptDrops() const;
|
||||
|
||||
bool previewModeEnabled() const;
|
||||
|
||||
protected:
|
||||
QImage snapshotWindowContent() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user