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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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 <layout.h>
#include "kvi_settings.h"
#include "kvi_options.h"
#include "kvi_locale.h"
//#warning "Info tips"
KviNotifyOptionsWidget::KviNotifyOptionsWidget(TQWidget * 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,TQT_SIGNAL(toggled(bool)),g,TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Show notifications in active window","options"),
KviOption_boolNotifyListChangesToActiveWindow,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Flash window when users are going online","options"),
KviOption_boolFlashWindowOnNotifyOnLine,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Popup notifier when users are going online","options"),
KviOption_boolPopupNotifierOnNotifyOnLine,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
g = addGroupBox(0,2,0,2,1,Qt::Horizontal,__tr2qs_ctx("Advanced configuration","options"));
connect(b,TQT_SIGNAL(toggled(bool)),g,TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Check USERHOST for online users","options"),
KviOption_boolNotifyListSendUserhostForOnlineUsers,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Use \"smart\" notify list manager","options"),
KviOption_boolUseIntelligentNotifyListManager,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addBoolSelector(g,__tr2qs_ctx("Use the WATCH method if available","options"),
KviOption_boolUseWatchListIfAvailable,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addUIntSelector(g,__tr2qs_ctx("Check interval (in seconds)","options"),
KviOption_uintNotifyListCheckTimeInSecs,
5,3600,180,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addUIntSelector(g,__tr2qs_ctx("ISON delay (in seconds)","options"),
KviOption_uintNotifyListIsOnDelayTimeInSecs,
5,180,6,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_SLOT(setEnabled(bool)));
connect(b,
TQT_SIGNAL(toggled(bool)),
addUIntSelector(g,__tr2qs_ctx("USERHOST delay (in seconds)","options"),
KviOption_uintNotifyListUserhostDelayTimeInSecs,
5,180,6,KVI_OPTION_BOOL(KviOption_boolUseNotifyList)),
TQT_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(TQWidget * 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
TQString 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"
|