| 259 | } |
| 260 | |
| 261 | void 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 | |
| 283 | void JSPluginManager::handleDocumentChanged() |
| 284 | { |