diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-19 18:29:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-19 18:29:46 +0000 |
commit | ee0d2e6e1967294f4a62da1840b0ffdaa3124a2d (patch) | |
tree | 5c150db3c91a190b4911f19aeec9b1b2163c0c53 /konversation/src/dcc_preferences.cpp | |
download | konversation-ee0d2e6e1967294f4a62da1840b0ffdaa3124a2d.tar.gz konversation-ee0d2e6e1967294f4a62da1840b0ffdaa3124a2d.zip |
Added old abandoned KDE3 version of Konversation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/konversation@1092922 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konversation/src/dcc_preferences.cpp')
-rw-r--r-- | konversation/src/dcc_preferences.cpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/konversation/src/dcc_preferences.cpp b/konversation/src/dcc_preferences.cpp new file mode 100644 index 0000000..89ad86b --- /dev/null +++ b/konversation/src/dcc_preferences.cpp @@ -0,0 +1,54 @@ +/* + 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. +*/ + +/* + Copyright (C) 2005 Ismail Donmez <ismail@kde.org> + Copyright (C) 2006 John Tapsell <johnflux@gmail.com> +*/ + +#include "dcc_preferences.h" + +#include <qcombobox.h> +#include <qlineedit.h> +#include <klocale.h> + + +DCC_Config::DCC_Config(QWidget *parent, const char* name) : + DCC_ConfigUI(parent,name) +{ + languageChange(); + connect(kcfg_DccMethodToGetOwnIp, SIGNAL(activated(int)), this, SLOT(dccMethodChanged(int))); dccMethodChanged(kcfg_DccMethodToGetOwnIp->currentItem()); + + +} + +void DCC_Config::show() +{ + QWidget::show(); + + kcfg_DccSpecificOwnIp->setEnabled(kcfg_DccMethodToGetOwnIp->currentItem() == 2); +} + +void DCC_Config::dccMethodChanged(int index) +{ + kcfg_DccSpecificOwnIp->setEnabled( index == 2 ); +} + +void DCC_Config::languageChange() +{ + kcfg_DccMethodToGetOwnIp->clear(); + kcfg_DccMethodToGetOwnIp->insertItem(i18n("Network Interface")); + kcfg_DccMethodToGetOwnIp->insertItem(i18n("Reply From IRC Server")); + kcfg_DccMethodToGetOwnIp->insertItem(i18n("Specify Manually")); + +} + +DCC_Config::~DCC_Config() +{ +} +#include "dcc_preferences.moc" + |