generator_mobi.cpp 1.32 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/***************************************************************************
 *   Copyright (C) 2008 by Ely Levy <elylevy@cs.huji.ac.il>                *
 *                                                                         *
 *   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_mobi.h"

#include "converter.h"

13
#include <KAboutData>
14
#include <kconfigdialog.h>
15
#include <KLocalizedString>
16

17
OKULAR_EXPORT_PLUGIN(MobiGenerator, "libokularGenerator_mobi.json")
18 19

MobiGenerator::MobiGenerator( QObject *parent, const QVariantList &args )
20
: Okular::TextDocumentGenerator( new Mobi::Converter, QStringLiteral("okular_mobi_generator_settings"), parent, args )
21 22 23 24 25 26 27
{
}

void MobiGenerator::addPages( KConfigDialog* dlg )
{
    Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();

28
    dlg->addPage( widget, generalSettings(), i18n("Mobipocket"), QStringLiteral("application-x-mobipocket-ebook"), i18n("Mobipocket Backend Configuration") );
29
}
30 31

#include "generator_mobi.moc"