This class is a menu that is populated automatically with the actions defined for a given layer.
More...
#include <qgsactionmenu.h>
Detailed Description
This class is a menu that is populated automatically with the actions defined for a given layer.
Definition at line 30 of file qgsactionmenu.h.
Member Enumeration Documentation
- Enumerator:
| Invalid |
Invalid.
|
| MapLayerAction |
Standard actions (defined by core or plugins)
|
| AttributeAction |
Custom actions (manually defined in layer properties)
|
Definition at line 35 of file qgsactionmenu.h.
Constructor & Destructor Documentation
Constructs a new QgsActionMenu.
- Parameters
-
| layer | The layer that this action will be run upon. |
| feature | The feature that this action will be run upon. Make sure that this feature is available for the lifetime of this object. |
| parent | The usual QWidget parent. |
Definition at line 19 of file qgsactionmenu.cpp.
Constructs a new QgsActionMenu.
- Parameters
-
| layer | The layer that this action will be run upon. |
| fid | The feature id of the feature for which this action will be run. |
| parent | The usual QWidget parent. |
Definition at line 30 of file qgsactionmenu.cpp.
| QgsActionMenu::~QgsActionMenu |
( |
| ) |
|
Member Function Documentation
| void QgsActionMenu::reinit |
( |
| ) |
|
|
signal |
| void QgsActionMenu::setFeature |
( |
QgsFeature * |
feature | ) |
|
Change the feature on which actions are performed.
- Parameters
-
| 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. |
Definition at line 77 of file qgsactionmenu.cpp.
The documentation for this class was generated from the following files: