diff --git a/src/app/qgisapp.h b/src/app/qgisapp.h index 38584202aed..fcbe0353956 100644 --- a/src/app/qgisapp.h +++ b/src/app/qgisapp.h @@ -694,6 +694,13 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow //! Returns pointer to the identify map tool - used by identify tool in 3D view QgsMapToolIdentifyAction *identifyMapTool() const { return mMapTools.mIdentify; } + /** + * Take screenshots for user documentation + * @param saveDirectory path were the screenshots will be saved + * @param categories an int as a flag value of QgsAppScreenShots::Categories + */ + void takeAppScreenShots( const QString &saveDirectory, const int categories = 0 ); + public slots: //! save current vector layer void saveAsFile( QgsMapLayer *layer = nullptr, bool onlySelected = false ); @@ -1967,6 +1974,9 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow //! Populates project "load from" / "save to" menu based on project storages (when the menu is about to be shown) void populateProjectStorageMenu( QMenu *menu, bool saving ); + //! Create the option dialog + QgsOptions *createOptionsDialog( QWidget *parent = nullptr ); + QgisAppStyleSheet *mStyleSheetBuilder = nullptr; // actions for menus and toolbars ----------------- @@ -2139,7 +2149,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow //! interface to QgisApp for plugins QgisAppInterface *mQgisInterface = nullptr; - friend class QgisAppInterface; QSplashScreen *mSplash = nullptr; //! list of recently opened/saved project files @@ -2305,7 +2314,13 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow //! True if we are blocking the activeLayerChanged signal from being emitted bool mBlockActiveLayerChanged = false; + std::unique_ptr mGeometryValidationService; + QgsGeometryValidationModel *mGeometryValidationModel = nullptr; + QgsGeometryValidationDock *mGeometryValidationDock = nullptr; + friend class TestQgisAppPython; + friend class QgisAppInterface; + friend class QgsAppScreenShots; }; #ifdef ANDROID diff --git a/src/app/qgsvectorlayerproperties.cpp b/src/app/qgsvectorlayerproperties.cpp index f4db288ede6..8857af49e9a 100644 --- a/src/app/qgsvectorlayerproperties.cpp +++ b/src/app/qgsvectorlayerproperties.cpp @@ -793,9 +793,6 @@ void QgsVectorLayerProperties::apply() } mLayer->geometryOptions()->setGeometryChecks( activeChecks ); - // update symbology - emit refreshLegend( mLayer->id() ); - mLayer->triggerRepaint(); // notify the project we've made a change QgsProject::instance()->setDirty( true );