You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
/*************************************************************************** |
|
* 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( |
|
QStringLiteral("okular_fictionbook"), |
|
i18n( "Fiction Book Backend" ), |
|
QStringLiteral("0.1.5"), |
|
i18n( "A renderer for FictionBook eBooks" ), |
|
KAboutLicense::GPL, |
|
i18n( "© 2007-2008 Tobias Koenig" ) |
|
); |
|
aboutData.addAuthor( QStringLiteral( "Tobias Koenig" ), QString(), QStringLiteral("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"), "application-x-fictionbook+xml", i18n("FictionBook Backend Configuration") ); |
|
}
|
|
|