From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klinkstatus/src/ui/settings/Makefile.am | 7 + .../src/ui/settings/configidentificationdialog.cpp | 55 ++++ .../src/ui/settings/configidentificationdialog.h | 40 +++ .../ui/settings/configidentificationdialogui.ui | 134 ++++++++ klinkstatus/src/ui/settings/configresultsdialog.ui | 72 +++++ klinkstatus/src/ui/settings/configsearchdialog.ui | 353 +++++++++++++++++++++ klinkstatus/src/ui/settings/dummy.cpp | 0 7 files changed, 661 insertions(+) create mode 100644 klinkstatus/src/ui/settings/Makefile.am create mode 100644 klinkstatus/src/ui/settings/configidentificationdialog.cpp create mode 100644 klinkstatus/src/ui/settings/configidentificationdialog.h create mode 100644 klinkstatus/src/ui/settings/configidentificationdialogui.ui create mode 100644 klinkstatus/src/ui/settings/configresultsdialog.ui create mode 100644 klinkstatus/src/ui/settings/configsearchdialog.ui create mode 100644 klinkstatus/src/ui/settings/dummy.cpp (limited to 'klinkstatus/src/ui/settings') diff --git a/klinkstatus/src/ui/settings/Makefile.am b/klinkstatus/src/ui/settings/Makefile.am new file mode 100644 index 00000000..777e9e5c --- /dev/null +++ b/klinkstatus/src/ui/settings/Makefile.am @@ -0,0 +1,7 @@ +INCLUDES = -I$(top_builddir)/klinkstatus/src/cfg -I$(top_builddir)/klinkstatus/src $(all_includes) +METASOURCES = AUTO +libsettings_la_LDFLAGS = $(all_libraries) +noinst_LTLIBRARIES = libsettings.la +libsettings_la_SOURCES = configsearchdialog.ui dummy.cpp configresultsdialog.ui \ + configidentificationdialog.cpp configidentificationdialogui.ui +noinst_HEADERS = configidentificationdialog.h diff --git a/klinkstatus/src/ui/settings/configidentificationdialog.cpp b/klinkstatus/src/ui/settings/configidentificationdialog.cpp new file mode 100644 index 00000000..3dcd1239 --- /dev/null +++ b/klinkstatus/src/ui/settings/configidentificationdialog.cpp @@ -0,0 +1,55 @@ +/*************************************************************************** + * Copyright (C) 2006 by Paulo Moura Guedes * + * moura@kdewebdev.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. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "configidentificationdialog.h" + +#include +#include +#include + +#include + +#include "../cfg/klsconfig.h" + + +ConfigIdentificationDialog::ConfigIdentificationDialog(QWidget *parent, const char *name) + : ConfigIdentificationDialogUi(parent, name) +{ + if(KLSConfig::userAgent().isEmpty()) + { + slotDefaultUA(); + } + + connect(buttonDefault, SIGNAL(clicked()), this, SLOT(slotDefaultUA())); +} + + +ConfigIdentificationDialog::~ConfigIdentificationDialog() +{ +} + +void ConfigIdentificationDialog::slotDefaultUA() +{ + KLSConfig::setUserAgent(KProtocolManager::defaultUserAgent()); + kcfg_UserAgent->setText(KLSConfig::userAgent()); +} + + +#include "configidentificationdialog.moc" diff --git a/klinkstatus/src/ui/settings/configidentificationdialog.h b/klinkstatus/src/ui/settings/configidentificationdialog.h new file mode 100644 index 00000000..e75a65a6 --- /dev/null +++ b/klinkstatus/src/ui/settings/configidentificationdialog.h @@ -0,0 +1,40 @@ +/*************************************************************************** + * Copyright (C) 2006 by Paulo Moura Guedes * + * moura@kdewebdev.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. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef CONFIGIDENTIFICATIONDIALOG_H +#define CONFIGIDENTIFICATIONDIALOG_H + +#include "configidentificationdialogui.h" + +/** + @author Paulo Moura Guedes +*/ +class ConfigIdentificationDialog : public ConfigIdentificationDialogUi +{ +Q_OBJECT +public: + ConfigIdentificationDialog(QWidget *parent = 0, const char *name = 0); + ~ConfigIdentificationDialog(); + +private slots: + void slotDefaultUA(); +}; + +#endif diff --git a/klinkstatus/src/ui/settings/configidentificationdialogui.ui b/klinkstatus/src/ui/settings/configidentificationdialogui.ui new file mode 100644 index 00000000..29723358 --- /dev/null +++ b/klinkstatus/src/ui/settings/configidentificationdialogui.ui @@ -0,0 +1,134 @@ + +ConfigIdentificationDialogUi + + + ConfigIdentificationDialogUi + + + + 0 + 0 + 570 + 113 + + + + + 1 + + + + + unnamed + + + + buttonGroup4 + + + + 0 + + + + Identification + + + + unnamed + + + + textLabel1 + + + + 5 + 0 + 0 + 0 + + + + + + + + User-Agent + + + + + kcfg_UserAgent + + + + 3 + 0 + 0 + 0 + + + + + 300 + 0 + + + + + + buttonDefault + + + Default + + + + + kcfg_SendIdentification + + + Send Identification + + + true + + + + + + + + + + + kcfg_SendIdentification + toggled(bool) + textLabel1 + setEnabled(bool) + + + kcfg_SendIdentification + toggled(bool) + kcfg_UserAgent + setEnabled(bool) + + + kcfg_SendIdentification + toggled(bool) + buttonDefault + setEnabled(bool) + + + + kcfg_SendIdentification + kcfg_UserAgent + buttonDefault + + + + klineedit.h + kpushbutton.h + + diff --git a/klinkstatus/src/ui/settings/configresultsdialog.ui b/klinkstatus/src/ui/settings/configresultsdialog.ui new file mode 100644 index 00000000..544f3273 --- /dev/null +++ b/klinkstatus/src/ui/settings/configresultsdialog.ui @@ -0,0 +1,72 @@ + +ConfigResultsDialog + + + ConfigResultsDialog + + + + 0 + 0 + 233 + 183 + + + + + unnamed + + + + buttonGroup13 + + + View + + + + unnamed + + + + kcfg_DisplayTreeView + + + Tree + + + + + kcfg_DisplayFlatView + + + Flat + + + + + + + buttonGroup13_2 + + + Misc + + + + unnamed + + + + kcfg_FollowLastLinkChecked + + + Follow Last Link Checked + + + + + + + + diff --git a/klinkstatus/src/ui/settings/configsearchdialog.ui b/klinkstatus/src/ui/settings/configsearchdialog.ui new file mode 100644 index 00000000..604a431c --- /dev/null +++ b/klinkstatus/src/ui/settings/configsearchdialog.ui @@ -0,0 +1,353 @@ + +ConfigSearchDialog + + + ConfigSearchDialog + + + + 0 + 0 + 459 + 365 + + + + + unnamed + + + + buttonGroup13 + + + Network + + + + unnamed + + + + kcfg_MaxConnectionsNumber + + + + 0 + 0 + 0 + 0 + + + + + 0 + 0 + + + + 1000 + + + 1 + + + 5 + + + + + textLabel1_2_2 + + + + 4 + 5 + 0 + 0 + + + + Timeout in seconds: + + + + + kcfg_TimeOut + + + + 0 + 0 + 0 + 0 + + + + 3600 + + + 1 + + + 40 + + + + + textLabel1_2 + + + + 4 + 5 + 0 + 0 + + + + Number of simultaneous connections: + + + + + + + buttonGroup8 + + + Input + + + + unnamed + + + + kcfg_MaxCountComboUrl + + + + 0 + 0 + 0 + 0 + + + + 1000 + + + 5 + + + 50 + + + + + kcfg_CheckParentFolders + + + Check parent folders + + + true + + + + + textLabel1 + + + + 4 + 5 + 0 + 0 + + + + Number of items in URL history: + + + + + kcfg_CheckExternalLinks + + + Check external links + + + true + + + + + layout21 + + + + unnamed + + + + kcfg_RecursiveCheck + + + Recursive + + + true + + + + + spacer25 + + + Horizontal + + + Maximum + + + + 40 + 20 + + + + + + layout20 + + + + unnamed + + + + textLabel1_2_2_2 + + + Depth: + + + + + kcfg_Depth + + + true + + + + 0 + 0 + 0 + 0 + + + + Unlimited + + + 15 + + + 0 + + + 1 + + + + + + + + + + + buttonGroup3 + + + Quanta + + + + unnamed + + + + kcfg_UseQuantaUrlPreviewPrefix + + + Use preview prefix + + + true + + + Check this one if you want to use Quanta's project preview prefix in the URL to check + + + + + + + kcfg_RememberCheckSettings + + + Remember settings when exit + + + + + + + + + kcfg_RecursiveCheck + toggled(bool) + kcfg_Depth + setEnabled(bool) + + + kcfg_RecursiveCheck + toggled(bool) + textLabel1_2_2_2 + setEnabled(bool) + + + kcfg_RecursiveCheck + toggled(bool) + kcfg_CheckParentFolders + setEnabled(bool) + + + kcfg_RecursiveCheck + toggled(bool) + kcfg_CheckExternalLinks + setEnabled(bool) + + + + kcfg_MaxConnectionsNumber + kcfg_TimeOut + kcfg_MaxCountComboUrl + kcfg_RecursiveCheck + kcfg_Depth + kcfg_CheckParentFolders + kcfg_CheckExternalLinks + kcfg_RememberCheckSettings + + + + knuminput.h + knuminput.h + knuminput.h + knuminput.h + + diff --git a/klinkstatus/src/ui/settings/dummy.cpp b/klinkstatus/src/ui/settings/dummy.cpp new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3