48 , mDescription( description )
50 , mCaptureOutput( capture )
51 , mShowInAttributeTable( true )
67 , mDescription( description )
68 , mShortTitle( shortTitle )
71 , mCaptureOutput( capture )
72 , mShowInAttributeTable( true )
88 , mDescription( description )
89 , mShortTitle( shortTitle )
92 , mCaptureOutput( capture )
93 , mShowInAttributeTable( showInAttributeTable )
115 bool capture()
const {
return mCaptureOutput; }
121 bool runable()
const;
130 bool mShowInAttributeTable;
133 #endif // QGSACTION_H QString iconPath() const
The path to the icon.
bool capture() const
Whether to capture output for display when this action is run.
ActionType type() const
The action type.
QString shortTitle() const
The short title is used to label user interface elements like buttons.
QgsAction(ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle=QString())
Create a new QgsAction.
QgsAction(ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, bool showInAttributeTable, const QString &shortTitle=QString())
Create a new QgsAction.
Utility class that encapsulates an action based on vector attributes.
QIcon icon() const
The icon.
QString name() const
The name of the action. This may be a longer description.
bool showInAttributeTable() const
Whether this action should be shown on the attribute table.
QString action() const
The action.
QgsAction(ActionType type, const QString &description, const QString &action, bool capture)
Create a new QgsAction.