/*************************************************************************** * Copyright (C) 2004 by Christoph Thielecke * * crissi99@gmx.de * * * * 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., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "profileracoonoptions.h" #include #include #include #include #include #include #include "widgetnotifyhelper.h" #include ProfileRacoonOptions::ProfileRacoonOptions(TQWidget *parent) : ProfileRacoonOptionsBase(parent) { WidgetNotifyHelper h; h.setupChangedAction(this); dialogModified=false; TQToolTip::add( RemoteIdTypeCombobox, i18n("Remote ID type
" "" "" "" "" "" "" "
none:No ID
address:The type is the IP address. This is the default type if you do not specify an identifier to use
user_fqdn:The type is a USER_FTQDN (user fully-qualified domain name)
fqdn:The type is a FTQDN (fully-qualified domain name)
keyid (file):The type is a KEY_ID, read from the file
keyid:The type is a KEY_ID, specified in field
asn1dn:The type is an ASN.1 distinguished name. If empty, DN from the Subject field in the certificate will be used" "")); TQToolTip::add( LocalIdTypeCombobox, i18n("Local ID type
" "" "" "" "" "" "" "
none:No ID
address:The type is the IP address. This is the default type if you do not specify an identifier to use
user_fqdn:The type is a USER_FTQDN (user fully-qualified domain name)
fqdn:The type is a FTQDN (fully-qualified domain name)
keyid (file):The type is a KEY_ID, read from the file
keyid:The type is a KEY_ID, specified in field
asn1dn:The type is an ASN.1 distinguished name. If empty, DN from the Subject field in the certificate will be used" "")); } ProfileRacoonOptions::~ProfileRacoonOptions() {} void ProfileRacoonOptions::localIDTypeToggled(const TQString& text) { if (text == "none") { LocalIDLineEdit->setDisabled(true); LocalIDLabel->setDisabled(true); } else { LocalIDLineEdit->setDisabled(false); LocalIDLabel->setDisabled(false); } } void ProfileRacoonOptions::dialogChanged() { // std::cout << "ProfileRacoonOptions::dialogChanged()" << std::endl; dialogModified=true; } void ProfileRacoonOptions::remoteIDTypeToggled(const TQString& text) { if (text == "none") { RemoteIDLineEdit->setDisabled(true); RemoteIDLabel->setDisabled(true); } else { RemoteIDLineEdit->setDisabled(false); RemoteIDLabel->setDisabled(false); } } #include "profileracoonoptions.moc"