MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / handlePluginPopupRequest

Method handlePluginPopupRequest

src/jsplugin/JSPluginManager.cpp:261–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void JSPluginManager::handlePluginPopupRequest(QAction *ac, const QPoint &pos)
262{
263 QString moduleGuid = ac->data().toString();
264 if (moduleGuid.isEmpty())
265 return;
266
267 JSPluginModule *moduleData = moduleByGUID(moduleGuid);
268 if (!moduleData)
269 return;
270
271 QString slotType = moduleData->spec()->slotType();
272 if ( slotType == "SelectorWindow" ) {
273 showPluginSelectorWindow(moduleData, pos);
274 } else if ( slotType == "HtmlDialog" ) {
275 showPluginHtmlDialog(moduleData);
276 } else if ( slotType == "MainTabView") {
277 showPluginMainTabView(moduleData);
278 } else if ( slotType == "ExecuteScript" ) {
279 executeModuleScript(moduleData);
280 }
281}
282
283void JSPluginManager::handleDocumentChanged()
284{

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.80
slotTypeMethod · 0.80
toStringMethod · 0.45
dataMethod · 0.45
specMethod · 0.45

Tested by

no test coverage detected