25 #ifndef QGSATTRIBUTEACTION_H
26 #define QGSATTRIBUTEACTION_H
54 mType( type ), mName( name ), mAction( action ), mCaptureOutput( capture ) {}
57 QString
name()
const {
return mName; }
60 QString
action()
const {
return mAction; }
66 bool capture()
const {
return mCaptureOutput; }
71 return mType == Generic ||
72 mType == GenericPython ||
75 #elif defined(Q_OS_MAC)
115 void doAction(
int index,
117 int defaultValueIndex = 0,
118 void ( *executePython )(
const QString & ) = 0 );
125 QString expandAction( QString action,
127 uint defaultValueIndex );
130 bool writeXML( QDomNode& layer_node, QDomDocument& doc )
const;
133 bool readXML(
const QDomNode& layer_node );
135 int size()
const {
return mActions.size(); }
139 static void setPythonExecute(
void ( * )(
const QString & ) );
144 static void ( *smPythonExecute )(
const QString & );