Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5434 from nyalldawson/layout_next2
[layouts] Port item type from composer
- Loading branch information
Showing
296 changed files
with
38,056 additions
and
1,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,7 @@ Get font color | |
%End | ||
|
||
public slots: | ||
|
||
void refreshExpressionContext(); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayouteffect.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsLayoutEffect : QGraphicsEffect | ||
{ | ||
%Docstring | ||
|
||
A QGraphicsEffect subclass used for rendering layout items | ||
onto a scene with custom composition modes. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayouteffect.h" | ||
%End | ||
public: | ||
|
||
QgsLayoutEffect(); | ||
%Docstring | ||
Constructor for QgsLayoutEffect. | ||
%End | ||
|
||
void setCompositionMode( QPainter::CompositionMode mode ); | ||
%Docstring | ||
Sets the composition (blending) ``mode`` used for rendering | ||
the item. | ||
.. seealso:: compositionMode() | ||
%End | ||
|
||
QPainter::CompositionMode compositionMode() const; | ||
%Docstring | ||
Returns the composition (blending) mode used for rendering | ||
the item. | ||
.. seealso:: setCompositionMode() | ||
:rtype: QPainter.CompositionMode | ||
%End | ||
|
||
protected: | ||
|
||
virtual void draw( QPainter *painter ); | ||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayouteffect.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutexporter.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsLayoutExporter | ||
{ | ||
%Docstring | ||
Handles rendering and exports of layouts to various formats. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutexporter.h" | ||
%End | ||
public: | ||
|
||
QgsLayoutExporter( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutExporter, for the specified ``layout``. | ||
%End | ||
|
||
void renderPage( QPainter *painter, int page ); | ||
%Docstring | ||
Renders a full page to a destination ``painter``. | ||
|
||
The ``page`` argument specifies the page number to render. Page numbers | ||
are 0 based, such that the first page in a layout is page 0. | ||
|
||
.. seealso:: renderRect() | ||
%End | ||
|
||
void renderRegion( QPainter *painter, const QRectF ®ion ); | ||
%Docstring | ||
Renders a ``region`` from the layout to a ``painter``. This method can be used | ||
to render sections of pages rather than full pages. | ||
|
||
.. seealso:: renderPage() | ||
%End | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutexporter.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.