MCPcopy Create free account
hub / github.com/KDE/kdevelop / commonActions

Method commonActions

kdevplatform/vcs/vcspluginhelper.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197QMenu* VcsPluginHelper::commonActions(QWidget* parent)
198{
199 Q_D(VcsPluginHelper);
200
201 /* TODO: the following logic to determine which actions need to be enabled
202 * or disabled does not work properly. What needs to be implemented is that
203 * project items that are vc-controlled enable all except add, project
204 * items that are not vc-controlled enable add action. For urls that cannot
205 * be made into a project item, or if the project has no associated VC
206 * plugin we need to check whether a VC controls the parent dir, if we have
207 * one we assume the urls can be added but are not currently controlled. If
208 * the url is already version controlled then just enable all except add
209 */
210 return d->createMenu(parent);
211}
212
213#define EXECUTE_VCS_METHOD( method ) \
214 d->plugin->core()->runController()->registerJob( d->vcs-> method ( d->ctxUrls ) )

Callers 4

contextMenuExtensionMethod · 0.80
contextMenuExtensionMethod · 0.80
contextMenuExtensionMethod · 0.80
contextMenuExtensionMethod · 0.80

Calls 1

createMenuMethod · 0.80

Tested by

no test coverage detected