Skip to content
Permalink
Browse files
Split qgsdataitem.h/cpp into multiple files for individual classes
to avoid mega file which triggers an include explosion
  • Loading branch information
nyalldawson committed May 20, 2021
1 parent 68c98b5 commit b5aace6e822d2f9c9a442e01547baedb4a1bb31a
Showing with 3,606 additions and 2,831 deletions.
  1. +0 −1 python/core/auto_additions/qgsdataitem.py
  2. +2 −0 python/core/auto_additions/qgslayeritem.py
  3. +48 −0 python/core/auto_generated/browser/qgsconnectionsitem.sip.in
  4. +59 −0 python/core/auto_generated/browser/qgsdatabaseschemaitem.sip.in
  5. +92 −0 python/core/auto_generated/browser/qgsdatacollectionitem.sip.in
  6. +6 −664 python/core/auto_generated/browser/qgsdataitem.sip.in
  7. +0 −1 python/core/auto_generated/browser/qgsdataitemprovider.sip.in
  8. +159 −0 python/core/auto_generated/browser/qgsdirectoryitem.sip.in
  9. +75 −0 python/core/auto_generated/browser/qgsfavoritesitem.sip.in
  10. +123 −0 python/core/auto_generated/browser/qgsfieldsitem.sip.in
  11. +162 −0 python/core/auto_generated/browser/qgslayeritem.sip.in
  12. +47 −0 python/core/auto_generated/browser/qgsprojectitem.sip.in
  13. +69 −0 python/core/auto_generated/browser/qgszipitem.sip.in
  14. +9 −0 python/core/core_auto.sip
  15. +8 −0 src/app/browser/qgsinbuiltdataitemproviders.cpp
  16. +2 −0 src/app/qgisapp.cpp
  17. +1 −0 src/app/qgsalignrasterdialog.cpp
  18. +3 −0 src/app/qgsappbrowserproviders.h
  19. +1 −0 src/app/qgsnewspatialitelayerdialog.cpp
  20. +18 −0 src/core/CMakeLists.txt
  21. +4 −0 src/core/browser/qgsbrowsermodel.cpp
  22. +4 −0 src/core/browser/qgsbrowsermodel.h
  23. +2 −0 src/core/browser/qgsbrowserproxymodel.cpp
  24. +24 −0 src/core/browser/qgsconnectionsitem.cpp
  25. +52 −0 src/core/browser/qgsconnectionsitem.h
  26. +60 −0 src/core/browser/qgsdatabaseschemaitem.cpp
  27. +61 −0 src/core/browser/qgsdatabaseschemaitem.h
  28. +115 −0 src/core/browser/qgsdatacollectionitem.cpp
  29. +95 −0 src/core/browser/qgsdatacollectionitem.h
  30. +10 −1,434 src/core/browser/qgsdataitem.cpp
  31. +17 −701 src/core/browser/qgsdataitem.h
  32. +2 −3 src/core/browser/qgsdataitemprovider.h
  33. +502 −0 src/core/browser/qgsdirectoryitem.cpp
  34. +187 −0 src/core/browser/qgsdirectoryitem.h
  35. +203 −0 src/core/browser/qgsfavoritesitem.cpp
  36. +119 −0 src/core/browser/qgsfavoritesitem.h
  37. +191 −0 src/core/browser/qgsfieldsitem.cpp
  38. +132 −0 src/core/browser/qgsfieldsitem.h
  39. +286 −0 src/core/browser/qgslayeritem.cpp
  40. +155 −0 src/core/browser/qgslayeritem.h
  41. +38 −0 src/core/browser/qgsprojectitem.cpp
  42. +50 −0 src/core/browser/qgsprojectitem.h
  43. +235 −0 src/core/browser/qgszipitem.cpp
  44. +75 −0 src/core/browser/qgszipitem.h
  45. +2 −0 src/core/layertree/qgslayertreemodel.cpp
  46. +1 −1 src/core/providers/ept/qgseptdataitems.h
  47. +1 −0 src/core/providers/gdal/qgsgdaldataitems.cpp
  48. +1 −1 src/core/providers/gdal/qgsgdaldataitems.h
  49. +1 −0 src/core/providers/gdal/qgsgdalprovider.cpp
  50. +0 −1 src/core/providers/gdal/qgsgdalprovider.h
  51. +2 −0 src/core/providers/ogr/qgsgeopackagedataitems.cpp
  52. +3 −1 src/core/providers/ogr/qgsgeopackagedataitems.h
  53. +3 −0 src/core/providers/ogr/qgsogrdataitems.cpp
  54. +2 −1 src/core/providers/ogr/qgsogrdataitems.h
  55. +1 −0 src/core/providers/ogr/qgsogrprovider.cpp
  56. +0 −1 src/core/providers/qgsdataprovider.h
  57. +1 −0 src/core/qgsdatabasetablemodel.cpp
  58. +1 −0 src/core/qgsmaplayermodel.cpp
  59. +1 −0 src/core/vectortile/qgsvectortiledataitems.cpp
  60. +2 −1 src/core/vectortile/qgsvectortiledataitems.h
  61. +1 −0 src/gui/providers/gdal/qgsgdalguiprovider.cpp
  62. +1 −1 src/gui/providers/ogr/qgsogrdbtablemodel.h
  63. +3 −0 src/gui/qgsbrowserdockwidget.cpp
  64. +0 −1 src/gui/qgsbrowserdockwidget.h
  65. +2 −0 src/gui/qgsbrowserdockwidget_p.cpp
  66. +0 −1 src/gui/qgsbrowserdockwidget_p.h
  67. +0 −1 src/gui/qgsbrowserguimodel.h
  68. +1 −0 src/gui/qgsdatasourceselectdialog.cpp
  69. +1 −0 src/gui/qgsidentifymenu.cpp
  70. +2 −0 src/gui/qgsnewdatabasetablenamewidget.cpp
  71. +1 −0 src/gui/qgsnewgeopackagelayerdialog.cpp
  72. +1 −0 src/gui/qgsnewmemorylayerdialog.cpp
  73. +1 −0 src/gui/qgsnewvectorlayerdialog.cpp
  74. +1 −0 src/gui/qgsnewvectortabledialog.cpp
  75. +1 −0 src/gui/qgstextformatwidget.cpp
  76. +1 −0 src/gui/symbology/qgsstylemanagerdialog.cpp
  77. +1 −0 src/gui/symbology/qgssymbollayerwidget.cpp
  78. +1 −0 src/plugins/geometry_checker/qgsgeometrycheckersetuptab.cpp
  79. +4 −1 src/providers/arcgisrest/qgsarcgisrestdataitems.h
  80. +3 −1 src/providers/db2/qgsdb2dataitems.h
  81. +1 −0 src/providers/db2/qgsdb2tablemodel.cpp
  82. +0 −1 src/providers/db2/qgsdb2tablemodel.h
  83. +2 −1 src/providers/geonode/qgsgeonodedataitems.h
  84. +1 −1 src/providers/hana/qgshanadataitems.h
  85. +1 −1 src/providers/mdal/qgsmdaldataitems.h
  86. +1 −0 src/providers/mssql/qgsmssqldataitems.cpp
  87. +5 −1 src/providers/mssql/qgsmssqldataitems.h
  88. +1 −0 src/providers/mssql/qgsmssqlsourceselect.cpp
  89. +1 −0 src/providers/mssql/qgsmssqltablemodel.cpp
  90. +2 −1 src/providers/oracle/qgsoracledataitems.h
  91. +2 −1 src/providers/ows/qgsowsdataitems.h
  92. +0 −1 src/providers/ows/qgsowsprovider.h
  93. +1 −1 src/providers/pdal/qgspdaldataitems.h
  94. +1 −0 src/providers/postgres/qgspgsourceselect.cpp
  95. +1 −0 src/providers/postgres/qgspgtablemodel.cpp
  96. +2 −0 src/providers/postgres/qgspostgresdataitems.cpp
  97. +4 −1 src/providers/postgres/qgspostgresdataitems.h
  98. +1 −0 src/providers/spatialite/qgsspatialitedataitems.cpp
  99. +4 −1 src/providers/spatialite/qgsspatialitedataitems.h
  100. +1 −0 src/providers/spatialite/qgsspatialitetablemodel.cpp
  101. +3 −1 src/providers/wcs/qgswcsdataitems.h
  102. +4 −1 src/providers/wfs/qgswfsdataitems.h
  103. +3 −1 src/providers/wms/qgswmsdataitems.h
  104. +1 −0 tests/src/app/testqgsappbrowserproviders.cpp
  105. +2 −0 tests/src/core/testqgsbrowsermodel.cpp
  106. +3 −0 tests/src/core/testqgsbrowserproxymodel.cpp
  107. +2 −0 tests/src/core/testqgsdataitem.cpp
  108. +3 −0 tests/src/core/testziplayer.cpp
  109. +2 −0 tests/src/gui/testqgsfilewidget.cpp
@@ -1,4 +1,3 @@
# The following has been generated automatically from src/core/browser/qgsdataitem.h
QgsDataItem.Type.baseClass = QgsDataItem
QgsDataItem.State.baseClass = QgsDataItem
QgsLayerItem.LayerType.baseClass = QgsLayerItem
@@ -0,0 +1,2 @@
# The following has been generated automatically from src/core/browser/qgslayeritem.h
QgsLayerItem.LayerType.baseClass = QgsLayerItem
@@ -0,0 +1,48 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsconnectionsitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsConnectionsRootItem : QgsDataCollectionItem
{
%Docstring(signature="appended")
A Collection that represents a root group of connections from a single data provider

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsconnectionsitem.h"
%End
public:

QgsConnectionsRootItem( QgsDataItem *parent /TransferThis/, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
%Docstring
Constructor for QgsConnectionsRootItem, with the specified ``parent`` item.

The ``name`` argument specifies the text to show in the model for the item. A translated string should
be used wherever appropriate.

The ``path`` argument gives the item path in the browser tree. The ``path`` string can take any form,
but :py:class:`QgsSchemaItem` items pointing to different logical locations should always use a different item ``path``.

The optional ``providerKey`` string can be used to specify the key for the :py:class:`QgsDataItemProvider` that created this item.
%End

~QgsConnectionsRootItem();
};



/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsconnectionsitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -0,0 +1,59 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsdatabaseschemaitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsDatabaseSchemaItem : QgsDataCollectionItem
{
%Docstring(signature="appended")
A Collection that represents a database schema item

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsdatabaseschemaitem.h"
%End
public:

QgsDatabaseSchemaItem( QgsDataItem *parent /TransferThis/, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
%Docstring
Constructor for QgsDatabaseSchemaItem, with the specified ``parent`` item.

The ``name`` argument specifies the text to show in the model for the item. A translated string should
be used wherever appropriate.

The ``path`` argument gives the item path in the browser tree. The ``path`` string can take any form,
but :py:class:`QgsSchemaItem` items pointing to different logical locations should always use a different item ``path``.

The optional ``providerKey`` string can be used to specify the key for the :py:class:`QgsDataItemProvider` that created this item.
%End

~QgsDatabaseSchemaItem();

virtual QgsAbstractDatabaseProviderConnection *databaseConnection() const;


static QIcon iconDataCollection();
%Docstring
Returns the standard browser data collection icon.

.. seealso:: :py:func:`iconDir`
%End

};



/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsdatabaseschemaitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -0,0 +1,92 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsdatacollectionitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsDataCollectionItem : QgsDataItem
{
%Docstring(signature="appended")
A Collection: logical collection of layers or subcollections, e.g. GRASS location/mapset, database? wms source?
%End

%TypeHeaderCode
#include "qgsdatacollectionitem.h"
%End
public:

QgsDataCollectionItem( QgsDataItem *parent /TransferThis/, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
%Docstring
Constructor for QgsDataCollectionItem, with the specified ``parent`` item.

The ``name`` argument specifies the text to show in the model for the item. A translated string should
be used wherever appropriate.

The ``path`` argument gives the item path in the browser tree. The ``path`` string can take any form,
but QgsDataCollectionItem items pointing to different logical locations should always use a different item ``path``.

The optional ``providerKey`` string can be used to specify the key for the :py:class:`QgsDataItemProvider` that created this item.
%End

~QgsDataCollectionItem();

void addChild( QgsDataItem *item /Transfer/ );

static QIcon iconDir( const QColor &fillColor = QColor(), const QColor &strokeColor = QColor() );
%Docstring
Returns the standard browser directory icon.

Since QGIS 3.20 the optional ``fillColor`` and ``strokeColor`` arguments can be used to specify
a fill and stroke color for the icon.

.. seealso:: :py:func:`iconDataCollection`
%End

static QIcon iconDataCollection();
%Docstring
Returns the standard browser data collection icon.

.. seealso:: :py:func:`iconDir`
%End

virtual QgsAbstractDatabaseProviderConnection *databaseConnection() const;


protected:

static QIcon openDirIcon( const QColor &fillColor = QColor(), const QColor &strokeColor = QColor() );
%Docstring
Shared open directory icon.

Since QGIS 3.20 the optional ``fillColor`` and ``strokeColor`` arguments can be used to specify
a fill and stroke color for the icon.

.. versionadded:: 3.4
%End

static QIcon homeDirIcon( const QColor &fillColor = QColor(), const QColor &strokeColor = QColor() );
%Docstring
Shared home directory icon.

Since QGIS 3.20 the optional ``fillColor`` and ``strokeColor`` arguments can be used to specify
a fill and stroke color for the icon.

.. versionadded:: 3.4
%End

};




/************************************************************************
* This file has been generated automatically from *
* *
* src/core/browser/qgsdatacollectionitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit b5aace6

Please sign in to comment.