From a6d58bb6052ac8cb01805a48c4ad2f129126116f Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Feb 2010 02:13:59 +0000 Subject: Added KDE3 version of kvirc git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/modules/options/optw_query.cpp | 115 +++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 src/modules/options/optw_query.cpp (limited to 'src/modules/options/optw_query.cpp') diff --git a/src/modules/options/optw_query.cpp b/src/modules/options/optw_query.cpp new file mode 100644 index 00000000..d0026c6e --- /dev/null +++ b/src/modules/options/optw_query.cpp @@ -0,0 +1,115 @@ +// +// File : optw_query.cpp +// Creation date : Mon Oct 29 15:37:16 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_query.h" + +#include + +#include "kvi_options.h" +#include "kvi_locale.h" +#include "kvi_settings.h" + + +#ifdef COMPILE_KDE_SUPPORT + #include +#endif + +KviQueryOptionsWidget::KviQueryOptionsWidget(QWidget * parent) +: KviOptionsWidget(parent,"query_options_widget") +{ + createLayout(8,1); + + KviTalGroupBox *g = addGroupBox(0,0,0,0,1,Qt::Horizontal,__tr2qs_ctx("Open Query For","options")); + KviBoolSelector *b = addBoolSelector(g, __tr2qs_ctx("Private messages","options"),KviOption_boolCreateQueryOnPrivmsg); +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option enables query window creation " \ + "when a private message (PRIVMSG) is received.
" \ + "If you disable this, private messages will " \ + "be shown in the active window or a common channel.
","options")); +#endif + + b = addBoolSelector(g, __tr2qs_ctx("Private notices","options"),KviOption_boolCreateQueryOnNotice); +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option enables query window creation " \ + "when a private notice (NOTICE) is received.
" \ + "If you disable this, private notices will " \ + "be shown in the active window or a common channel.
","options")); +#endif + + + b = addBoolSelector(0,1,0,1,__tr2qs_ctx("Always open queries as minimized","options"),KviOption_boolCreateMinimizedQuery); + +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option causes newly created " \ + "query windows to be immediately minimized.
" \ + "Enable this if you don't like queries " \ + "popping up while you're typing something in a channel. :D
","options")); +#endif + + + + b = addBoolSelector(0,2,0,2, __tr2qs_ctx("Enable target user tracking","options"),KviOption_boolEnableQueryTracing); +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option will enable target user tracking.
" \ + "Some actions of the target user (e.g. joins and parts) " \ + "will be displayed in the window.
","options")); +#endif + +#if defined(COMPILE_ON_WINDOWS) || (defined(COMPILE_KDE_SUPPORT) && (KDE_VERSION_MAJOR >= 3) && (KDE_VERSION_MINOR >= 2)) + b = addBoolSelector(0,3,0,3,__tr2qs_ctx("Flash system taskbar on new query message","options"),KviOption_boolFlashQueryWindowOnNewMessages); + #ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option causes the system taskbar entry for KVIrc to flash when a new query message " \ + "is received and the KVIrc window is not the active.
","options")); + #endif +#endif + + b = addBoolSelector(0,4,0,4, __tr2qs_ctx("Popup notifier on new query message","options"),KviOption_boolPopupNotifierOnNewQueryMessages); +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option causes a small notifier window to pop up " \ + "in the low right corner of the screen when a new message is received " \ + "and the KVIrc window is not active.
","options")); +#endif + b = addBoolSelector(0,5,0,5, __tr2qs_ctx("Show information about query target at the top of the query","options"),KviOption_boolShowExtendedInfoInQueryLabel); +#ifdef COMPILE_INFO_TIPS + mergeTip(b, + __tr2qs_ctx("
This option enables query window information " \ + "label. It can show you known information about query target at the top of the window.
" \ + "Uncheck if you think,that it wastes your query space/" \ + "
","options")); +#endif + + addRowSpacer(0,6,0,6); +} + +KviQueryOptionsWidget::~KviQueryOptionsWidget() +{ +} + + +#include "m_optw_query.moc" -- cgit v1.2.1