mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Implement pdf rendering (#5250)
* First PDF creation support * Reimplement info box * Set title and make overlay frame margins more unified * Remove a style sheet that was never meant to be applied to Project Tree * Update RiuDraggableOverlayFrame when changing content * Default page layout in Preferences * undo removal of elision * Remove friend class assignment in cafCategoryMapper * the required methods have been made public * Fix up after review * Remove spurious const on by-value return * Fix compile errors on Linux * Fix size adjustment of legends with plot resizing
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include "cafPdmFieldHandle.h"
|
||||
#include "cafPdmObject.h"
|
||||
|
||||
#include <QPageLayout>
|
||||
|
||||
class RimProject;
|
||||
|
||||
class QwtPlotCurve;
|
||||
@@ -57,6 +59,9 @@ public:
|
||||
void updateLayout();
|
||||
void updateParentLayout();
|
||||
|
||||
void renderWindowContent( QPainter* painter );
|
||||
QPageLayout pageLayout() const;
|
||||
|
||||
protected:
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
@@ -69,6 +74,8 @@ protected:
|
||||
|
||||
private:
|
||||
virtual void doUpdateLayout() {}
|
||||
virtual bool hasCustomPageLayout( QPageLayout* customPageLayout ) const;
|
||||
virtual void doRenderWindowContent( QPainter* painter ) = 0;
|
||||
|
||||
private:
|
||||
friend class RimProject;
|
||||
|
||||
Reference in New Issue
Block a user