diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-24 02:13:59 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-24 02:13:59 +0000 |
commit | a6d58bb6052ac8cb01805a48c4ad2f129126116f (patch) | |
tree | dd867a099fcbb263a8009a9fb22695b87855dad6 /src/modules/options/optw_notify.cpp | |
download | kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip |
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/options/optw_notify.cpp')
-rw-r--r-- | src/modules/options/optw_notify.cpp | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/src/modules/options/optw_notify.cpp b/src/modules/options/optw_notify.cpp new file mode 100644 index 00000000..6ee5dc05 --- /dev/null +++ b/src/modules/options/optw_notify.cpp @@ -0,0 +1,134 @@ +// +// File : optw_notify.cpp +// Creation date : Sun Oct 28 15:11:29 2001 GMT by Szymon Stefanek +// +// This file is part of the KVirc irc client distribution +// Copyright (C) 2001 Szymon Stefanek (pragma at kvirc dot net) +// +// 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 opinion) 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. ,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// + +#include "optw_notify.h" + +#include <qlayout.h> +#include "kvi_settings.h" +#include "kvi_options.h" +#include "kvi_locale.h" + + +//#warning "Info tips" + + +KviNotifyOptionsWidget::KviNotifyOptionsWidget(QWidget * parent) +: KviOptionsWidget(parent,"notify_options_widget") +{ + createLayout(5,1); + + KviBoolSelector * b = addBoolSelector(0,0,0,0,__tr2qs_ctx("Use online notify list","options"),KviOption_boolUseNotifyList); + KviTalGroupBox *g = addGroupBox(0,1,0,1,1,Qt::Horizontal,__tr2qs_ctx("Configuration","options")); + connect(b,SIGNAL(toggled(bool)),g,SLOT(setEnabled(bool))); + + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Show notifications in active window","options"), + KviOption_boolNotifyListChangesToActiveWindow,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Flash window when users are going online","options"), + KviOption_boolFlashWindowOnNotifyOnLine,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Popup notifier when users are going online","options"), + KviOption_boolPopupNotifierOnNotifyOnLine,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + + g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Advanced configuration","options")); + connect(b,SIGNAL(toggled(bool)),g,SLOT(setEnabled(bool))); + + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Check USERHOST for online users","options"), + KviOption_boolNotifyListSendUserhostForOnlineUsers,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Use \"smart\" notify list manager","options"), + KviOption_boolUseIntelligentNotifyListManager,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addBoolSelector(g,__tr2qs_ctx("Use the WATCH method if available","options"), + KviOption_boolUseWatchListIfAvailable,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addUIntSelector(g,__tr2qs_ctx("Check interval (in seconds)","options"), + KviOption_uintNotifyListCheckTimeInSecs, + 5,3600,180,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addUIntSelector(g,__tr2qs_ctx("ISON delay (in seconds)","options"), + KviOption_uintNotifyListIsOnDelayTimeInSecs, + 5,180,6,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + connect(b, + SIGNAL(toggled(bool)), + addUIntSelector(g,__tr2qs_ctx("USERHOST delay (in seconds)","options"), + KviOption_uintNotifyListUserhostDelayTimeInSecs, + 5,180,6,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)), + SLOT(setEnabled(bool))); + + addLabel(0,3,0,3,__tr2qs_ctx("<p><b>Note:</b><br>The notify list is managed using the \"Registered Users\" settings.</p>","options")); + addRowSpacer(0,4,0,4); +} + +KviNotifyOptionsWidget::~KviNotifyOptionsWidget() +{ +} + + + + +KviNotifierOptionsWidget::KviNotifierOptionsWidget(QWidget * parent) +: KviOptionsWidget(parent,"notifier_options_widget") +{ + createLayout(3,1); + + KviBoolSelector * b = addBoolSelector(0,0,0,0,__tr2qs_ctx("Forcibly and completely disable the notifier","options"),KviOption_boolForciblyDisableNotifier); +#ifdef COMPILE_INFO_TIPS + QString tip = "<center>"; + tip += __tr2qs_ctx("This is an option for the impatient: it allows to forcibly and permanently disable " \ + "the notifier window. Please note that if this option is activated then " \ + "the notifier will NOT popup even if all the other options around specify " \ + "to use it in response to particular events. Also note that this option " \ + "will make all the /notifier.* commands fail silently.","options"); + tip += "</center>"; + mergeTip(b,tip); +#endif + addBoolSelector(0,1,0,1,__tr2qs_ctx("Disable notifier window flashing","options"),KviOption_boolDisableNotifierFlashing); + addBoolSelector(0,2,0,2,__tr2qs_ctx("Disable notifier window fade effect","options"),KviOption_boolDisableNotifierFadein); + + addRowSpacer(0,3,0,3); +} + +KviNotifierOptionsWidget::~KviNotifierOptionsWidget() +{ +} + + +#include "m_optw_notify.moc" |