/* void ImportXfigPlugin::addToMainWindowMenu(ScribusMainWindow *mw) { importAction->setEnabled(true); connect( importAction, SIGNAL(triggered()), SLOT(import()) ); mw->scrMenuMgr->addMenuItem(importAction, "FileImport"); } */ void ImportXfigPlugin::languageChange() { importAction->setText( tr("Import Xfig...")); // (Re)register file format support unregisterAll(); registerFormats(); }
ImportOdgPlugin::ImportOdgPlugin() : LoadSavePlugin(), importAction(new ScrAction(ScrAction::DLL, "", QKeySequence(), this)) { // Set action info in languageChange, so we only have to do it in one // place. This includes registering file format support. registerFormats(); languageChange(); }
CrosswordLoadSupportLocator::CrosswordLoadSupportLocator() { registerFormats(); }
AudioFormatManager* createAudioFormatManager(ReadWrite rw) { ScopedPointer<AudioFormatManager> afm(new AudioFormatManager); registerFormats(afm, rw); return afm.release(); }