QGIS API Documentation
2.6.0-Brighton
|
This class is a menu that is populated automatically with the actions defined for a given layer. More...
#include <qgsactionmenu.h>
Classes | |
struct | ActionData |
Public Types | |
enum | ActionType { Invalid, MapLayerAction, AttributeAction } |
Signals | |
void | reinit () |
Public Member Functions | |
QgsActionMenu (QgsVectorLayer *layer, const QgsFeature *feature, QWidget *parent=0) | |
Constructs a new QgsActionMenu. | |
QgsActionMenu (QgsVectorLayer *layer, const QgsFeatureId fid, QWidget *parent=0) | |
Constructs a new QgsActionMenu. | |
~QgsActionMenu () | |
Destructor. | |
void | setFeature (QgsFeature *feature) |
Change the feature on which actions are performed. | |
void | setFeature (QgsFeatureId feature) |
setFeature |
This class is a menu that is populated automatically with the actions defined for a given layer.
|
explicit |
Constructs a new QgsActionMenu.
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. |
|
explicit |
Constructs a new QgsActionMenu.
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. |
QgsActionMenu::~QgsActionMenu | ( | ) |
Destructor.
|
signal |
void QgsActionMenu::setFeature | ( | QgsFeature * | feature | ) |
Change the feature on which actions are performed.
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. |
void QgsActionMenu::setFeature | ( | QgsFeatureId | feature | ) |
setFeature
feature |