mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#include "generator_fb.h"
|
|
|
|
#include "converter.h"
|
|
|
|
#include <kaboutdata.h>
|
|
#include <klocale.h>
|
|
#include <kconfigdialog.h>
|
|
|
|
static KAboutData createAboutData()
|
|
{
|
|
KAboutData aboutData(
|
|
"okular_fictionbook",
|
|
"okular_fictionbook",
|
|
ki18n( "Fiction Book Backend" ),
|
|
"0.1.5",
|
|
ki18n( "A renderer for FictionBook eBooks" ),
|
|
KAboutData::License_GPL,
|
|
ki18n( "© 2007-2008 Tobias Koenig" )
|
|
);
|
|
aboutData.addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "tokoe@kde.org" );
|
|
|
|
return aboutData;
|
|
}
|
|
|
|
OKULAR_EXPORT_PLUGIN( FictionBookGenerator, createAboutData() )
|
|
|
|
FictionBookGenerator::FictionBookGenerator( QObject *parent, const QVariantList &args )
|
|
: Okular::TextDocumentGenerator( new FictionBook::Converter, "okular_fictionbook_generator_settings", parent, args )
|
|
{
|
|
}
|
|
|
|
void FictionBookGenerator::addPages( KConfigDialog* dlg )
|
|
{
|
|
Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
|
|
|
|
dlg->addPage( widget, generalSettings(), i18n("FictionBook"), "okular-fb2", i18n("FictionBook Backend Configuration") );
|
|
}
|