Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51266 from kadas-albireo/providersublayerdialog
Move QgsProviderSublayersDialog to GUI
- Loading branch information
Showing
6 changed files
with
151 additions
and
4 deletions.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
python/gui/auto_generated/qgsprovidersublayersdialog.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsprovidersublayersdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsProviderSublayerDialogModel : QgsProviderSublayerModel | ||
{ | ||
%Docstring(signature="appended") | ||
|
||
A model for representing the sublayers present in a URI for the :py:class:`QgsProviderSublayersDialog`. | ||
|
||
.. versionadded:: 3.30 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprovidersublayersdialog.h" | ||
%End | ||
public: | ||
|
||
QgsProviderSublayerDialogModel( QObject *parent = 0 ); | ||
%Docstring | ||
Constructor. | ||
%End | ||
|
||
virtual QVariant data( const QModelIndex &index, int role ) const; | ||
|
||
virtual Qt::ItemFlags flags( const QModelIndex &index ) const; | ||
|
||
|
||
void setGeometryTypesResolved( bool resolved ); | ||
%Docstring | ||
Sets whether geometry types are resolved. | ||
%End | ||
|
||
}; | ||
|
||
class QgsProviderSublayersDialog : QDialog | ||
{ | ||
%Docstring(signature="appended") | ||
|
||
Dialog for selecting provider sublayers. | ||
|
||
.. versionadded:: 3.30 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprovidersublayersdialog.h" | ||
%End | ||
public: | ||
|
||
QgsProviderSublayersDialog( const QString &uri, | ||
const QString &filePath, | ||
const QList< QgsProviderSublayerDetails> initialDetails = QList< QgsProviderSublayerDetails>(), | ||
const QList< QgsMapLayerType > &acceptableTypes = QList< QgsMapLayerType >(), | ||
QWidget *parent /TransferThis/ = 0, | ||
Qt::WindowFlags fl = Qt::WindowFlags() ); | ||
%Docstring | ||
Constructor. | ||
%End | ||
|
||
void setNonLayerItems( const QList< QgsProviderSublayerModel::NonLayerItem > &items ); | ||
%Docstring | ||
Set list of non-layer items (e.g. embedded QGIS project items). | ||
%End | ||
|
||
~QgsProviderSublayersDialog(); | ||
|
||
QList< QgsProviderSublayerDetails > selectedLayers() const; | ||
%Docstring | ||
Returns the list of selected layers. | ||
%End | ||
|
||
QList< QgsProviderSublayerModel::NonLayerItem > selectedNonLayerItems() const; | ||
%Docstring | ||
Returns the list of selected non-layer items (e.g. embedded QGIS project items). | ||
%End | ||
|
||
QString groupName() const; | ||
%Docstring | ||
Returns an appropriate name for the layer group. | ||
%End | ||
|
||
signals: | ||
|
||
void layersAdded( const QList< QgsProviderSublayerDetails > &layers ); | ||
%Docstring | ||
Emitted when sublayers selected from the dialog should be added to the project. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsprovidersublayersdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters