1
//=============================================================================
3
// File : OptionsWidget_ignore.h
4
// Creation date : Thu Feb 12 15:11:29 2002 GMT by Juanjo Álvarez
6
// This file is part of the KVIrc irc client distribution
7
// Copyright (C) 2002 Juanjo Álvarez
8
// Copyright (C) 2002-2010 Szymon Stefanek (pragma at kvirc dot net)
10
// This program is FREE software. You can redistribute it and/or
11
// modify it under the terms of the GNU General Public License
12
// as published by the Free Software Foundation; either version 2
13
// of the License, or (at your opinion) any later version.
15
// This program is distributed in the HOPE that it will be USEFUL,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
// See the GNU General Public License for more details.
20
// You should have received a copy of the GNU General Public License
21
// along with this program. If not, write to the Free Software Foundation,
22
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
//=============================================================================
26
#include "OptionsWidget_ignore.h"
28
#include "KviOptions.h"
29
#include "KviLocale.h"
34
OptionsWidget_ignore::OptionsWidget_ignore(QWidget * parent)
35
: KviOptionsWidget(parent)
37
setObjectName("ignore_options_widget");
40
KviTalGroupBox *g = addGroupBox(0,0,0,0,Qt::Horizontal,__tr2qs_ctx("Enable Ignore For","options"));
41
m_pIgnorePrivmsg = addBoolSelector(g,__tr2qs_ctx("Private/channel messages","options"),KviOption_boolEnableIgnoreOnPrivMsg);
42
m_pIgnoreNotice = addBoolSelector(g,__tr2qs_ctx("Private/channel notices","options"),KviOption_boolEnableIgnoreOnNotice);
44
connect(m_pIgnorePrivmsg,SIGNAL(toggled(bool)),this,SLOT(enableVerbose(bool)));
46
m_pVerboseIgnore = addBoolSelector(0,1,0,1,__tr2qs_ctx("Use verbose ignore (show messages in console)","options"),
47
KviOption_boolVerboseIgnore,
48
KVI_OPTION_BOOL(KviOption_boolEnableIgnoreOnPrivMsg) || KVI_OPTION_BOOL(KviOption_boolEnableIgnoreOnNotice));
50
addRowSpacer(0,2,0,2);
53
OptionsWidget_ignore::~OptionsWidget_ignore()
57
void OptionsWidget_ignore::enableVerbose(bool)
59
m_pVerboseIgnore->setEnabled(m_pIgnorePrivmsg->isChecked() || m_pIgnoreNotice->isChecked());
64
#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES
65
#include "m_OptionsWidget_ignore.moc"
66
#endif //!COMPILE_USE_STANDALONE_MOC_SOURCES