コード例 #1
0
ファイル: importxfigplugin.cpp プロジェクト: moceap/scribus
/*
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();
}
コード例 #2
0
ファイル: importodgplugin.cpp プロジェクト: HOST-Oman/scribus
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();
}
コード例 #3
0
CrosswordLoadSupportLocator::CrosswordLoadSupportLocator()
{
    registerFormats();
}
コード例 #4
0
AudioFormatManager* createAudioFormatManager(ReadWrite rw) {
  ScopedPointer<AudioFormatManager> afm(new AudioFormatManager);
  registerFormats(afm, rw);
  return afm.release();
}