Skip to content

Commit

Permalink
Move some todos so they don't sit between member doxygen and declaration
Browse files Browse the repository at this point in the history
Sipify doesn't handle this, and drops off the docstring from the python method
  • Loading branch information
nyalldawson committed Oct 20, 2020
1 parent 9f97955 commit d3adc10
Show file tree
Hide file tree
Showing 20 changed files with 57 additions and 20 deletions.
Expand Up @@ -514,6 +514,7 @@ If no prefix is specified, WKT definition is assumed.
:return: ``True`` on success else ``False``
%End


bool createFromUserInput( const QString &definition );
%Docstring
Set up this CRS from various text formats.
Expand All @@ -534,7 +535,6 @@ For more details on supported formats see OGRSpatialReference.SetFromUserInput()

this function generates a WKT string using OSRSetFromUserInput() and
passes it to :py:func:`~QgsCoordinateReferenceSystem.createFromWkt` function.
/ // TODO QGIS3: rename to createFromStringOGR so it is clear it's similar to createFromString, just different backend
%End

static void setupESRIWktFix() /Deprecated/;
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsfeatureiterator.sip.in
Expand Up @@ -141,6 +141,7 @@ Will throw a QgsCsException if the rect cannot be transformed from the destinati




void ref();
%Docstring
Add reference
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsmessageoutput.sip.in
Expand Up @@ -63,6 +63,7 @@ Display the blocking message to the user.
%End



static QgsMessageOutput *createMessageOutput();
%Docstring
function that returns new class derived from QgsMessageOutput
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_generated/qgsproviderregistry.sip.in
Expand Up @@ -33,6 +33,7 @@ ogr and postgres.
%End
public:


enum WidgetMode
{

Expand Down
Expand Up @@ -44,6 +44,7 @@ Compares region, size etc. not collected statistics

int bandNumber;


qgssize elementCount;

double maximumValue;
Expand Down
Expand Up @@ -382,7 +382,11 @@ to overwrite data of the provider using :py:func:`~QgsRasterDataProvider.writeBl
.. versionadded:: 3.0
%End


virtual bool write( void *data, int band, int width, int height, int xOffset, int yOffset );
%Docstring
Writes into the provider datasource
%End

bool writeBlock( QgsRasterBlock *block, int band, int xOffset = 0, int yOffset = 0 );
%Docstring
Expand Down
Expand Up @@ -288,7 +288,17 @@ Is forwarded to the slot :py:func:`~QgsEditorWidgetWrapper.setValues`
:param feature: The new feature
%End


virtual void setValue( const QVariant &value ) /Deprecated/;
%Docstring
Is called, when the value of the widget needs to be changed. Update the widget representation
to reflect the new value.

:param value: The new value of the attribute

.. deprecated:: QGIS 3.10

%End

void setValues( const QVariant &value, const QVariantList &additionalValues );
%Docstring
Expand Down
Expand Up @@ -161,7 +161,18 @@ If this is ``True``, then this search widget should take effect directly
when its expression changes
%End


virtual QString createExpression( FilterFlags flags ) const;
%Docstring
Creates a filter expression based on the current state of the search widget
and the specified filter flags.

:param flags: filter flags

:return: filter expression

.. versionadded:: 2.16
%End

QString createFieldIdentifier() const;
%Docstring
Expand Down
7 changes: 6 additions & 1 deletion python/gui/auto_generated/qgsmapcanvas.sip.in
Expand Up @@ -1016,9 +1016,14 @@ Emitted when canvas background color changes
%End



void renderComplete( QPainter * );
%Docstring
Emitted when the canvas has rendered.
Passes a pointer to the painter on which the map was drawn. This is
useful for plugins that wish to draw on the map after it has been
rendered. Passing the painter allows plugins to work when the map is
being rendered onto a pixmap other than the mapCanvas own pixmap member.

- anything related to rendering progress is not visible outside of map canvas
- additional drawing shall be done directly within the renderer job or independently as a map canvas item
%End
Expand Down
4 changes: 0 additions & 4 deletions src/core/providers/ogr/qgsogrprovider.h
Expand Up @@ -427,10 +427,6 @@ class CORE_EXPORT QgsOgrProviderUtils
const QgsCoordinateReferenceSystem &srs,
QString &errorMessage );

/**
* TODO
* \since QGIS 3.10
*/
static bool deleteLayer( const QString &uri, QString &errCause );

//! Inject credentials into the dsName (if any)
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgscoordinatereferencesystem.h
Expand Up @@ -480,6 +480,8 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
*/
bool createFromString( const QString &definition );

// TODO QGIS 4: rename to createFromStringOGR so it is clear it's similar to createFromString, just different backend

/**
* Set up this CRS from various text formats.
*
Expand All @@ -494,7 +496,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
* \returns TRUE on success else FALSE
* \note this function generates a WKT string using OSRSetFromUserInput() and
* passes it to createFromWkt() function.
*/ // TODO QGIS3: rename to createFromStringOGR so it is clear it's similar to createFromString, just different backend
*/
bool createFromUserInput( const QString &definition );

/**
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsfeatureiterator.h
Expand Up @@ -164,9 +164,10 @@ class CORE_EXPORT QgsAbstractFeatureIterator
*/
bool mZombie = false;

// TODO QGIS 4: make this private

/**
* reference counting (to allow seamless copying of QgsFeatureIterator instances)
* TODO QGIS3: make this private
*/
int refs = 0;
//! Add reference
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsmessageoutput.h
Expand Up @@ -66,11 +66,12 @@ class CORE_EXPORT QgsMessageOutput
*/
static void showMessage( const QString &title, const QString &message, MessageType msgType );

// TODO: implementation where Python class could be passed

/**
* sets function that will be used to create message output
* \note not available in Python bindings
*/
// TODO: implementation where Python class could be passed
static void setMessageOutputCreator( MESSAGE_OUTPUT_CREATOR f ) SIP_SKIP;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsproviderregistry.h
Expand Up @@ -56,10 +56,11 @@ class CORE_EXPORT QgsProviderRegistry

public:

// TODO QGIS 4 - either move to QgsAbstractDataSourceWidget or remove altogether

/**
* Different ways a source select dialog can be used
*/
// TODO QGIS 4 - either move to QgsAbstractDataSourceWidget or remove altogether
enum WidgetMode
{

Expand Down
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasterbandstats.h
Expand Up @@ -76,8 +76,9 @@ class CORE_EXPORT QgsRasterBandStats
//! \brief The gdal band number (starts at 1)
int bandNumber;

//! \brief The number of not no data cells in the band.
// TODO: check if no data are excluded in stats calculation

//! \brief The number of not no data cells in the band.
qgssize elementCount;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasterdataprovider.h
Expand Up @@ -450,8 +450,9 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
*/
virtual bool setEditable( bool enabled ) { Q_UNUSED( enabled ) return false; }

//! Writes into the provider datasource
// TODO: add data type (may be different from band type)

//! Writes into the provider datasource
virtual bool write( void *data, int band, int width, int height, int xOffset, int yOffset )
{
Q_UNUSED( data )
Expand Down
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasteridentifyresult.h
Expand Up @@ -84,9 +84,10 @@ class CORE_EXPORT QgsRasterIdentifyResult
//! \brief Results format
QgsRaster::IdentifyFormat mFormat = QgsRaster::IdentifyFormatUndefined;

//! \brief Results
// TODO: better hierarchy (sublayer multiple feature sets)?
// TODO?: results are not consistent for different formats (per band x per sublayer)

//! \brief Results
QMap<int, QVariant> mResults;

//! \brief Additional params (e.g. request url used by WMS)
Expand Down
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/core/qgseditorwidgetwrapper.h
Expand Up @@ -283,14 +283,15 @@ class GUI_EXPORT QgsEditorWidgetWrapper : public QgsWidgetWrapper
*/
void setFeature( const QgsFeature &feature ) override;

// TODO Q_DECL_DEPRECATED

/**
* Is called, when the value of the widget needs to be changed. Update the widget representation
* to reflect the new value.
*
* \param value The new value of the attribute
* \deprecated since QGIS 3.10
*/
// TODO Q_DECL_DEPRECATED
virtual void setValue( const QVariant &value ) SIP_DEPRECATED;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/core/qgssearchwidgetwrapper.h
Expand Up @@ -172,14 +172,15 @@ class GUI_EXPORT QgsSearchWidgetWrapper : public QgsWidgetWrapper
*/
virtual bool applyDirectly() = 0;

// TODO QGIS 4.0 - make pure virtual

/**
* Creates a filter expression based on the current state of the search widget
* and the specified filter flags.
* \param flags filter flags
* \returns filter expression
* \since QGIS 2.16
*/
// TODO QGIS 4.0 - make pure virtual
virtual QString createExpression( FilterFlags flags ) const { Q_UNUSED( flags ) return QStringLiteral( "TRUE" ); }

/**
Expand Down
7 changes: 2 additions & 5 deletions src/gui/qgsmapcanvas.h
Expand Up @@ -929,18 +929,15 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
*/
void canvasColorChanged();

// TODO: deprecate when decorations are reimplemented as map canvas items

/**
* Emitted when the canvas has rendered.
* Passes a pointer to the painter on which the map was drawn. This is
* useful for plugins that wish to draw on the map after it has been
* rendered. Passing the painter allows plugins to work when the map is
* being rendered onto a pixmap other than the mapCanvas own pixmap member.
*
*/

// TODO: deprecate when decorations are reimplemented as map canvas items

/**
* - anything related to rendering progress is not visible outside of map canvas
* - additional drawing shall be done directly within the renderer job or independently as a map canvas item
*/
Expand Down

0 comments on commit d3adc10

Please sign in to comment.