mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
replace our QGISDEPRECATED with Qt's Q_DECL_DEPRECATED
git-svn-id: http://svn.osgeo.org/qgis/trunk@15435 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c034d19c73
commit
78a1ae2394
@ -116,8 +116,8 @@ class CORE_EXPORT QgsApplication: public QApplication
|
|||||||
static const QStringList svgPaths();
|
static const QStringList svgPaths();
|
||||||
|
|
||||||
//! Returns the paths to svg applications svg directory.
|
//! Returns the paths to svg applications svg directory.
|
||||||
//! @deprecated since 1.4
|
//! @deprecated since 1.4 - use svgPaths()
|
||||||
QGISDEPRECATED static const QString svgPath();
|
Q_DECL_DEPRECATED static const QString svgPath();
|
||||||
|
|
||||||
//! Returns the path to the application prefix directory.
|
//! Returns the path to the application prefix directory.
|
||||||
static const QString prefixPath();
|
static const QString prefixPath();
|
||||||
|
@ -119,7 +119,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
|
|||||||
* @return bool TRUE if success else false
|
* @return bool TRUE if success else false
|
||||||
* @deprecated use createFromOgcWmsCrs()
|
* @deprecated use createFromOgcWmsCrs()
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED bool createFromEpsg( const long theEpsg );
|
Q_DECL_DEPRECATED bool createFromEpsg( const long theEpsg );
|
||||||
|
|
||||||
/*! Set up this srs by fetching the appropriate information from the
|
/*! Set up this srs by fetching the appropriate information from the
|
||||||
* sqlite backend. If the srsid is < 100000, only the system srs.db
|
* sqlite backend. If the srsid is < 100000, only the system srs.db
|
||||||
@ -263,7 +263,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
|
|||||||
* @return long theEpsg the EPSG identifier for this srs (defaults to 0)
|
* @return long theEpsg the EPSG identifier for this srs (defaults to 0)
|
||||||
* @deprecated there are other authorities - use authid()
|
* @deprecated there are other authorities - use authid()
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED long epsg() const;
|
Q_DECL_DEPRECATED long epsg() const;
|
||||||
|
|
||||||
/*! Get the authority identifier for this srs
|
/*! Get the authority identifier for this srs
|
||||||
* @return QString the Authority identifier for this srs
|
* @return QString the Authority identifier for this srs
|
||||||
|
@ -51,7 +51,7 @@ class CORE_EXPORT QgsDistanceArea
|
|||||||
void setSourceCrs( long srsid );
|
void setSourceCrs( long srsid );
|
||||||
|
|
||||||
//! sets source spatial reference system (by EpsgCrsId)
|
//! sets source spatial reference system (by EpsgCrsId)
|
||||||
QGISDEPRECATED void setSourceEpsgCrsId( long epsgId );
|
Q_DECL_DEPRECATED void setSourceEpsgCrsId( long epsgId );
|
||||||
|
|
||||||
//! sets source spatial reference system by authid
|
//! sets source spatial reference system by authid
|
||||||
void setSourceAuthId( QString authid );
|
void setSourceAuthId( QString authid );
|
||||||
|
@ -103,11 +103,11 @@ class CORE_EXPORT QgsLabel
|
|||||||
* \param rasterScaleFactor raster scale
|
* \param rasterScaleFactor raster scale
|
||||||
* \deprecated
|
* \deprecated
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED void renderLabel( QPainter* painter, const QgsRectangle& viewExtent,
|
Q_DECL_DEPRECATED void renderLabel( QPainter* painter, const QgsRectangle& viewExtent,
|
||||||
QgsCoordinateTransform* coordinateTransform,
|
QgsCoordinateTransform* coordinateTransform,
|
||||||
const QgsMapToPixel *transform,
|
const QgsMapToPixel *transform,
|
||||||
QgsFeature &feature, bool selected, QgsLabelAttributes *classAttributes = 0,
|
QgsFeature &feature, bool selected, QgsLabelAttributes *classAttributes = 0,
|
||||||
double sizeScale = 1., double rasterScaleFactor = 1.0 )
|
double sizeScale = 1., double rasterScaleFactor = 1.0 )
|
||||||
{
|
{
|
||||||
QgsRenderContext r;
|
QgsRenderContext r;
|
||||||
r.setExtent( viewExtent );
|
r.setExtent( viewExtent );
|
||||||
@ -148,7 +148,7 @@ class CORE_EXPORT QgsLabel
|
|||||||
/** Pointer to default attributes.
|
/** Pointer to default attributes.
|
||||||
* @deprecated in version 2 as it is badly named. Rather use attributes.
|
* @deprecated in version 2 as it is badly named. Rather use attributes.
|
||||||
* @see labelAttributes method rather */
|
* @see labelAttributes method rather */
|
||||||
QGISDEPRECATED QgsLabelAttributes *layerAttributes( void );
|
Q_DECL_DEPRECATED QgsLabelAttributes *layerAttributes( void );
|
||||||
|
|
||||||
/** Pointer to default attributes.
|
/** Pointer to default attributes.
|
||||||
* @note this replaces the to-be-deprecated layerAttributes method.
|
* @note this replaces the to-be-deprecated layerAttributes method.
|
||||||
|
@ -76,7 +76,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
|||||||
/** Get this layer's unique ID, this ID is used to access this layer from map layer registry
|
/** Get this layer's unique ID, this ID is used to access this layer from map layer registry
|
||||||
* @deprecated use id()
|
* @deprecated use id()
|
||||||
**/
|
**/
|
||||||
QGISDEPRECATED QString getLayerID() const { return id(); }
|
Q_DECL_DEPRECATED QString getLayerID() const { return id(); }
|
||||||
|
|
||||||
/** Set the display name of the layer
|
/** Set the display name of the layer
|
||||||
* @param name New name for the layer
|
* @param name New name for the layer
|
||||||
@ -224,7 +224,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
|||||||
and will be deprecated in 2.0
|
and will be deprecated in 2.0
|
||||||
@deprecated use crs()
|
@deprecated use crs()
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED const QgsCoordinateReferenceSystem& srs();
|
Q_DECL_DEPRECATED const QgsCoordinateReferenceSystem& srs();
|
||||||
|
|
||||||
/** Sets layer's spatial reference system
|
/** Sets layer's spatial reference system
|
||||||
@note emitSignal added in 1.4 */
|
@note emitSignal added in 1.4 */
|
||||||
|
@ -135,7 +135,7 @@ class CORE_EXPORT QgsMapRenderer : public QObject
|
|||||||
|
|
||||||
//! Return the measuring object
|
//! Return the measuring object
|
||||||
//! @deprecated
|
//! @deprecated
|
||||||
QGISDEPRECATED QgsDistanceArea *distanceArea() { return mDistArea; }
|
Q_DECL_DEPRECATED QgsDistanceArea *distanceArea() { return mDistArea; }
|
||||||
QGis::UnitType mapUnits() const;
|
QGis::UnitType mapUnits() const;
|
||||||
void setMapUnits( QGis::UnitType u );
|
void setMapUnits( QGis::UnitType u );
|
||||||
|
|
||||||
|
@ -43,11 +43,11 @@ class CORE_EXPORT QgsOverlayObject
|
|||||||
/**Returns the feature geometry in geos format. The calling function does _not_ take
|
/**Returns the feature geometry in geos format. The calling function does _not_ take
|
||||||
ownership of the generated object. The geometry is in map coordinates
|
ownership of the generated object. The geometry is in map coordinates
|
||||||
@deprecated Please use geometry() and QgsGeometry::asGeos instead*/
|
@deprecated Please use geometry() and QgsGeometry::asGeos instead*/
|
||||||
QGISDEPRECATED GEOSGeometry* getGeosGeometry();
|
Q_DECL_DEPRECATED GEOSGeometry* getGeosGeometry();
|
||||||
/**Feature geometry is released when object is destructed so this function is empty.
|
/**Feature geometry is released when object is destructed so this function is empty.
|
||||||
* @deprecated nop
|
* @deprecated nop
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED void releaseGeosGeometry( GEOSGeometry *the_geom ) { Q_UNUSED( the_geom ); }
|
Q_DECL_DEPRECATED void releaseGeosGeometry( GEOSGeometry *the_geom ) { Q_UNUSED( the_geom ); }
|
||||||
|
|
||||||
//getters
|
//getters
|
||||||
int width() const {return mWidth;}
|
int width() const {return mWidth;}
|
||||||
|
@ -458,7 +458,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider
|
|||||||
static QString makeTableCells( QStringList const & values );
|
static QString makeTableCells( QStringList const & values );
|
||||||
|
|
||||||
/** \brief Set null value in char */
|
/** \brief Set null value in char */
|
||||||
QByteArray noValueBytes(int theBandNo);
|
QByteArray noValueBytes( int theBandNo );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**Dots per intch. Extended WMS (e.g. QGIS mapserver) support DPI dependent output and therefore
|
/**Dots per intch. Extended WMS (e.g. QGIS mapserver) support DPI dependent output and therefore
|
||||||
|
@ -161,7 +161,7 @@ class CORE_EXPORT QgsSearchTreeNode
|
|||||||
bool checkAgainst( const QgsFieldMap& fields, QgsFeature &f );
|
bool checkAgainst( const QgsFieldMap& fields, QgsFeature &f );
|
||||||
|
|
||||||
//! @deprecated
|
//! @deprecated
|
||||||
QGISDEPRECATED bool checkAgainst( const QgsFieldMap& fields, const QgsAttributeMap& attributes, QgsGeometry* geom = 0 );
|
Q_DECL_DEPRECATED bool checkAgainst( const QgsFieldMap& fields, const QgsAttributeMap& attributes, QgsGeometry* geom = 0 );
|
||||||
|
|
||||||
//! checks if there were errors during evaluation
|
//! checks if there were errors during evaluation
|
||||||
bool hasError() { return ( !mError.isEmpty() ); }
|
bool hasError() { return ( !mError.isEmpty() ); }
|
||||||
@ -177,11 +177,11 @@ class CORE_EXPORT QgsSearchTreeNode
|
|||||||
QgsFeature &f );
|
QgsFeature &f );
|
||||||
|
|
||||||
//! @deprecated
|
//! @deprecated
|
||||||
QGISDEPRECATED bool getValue( QgsSearchTreeValue& value,
|
Q_DECL_DEPRECATED bool getValue( QgsSearchTreeValue& value,
|
||||||
QgsSearchTreeNode* node,
|
QgsSearchTreeNode* node,
|
||||||
const QgsFieldMap &fields,
|
const QgsFieldMap &fields,
|
||||||
const QgsAttributeMap &attributes,
|
const QgsAttributeMap &attributes,
|
||||||
QgsGeometry* geom = 0 );
|
QgsGeometry* geom = 0 );
|
||||||
|
|
||||||
//! return a list of referenced columns in the tree
|
//! return a list of referenced columns in the tree
|
||||||
//! @note added in 1.5
|
//! @note added in 1.5
|
||||||
@ -217,7 +217,7 @@ class CORE_EXPORT QgsSearchTreeNode
|
|||||||
QgsSearchTreeValue valueAgainst( const QgsFieldMap& fields, QgsFeature &f );
|
QgsSearchTreeValue valueAgainst( const QgsFieldMap& fields, QgsFeature &f );
|
||||||
|
|
||||||
//! @deprecated
|
//! @deprecated
|
||||||
QGISDEPRECATED QgsSearchTreeValue valueAgainst( const QgsFieldMap& fields, const QgsAttributeMap& attributes, QgsGeometry* geom = 0 );
|
Q_DECL_DEPRECATED QgsSearchTreeValue valueAgainst( const QgsFieldMap& fields, const QgsAttributeMap& attributes, QgsGeometry* geom = 0 );
|
||||||
|
|
||||||
//! strips mText when node is of string type
|
//! strips mText when node is of string type
|
||||||
void stripText();
|
void stripText();
|
||||||
|
@ -237,7 +237,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
|
|||||||
* @return true in case of success and false in case of failure
|
* @return true in case of success and false in case of failure
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED virtual bool addAttributes( const QMap<QString, QString> &attributes );
|
Q_DECL_DEPRECATED virtual bool addAttributes( const QMap<QString, QString> &attributes );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes existing attributes
|
* Deletes existing attributes
|
||||||
@ -347,7 +347,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
|
|||||||
* Returns the names of the supported types
|
* Returns the names of the supported types
|
||||||
* @deprecated use nativeTypes()
|
* @deprecated use nativeTypes()
|
||||||
*/
|
*/
|
||||||
QGISDEPRECATED const QMap<QString, QVariant::Type> &supportedNativeTypes() const;
|
Q_DECL_DEPRECATED const QMap<QString, QVariant::Type> &supportedNativeTypes() const;
|
||||||
|
|
||||||
/** Returns true if the provider is strict about the type of inserted features
|
/** Returns true if the provider is strict about the type of inserted features
|
||||||
(e.g. no multipolygon in a polygon layer)
|
(e.g. no multipolygon in a polygon layer)
|
||||||
|
@ -58,7 +58,7 @@ class CORE_EXPORT QgsVectorFileWriter
|
|||||||
|
|
||||||
/** Write contents of vector layer to a shapefile
|
/** Write contents of vector layer to a shapefile
|
||||||
@deprecated Use writeAsVectorFormat instead*/
|
@deprecated Use writeAsVectorFormat instead*/
|
||||||
QGISDEPRECATED static WriterError writeAsShapefile( QgsVectorLayer* layer,
|
Q_DECL_DEPRECATED static WriterError writeAsShapefile( QgsVectorLayer* layer,
|
||||||
const QString& shapefileName,
|
const QString& shapefileName,
|
||||||
const QString& fileEncoding,
|
const QString& fileEncoding,
|
||||||
const QgsCoordinateReferenceSystem *destCRS,
|
const QgsCoordinateReferenceSystem *destCRS,
|
||||||
@ -66,7 +66,7 @@ class CORE_EXPORT QgsVectorFileWriter
|
|||||||
QString *errorMessage = 0,
|
QString *errorMessage = 0,
|
||||||
const QStringList &datasourceOptions = QStringList(), // added in 1.6
|
const QStringList &datasourceOptions = QStringList(), // added in 1.6
|
||||||
const QStringList &layerOptions = QStringList() // added in 1.6
|
const QStringList &layerOptions = QStringList() // added in 1.6
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Write contents of vector layer to an (OGR supported) vector formt
|
/** Write contents of vector layer to an (OGR supported) vector formt
|
||||||
@note: this method was added in version 1.5*/
|
@note: this method was added in version 1.5*/
|
||||||
|
@ -499,7 +499,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
|
|||||||
/** add an attribute field (but does not commit it)
|
/** add an attribute field (but does not commit it)
|
||||||
returns true if the field was added
|
returns true if the field was added
|
||||||
@deprecated */
|
@deprecated */
|
||||||
QGISDEPRECATED bool addAttribute( QString name, QString type );
|
Q_DECL_DEPRECATED bool addAttribute( QString name, QString type );
|
||||||
|
|
||||||
/**Sets an alias (a display name) for attributes to display in dialogs
|
/**Sets an alias (a display name) for attributes to display in dialogs
|
||||||
@note added in version 1.2*/
|
@note added in version 1.2*/
|
||||||
|
@ -154,7 +154,7 @@ class GUI_EXPORT QgisInterface : public QObject
|
|||||||
\deprecated use QgsLegendInterface::refreshLayerSymbology
|
\deprecated use QgsLegendInterface::refreshLayerSymbology
|
||||||
*/
|
*/
|
||||||
#ifndef Q_MOC_RUN
|
#ifndef Q_MOC_RUN
|
||||||
QGISDEPRECATED
|
Q_DECL_DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
virtual void refreshLegend( QgsMapLayer *l ) = 0;
|
virtual void refreshLegend( QgsMapLayer *l ) = 0;
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ class GUI_EXPORT QgisInterface : public QObject
|
|||||||
* url to the QGIS documentation directory path (prefix/share/doc)
|
* url to the QGIS documentation directory path (prefix/share/doc)
|
||||||
*/
|
*/
|
||||||
#ifndef Q_MOC_RUN
|
#ifndef Q_MOC_RUN
|
||||||
QGISDEPRECATED
|
Q_DECL_DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
virtual void openURL( QString url, bool useQgisDocDirectory = true ) = 0;
|
virtual void openURL( QString url, bool useQgisDocDirectory = true ) = 0;
|
||||||
|
|
||||||
|
@ -64,24 +64,14 @@ class GUI_EXPORT QgsGenericProjectionSelector : public QDialog, private Ui::QgsG
|
|||||||
long selectedCrsId();
|
long selectedCrsId();
|
||||||
QString selectedAuthId();
|
QString selectedAuthId();
|
||||||
|
|
||||||
#ifndef Q_MOC_RUN
|
Q_DECL_DEPRECATED QString selectedProj4String();
|
||||||
QGISDEPRECATED
|
Q_DECL_DEPRECATED long selectedEpsg();
|
||||||
#endif
|
|
||||||
QString selectedProj4String();
|
|
||||||
|
|
||||||
#ifndef Q_MOC_RUN
|
|
||||||
QGISDEPRECATED
|
|
||||||
#endif
|
|
||||||
long selectedEpsg();
|
|
||||||
|
|
||||||
void setSelectedCrsName( QString theName );
|
void setSelectedCrsName( QString theName );
|
||||||
void setSelectedCrsId( long theID );
|
void setSelectedCrsId( long theID );
|
||||||
void setSelectedAuthId( QString authId );
|
void setSelectedAuthId( QString authId );
|
||||||
|
|
||||||
#ifndef Q_MOC_RUN
|
Q_DECL_DEPRECATED void setSelectedEpsg( long theID );
|
||||||
QGISDEPRECATED
|
|
||||||
#endif
|
|
||||||
void setSelectedEpsg( long theID );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief filters this dialog by the given CRSs
|
* \brief filters this dialog by the given CRSs
|
||||||
|
@ -119,7 +119,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
|
|||||||
|
|
||||||
//! Accessor for the canvas pixmap
|
//! Accessor for the canvas pixmap
|
||||||
//! @deprecated use canvasPaintDevice()
|
//! @deprecated use canvasPaintDevice()
|
||||||
QGISDEPRECATED QPixmap& canvasPixmap();
|
Q_DECL_DEPRECATED QPixmap& canvasPixmap();
|
||||||
|
|
||||||
//! Accessor for the canvas paint device
|
//! Accessor for the canvas paint device
|
||||||
QPaintDevice &canvasPaintDevice();
|
QPaintDevice &canvasPaintDevice();
|
||||||
|
@ -71,7 +71,7 @@ class GUI_EXPORT QgsProjectionSelector: public QWidget, private Ui::QgsProjectio
|
|||||||
|
|
||||||
//! Gets the current EpsgCrsId-style projection identifier
|
//! Gets the current EpsgCrsId-style projection identifier
|
||||||
// @deprecated there are other authorities - use selectedAuthId()
|
// @deprecated there are other authorities - use selectedAuthId()
|
||||||
QGISDEPRECATED long selectedEpsg();
|
Q_DECL_DEPRECATED long selectedEpsg();
|
||||||
|
|
||||||
//! Gets the current InternalCrsId-style projection identifier
|
//! Gets the current InternalCrsId-style projection identifier
|
||||||
long selectedSrsid();
|
long selectedSrsid();
|
||||||
@ -90,10 +90,7 @@ class GUI_EXPORT QgsProjectionSelector: public QWidget, private Ui::QgsProjectio
|
|||||||
|
|
||||||
//! Get the selected coordinate system
|
//! Get the selected coordinate system
|
||||||
// @deprecated there are other authorities - so not always defined
|
// @deprecated there are other authorities - so not always defined
|
||||||
#ifndef Q_MOC_RUN
|
Q_DECL_DEPRECATED void setSelectedEpsg( long epsg );
|
||||||
QGISDEPRECATED
|
|
||||||
#endif
|
|
||||||
void setSelectedEpsg( long epsg );
|
|
||||||
|
|
||||||
QString selectedProj4String();
|
QString selectedProj4String();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user