QGIS/python/gui/auto_generated/qgsactionmenu.sip.in

111 lines
3.4 KiB
Plaintext
Raw Normal View History

2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsactionmenu.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsActionMenu : QMenu
{
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This class is a menu that is populated automatically with the actions defined for a given layer.
%End
2017-05-23 14:36:52 +02:00
%TypeHeaderCode
#include "qgsactionmenu.h"
%End
public:
enum ActionType
{
2017-05-23 14:36:52 +02:00
Invalid,
MapLayerAction,
AttributeAction
};
struct ActionData
{
ActionData();
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for ActionData.
%End
ActionData( const QgsAction &action, QgsFeatureId featureId, QgsMapLayer *mapLayer );
ActionData( QgsMapLayerAction *action, QgsFeatureId featureId, QgsMapLayer *mapLayer );
QgsActionMenu::ActionType actionType;
QVariant actionData;
QgsFeatureId featureId;
QgsMapLayer *mapLayer;
};
explicit QgsActionMenu( QgsVectorLayer *layer, const QgsFeature &feature, const QString &actionScope, QWidget *parent /TransferThis/ = 0 );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructs a new QgsActionMenu
2017-05-23 14:36:52 +02:00
2017-12-15 10:36:55 -04:00
:param layer: The layer that this action will be run upon.
:param feature: The feature that this action will be run upon. Make sure that this feature is available
for the lifetime of this object.
:param parent: The usual QWidget parent.
:param actionScope: The action scope this menu will run in
2017-05-23 14:36:52 +02:00
%End
explicit QgsActionMenu( QgsVectorLayer *layer, const QgsFeatureId fid, const QString &actionScope, QWidget *parent /TransferThis/ = 0 );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructs a new QgsActionMenu
2017-05-23 14:36:52 +02:00
2017-12-15 10:36:55 -04:00
:param layer: The layer that this action will be run upon.
:param fid: The feature id of the feature for which this action will be run.
:param parent: The usual QWidget parent.
:param actionScope: The action scope this menu will run in
2017-05-23 14:36:52 +02:00
%End
void setFeature( const QgsFeature &feature );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Change the feature on which actions are performed
2017-05-23 14:36:52 +02:00
2017-12-15 10:36:55 -04:00
:param feature: A feature. Will not take ownership. It's the callers responsibility to keep the feature
as long as the menu is displayed and the action is running.
2018-02-25 08:21:52 +10:00
%End
void setMode( const QgsAttributeForm::Mode mode );
%Docstring
Change the mode of the actions
:param mode: The mode of the attribute form
2017-05-23 14:36:52 +02:00
%End
void setExpressionContextScope( const QgsExpressionContextScope &scope );
%Docstring
2017-12-15 10:36:55 -04:00
Sets an expression context scope used to resolve underlying actions.
.. versionadded:: 3.0
%End
QgsExpressionContextScope expressionContextScope() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns an expression context scope used to resolve underlying actions.
.. versionadded:: 3.0
%End
signals:
void reinit();
2015-11-10 20:21:10 +00:00
};
2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsactionmenu.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/