| 159 | } |
| 160 | |
| 161 | WizWebsiteView *JSPluginManager::initPluginMainTabView(JSPluginModule *moduleData) |
| 162 | { |
| 163 | WizWebEngineInjectObjectCollection objects = { |
| 164 | {"JSPlugin", moduleData->parentPlugin()}, |
| 165 | {"JSPluginModule", moduleData}, |
| 166 | {"WizExplorerApp", m_mainWindow->publicAPIsObject()} |
| 167 | }; |
| 168 | WizWebEngineView *webView = new WizWebEngineView(objects, nullptr); |
| 169 | QPointer<WizWebsiteView> websiteView = new WizWebsiteView(webView, *m_mainWindow); |
| 170 | websiteView->viewHtml(QUrl::fromLocalFile(moduleData->spec()->htmlFileName())); |
| 171 | m_pluginMainTabViewCollection.insert(moduleData->spec()->guid(), websiteView); |
| 172 | return websiteView; |
| 173 | } |
| 174 | |
| 175 | void JSPluginManager::showPluginHtmlDialog(JSPluginModule *moduleData) |
| 176 | { |
nothing calls this directly
no test coverage detected