From 690dd7a33ddc90678367d73adf313533536e10f2 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 29 Apr 2016 23:57:30 +0100 Subject: Apply clang-format --- src/modules/options/OptionsWidget_query.cpp | 124 +++++++++++++++------------- 1 file changed, 65 insertions(+), 59 deletions(-) (limited to 'src/modules/options/OptionsWidget_query.cpp') diff --git a/src/modules/options/OptionsWidget_query.cpp b/src/modules/options/OptionsWidget_query.cpp index 91b727aaa..1174184d2 100644 --- a/src/modules/options/OptionsWidget_query.cpp +++ b/src/modules/options/OptionsWidget_query.cpp @@ -22,7 +22,6 @@ // //============================================================================= - #include "OptionsWidget_query.h" #include "KviOptions.h" @@ -31,9 +30,8 @@ #include - OptionsWidget_query::OptionsWidget_query(QWidget * parent) -: KviOptionsWidget(parent) + : KviOptionsWidget(parent) { setObjectName("query_options_widget"); createLayout(); @@ -41,72 +39,80 @@ OptionsWidget_query::OptionsWidget_query(QWidget * parent) KviBoolSelector * b; KviTalGroupBox * g; - g = addGroupBox(0,0,1,0,Qt::Horizontal,__tr2qs_ctx("Open Query for","options")); - b = addBoolSelector(g, __tr2qs_ctx("Private messages","options"),KviOption_boolCreateQueryOnPrivmsg); - 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")); - - b = addBoolSelector(g,__tr2qs_ctx("Private notices","options"),KviOption_boolCreateQueryOnNotice); - 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")); - - b = addBoolSelector(0,1,1,1,__tr2qs_ctx("Open incoming query windows without focus","options"),KviOption_boolCreateIncomingQueriesAsMinimized); - mergeTip(b,__tr2qs_ctx("This option prevents incoming " \ - "query windows from diverting application focus.
" \ - "Enable this if you don't like queries " \ - "popping up while you're typing something in a channel.","options")); - - b = addBoolSelector(0,2,1,2, __tr2qs_ctx("Enable target user tracking","options"),KviOption_boolEnableQueryTracing); - 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")); - -#if (defined(COMPILE_ON_WINDOWS) || defined(COMPILE_KDE_SUPPORT) || defined(COMPILE_ON_MINGW)) - b = addBoolSelector(0,3,1,3,__tr2qs_ctx("Flash system taskbar on new query message","options"),KviOption_boolFlashQueryWindowOnNewMessages); - 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")); + g = addGroupBox(0, 0, 1, 0, Qt::Horizontal, __tr2qs_ctx("Open Query for", "options")); + b = addBoolSelector(g, __tr2qs_ctx("Private messages", "options"), KviOption_boolCreateQueryOnPrivmsg); + 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")); + + b = addBoolSelector(g, __tr2qs_ctx("Private notices", "options"), KviOption_boolCreateQueryOnNotice); + 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")); + + b = addBoolSelector(0, 1, 1, 1, __tr2qs_ctx("Open incoming query windows without focus", "options"), KviOption_boolCreateIncomingQueriesAsMinimized); + mergeTip(b, __tr2qs_ctx("This option prevents incoming " + "query windows from diverting application focus.
" + "Enable this if you don't like queries " + "popping up while you're typing something in a channel.", + "options")); + + b = addBoolSelector(0, 2, 1, 2, __tr2qs_ctx("Enable target user tracking", "options"), KviOption_boolEnableQueryTracing); + 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")); + +#if(defined(COMPILE_ON_WINDOWS) || defined(COMPILE_KDE_SUPPORT) || defined(COMPILE_ON_MINGW)) + b = addBoolSelector(0, 3, 1, 3, __tr2qs_ctx("Flash system taskbar on new query message", "options"), KviOption_boolFlashQueryWindowOnNewMessages); + 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 - b = addBoolSelector(0,4,1,4, __tr2qs_ctx("Popup notifier on new query message","options"),KviOption_boolPopupNotifierOnNewQueryMessages); - mergeTip(b,__tr2qs_ctx("This option causes a small notifier window to pop up " \ - "in the lower right corner of the screen when a new message is received " \ - "and the KVIrc window is not active.","options")); - - b = addBoolSelector(0,5,1,5, __tr2qs_ctx("Popup notifier on new notice","options"),KviOption_boolPopupNotifierOnNewNotices); - mergeTip(b,__tr2qs_ctx("This option causes a small notifier window to pop up " \ - "in the lower right corner of the screen when a new notice is received " \ - "and the KVIrc window is not active.","options")); - - b = addBoolSelector(0,6,1,6, __tr2qs_ctx("Show information about query target at the top of the query","options"),KviOption_boolShowExtendedInfoInQueryLabel); - 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")); - - b = addBoolSelector(0,7,1,7,__tr2qs_ctx("Paste last query log","options"),KviOption_boolPasteLastLogOnQueryJoin); + b = addBoolSelector(0, 4, 1, 4, __tr2qs_ctx("Popup notifier on new query message", "options"), KviOption_boolPopupNotifierOnNewQueryMessages); + mergeTip(b, __tr2qs_ctx("This option causes a small notifier window to pop up " + "in the lower right corner of the screen when a new message is received " + "and the KVIrc window is not active.", + "options")); + + b = addBoolSelector(0, 5, 1, 5, __tr2qs_ctx("Popup notifier on new notice", "options"), KviOption_boolPopupNotifierOnNewNotices); + mergeTip(b, __tr2qs_ctx("This option causes a small notifier window to pop up " + "in the lower right corner of the screen when a new notice is received " + "and the KVIrc window is not active.", + "options")); + + b = addBoolSelector(0, 6, 1, 6, __tr2qs_ctx("Show information about query target at the top of the query", "options"), KviOption_boolShowExtendedInfoInQueryLabel); + 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")); + + b = addBoolSelector(0, 7, 1, 7, __tr2qs_ctx("Paste last query log", "options"), KviOption_boolPasteLastLogOnQueryJoin); KviTalHBox * box = new KviTalHBox(this); - addWidgetToLayout(box,0,8,1,8); + addWidgetToLayout(box, 0, 8, 1, 8); KviUIntSelector * u; - u = addUIntSelector(box,__tr2qs_ctx("Paste up to:","options"),KviOption_uintLinesToPasteOnQueryJoin,0,50,10, - KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin)); - u->setSuffix(__tr2qs_ctx(" lines","options")); - mergeTip(u,__tr2qs_ctx("Minimum value: 0 lines
Maximum value: 50 lines","options")); + u = addUIntSelector(box, __tr2qs_ctx("Paste up to:", "options"), KviOption_uintLinesToPasteOnQueryJoin, 0, 50, 10, + KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin)); + u->setSuffix(__tr2qs_ctx(" lines", "options")); + mergeTip(u, __tr2qs_ctx("Minimum value: 0 lines
Maximum value: 50 lines", "options")); - connect(b,SIGNAL(toggled(bool)),u,SLOT(setEnabled(bool))); + connect(b, SIGNAL(toggled(bool)), u, SLOT(setEnabled(bool))); - u = addUIntSelector(box,__tr2qs_ctx("Interval:","options"),KviOption_uintDaysIntervalToPasteOnQueryJoin,1,10,10, - KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin)); - u->setSuffix(__tr2qs_ctx(" days","options")); - mergeTip(u,__tr2qs_ctx("Minimum value: 0 days
Maximum value: 10 days","options")); + u = addUIntSelector(box, __tr2qs_ctx("Interval:", "options"), KviOption_uintDaysIntervalToPasteOnQueryJoin, 1, 10, 10, + KVI_OPTION_BOOL(KviOption_boolPasteLastLogOnQueryJoin)); + u->setSuffix(__tr2qs_ctx(" days", "options")); + mergeTip(u, __tr2qs_ctx("Minimum value: 0 days
Maximum value: 10 days", "options")); - connect(b,SIGNAL(toggled(bool)),u,SLOT(setEnabled(bool))); + connect(b, SIGNAL(toggled(bool)), u, SLOT(setEnabled(bool))); - addRowSpacer(0,9,1,9); + addRowSpacer(0, 9, 1, 9); } OptionsWidget_query::~OptionsWidget_query() -- cgit v1.3.1-10-gc9f91