Skip to content
Permalink
Browse files
add python bindings
  • Loading branch information
3nids committed Nov 9, 2021
1 parent c34f577 commit 93bb188e2ac341f6ca997692ccfaea9b75e0a6b8
@@ -0,0 +1,51 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/providers/qgsabstractdbtablemodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsAbstractDbTableModel : QStandardItemModel
{
%Docstring(signature="appended")
The :py:class:`QgsAbstractDbTableModel` class is a pure virtual model class for results in a database source widget selector

.. versionadded:: 3.24
%End

%TypeHeaderCode
#include "qgsabstractdbtablemodel.h"
%End
public:
explicit QgsAbstractDbTableModel( QObject *parent = 0 );
%Docstring
Constructor
%End

virtual QStringList columns() const = 0;
%Docstring
Returns the list of columns in the table
%End

virtual int defaultSearchColumn() const = 0;
%Docstring
Returns the index of the column used by default to filter the results (probaly the table name column if it exists)
%End

virtual bool searchableColumn( int column ) const;
%Docstring
Returns if the column should be searchable at the given index
%End
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/providers/qgsabstractdbtablemodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -528,6 +528,7 @@
%Include auto_generated/project/qgsprojectutils.sip
%Include auto_generated/project/qgsprojectversion.sip
%Include auto_generated/project/qgsprojectviewsettings.sip
%Include auto_generated/providers/qgsabstractdbtablemodel.sip
%Include auto_generated/providers/qgsabstractdatabaseproviderconnection.sip
%Include auto_generated/providers/qgsabstractproviderconnection.sip
%Include auto_generated/providers/qgsdataprovider.sip
@@ -0,0 +1,49 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/providers/qgsdbsourceselectbase.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsDbSourceSelectBase : QgsAbstractDataSourceWidget, protected Ui::QgsDbSourceSelectBase
{
%Docstring(signature="appended")
The :py:class:`QgsDbSourceSelectBase` class is a base class for database source widget selector

.. versionadded:: 3.24
%End

%TypeHeaderCode
#include "qgsdbsourceselectbase.h"
%End
public:
QgsDbSourceSelectBase( QWidget *parent = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::None );
%Docstring
Constructor
%End

protected:
void setSourceModel( QgsAbstractDbTableModel *model );
%Docstring
Sets the source model for the widget
%End

QgsDatabaseFilterProxyModel *proxyModel();
%Docstring
Returns the proxy model used to filter the results
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/providers/qgsdbsourceselectbase.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -378,6 +378,7 @@
%Include auto_generated/processing/models/qgsmodelgraphicitem.sip
%Include auto_generated/processing/models/qgsmodelgraphicsscene.sip
%Include auto_generated/processing/models/qgsmodelgraphicsview.sip
%Include auto_generated/providers/qgsdbsourceselectbase.sip
%Include auto_generated/raster/qgscolorrampshaderwidget.sip
%Include auto_generated/raster/qgshillshaderendererwidget.sip
%Include auto_generated/raster/qgsmultibandcolorrendererwidget.sip

0 comments on commit 93bb188

Please sign in to comment.