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

Method showPluginMainTabView

src/jsplugin/JSPluginManager.cpp:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void JSPluginManager::showPluginMainTabView(JSPluginModule *moduleData)
209{
210 QString guid = moduleData->spec()->guid();
211 QPointer<WizWebsiteView> mainTabView;
212 WizMainTabBrowser *tabBrowser = m_mainWindow->mainTabView();
213 auto it = m_pluginMainTabViewCollection.find(guid);
214 if ( it == m_pluginMainTabViewCollection.end() || it.value().isNull() ) {
215 // create one
216 mainTabView = initPluginMainTabView(moduleData);
217 tabBrowser->createTab(mainTabView);
218 } else {
219 mainTabView = it.value();
220 if (!mainTabView.isNull())
221 tabBrowser->setCurrentWidget(mainTabView);
222 }
223 //
224 moduleData->emitShowEvent();
225}
226
227void JSPluginManager::handlePluginActionTriggered()
228{

Callers

nothing calls this directly

Calls 8

mainTabViewMethod · 0.80
endMethod · 0.80
isNullMethod · 0.80
createTabMethod · 0.80
emitShowEventMethod · 0.80
guidMethod · 0.45
specMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected