summaryrefslogtreecommitdiffstats
path: root/kpdf/conf
diff options
context:
space:
mode:
Diffstat (limited to 'kpdf/conf')
-rw-r--r--kpdf/conf/Makefile.am13
-rw-r--r--kpdf/conf/dlgaccessibility.ui576
-rw-r--r--kpdf/conf/dlggeneral.ui171
-rw-r--r--kpdf/conf/dlggeneral.ui.h26
-rw-r--r--kpdf/conf/dlgperformance.ui278
-rw-r--r--kpdf/conf/dlgperformance.ui.h38
-rw-r--r--kpdf/conf/dlgpresentation.ui282
-rw-r--r--kpdf/conf/kpdf.kcfg177
-rw-r--r--kpdf/conf/preferencesdialog.cpp34
-rw-r--r--kpdf/conf/preferencesdialog.h44
-rw-r--r--kpdf/conf/settings.kcfgc4
11 files changed, 1643 insertions, 0 deletions
diff --git a/kpdf/conf/Makefile.am b/kpdf/conf/Makefile.am
new file mode 100644
index 00000000..d115e8f9
--- /dev/null
+++ b/kpdf/conf/Makefile.am
@@ -0,0 +1,13 @@
+INCLUDES = -I$(srcdir)/.. -I$(top_builddir)/kpdf $(all_includes)
+
+METASOURCES = AUTO
+
+libkpdfconf_la_SOURCES = dlggeneral.ui dlgperformance.ui dlgaccessibility.ui \
+ dlgpresentation.ui \
+ preferencesdialog.cpp settings.kcfgc
+
+noinst_LTLIBRARIES = libkpdfconf.la
+
+kde_kcfg_DATA = kpdf.kcfg
+
+preferencesdialog.lo: settings.h
diff --git a/kpdf/conf/dlgaccessibility.ui b/kpdf/conf/dlgaccessibility.ui
new file mode 100644
index 00000000..a9f6495d
--- /dev/null
+++ b/kpdf/conf/dlgaccessibility.ui
@@ -0,0 +1,576 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>DlgAccessibility</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>DlgAccessibility</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>376</width>
+ <height>364</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_HighlightImages</cstring>
+ </property>
+ <property name="text">
+ <string>Draw border around &amp;Images</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_HighlightLinks</cstring>
+ </property>
+ <property name="text">
+ <string>Draw border around &amp;Links</string>
+ </property>
+ </widget>
+ <widget class="QGroupBox">
+ <property name="name">
+ <cstring>kcfg_ChangeColors</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Change &amp;Colors</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>warn</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="paletteForegroundColor">
+ <color>
+ <red>80</red>
+ <green>0</green>
+ <blue>0</blue>
+ </color>
+ </property>
+ <property name="text">
+ <string>Warning: these options can badly affect drawing speed.</string>
+ </property>
+ <property name="textFormat">
+ <enum>PlainText</enum>
+ </property>
+ </widget>
+ <widget class="QButtonGroup">
+ <property name="name">
+ <cstring>kcfg_RenderMode</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="frameShape">
+ <enum>NoFrame</enum>
+ </property>
+ <property name="lineWidth">
+ <number>0</number>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>radioInverted</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Invert colors</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>radioNormal</cstring>
+ </property>
+ <property name="text">
+ <string>Change &amp;paper color</string>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout5</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <spacer>
+ <property name="name">
+ <cstring>spacer14_3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>textLabel1</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Paper color:</string>
+ </property>
+ <property name="buddy" stdset="0">
+ <cstring>kcfg_PaperColor</cstring>
+ </property>
+ </widget>
+ <widget class="KColorButton">
+ <property name="name">
+ <cstring>kcfg_PaperColor</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer7_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>30</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>radioRecolor</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Change dark and light colors</string>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout2</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <spacer row="1" column="3">
+ <property name="name">
+ <cstring>spacer12_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>48</width>
+ <height>21</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="KColorButton" row="1" column="2">
+ <property name="name">
+ <cstring>kcfg_RecolorBackground</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>spacer14_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="KColorButton" row="0" column="2">
+ <property name="name">
+ <cstring>kcfg_RecolorForeground</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <spacer row="0" column="3">
+ <property name="name">
+ <cstring>spacer12</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>48</width>
+ <height>21</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QLabel" row="1" column="1">
+ <property name="name">
+ <cstring>textLabel3_2</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Light color:</string>
+ </property>
+ </widget>
+ <spacer row="0" column="0">
+ <property name="name">
+ <cstring>spacer14</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QLabel" row="0" column="1">
+ <property name="name">
+ <cstring>textLabel3</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Dark color:</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>radioContrast</cstring>
+ </property>
+ <property name="text">
+ <string>Convert to &amp;black and white</string>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout5</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel" row="1" column="1">
+ <property name="name">
+ <cstring>textLabel2_2</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Contrast:</string>
+ </property>
+ </widget>
+ <spacer row="1" column="3">
+ <property name="name">
+ <cstring>spacer10_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>48</width>
+ <height>21</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>spacer11_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="0" column="0">
+ <property name="name">
+ <cstring>spacer11</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>16</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <spacer row="0" column="3">
+ <property name="name">
+ <cstring>spacer10</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>48</width>
+ <height>21</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QSlider" row="1" column="2">
+ <property name="name">
+ <cstring>kcfg_BWContrast</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="pageStep">
+ <number>1</number>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ </widget>
+ <widget class="QSlider" row="0" column="2">
+ <property name="name">
+ <cstring>kcfg_BWThreshold</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="pageStep">
+ <number>16</number>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="1">
+ <property name="name">
+ <cstring>textLabel2</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Threshold:</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </vbox>
+ </widget>
+ </vbox>
+ </widget>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>radioRecolor</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>textLabel3</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioRecolor</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_RecolorForeground</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioRecolor</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>textLabel3_2</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioRecolor</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_RecolorBackground</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioContrast</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>textLabel2</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioContrast</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_BWThreshold</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioNormal</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>textLabel1</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioNormal</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_PaperColor</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioContrast</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>textLabel2_2</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>radioContrast</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_BWContrast</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_ChangeColors</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_RenderMode</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+</connections>
+<includes>
+ <include location="global" impldecl="in implementation">kdialog.h</include>
+</includes>
+<layoutdefaults spacing="5" margin="11"/>
+<includehints>
+ <includehint>kcolorbutton.h</includehint>
+ <includehint>kcolorbutton.h</includehint>
+ <includehint>kcolorbutton.h</includehint>
+</includehints>
+</UI>
diff --git a/kpdf/conf/dlggeneral.ui b/kpdf/conf/dlggeneral.ui
new file mode 100644
index 00000000..0319d1b4
--- /dev/null
+++ b/kpdf/conf/dlggeneral.ui
@@ -0,0 +1,171 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>DlgGeneral</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>DlgGeneral</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>320</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <widget class="QGroupBox">
+ <property name="name">
+ <cstring>groupBox2</cstring>
+ </property>
+ <property name="title">
+ <string>Program Look</string>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout4</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_ShowSearchBar</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Show &amp;search bar in thumbnails list</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_SyncThumbnailsViewport</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Link the &amp;thumbnails with the page</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_ShowScrollBars</cstring>
+ </property>
+ <property name="text">
+ <string>Show scroll&amp;bars</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_ShowOSD</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;hints and info messages</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_ObeyDRM</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Obey DRM limitations</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_WatchFile</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Watch file</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout3_2</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>pixmapLabel1_2</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="pixmap">
+ <pixmap>"kpdf", 32</pixmap>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacerV1</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Minimum</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>1</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+</widget>
+<includes>
+ <include location="global" impldecl="in implementation">kdialog.h</include>
+ <include location="global" impldecl="in implementation">kiconloader.h</include>
+ <include location="local" impldecl="in implementation">dlggeneral.ui.h</include>
+</includes>
+<functions>
+ <function access="protected" specifier="non virtual">showEvent( QShowEvent * )</function>
+</functions>
+<pixmapfunction>DesktopIcon</pixmapfunction>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kpdf/conf/dlggeneral.ui.h b/kpdf/conf/dlggeneral.ui.h
new file mode 100644
index 00000000..8eafde39
--- /dev/null
+++ b/kpdf/conf/dlggeneral.ui.h
@@ -0,0 +1,26 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you want to add, delete, or rename functions or slots, use
+** Qt Designer to update this file, preserving your code.
+**
+** You should not define a constructor or destructor in this file.
+** Instead, write your code in functions called init() and destroy().
+** These will automatically be called by the form's constructor and
+** destructor.
+*****************************************************************************/
+
+#include <kapplication.h>
+
+#include <config.h>
+
+void DlgGeneral::showEvent( QShowEvent * )
+{
+#if KPDF_FORCE_DRM
+ kcfg_ObeyDRM->hide();
+#else
+ if (kapp->authorize("skip_drm")) kcfg_ObeyDRM->show();
+ else kcfg_ObeyDRM->hide();
+#endif
+}
+
diff --git a/kpdf/conf/dlgperformance.ui b/kpdf/conf/dlgperformance.ui
new file mode 100644
index 00000000..c0c90eb1
--- /dev/null
+++ b/kpdf/conf/dlgperformance.ui
@@ -0,0 +1,278 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>DlgPerformance</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>DlgPerformance</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>284</width>
+ <height>222</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <widget class="QGroupBox">
+ <property name="name">
+ <cstring>groupBox1</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>CPU Usage</string>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout9</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_EnableCompositing</cstring>
+ </property>
+ <property name="text">
+ <string>Enable &amp;transparency effects</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>kcfg_EnableThreading</cstring>
+ </property>
+ <property name="text">
+ <string>Enable &amp;background generation</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout6_2</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>pixmapLabel1_2</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="pixmap">
+ <pixmap>"kcmprocessor", 32</pixmap>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer7_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Minimum</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>21</width>
+ <height>1</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QButtonGroup">
+ <property name="name">
+ <cstring>kcfg_MemoryLevel</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Memory Usage</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>descLabel</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="textFormat">
+ <enum>PlainText</enum>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignVCenter</set>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>layout5</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>lowRadio</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Low</string>
+ </property>
+ </widget>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>normalRadio</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Normal (default)</string>
+ </property>
+ </widget>
+ <widget class="QRadioButton">
+ <property name="name">
+ <cstring>aggressiveRadio</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Aggressive</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QLayoutWidget" row="0" column="1">
+ <property name="name">
+ <cstring>layout6</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>pixmapLabel1</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>0</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="pixmap">
+ <pixmap>"kcmmemory", 32</pixmap>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer7</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Minimum</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>21</width>
+ <height>1</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+ </widget>
+ </grid>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer1</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>21</width>
+ <height>16</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>lowRadio</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>DlgPerformance</receiver>
+ <slot>lowRadio_toggled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>normalRadio</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>DlgPerformance</receiver>
+ <slot>normalRadio_toggled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>aggressiveRadio</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>DlgPerformance</receiver>
+ <slot>aggressiveRadio_toggled(bool)</slot>
+ </connection>
+</connections>
+<includes>
+ <include location="global" impldecl="in implementation">kdialog.h</include>
+ <include location="global" impldecl="in implementation">kiconloader.h</include>
+ <include location="local" impldecl="in implementation">dlgperformance.ui.h</include>
+</includes>
+<slots>
+ <slot>lowRadio_toggled( bool on )</slot>
+ <slot>normalRadio_toggled( bool on )</slot>
+ <slot>aggressiveRadio_toggled( bool on )</slot>
+</slots>
+<functions>
+ <function access="private">init()</function>
+</functions>
+<pixmapfunction>DesktopIcon</pixmapfunction>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kpdf/conf/dlgperformance.ui.h b/kpdf/conf/dlgperformance.ui.h
new file mode 100644
index 00000000..4a13310e
--- /dev/null
+++ b/kpdf/conf/dlgperformance.ui.h
@@ -0,0 +1,38 @@
+/***************************************************************************
+ * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
+ * *
+ * 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 <klocale.h>
+
+// The purpose of this file is only to display a sort of descriptive text
+// when the user clicks on each memory profile.
+
+void DlgPerformance::init()
+{
+ QFont labelFont = descLabel->font();
+ labelFont.setBold( true );
+ descLabel->setFont( labelFont );
+}
+
+void DlgPerformance::lowRadio_toggled( bool on )
+{
+ if ( on )
+ descLabel->setText( i18n("Keeps used memory as low as possible. Do not reuse anything. (For systems with low memory.)") );
+}
+
+void DlgPerformance::normalRadio_toggled( bool on )
+{
+ if ( on )
+ descLabel->setText( i18n("A good compromise between memory usage and speed gain. Preload next page and boost searches. (For systems with 256MB of memory, typically.)") );
+}
+
+void DlgPerformance::aggressiveRadio_toggled( bool on )
+{
+ if ( on )
+ descLabel->setText( i18n("Keeps everything in memory. Preload next pages. Boost searches. (For systems with more than 512MB of memory.)") );
+}
diff --git a/kpdf/conf/dlgpresentation.ui b/kpdf/conf/dlgpresentation.ui
new file mode 100644
index 00000000..ba65f7b1
--- /dev/null
+++ b/kpdf/conf/dlgpresentation.ui
@@ -0,0 +1,282 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>DlgPresentation</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>DlgPresentation</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>294</width>
+ <height>261</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <widget class="QGroupBox">
+ <property name="name">
+ <cstring>groupBox1</cstring>
+ </property>
+ <property name="title">
+ <string>Navigation</string>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout1</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QSpinBox" row="0" column="1">
+ <property name="name">
+ <cstring>kcfg_SlidesAdvanceTime</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="suffix">
+ <string> sec.</string>
+ </property>
+ <property name="value">
+ <number>5</number>
+ </property>
+ </widget>
+ <widget class="QCheckBox" row="0" column="0">
+ <property name="name">
+ <cstring>kcfg_SlidesAdvance</cstring>
+ </property>
+ <property name="text">
+ <string>Advance every:</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox" row="2" column="0">
+ <property name="name">
+ <cstring>kcfg_SlidesLoop</cstring>
+ </property>
+ <property name="text">
+ <string>Loop after last page</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </hbox>
+ </widget>
+ <widget class="QGroupBox">
+ <property name="name">
+ <cstring>groupBox2</cstring>
+ </property>
+ <property name="title">
+ <string>Appearance</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QComboBox" row="1" column="1">
+ <item>
+ <property name="text">
+ <string>Blinds Vertical</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Blinds Horizontal</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Box In</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Box Out</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Dissolve</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Glitter Down</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Glitter Right</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Glitter Right-Down</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Random Transition</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Replace</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Split Horizontal In</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Split Horizontal Out</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Split Vertical In</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Split Vertical Out</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Wipe Down</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Wipe Right</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Wipe Left</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Wipe Up</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>kcfg_SlidesTransition</cstring>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>textLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>Default transition:</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="2" column="0">
+ <property name="name">
+ <cstring>textLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Mouse cursor:</string>
+ </property>
+ </widget>
+ <widget class="QComboBox" row="2" column="1">
+ <item>
+ <property name="text">
+ <string>Hidden After Delay</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Always Visible</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Always Hidden</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>kcfg_SlidesCursor</cstring>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>textLabel3</cstring>
+ </property>
+ <property name="text">
+ <string>Background color:</string>
+ </property>
+ </widget>
+ <widget class="KColorButton" row="0" column="1">
+ <property name="name">
+ <cstring>kcfg_SlidesBackgroundColor</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_SlidesShowSummary</cstring>
+ </property>
+ <property name="text">
+ <string>Show s&amp;ummary page</string>
+ </property>
+ </widget>
+ <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_SlidesShowProgress</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;progress indicator</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>bspace</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>1</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>kcfg_SlidesAdvance</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_SlidesAdvanceTime</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+</connections>
+<layoutdefaults spacing="6" margin="11"/>
+<includehints>
+ <includehint>kcolorbutton.h</includehint>
+</includehints>
+</UI>
diff --git a/kpdf/conf/kpdf.kcfg b/kpdf/conf/kpdf.kcfg
new file mode 100644
index 00000000..d980fd95
--- /dev/null
+++ b/kpdf/conf/kpdf.kcfg
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
+ http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+ <kcfgfile name="kpdfpartrc" />
+ <group name="Accessibility" >
+ <entry key="PaperColor" type="Color" >
+ <default code="true" >Qt::white</default>
+ </entry>
+ <entry key="HighlightImages" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="HighlightLinks" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="ChangeColors" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="RenderMode" type="Enum" >
+ <default>Inverted</default>
+ <choices>
+ <choice name="Inverted" />
+ <choice name="Paper" />
+ <choice name="pad_paper_color" />
+ <choice name="Recolor" />
+ <choice name="pad_fg_color" />
+ <choice name="pad_bg_color" />
+ <choice name="BlackWhite" />
+ </choices>
+ </entry>
+ <entry key="RecolorForeground" type="Color" >
+ <default code="true" >0x600000</default>
+ </entry>
+ <entry key="RecolorBackground" type="Color" >
+ <default code="true" >0xF0F0F0</default>
+ </entry>
+ <entry key="BWThreshold" type="UInt" >
+ <default>127</default>
+ <min>2</min>
+ <max>253</max>
+ </entry>
+ <entry key="BWContrast" type="UInt" >
+ <default>2</default>
+ <min>2</min>
+ <max>6</max>
+ </entry>
+ </group>
+ <group name="General" >
+ <entry key="ShowOSD" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="WatchFile" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="ObeyDRM" type="Bool" >
+ <default>true</default>
+ </entry>
+ </group>
+ <group name="MainView" >
+ <entry key="ShowLeftPanel" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="ShowSearchBar" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="SplitterSizes" type="IntList" />
+ </group>
+ <group name="PageView" >
+ <entry key="ShowScrollBars" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="ViewContinuous" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="ViewColumns" type="UInt" >
+ <default>1</default>
+ <min>1</min>
+ <max>8</max>
+ </entry>
+ <entry key="ZoomMode" type="UInt" >
+ <default>0</default>
+ <max>2</max>
+ </entry>
+ <entry key="ZoomFactor" type="Double" >
+ <default>1.0</default>
+ <min>0.1</min>
+ <max>4.0</max>
+ </entry>
+ </group>
+ <group name="ThumbnailsList" >
+ <entry key="SyncThumbnailsViewport" type="Bool" >
+ <default>true</default>
+ </entry>
+ </group>
+ <group name="Performance" >
+ <entry key="MemoryLevel" type="Enum" >
+ <default>Normal</default>
+ <choices>
+ <choice name="Low" />
+ <choice name="Normal" />
+ <choice name="Aggressive" />
+ <choice name="pad_description" />
+ </choices>
+ </entry>
+ <entry key="EnableCompositing" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="EnableThreading" type="Bool" >
+ <default>true</default>
+ </entry>
+ </group>
+ <group name="Presentation" >
+ <entry key="SlidesAdvance" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="SlidesAdvanceTime" type="UInt" >
+ <default>5</default>
+ <min>1</min>
+ <max>3600</max>
+ </entry>
+ <entry key="SlidesLoop" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="SlidesBackgroundColor" type="Color" >
+ <default code="true" >Qt::black</default>
+ </entry>
+ <entry key="SlidesTransition" type="Enum" >
+ <default>Replace</default>
+ <choices>
+ <choice name="BlindsHorizontal" />
+ <choice name="BlindsVertical" />
+ <choice name="BoxIn" />
+ <choice name="BoxOut" />
+ <choice name="Dissolve" />
+ <choice name="GlitterDown" />
+ <choice name="GlitterRight" />
+ <choice name="GlitterRightDown" />
+ <choice name="Random" />
+ <choice name="Replace" />
+ <choice name="SplitHorizontalIn" />
+ <choice name="SplitHorizontalOut" />
+ <choice name="SplitVerticalIn" />
+ <choice name="SplitVerticalOut" />
+ <choice name="WipeDown" />
+ <choice name="WipeRight" />
+ <choice name="WipeLeft" />
+ <choice name="WipeUp" />
+ </choices>
+ </entry>
+ <entry key="SlidesCursor" type="Enum" >
+ <default>HiddenDelay</default>
+ <choices>
+ <choice name="HiddenDelay" />
+ <choice name="Visible" />
+ <choice name="Hidden" />
+ </choices>
+ </entry>
+ <entry key="SlidesShowProgress" type="Bool" >
+ <default>true</default>
+ </entry>
+ <entry key="SlidesShowSummary" type="Bool" >
+ <default>false</default>
+ </entry>
+ </group>
+ <group name="Internal Status" >
+ <entry key="FilterBookmarks" type="Bool" >
+ <default>false</default>
+ </entry>
+ <entry key="UseKTTSD" type="Bool" />
+ </group>
+ <group name="Debugging Options" >
+ <entry key="DebugDrawBoundaries" type="Bool" >
+ <default>false</default>
+ </entry>
+ </group>
+</kcfg>
diff --git a/kpdf/conf/preferencesdialog.cpp b/kpdf/conf/preferencesdialog.cpp
new file mode 100644
index 00000000..7968d3fd
--- /dev/null
+++ b/kpdf/conf/preferencesdialog.cpp
@@ -0,0 +1,34 @@
+/***************************************************************************
+ * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
+ * *
+ * 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 <klocale.h>
+
+// single config pages
+#include "dlggeneral.h"
+#include "dlgperformance.h"
+#include "dlgaccessibility.h"
+#include "dlgpresentation.h"
+
+// reimplementing this
+#include "preferencesdialog.h"
+
+PreferencesDialog::PreferencesDialog( QWidget * parent, KConfigSkeleton * skeleton )
+ : KConfigDialog( parent, "preferences", skeleton )
+{
+ m_general = new DlgGeneral(0);
+ m_performance = new DlgPerformance(0);
+ m_accessibility = new DlgAccessibility(0);
+ m_presentation = new DlgPresentation(0);
+
+ addPage( m_general, i18n("General"), "kpdf", i18n("General Options") );
+ addPage( m_accessibility, i18n("Accessibility"), "access", i18n("Reading Aids") );
+ addPage( m_performance, i18n("Performance"), "launch", i18n("Performance Tuning") );
+ addPage( m_presentation, i18n("Presentation"), "kpresenter_kpr",
+ i18n("Options for Presentation Mode") );
+}
diff --git a/kpdf/conf/preferencesdialog.h b/kpdf/conf/preferencesdialog.h
new file mode 100644
index 00000000..475320ab
--- /dev/null
+++ b/kpdf/conf/preferencesdialog.h
@@ -0,0 +1,44 @@
+/***************************************************************************
+ * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
+ * *
+ * 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. *
+ ***************************************************************************/
+
+#ifndef _PREFERENCESDIALOG_H
+#define _PREFERENCESDIALOG_H
+
+#include <kconfigdialog.h>
+#include "conf/settings.h"
+
+class QWidget;
+class KConfigSkeleton;
+
+class DlgGeneral;
+class DlgPerformance;
+class DlgAccessibility;
+class DlgPresentation;
+
+class PreferencesDialog : public KConfigDialog
+{
+
+ public:
+ PreferencesDialog( QWidget * parent, KConfigSkeleton * config );
+
+ protected:
+// void updateSettings(); // Called when OK/Apply is pressed.
+// void updateWidgets(); // Called upon construction or when Reset is pressed
+// void updateWidgetsDefault(); // Called when Defaults button is pressed
+// bool hasChanged(); // In order to correctly disable/enable Apply button
+// bool isDefault(); // In order to correctly disable/enable Defaults button
+
+ private:
+ DlgGeneral * m_general;
+ DlgPerformance * m_performance;
+ DlgAccessibility * m_accessibility;
+ DlgPresentation * m_presentation;
+};
+
+#endif
diff --git a/kpdf/conf/settings.kcfgc b/kpdf/conf/settings.kcfgc
new file mode 100644
index 00000000..bfdad9ee
--- /dev/null
+++ b/kpdf/conf/settings.kcfgc
@@ -0,0 +1,4 @@
+ClassName=KpdfSettings
+File=kpdf.kcfg
+Mutators=true
+Singleton=true