~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/modules/options/optw_query.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//=============================================================================
2
 
//
3
 
//   File : optw_query.cpp
4
 
//   Creation date : Mon Oct 29 15:37:16 2001 GMT by Szymon Stefanek
5
 
//
6
 
//   This file is part of the KVirc irc client distribution
7
 
//   Copyright (C) 2001-2008 Szymon Stefanek (pragma at kvirc dot net)
8
 
//
9
 
//   This program is FREE software. You can redistribute it and/or
10
 
//   modify it under the terms of the GNU General Public License
11
 
//   as published by the Free Software Foundation; either version 2
12
 
//   of the License, or (at your opinion) any later version.
13
 
//
14
 
//   This program is distributed in the HOPE that it will be USEFUL,
15
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
 
//   See the GNU General Public License for more details.
18
 
//
19
 
//   You should have received a copy of the GNU General Public License
20
 
//   along with this program. If not, write to the Free Software Foundation,
21
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
 
//
23
 
//=============================================================================
24
 
 
25
 
 
26
 
#include "optw_query.h"
27
 
 
28
 
#include "kvi_options.h"
29
 
#include "kvi_locale.h"
30
 
#include "kvi_settings.h"
31
 
 
32
 
#include <QLayout>
33
 
 
34
 
 
35
 
KviQueryOptionsWidget::KviQueryOptionsWidget(QWidget * parent)
36
 
: KviOptionsWidget(parent)
37
 
{
38
 
        setObjectName("query_options_widget");
39
 
 
40
 
        createLayout();
41
 
 
42
 
        KviTalGroupBox * g = addGroupBox(0,0,1,0,Qt::Horizontal,__tr2qs_ctx("Open Query For","options"));
43
 
        KviBoolSelector * b  = addBoolSelector(g, __tr2qs_ctx("Private messages","options"),KviOption_boolCreateQueryOnPrivmsg);
44
 
        mergeTip(b,
45
 
                __tr2qs_ctx("<center>This option enables query window creation " \
46
 
                        "when a private message (PRIVMSG) is received.<br>" \
47
 
                        "If you disable this, private messages will " \
48
 
                        "be shown in the active window or a common channel.</center>","options"));
49
 
 
50
 
        b = addBoolSelector(g, __tr2qs_ctx("Private notices","options"),KviOption_boolCreateQueryOnNotice);
51
 
        mergeTip(b,
52
 
                __tr2qs_ctx("<center>This option enables query window creation " \
53
 
                        "when a private notice (NOTICE) is received.<br>" \
54
 
                        "If you disable this, private notices will " \
55
 
                        "be shown in the active window or a common channel.</center>","options"));
56
 
 
57
 
 
58
 
        b = addBoolSelector(0,1,1,1,__tr2qs_ctx("Always open queries as minimized","options"),KviOption_boolCreateMinimizedQuery);
59
 
 
60
 
        mergeTip(b,
61
 
                __tr2qs_ctx("<center>This option causes newly created " \
62
 
                        "query windows to be immediately minimized.<br>" \
63
 
                        "Enable this if you don't like queries " \
64
 
                        "popping up while you're typing something in a channel. :D</center>","options"));
65
 
 
66
 
 
67
 
        b = addBoolSelector(0,2,1,2, __tr2qs_ctx("Enable target user tracking","options"),KviOption_boolEnableQueryTracing);
68
 
        mergeTip(b,
69
 
                __tr2qs_ctx("<center>This option will enable target user tracking.<br>" \
70
 
                        "Some actions of the target user (e.g. joins and parts) " \
71
 
                        "will be displayed in the window.<br></center>","options"));
72
 
 
73
 
#if (defined(COMPILE_ON_WINDOWS) || defined(COMPILE_KDE_SUPPORT) || defined(COMPILE_ON_MINGW))
74
 
        b = addBoolSelector(0,3,1,3,__tr2qs_ctx("Flash system taskbar on new query message","options"),KviOption_boolFlashQueryWindowOnNewMessages);
75
 
                mergeTip(b,
76
 
                        __tr2qs_ctx("<center>This option causes the system taskbar entry for KVIrc to flash when a new query message " \
77
 
                                "is received and the KVIrc window is not the active.</center>","options"));
78
 
#endif
79
 
 
80
 
        b = addBoolSelector(0,4,1,4, __tr2qs_ctx("Popup notifier on new query message","options"),KviOption_boolPopupNotifierOnNewQueryMessages);
81
 
        mergeTip(b,
82
 
                __tr2qs_ctx("<center>This option causes a small notifier window to pop up " \
83
 
                        "in the low right corner of the screen when a new message is received " \
84
 
                        "and the KVIrc window is not active.</center>","options"));
85
 
        b = addBoolSelector(0,5,1,5, __tr2qs_ctx("Show information about query target at the top of the query","options"),KviOption_boolShowExtendedInfoInQueryLabel);
86
 
        mergeTip(b,
87
 
                __tr2qs_ctx("<center>This option enables query window information " \
88
 
                        "label. It can show you known information about query target at the top of the window.<br>" \
89
 
                        "Uncheck if you think,that it wastes your query space/" \
90
 
                        "</center>","options"));
91
 
 
92
 
        b = addBoolSelector(0,6,1,6,__tr2qs_ctx("Paste last query log","options"),KviOption_boolPasteLastLogOnQueryJoin);
93
 
 
94
 
        KviTalHBox * box = new KviTalHBox(this);
95
 
        addWidgetToLayout(box,0,7,1,7);
96
 
 
97
 
        KviUIntSelector * u = addUIntSelector(box,__tr2qs_ctx("Paste up to:","options"),KviOption_uintLinesToPasteOnQueryJoin,0,50,10,KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin));
98
 
        u->setSuffix(__tr2qs_ctx(" lines","options"));
99
 
        mergeTip(u,__tr2qs_ctx("<center>Minimum value: <b>0 lines</b><br>Maximum value: <b>50 lines</b></center>","options"));
100
 
        connect(b,SIGNAL(toggled(bool)),u,SLOT(setEnabled(bool)));
101
 
        u = addUIntSelector(box,__tr2qs_ctx("Interval:","options"),KviOption_uintDaysIntervalToPasteOnQueryJoin,1,10,10,KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin));
102
 
        u->setSuffix(__tr2qs_ctx(" days","options"));
103
 
        mergeTip(u,__tr2qs_ctx("<center>Minimum value: <b>0 days</b><br>Maximum value: <b>10 days</b></center>","options"));
104
 
        connect(b,SIGNAL(toggled(bool)),u,SLOT(setEnabled(bool)));
105
 
 
106
 
        addRowSpacer(0,8,1,8);
107
 
}
108
 
 
109
 
KviQueryOptionsWidget::~KviQueryOptionsWidget()
110
 
{
111
 
}
112
 
 
113
 
 
114
 
#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES
115
 
#include "m_optw_query.moc"
116
 
#endif //COMPILE_USE_STANDALONE_MOC_SOURCES