diff options
| author | 2008-04-08 23:46:37 +0000 | |
|---|---|---|
| committer | 2008-04-08 23:46:37 +0000 | |
| commit | 86fc13a3dabbc218896247605a75f0c847af7839 (patch) | |
| tree | ec82ccf45e579411219600493b4b3c03fea16f74 /src/modules/options/optw_highlighting.cpp | |
| parent | TODO-cmake update (diff) | |
| download | KVIrc-86fc13a3dabbc218896247605a75f0c847af7839.tar.gz KVIrc-86fc13a3dabbc218896247605a75f0c847af7839.tar.bz2 KVIrc-86fc13a3dabbc218896247605a75f0c847af7839.zip | |
more code clean
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1440 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/options/optw_highlighting.cpp')
| -rw-r--r-- | src/modules/options/optw_highlighting.cpp | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/modules/options/optw_highlighting.cpp b/src/modules/options/optw_highlighting.cpp index b494fe905..cb63afd33 100644 --- a/src/modules/options/optw_highlighting.cpp +++ b/src/modules/options/optw_highlighting.cpp @@ -23,13 +23,11 @@ // #include "optw_highlighting.h" - -#include <qlayout.h> - #include "kvi_options.h" #include "kvi_locale.h" -#include <qlabel.h> +#include <QLayout> +#include <QLabel> KviAlertHighlightingOptionsWidget::KviAlertHighlightingOptionsWidget(QWidget * parent) : KviOptionsWidget(parent,"highlighting_options_widget") @@ -41,7 +39,6 @@ KviAlertHighlightingOptionsWidget::~KviAlertHighlightingOptionsWidget() } - KviHighlightingOptionsWidget::KviHighlightingOptionsWidget(QWidget * parent) : KviOptionsWidget(parent,"highlighting_options_widget") { @@ -57,17 +54,11 @@ KviHighlightingOptionsWidget::KviHighlightingOptionsWidget(QWidget * parent) addStringSelector(0,2,0,2,__tr2qs_ctx("Word splitters:","options"),KviOption_stringWordSplitters); // This can be used even without Word highlighting b = addBoolSelector(0,3,0,3,__tr2qs_ctx("Highlight messages containing my nickname","options"),KviOption_boolAlwaysHighlightNick); -#ifdef COMPILE_INFO_TIPS mergeTip(b,__tr2qs_ctx("<center>If this option is enabled, KVIrc will highlight any user message containing your current nickname</center>","options")); -#endif b = addBoolSelector(0,4,0,4,__tr2qs_ctx("Flash the system taskbar entry on highlighted messages","options"),KviOption_boolFlashWindowOnHighlightedMessages); -#ifdef COMPILE_INFO_TIPS mergeTip(b,__tr2qs_ctx("<center>If this option is enabled, KVIrc will (attempt to) flash the system taskbar entry when a highlighted message is printed and KVIrc is not the active window</center>","options")); -#endif b = addBoolSelector(0,5,0,5,__tr2qs_ctx("Popup the notifier window on highlighted messages","options"),KviOption_boolPopupNotifierOnHighlightedMessages); -#ifdef COMPILE_INFO_TIPS mergeTip(b,__tr2qs_ctx("<center>If this option is enabled, KVIrc will popup a little notifier window in the low right corner of your desktop when a highlighted message is printed and KVIrc is not the active window</center>","options")); -#endif addRowSpacer(0,6,0,6); } @@ -77,10 +68,6 @@ KviHighlightingOptionsWidget::~KviHighlightingOptionsWidget() } - - - - KviAlertOptionsWidget::KviAlertOptionsWidget(QWidget * parent) : KviOptionsWidget(parent,"highlighting_options_widget") { @@ -90,29 +77,22 @@ KviAlertOptionsWidget::KviAlertOptionsWidget(QWidget * parent) KviTalGroupBox * g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Alert Restrictions","options")); KviBoolSelector * b3 = addBoolSelector(g,__tr2qs_ctx("Restrict alert","options"),KviOption_boolHighlightOnlyNormalMsg); -#ifdef COMPILE_INFO_TIPS mergeTip(b3, __tr2qs_ctx("<center>If this option is enabled, KVIrc will alert in the taskbar only if a normal message is received in a channel.<br>Actions like joins, parts and mode changes will be ignored.<br> This is useful if you are in channels with a high rate of traffic and only want to be alerted for messages that are interesting to you.</center>","options")); -#endif + KviBoolSelector * b4 = addBoolSelector(g,__tr2qs_ctx("Alert for highlighted words","options"),KviOption_boolHighlightOnlyNormalMsgHighlightInChanToo,KVI_OPTION_BOOL(KviOption_boolHighlightOnlyNormalMsg)); -#ifdef COMPILE_INFO_TIPS mergeTip(b4, __tr2qs_ctx("<center>If this option is enabled, the taskbar will also alert for messages which contain a word from the highlighted words list above.</center>","options")); -#endif + KviBoolSelector * b5 = addBoolSelector(g,__tr2qs_ctx("Alert for query messages","options"),KviOption_boolHighlightOnlyNormalMsgQueryToo,KVI_OPTION_BOOL(KviOption_boolHighlightOnlyNormalMsg)); -#ifdef COMPILE_INFO_TIPS mergeTip(b5, __tr2qs_ctx("<center>If this option is enabled, the taskbar will also alert for messages which are shown in queries.</center>","options")); -#endif connect(b3,SIGNAL(toggled(bool)),b4,SLOT(setEnabled(bool))); connect(b3,SIGNAL(toggled(bool)),b5,SLOT(setEnabled(bool))); KviBoolSelector * b6 = addBoolSelector(g,__tr2qs_ctx("Use custom alert level","options"),KviOption_boolHighlightOnlyAtCostumHighlightLevel); -#ifdef COMPILE_INFO_TIPS mergeTip(b6, __tr2qs_ctx("<center>If this option is enabled, KVIrc will alert in the taskbar only if the specified alert level is reached.</center>","options")); -#endif + KviUIntSelector * b7 = addUIntSelector(g,__tr2qs_ctx("Minimum alert level:","options"),KviOption_uintMinHighlightLevel,1,KVI_MSGTYPE_MAXLEVEL,KVI_MSGTYPE_MAXLEVEL,KVI_OPTION_UINT(KviOption_boolHighlightOnlyAtCostumHighlightLevel)); b7->setEnabled(KVI_OPTION_BOOL(KviOption_boolHighlightOnlyAtCostumHighlightLevel)); -#ifdef COMPILE_INFO_TIPS mergeTip(b6, __tr2qs_ctx("<center>This option sets the minimum alert level for the taskbar.</center>","options")); -#endif connect(b6,SIGNAL(toggled(bool)),b7,SLOT(setEnabled(bool))); addRowSpacer(0,1,0,1); |
