@@ -59,6 +59,7 @@ class CORE_EXPORT QgsAction
59
59
* \param capture If this is set to true, the output will be captured when an action is run
60
60
* \param enabledOnlyWhenEditable if true then action is only enable in editmode
61
61
*/
62
+ #ifndef SIP_RUN
62
63
QgsAction ( ActionType type, const QString &description, const QString &command, bool capture = false , bool enabledOnlyWhenEditable = false )
63
64
: mType( type )
64
65
, mDescription( description )
@@ -67,6 +68,16 @@ class CORE_EXPORT QgsAction
67
68
, mId( QUuid::createUuid() )
68
69
, mIsEnabledOnlyWhenEditable( enabledOnlyWhenEditable )
69
70
{}
71
+ #else
72
+ QgsAction ( ActionType type, const QString &description, const QString &command, bool capture = false )
73
+ : mType( type )
74
+ , mDescription( description )
75
+ , mCommand( command )
76
+ , mCaptureOutput( capture )
77
+ , mId( QUuid::createUuid() )
78
+ , mIsEnabledOnlyWhenEditable( enabledOnlyWhenEditable )
79
+ {}
80
+ #endif
70
81
71
82
/* *
72
83
* Create a new QgsAction
@@ -81,6 +92,7 @@ class CORE_EXPORT QgsAction
81
92
* \param notificationMessage A particular message which reception will trigger the action
82
93
* \param enabledOnlyWhenEditable if true then action is only enable in editmode
83
94
*/
95
+ #ifndef SIP_RUN
84
96
QgsAction ( ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle = QString(), const QSet<QString> &actionScopes = QSet<QString>(), const QString ¬ificationMessage = QString(), bool enabledOnlyWhenEditable = false )
85
97
: mType( type )
86
98
, mDescription( description )
@@ -93,6 +105,20 @@ class CORE_EXPORT QgsAction
93
105
, mId( QUuid::createUuid() )
94
106
, mIsEnabledOnlyWhenEditable( enabledOnlyWhenEditable )
95
107
{}
108
+ #else
109
+ QgsAction ( ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle = QString(), const QSet<QString> &actionScopes = QSet<QString>(), const QString ¬ificationMessage = QString() )
110
+ : mType( type )
111
+ , mDescription( description )
112
+ , mShortTitle( shortTitle )
113
+ , mIcon( icon )
114
+ , mCommand( action )
115
+ , mCaptureOutput( capture )
116
+ , mActionScopes( actionScopes )
117
+ , mNotificationMessage( notificationMessage )
118
+ , mId( QUuid::createUuid() )
119
+ , mIsEnabledOnlyWhenEditable( enabledOnlyWhenEditable )
120
+ {}
121
+ #endif
96
122
97
123
// ! The name of the action. This may be a longer description.
98
124
QString name () const { return mDescription ; }
0 commit comments