blob: 89ad86b1d8103b404013de39da9eb93497b7c644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
|