void System::initializeInstance() { initializeGL(); Engine* engine = Engine::getInstance(); engine->getMeshCache()->resize(10 * 1000000); // 10MB engine->getTextureCache()->resize(25 * 1000000); // 25MB engine->getAnimationCache()->resize(10 * 1000000); // 10MB ProfileManager::getInstance()->loadProfiles(); MainWindow* win = new MainWindow; win->show(); win->initialize(); connect(qApp, SIGNAL(lastWindowClosed()), this, SLOT(destroyInstance())); EntityManager::getInstance(); initializing = false; emit initializationDone(); }
/*! Initialize the SIM toolkit functionality. Once initialization is complete, the modem vendor object must call initializationDone(). If the initialization will take some time, and will not be complete before initialize() returns, the implementation should call initializationStarted(). The default implementation calls initializationDone(). */ void QModemSimToolkit::initialize() { if ( d->initActive ) initializationDone(); else d->service->stkInitDone(); }
ICore::ICore(MainWindow *mainwindow) { m_instance = this; m_mainwindow = mainwindow; // Save settings once after all plugins are initialized: connect(ExtensionSystem::PluginManager::instance(), SIGNAL(initializationDone()), this, SIGNAL(saveSettingsRequested())); }
ICore::ICore(MainWindow *mainwindow) { m_instance = this; m_mainwindow = mainwindow; // Save settings once after all plugins are initialized: connect(PluginManager::instance(), SIGNAL(initializationDone()), this, SLOT(saveSettings())); connect(m_mainwindow, SIGNAL(newItemDialogRunningChanged()), this, SIGNAL(newItemDialogRunningChanged())); }