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
dfa5cb6
commit 16841ef
Showing
11 changed files
with
264 additions
and
6 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
python/gui/auto_generated/processing/models/qgsmodelcomponentgraphicitem.sip.in
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,46 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/models/qgsmodelcomponentgraphicitem.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsModelComponentGraphicItem : QGraphicsObject | ||
{ | ||
%Docstring | ||
Base class for graphic items representing model components in the model designer. | ||
|
||
.. warning:: | ||
|
||
Not stable API | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmodelcomponentgraphicitem.h" | ||
%End | ||
public: | ||
|
||
QgsModelComponentGraphicItem( QgsProcessingModelComponent *component /Transfer/, QGraphicsItem *parent /TransferThis/ ); | ||
%Docstring | ||
Constructor for QgsModelComponentGraphicItem for the specified ``component``, with the specified ``parent`` item. | ||
|
||
Ownership of ``component`` is transferred to the item. | ||
%End | ||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/models/qgsmodelcomponentgraphicitem.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
45 changes: 45 additions & 0 deletions
45
python/gui/auto_generated/processing/models/qgsmodelgraphicsscene.sip.in
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,45 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/models/qgsmodelgraphicsscene.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsModelGraphicsScene : QGraphicsScene | ||
{ | ||
%Docstring | ||
QGraphicsScene subclass representing the model designer. | ||
|
||
.. warning:: | ||
|
||
Not stable API | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmodelgraphicsscene.h" | ||
%End | ||
public: | ||
|
||
QgsModelGraphicsScene( QObject *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor for QgsModelGraphicsScene with the specified ``parent`` object. | ||
%End | ||
|
||
|
||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/models/qgsmodelgraphicsscene.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
29 changes: 29 additions & 0 deletions
29
src/gui/processing/models/qgsmodelcomponentgraphicitem.cpp
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,29 @@ | ||
/*************************************************************************** | ||
qgsmodelcomponentgraphicitem.cpp | ||
---------------------------------- | ||
Date : March 2020 | ||
Copyright : (C) 2020 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 "qgsmodelcomponentgraphicitem.h" | ||
|
||
///@cond NOT_STABLE | ||
|
||
|
||
///@endcond | ||
|
||
|
||
QgsModelComponentGraphicItem::QgsModelComponentGraphicItem( QgsProcessingModelComponent *component, QGraphicsItem *parent ) | ||
: QGraphicsObject( parent ) | ||
, mComponent( component ) | ||
{ | ||
|
||
} |
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,55 @@ | ||
/*************************************************************************** | ||
qgsmodelcomponentgraphicitem.h | ||
---------------------------------- | ||
Date : March 2020 | ||
Copyright : (C) 2020 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 QGSMODELCOMPONENTGRAPHICITEM_H | ||
#define QGSMODELCOMPONENTGRAPHICITEM_H | ||
|
||
#include "qgis.h" | ||
#include "qgis_gui.h" | ||
#include "qgsprocessingmodelcomponent.h" | ||
#include <QGraphicsObject> | ||
|
||
|
||
///@cond NOT_STABLE | ||
|
||
/** | ||
* \ingroup gui | ||
* \brief Base class for graphic items representing model components in the model designer. | ||
* \warning Not stable API | ||
* \since QGIS 3.14 | ||
*/ | ||
class GUI_EXPORT QgsModelComponentGraphicItem : public QGraphicsObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
/** | ||
* Constructor for QgsModelComponentGraphicItem for the specified \a component, with the specified \a parent item. | ||
* | ||
* Ownership of \a component is transferred to the item. | ||
*/ | ||
QgsModelComponentGraphicItem( QgsProcessingModelComponent *component SIP_TRANSFER, QGraphicsItem *parent SIP_TRANSFERTHIS ); | ||
|
||
private: | ||
|
||
std::unique_ptr< QgsProcessingModelComponent > mComponent; | ||
|
||
|
||
}; | ||
|
||
///@endcond | ||
|
||
#endif // QGSMODELCOMPONENTGRAPHICITEM_H |
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,27 @@ | ||
/*************************************************************************** | ||
qgsmodelgraphicsscene.cpp | ||
---------------------------------- | ||
Date : March 2020 | ||
Copyright : (C) 2020 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 "qgsmodelgraphicsscene.h" | ||
|
||
///@cond NOT_STABLE | ||
|
||
QgsModelGraphicsScene::QgsModelGraphicsScene( QObject *parent ) | ||
: QGraphicsScene( parent ) | ||
{ | ||
|
||
} | ||
|
||
///@endcond | ||
|
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,48 @@ | ||
/*************************************************************************** | ||
qgsmodelgraphicsscene.h | ||
----------------------- | ||
Date : March 2020 | ||
Copyright : (C) 2020 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 QGSMODELGRAPHICSCENE_H | ||
#define QGSMODELGRAPHICSCENE_H | ||
|
||
#include "qgis.h" | ||
#include "qgis_gui.h" | ||
#include <QGraphicsScene> | ||
|
||
|
||
///@cond NOT_STABLE | ||
|
||
/** | ||
* \ingroup gui | ||
* \brief QGraphicsScene subclass representing the model designer. | ||
* \warning Not stable API | ||
* \since QGIS 3.14 | ||
*/ | ||
class GUI_EXPORT QgsModelGraphicsScene : public QGraphicsScene | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
/** | ||
* Constructor for QgsModelGraphicsScene with the specified \a parent object. | ||
*/ | ||
QgsModelGraphicsScene( QObject *parent SIP_TRANSFERTHIS = nullptr ); | ||
|
||
|
||
}; | ||
|
||
///@endcond | ||
|
||
#endif // QGSMODELCOMPONENTGRAPHICITEM_H |