Logo Search packages:      
Sourcecode: packagesearch version File versions

void PackageSearchImpl::initialize (  )  [slot]

Call this function after the dialog is shown to initialize the whole system.

Definition at line 94 of file packagesearchimpl.cpp.

References _plugins, _pPackageNamePlugin, _pPluginManager, addPlugin(), NPlugin::PluginManager::loadPlugins(), packages(), and reportWarning().

{
      // create the hard coded plugin
      _pPackageNamePlugin = new NPlugin::PackageNamePlugin();
      this->addPlugin(_pPackageNamePlugin);

      _pPluginManager->loadPlugins();
      if (_plugins.empty())   // if no plugins were loaded
      {
            reportWarning("No Plugins Loaded","This program needs plugins to do anything usefull at all.<br>"
                  "Please install or activate some plugins.");
      }
      _pInformationContainer->setCurrentPage(0);
      const set<string>& packages_ = packages();
      for (set<string>::const_iterator it = packages_.begin(); it != packages_.end(); ++it)
            _pPackageSelection->insertItem(toQString(*it));
      _pPackageSelection->setMinimumWidth(100);
      _pPackageSelection->setCurrentText("");
}


Generated by  Doxygen 1.6.0   Back to index