QGIS/python/gui/auto_generated/attributetable/qgsfeaturelistview.sip.in

174 lines
4.6 KiB
Plaintext
Raw Normal View History

2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistview.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFeatureListView : QListView
{
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Shows a list of features and renders a edit button next to each feature.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
Accepts a display expression to define the way, features are rendered.
Uses a QgsFeatureListModel as source model.
2017-06-08 15:51:05 +02:00
%End
%TypeHeaderCode
2017-06-08 15:51:05 +02:00
#include "qgsfeaturelistview.h"
%End
public:
2017-06-08 15:51:05 +02:00
explicit QgsFeatureListView( QWidget *parent /TransferThis/ = 0 );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Creates a feature list view
:param parent: owner
2017-06-08 15:51:05 +02:00
%End
QgsVectorLayerCache *layerCache();
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the layer cache
:return: the layer cache used as backend
2017-06-08 15:51:05 +02:00
%End
virtual void setModel( QgsFeatureListModel *featureListModel );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the QgsFeatureListModel which is used to retrieve information
2017-06-08 15:51:05 +02:00
:param featureListModel: The model to use
2017-06-08 15:51:05 +02:00
%End
QgsFeatureListModel *featureListModel();
2017-06-08 15:51:05 +02:00
%Docstring
Gets the featureListModel used by this view
2017-12-15 10:36:55 -04:00
:return: The model in use
2017-06-08 15:51:05 +02:00
%End
bool setDisplayExpression( const QString &displayExpression );
%Docstring
2017-12-15 10:36:55 -04:00
The display expression is an expression used to render the fields into a single string
which is displaied.
:param displayExpression: The expression used to render the feature
2017-06-08 15:51:05 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsExpression`
2017-06-08 15:51:05 +02:00
%End
2014-01-26 18:35:21 +01:00
const QString displayExpression() const;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the expression which is currently used to render the features.
:return: A string containing the currend display expression
2017-06-08 15:51:05 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsExpression`
2017-06-08 15:51:05 +02:00
%End
QString parserErrorString();
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-19 11:43:52 -04:00
Returns a detailed message about errors while parsing a :py:class:`QgsExpression`.
2017-12-15 10:36:55 -04:00
:return: A message containing information about the parser error.
2017-06-08 15:51:05 +02:00
%End
2014-01-26 18:35:21 +01:00
QgsFeatureIds currentEditSelection();
2017-06-08 15:51:05 +02:00
%Docstring
Gets the currentEditSelection
2017-12-15 10:36:55 -04:00
:return: A list of edited feature ids
2017-06-08 15:51:05 +02:00
%End
2014-01-26 18:35:21 +01:00
2014-05-27 23:22:50 +02:00
void setCurrentFeatureEdited( bool state );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets if the currently shown form has received any edit events so far.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param state: The state
2017-06-08 15:51:05 +02:00
%End
2014-05-27 23:22:50 +02:00
void setFeatureSelectionManager( QgsIFeatureSelectionManager *featureSelectionManager /Transfer/ );
2017-06-08 15:51:05 +02:00
%Docstring
setFeatureSelectionManager
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param featureSelectionManager: We will take ownership
2017-06-08 15:51:05 +02:00
%End
2015-11-04 08:14:02 +01:00
protected:
virtual void mouseMoveEvent( QMouseEvent *event );
virtual void mousePressEvent( QMouseEvent *event );
virtual void mouseReleaseEvent( QMouseEvent *event );
virtual void keyPressEvent( QKeyEvent *event );
2015-02-03 02:21:52 +01:00
virtual void contextMenuEvent( QContextMenuEvent *event );
signals:
2017-06-08 15:51:05 +02:00
void currentEditSelectionChanged( QgsFeature &feat );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is emitted, whenever the current edit selection has been changed.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param feat: the feature, which will be edited.
2017-06-08 15:51:05 +02:00
%End
void displayExpressionChanged( const QString &expression );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is emitted, whenever the display expression is successfully changed
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param expression: The expression that was applied
2017-06-08 15:51:05 +02:00
%End
2015-02-03 02:21:52 +01:00
void willShowContextMenu( QgsActionMenu *menu, const QModelIndex &atIndex );
%Docstring
Is emitted, when the context menu is created to add the specific actions to it
:param menu: is the already created context menu
:param atIndex: is the position of the current feature in the model
%End
public slots:
2017-06-08 15:51:05 +02:00
void setEditSelection( const QgsFeatureIds &fids );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the feature(s) to be edited
2017-06-08 15:51:05 +02:00
:param fids: A list of features to be edited
2017-06-08 15:51:05 +02:00
%End
void setEditSelection( const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the feature(s) to be edited
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param index: The selection to set
:param command: selection update mode
2017-06-08 15:51:05 +02:00
%End
2014-05-27 23:22:50 +02:00
virtual void selectAll();
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Select all currently visible features
2017-06-08 15:51:05 +02:00
%End
2017-06-08 15:51:05 +02:00
void repaintRequested( const QModelIndexList &indexes );
void repaintRequested();
2017-06-08 15:51:05 +02:00
};
2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistview.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/