diff --git a/kpdf/conf/Makefile.am b/kpdf/conf/Makefile.am new file mode 100644 index 000000000..d5ba5929e --- /dev/null +++ b/kpdf/conf/Makefile.am @@ -0,0 +1,10 @@ +noinst_LTLIBRARIES = libconf.la + +libconf_la_SOURCES = dlggeneral.ui preferencesdialog.cpp \ + settings.kcfgc + +INCLUDES = -I$(srcdir)/.. $(all_includes) + +METASOURCES = AUTO + +kde_kcfg_DATA = kpdf.kcfg diff --git a/kpdf/conf/dlggeneral.ui b/kpdf/conf/dlggeneral.ui new file mode 100644 index 000000000..8a424b587 --- /dev/null +++ b/kpdf/conf/dlggeneral.ui @@ -0,0 +1,397 @@ + +DlgNetwork + + + DlgNetwork + + + + 0 + 0 + 332 + 315 + + + + DlgNetwork + + + + unnamed + + + 0 + + + + kcfg_DownloadAtStartup + + + Start downloading files immediately after startup + + + + + kcfg_LimitDownloads + + + Limit maximum downloads + + + + + layout19 + + + + unnamed + + + + spacer16_2_2 + + + Horizontal + + + Fixed + + + + 16 + 40 + + + + + + spacer19 + + + Horizontal + + + Expanding + + + + 20 + 50 + + + + + + kcfg_MaxConnections + + + false + + + 1 + + + + + lbl_maxnum_2 + + + false + + + Downloads from the same server: + + + + + kcfg_MaxConnectionsServer + + + false + + + 1 + + + + + lbl_maxnum + + + false + + + Total downloads number: + + + + + + + kcfg_ReconnectOnBroken + + + Reconnect on error or broken connection + + + + + layout14 + + + + unnamed + + + + lb_after_2 + + + false + + + Retry after: + + + + + spacer2_3 + + + Horizontal + + + Expanding + + + + 90 + 50 + + + + + + kcfg_ReconnectDelay + + + false + + + sec + + + 3600 + + + 1 + + + 60 + + + + + kcfg_ReconnectRetries + + + false + + + 1 + + + + + lb_retries_2 + + + false + + + Number of retries: + + + + + spacer16_2 + + + Horizontal + + + Fixed + + + + 16 + 40 + + + + + + + + groupBox5 + + + After completing downloads + + + + unnamed + + + + kcfg_AutoShutdown + + + Auto shutdown + + + + + kcfg_AutoDisconnect + + + Auto disconnect + + + + + layout9 + + + + unnamed + + + + spacer16 + + + Horizontal + + + Fixed + + + + 16 + 20 + + + + + + lb_autoDisconnect + + + false + + + Disconnect command: + + + + + kcfg_DisconnectCommand + + + false + + + kppp -k + + + + + + + + + spacer20 + + + Vertical + + + Expanding + + + + 180 + 16 + + + + + + + + kcfg_AutoDisconnect + toggled(bool) + lb_autoDisconnect + setEnabled(bool) + + + kcfg_AutoDisconnect + toggled(bool) + kcfg_DisconnectCommand + setEnabled(bool) + + + kcfg_ReconnectOnBroken + toggled(bool) + lb_retries_2 + setEnabled(bool) + + + kcfg_ReconnectOnBroken + toggled(bool) + kcfg_ReconnectRetries + setEnabled(bool) + + + kcfg_ReconnectOnBroken + toggled(bool) + lb_after_2 + setEnabled(bool) + + + kcfg_ReconnectOnBroken + toggled(bool) + kcfg_ReconnectDelay + setEnabled(bool) + + + kcfg_LimitDownloads + toggled(bool) + lbl_maxnum + setEnabled(bool) + + + kcfg_LimitDownloads + toggled(bool) + kcfg_MaxConnections + setEnabled(bool) + + + kcfg_LimitDownloads + toggled(bool) + lbl_maxnum_2 + setEnabled(bool) + + + kcfg_LimitDownloads + toggled(bool) + kcfg_MaxConnectionsServer + setEnabled(bool) + + + + kdialog.h + + + diff --git a/kpdf/conf/kpdf.kcfg b/kpdf/conf/kpdf.kcfg new file mode 100644 index 000000000..dd6e86be6 --- /dev/null +++ b/kpdf/conf/kpdf.kcfg @@ -0,0 +1,52 @@ + + + + + + Qt::white + + + false + + + + Normal + Inverted + Recolor + Contrast + + + + + + + + true + + + + + true + + + false + + + true + + + + + true + + + + + + Low + Normal + Aggressive + + + + diff --git a/kpdf/conf/preferencesdialog.cpp b/kpdf/conf/preferencesdialog.cpp new file mode 100644 index 000000000..0d682930c --- /dev/null +++ b/kpdf/conf/preferencesdialog.cpp @@ -0,0 +1,31 @@ +/*************************************************************************** + * Copyright (C) 2004 by Enrico Ros * + * * + * 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 + +// single config pages +/* +#include "dlggeneral.h" +#include "dlgaccessibility.h" +*/ + +// reimplementing this +#include "preferencesdialog.h" + +PreferencesDialog::PreferencesDialog( QWidget * parent, KConfigSkeleton * skeleton ) + : KConfigDialog( parent, "preferences", skeleton ) +{ +/* + m_general = new DlgGeneral(0); + m_accessibility = new DlgAccessibility(0); + + addPage( m_general, i18n("General"), "looknfeel", i18n("General setup") ); + addPage( m_accessibility, i18n("Accessibility"), "folder_open", i18n("Read aids") ); +*/ +} diff --git a/kpdf/conf/preferencesdialog.h b/kpdf/conf/preferencesdialog.h new file mode 100644 index 000000000..12e33029a --- /dev/null +++ b/kpdf/conf/preferencesdialog.h @@ -0,0 +1,37 @@ +/*************************************************************************** + * Copyright (C) 2004 by Enrico Ros * + * * + * 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 +#include "settings.h" + +class QWidget; +class KConfigSkeleton; + +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: + class DlgGeneral * m_general; + class DlgAccessibility * m_accessibility; +}; + +#endif diff --git a/kpdf/conf/settings.kcfgc b/kpdf/conf/settings.kcfgc new file mode 100644 index 000000000..eaa2e417d --- /dev/null +++ b/kpdf/conf/settings.kcfgc @@ -0,0 +1,4 @@ +ClassName=Settings +File=kpdf.kcfg +Mutators=true +Singleton=true