67 changes: 0 additions & 67 deletions src/core/renderer/qgsrenderer.cpp

This file was deleted.

128 changes: 0 additions & 128 deletions src/core/renderer/qgsrenderer.h

This file was deleted.

1 change: 0 additions & 1 deletion src/core/symbology-ng/qgssymbollayerv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#include "qgssymbollayerv2.h"
#include "qgsclipper.h"
#include "qgsrenderer.h"
#include "qgsrendercontext.h"

#include <QSize>
Expand Down
12 changes: 10 additions & 2 deletions src/core/symbology-ng/qgssymbolv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* *
***************************************************************************/

#include "qgsrenderer.h"
#include "qgssymbolv2.h"
#include "qgssymbollayerv2.h"

Expand Down Expand Up @@ -375,6 +374,9 @@ QSet<QString> QgsSymbolV2::usedAttributes() const

////////////////////

QColor QgsSymbolV2RenderContext::mSelectionColor = QColor( 0, 0, 0 );


QgsSymbolV2RenderContext::QgsSymbolV2RenderContext( QgsRenderContext& c, QgsSymbolV2::OutputUnit u, qreal alpha, bool selected, int renderHints, const QgsFeature* f )
: mRenderContext( c ), mOutputUnit( u ), mAlpha( alpha ), mSelected( selected ), mRenderHints( renderHints ), mFeature( f ), mLayer( 0 )
{
Expand All @@ -388,10 +390,16 @@ QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext()

QColor QgsSymbolV2RenderContext::selectionColor()
{
return QgsRenderer::selectionColor();
return mSelectionColor;
}

void QgsSymbolV2RenderContext::setSelectionColor( const QColor& color )
{
mSelectionColor = color;
}



double QgsSymbolV2RenderContext::outputLineWidth( double width ) const
{
return width * QgsSymbolLayerV2Utils::lineWidthScaleFactor( mRenderContext, mOutputUnit );
Expand Down
6 changes: 6 additions & 0 deletions src/core/symbology-ng/qgssymbolv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ class CORE_EXPORT QgsSymbolV2RenderContext

// Color used for selections
static QColor selectionColor();
//! @note added in 2.0
static void setSelectionColor( const QColor& color );

double outputLineWidth( double width ) const;
double outputPixelSize( double size ) const;
Expand All @@ -198,6 +200,10 @@ class CORE_EXPORT QgsSymbolV2RenderContext
int mRenderHints;
const QgsFeature* mFeature; //current feature
const QgsVectorLayer* mLayer; //current vectorlayer

/**Color to draw selected features - static so we can change it in proj props and automatically
all renderers are updated*/
static QColor mSelectionColor;
};


Expand Down
1 change: 0 additions & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ INCLUDE_DIRECTORIES(
../core
../core/composer
../core/raster
../core/renderer
../core/symbology
../core/symbology-ng
${CMAKE_CURRENT_BINARY_DIR}
Expand Down
1 change: 0 additions & 1 deletion src/gui/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "qgsproject.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
#include "qgsuniquevaluerenderer.h"
#include "qgssymbol.h"
#include "qgsattributeeditor.h"
#include "qgshighlight.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/qgsattributeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "qgsattributeeditor.h"
#include <qgsvectorlayer.h>
#include <qgsvectordataprovider.h>
#include <qgsuniquevaluerenderer.h>
#include <qgscategorizedsymbolrendererv2.h>
#include <qgssymbol.h>
#include <qgslonglongvalidator.h>
Expand Down
1 change: 0 additions & 1 deletion src/mapserver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ INCLUDE_DIRECTORIES(
${QGIS_INCLUDE_DIR}
../core
../core/raster
../core/renderer
../core/symbology
../core/symbology-ng
../core/composer
Expand Down
1 change: 0 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "qgslogger.h"
#include "qgsmapserviceexception.h"
#include "qgsrasterlayer.h"
#include "qgsrenderer.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"

Expand Down
1 change: 0 additions & 1 deletion src/mapserver/qgswfsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "qgssldparser.h"
#include "qgssymbol.h"
#include "qgssymbolv2.h"
#include "qgsrenderer.h"
#include "qgslegendmodel.h"
#include "qgscomposerlegenditem.h"
#include "qgsrequesthandler.h"
Expand Down
5 changes: 2 additions & 3 deletions src/mapserver/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "qgssldparser.h"
#include "qgssymbol.h"
#include "qgssymbolv2.h"
#include "qgsrenderer.h"
#include "qgsrendererv2.h"
#include "qgslegendmodel.h"
#include "qgscomposerlegenditem.h"
Expand Down Expand Up @@ -973,8 +972,8 @@ QImage* QgsWMSServer::initializeRendering( QStringList& layersList, QStringList&
#endif
mMapRenderer->setLayerSet( layerIdList );

//set selection color prior to each render to avoid problems with caching (selection color is a global property of QgsRenderer)
QgsRenderer::setSelectionColor( mConfigParser->selectionColor() );
//set selection color prior to each render to avoid problems with caching (selection color is a global property of QgsSymbolV2RenderContext)
QgsSymbolV2RenderContext::setSelectionColor( mConfigParser->selectionColor() );
return theImage;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/compass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ADD_LIBRARY (compassplugin MODULE ${COMPASS_SRCS} ${COMPASS_MOC_SRCS} ${COMPASS_

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/delimited_text/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ADD_LIBRARY (delimitedtextplugin MODULE ${DLTEXT_SRCS} ${DLTEXT_MOC_SRCS} ${DLTE

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
../../providers/delimitedtext/delimitedtext
Expand Down
1 change: 0 additions & 1 deletion src/plugins/diagram_overlay/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ INCLUDE_DIRECTORIES(
../../core
../../core/pal
../../core/raster
../../core/renderer
../../core/symbology
../../gui
..
Expand Down
1 change: 0 additions & 1 deletion src/plugins/dxf2shp_converter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
..
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/georeferencer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ADD_LIBRARY (georefplugin MODULE ${GEOREF_SRCS} ${GEOREF_MOC_SRCS} ${GEOREF_RCC_
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology ../../core/composer
../../core ../../core/raster ../../core/symbology ../../core/composer
../../gui
..
${GSL_INCLUDE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ INCLUDE_DIRECTORIES(
${OSGEARTH_INCLUDE_DIR}
${OSG_INCLUDE_DIR}
${GEOS_INCLUDE_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
)
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
../../providers/grass
Expand Down
1 change: 0 additions & 1 deletion src/plugins/interpolation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ INCLUDE_DIRECTORIES(
../../analysis/interpolation
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
..
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/offline_editing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ENDIF (WITH_INTERNAL_SPATIALITE)

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
${GEOS_INCLUDE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/oracle_raster/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ADD_LIBRARY (oracleplugin MODULE ${ORACLE_SRCS} ${ORACLE_MOC_SRCS} ${ORACLE_RCC_

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
${GDAL_INCLUDE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/plugin_template/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ADD_LIBRARY ([pluginlcasename]plugin MODULE ${[pluginlcasename]_SRCS} ${[pluginl

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
)
Expand Down
39 changes: 0 additions & 39 deletions src/plugins/qgsrendererplugin.h

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/spatialquery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}/../../ui/
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
..
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ADD_LIBRARY (spitplugin MODULE ${SPIT_PLUGIN_SRCS} ${SPIT_PLUGIN_MOC_SRCS} ${SPI

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
../../ui
../../app
Expand Down
1 change: 0 additions & 1 deletion src/plugins/sqlanywhere/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}/../../ui
../../core
../../core/raster
../../core/renderer
../../core/symbology
../../gui
../../app
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/topology/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}/src/ui
${CMAKE_CURRENT_BINARY_DIR}
${GEOS_INCLUDE_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../core ../../core/raster ../../core/symbology
../../gui
..
)
Expand Down
1 change: 0 additions & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ SET(QGISPYTHON_SRCS qgispython.cpp qgspythonutilsimpl.cpp)
INCLUDE_DIRECTORIES(
../core
../core/raster
../core/renderer
../core/symbology
../gui
${PYTHON_INCLUDE_PATH}
Expand Down
2 changes: 0 additions & 2 deletions tests/src/core/testziplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include <qgsrasterlayer.h>
#include <qgsdataitem.h>
#include "qgsconfig.h"
#include <qgsrenderer.h>
#include <qgsuniquevaluerenderer.h>

#include <gdal.h>

Expand Down