Skip to content
Permalink
Browse files

Bad layers indicator

  • Loading branch information
elpaso committed Oct 17, 2018
1 parent f2c262b commit fc53e64ef50d93b596b22555e941b8990306f19d
Showing with 71 additions and 0 deletions.
  1. +1 −0 images/images.qrc
  2. +66 −0 images/themes/default/mIndicatorBadLayer.svg
  3. +2 −0 src/app/CMakeLists.txt
  4. +2 −0 src/app/qgisapp.cpp
@@ -718,6 +718,7 @@
<file>themes/default/mActionReverseLine.svg</file>
<file>themes/default/mActionAdd3DMap.svg</file>
<file>themes/default/mIndicatorNonRemovable.svg</file>
<file>themes/default/mIndicatorBadLayer.svg</file>
<file>themes/default/mIconFolder.svg</file>
<file>themes/default/mIconFolderHome.svg</file>
<file>themes/default/mIconFolderLink.svg</file>
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="16"
width="16"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="mIndicatorBadLayer.svg">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2399"
inkscape:window-height="1418"
id="namedview8"
showgrid="false"
inkscape:zoom="83.4386"
inkscape:cx="12.748756"
inkscape:cy="5.9247031"
inkscape:window-x="435"
inkscape:window-y="344"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" />
<path
style="fill:none;fill-rule:evenodd;stroke:#2c2c2c;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:0.70588237"
d="M 2.8164423,12.943861 7.9702617,3.8470446 13.222692,12.94452 Z"
id="path4178"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 7.9012131,6.7183861 0,3.5932209"
id="path4180"
inkscape:connector-curvature="0" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:round;stroke-linejoin:bevel;stroke-opacity:1"
d="m 7.8899553,11.212798 c 0.011985,0.131834 0.00197,0.201347 0.00197,0.201347"
id="path4182"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
</svg>
@@ -64,6 +64,7 @@ SET(QGIS_APP_SRCS
qgslayertreeviewfilterindicator.cpp
qgslayertreeviewmemoryindicator.cpp
qgslayertreeviewnonremovableindicator.cpp
qgslayertreeviewbadlayerindicatorprovider.cpp
qgsmapcanvasdockwidget.cpp
qgsmaplayerstylecategoriesmodel.cpp
qgsmaplayerstyleguiutils.cpp
@@ -293,6 +294,7 @@ SET (QGIS_APP_MOC_HDRS
qgslayertreeviewmemoryindicator.h
qgslayertreeviewfilterindicator.h
qgslayertreeviewnonremovableindicator.h
qgslayertreeviewbadlayerindicatorprovider.h
qgsmapcanvasdockwidget.h
qgsmaplayerstylecategoriesmodel.h
qgsmaplayerstyleguiutils.h
@@ -209,6 +209,7 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
#include "qgslayertreeviewembeddedindicator.h"
#include "qgslayertreeviewfilterindicator.h"
#include "qgslayertreeviewmemoryindicator.h"
#include "qgslayertreeviewbadlayerindicatorprovider.h"
#include "qgslayertreeviewnonremovableindicator.h"
#include "qgslayout.h"
#include "qgslayoutatlas.h"
@@ -3891,6 +3892,7 @@ void QgisApp::initLayerTreeView()
new QgsLayerTreeViewFilterIndicatorProvider( mLayerTreeView ); // gets parented to the layer view
new QgsLayerTreeViewEmbeddedIndicatorProvider( mLayerTreeView ); // gets parented to the layer view
new QgsLayerTreeViewMemoryIndicatorProvider( mLayerTreeView ); // gets parented to the layer view
new QgsLayerTreeViewBadLayerIndicatorProvider( mLayerTreeView ); // gets parented to the layer view
new QgsLayerTreeViewNonRemovableIndicatorProvider( mLayerTreeView ); // gets parented to the layer view

setupLayerTreeViewFromSettings();

0 comments on commit fc53e64

Please sign in to comment.
You can’t perform that action at this time.