QGIS/python/gui/auto_generated/editorwidgets/qgsactionwidgetwrapper.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

62 lines
1.9 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsactionwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsActionWidgetWrapper : QgsWidgetWrapper
{
%Docstring(signature="appended")
Wraps a button widget to launch a layer action.
.. versionadded:: 3.22
%End
%TypeHeaderCode
#include "qgsactionwidgetwrapper.h"
%End
public:
QgsActionWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
%Docstring
Create an action widget wrapper
:param layer: The layer on which the feature is.
:param editor: An editor widget. Can be ``None`` if one should be
autogenerated.
:param parent: A parent widget
%End
public:
void setAction( const QgsAction &action );
%Docstring
Sets the ``action``.
%End
virtual bool valid() const;
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
public slots:
virtual void setFeature( const QgsFeature &feature );
virtual void setEnabled( bool enabled );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsactionwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/