Skip to content

Commit

Permalink
add python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 9, 2021
1 parent c34f577 commit 93bb188
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
@@ -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 *
************************************************************************/
1 change: 1 addition & 0 deletions python/core/core_auto.sip
Expand Up @@ -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
Expand Down
49 changes: 49 additions & 0 deletions python/gui/auto_generated/providers/qgsdbsourceselectbase.sip.in
@@ -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 *
************************************************************************/
1 change: 1 addition & 0 deletions python/gui/gui_auto.sip
Expand Up @@ -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
Expand Down

0 comments on commit 93bb188

Please sign in to comment.