-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd979d8
commit 18b2b52
Showing
24 changed files
with
977 additions
and
2 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
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,35 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayout.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
class QgsLayout : QGraphicsScene | ||
{ | ||
%Docstring | ||
Base class for layouts, which can contain items such as maps, labels, scalebars, etc. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayout.h" | ||
%End | ||
public: | ||
|
||
QgsLayout(); | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayout.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,60 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitem.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsLayoutItem : QgsLayoutObject, QGraphicsRectItem | ||
{ | ||
%Docstring | ||
Base class for graphical items within a QgsLayout. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitem.h" | ||
%End | ||
public: | ||
|
||
QgsLayoutItem( QgsLayout *layout ); | ||
|
||
virtual int type() const = 0; | ||
%Docstring | ||
Return correct graphics item type. | ||
:rtype: int | ||
%End | ||
|
||
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget ); | ||
|
||
%Docstring | ||
Handles preparing a paint surface for the layout item and painting the item's | ||
content. Derived classes must not override this method, but instead implement | ||
the pure virtual method QgsLayoutItem.draw. | ||
%End | ||
|
||
protected: | ||
|
||
virtual void drawDebugRect( QPainter *painter ); | ||
%Docstring | ||
Draws a debugging rectangle of the item's current bounds within the specified | ||
painter. | ||
@param painter destination QPainter | ||
%End | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitem.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,58 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsLayoutItemRegistry : QObject | ||
{ | ||
%Docstring | ||
Registry of available layout item types. | ||
|
||
QgsLayoutItemRegistry is not usually directly created, but rather accessed through | ||
QgsApplication.layoutItemRegistry(). | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemregistry.h" | ||
%End | ||
public: | ||
|
||
enum ItemType | ||
{ | ||
LayoutItem, | ||
|
||
// known | ||
LayoutPage, | ||
|
||
// item | ||
PluginItem, | ||
}; | ||
|
||
QgsLayoutItemRegistry( QObject *parent = 0 ); | ||
%Docstring | ||
Creates a registry and populates it with standard item types. | ||
|
||
QgsLayoutItemRegistry is not usually directly created, but rather accessed through | ||
QgsApplication.layoutItemRegistry(). | ||
%End | ||
|
||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemregistry.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,52 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutobject.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsLayoutObject: QObject | ||
{ | ||
%Docstring | ||
A base class for objects which belong to a layout. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutobject.h" | ||
%End | ||
public: | ||
|
||
QgsLayoutObject( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutObject, with the specified parent ``layout``. | ||
.. note:: | ||
|
||
While ownership of a QgsLayoutObject is not passed to the layout, | ||
classes which are derived from QgsLayoutObject (such as QgsLayoutItem) | ||
may transfer their ownership to a layout upon construction. | ||
%End | ||
|
||
|
||
QgsLayout *layout(); | ||
%Docstring | ||
Returns the layout the object is attached to. | ||
:rtype: QgsLayout | ||
%End | ||
|
||
protected: | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutobject.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
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,23 @@ | ||
/*************************************************************************** | ||
qgslayout.cpp | ||
------------------- | ||
begin : June 2017 | ||
copyright : (C) 2017 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgslayout.h" | ||
|
||
QgsLayout::QgsLayout() | ||
: QGraphicsScene() | ||
{ | ||
|
||
} |
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,41 @@ | ||
/*************************************************************************** | ||
qgslayout.h | ||
------------------- | ||
begin : June 2017 | ||
copyright : (C) 2017 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#ifndef QGSLAYOUT_H | ||
#define QGSLAYOUT_H | ||
|
||
#include "qgis_core.h" | ||
#include <QGraphicsScene> | ||
|
||
/** | ||
* \ingroup core | ||
* \class QgsLayout | ||
* \brief Base class for layouts, which can contain items such as maps, labels, scalebars, etc. | ||
* \since QGIS 3.0 | ||
*/ | ||
class CORE_EXPORT QgsLayout : public QGraphicsScene | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
QgsLayout(); | ||
|
||
}; | ||
|
||
#endif //QGSLAYOUT_H | ||
|
||
|
||
|
Oops, something went wrong.