Commit 8f312597 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Add the configure font dialog for mobipocket too

Needs a new new new okular
parent f6191114
......@@ -15,7 +15,7 @@ set(okularGenerator_mobi_PART_SRCS
kde4_add_plugin(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
target_link_libraries(okularGenerator_mobi ${OKULAR_CORE_LIBRARY} ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY})
target_link_libraries(okularGenerator_mobi ${OKULAR_CORE_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY})
install(TARGETS okularGenerator_mobi DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -11,6 +11,7 @@
#include "converter.h"
#include <kaboutdata.h>
#include <kconfigdialog.h>
static KAboutData createAboutData()
{
......@@ -32,6 +33,14 @@ static KAboutData createAboutData()
OKULAR_EXPORT_PLUGIN( MobiGenerator, createAboutData() )
MobiGenerator::MobiGenerator( QObject *parent, const QVariantList &args )
: Okular::TextDocumentGenerator( new Mobi::Converter, parent, args )
: Okular::TextDocumentGenerator( new Mobi::Converter, "okular_mobi_generator_settings", parent, args )
{
}
void MobiGenerator::addPages( KConfigDialog* dlg )
{
Okular::TextDocumentSettingsWidget *widget = generalSettingsWidget();
widget->setParent( dlg );
dlg->addPage( widget, generalSettings(), i18n("Mobipocket"), "application-x-mobipocket-ebook", i18n("Mobipocket Backend Configuration") );
}
......@@ -15,6 +15,9 @@ class MobiGenerator : public Okular::TextDocumentGenerator
public:
MobiGenerator( QObject *parent, const QVariantList &args );
~MobiGenerator() {}
// [INHERITED] reparse configuration
void addPages( KConfigDialog* dlg );
};
#endif
......@@ -117,4 +117,4 @@ MimeType=application/x-mobipocket-ebook;
X-KDE-Library=okularGenerator_mobi
X-KDE-Priority=1
X-KDE-okularAPIVersion=1
X-KDE-okularHasInternalSettings=false
X-KDE-okularHasInternalSettings=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment