2 kproxydlgbase.h - Base dialog box for proxy configuration
4 Copyright (C) 2001- Dawit Alemayehu <adawit@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License (GPL) version 2 as published by the Free Software
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #include "kproxydlgbase.h"
24 KProxyData::KProxyData()
29 KProxyData::KProxyData(const KProxyData
&data
)
34 KProxyData
& KProxyData::operator=( const KProxyData
&data
)
36 useReverseProxy
= data
.useReverseProxy
;
37 showEnvVarValue
= data
.showEnvVarValue
;
38 noProxyFor
= data
.noProxyFor
;
39 proxyList
= data
.proxyList
;
45 void KProxyData::reset()
50 void KProxyData::init()
54 useReverseProxy
= false;
55 showEnvVarValue
= false;
59 KProxyDialogBase::KProxyDialogBase( QWidget
* parent
, const char* name
,
60 bool modal
, const QString
&caption
)
63 setObjectName( name
);
65 setCaption( caption
);
66 setButtons( Ok
|Cancel
);
67 showButtonSeparator( true );
69 m_bHasValidData
= false;
72 void KProxyDialogBase::setHighLight (QWidget
* widget
, bool highlight
)
77 QFont f
= widget
->font();
78 f
.setBold( highlight
);