Ticket #1442: licq-4791-optional_notices.patch
| File licq-4791-optional_notices.patch, 5.8 kB (added by flynd, 23 months ago) |
|---|
-
licq/plugins/qt-gui/src/mainwin.h
159 159 m_bShowAllEncodings, 160 160 m_bTabbedChatting, 161 161 m_bShowHistory, 162 m_showNotices, 162 163 m_bDisableDockIcon, 163 164 m_bSortColumnAscending, 164 165 m_chatVertSpacing, -
licq/plugins/qt-gui/src/usereventdlg.cpp
1793 1793 { 1794 1794 if (szId == 0) return; 1795 1795 1796 if (mainwin->m_bMsgChatView )1796 if (mainwin->m_bMsgChatView && mainwin->m_showNotices) 1797 1797 { 1798 1798 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1799 1799 QString userName; … … 1828 1828 { 1829 1829 if (szId == 0) return; 1830 1830 1831 if (mainwin->m_bMsgChatView )1831 if (mainwin->m_bMsgChatView && mainwin->m_showNotices) 1832 1832 { 1833 1833 ICQUser *u = gUserManager.FetchUser(szId, m_nPPID, LOCK_R); 1834 1834 QString userName; -
licq/plugins/qt-gui/src/optionsdlg.cpp
227 227 /*btnColorTabLabel->setPaletteBackgroundColor(mainwin->m_colorTab);*/ 228 228 btnColorTypingLabel->setPaletteBackgroundColor(mainwin->m_colorTabTyping); 229 229 btnColorChatBkg->setPaletteBackgroundColor(mainwin->m_colorChatBkg); 230 slot_refresh_msgViewer(); 231 230 232 231 if (mainwin->m_bMsgChatView) 233 232 { 234 233 chkTabbedChatting->setChecked(mainwin->m_bTabbedChatting); 235 234 chkShowHistory->setChecked(mainwin->m_bShowHistory); 235 chkShowNotices->setChecked(mainwin->m_showNotices); 236 236 } 237 237 else 238 238 { 239 239 chkTabbedChatting->setEnabled(false); 240 240 chkShowHistory->setEnabled(false); 241 chkShowNotices->setEnabled(false); 241 242 } 243 slot_refresh_msgViewer(); 244 242 245 chkSendTN->setChecked(mainwin->licqDaemon->SendTypingNotification()); 243 246 chkAutoPosReplyWin->setChecked(mainwin->m_bAutoPosReplyWin); 244 247 chkFlashTaskbar->setChecked(mainwin->m_bFlashTaskbar); … … 532 535 533 536 mainwin->m_bTabbedChatting = chkTabbedChatting->isChecked(); 534 537 mainwin->m_bShowHistory = chkShowHistory->isChecked(); 538 mainwin->m_showNotices = chkShowNotices->isChecked(); 535 539 mainwin->m_bAutoPosReplyWin = chkAutoPosReplyWin->isChecked(); 536 540 mainwin->m_bFlashTaskbar = chkFlashTaskbar->isChecked(); 537 541 mainwin->m_bAutoSendThroughServer = chkAutoSendThroughServer->isChecked(); … … 837 841 QWhatsThis::add(chkShowHistory, tr("Show the last 5 messages when a Send Window is opened")); 838 842 connect(chkMsgChatView, SIGNAL(toggled(bool)), this, SLOT(slot_useMsgChatView(bool))); 839 843 844 chkShowNotices = new QCheckBox(tr("Show Join/Left Notices"), boxMainWin); 845 QWhatsThis::add(chkShowNotices, tr("Show a notice in the chat window when a user joins or leavs the conversation.")); 846 connect(chkShowNotices, SIGNAL(toggled(bool)), this, SLOT(slot_refresh_msgViewer())); 847 840 848 chkSendTN = new QCheckBox(tr("Send typing notifications"), boxMainWin); 841 849 QWhatsThis::add(chkSendTN, tr("Send a notification to the user so they can see when you are typing a message to them")); 842 850 … … 1151 1159 1152 1160 void OptionsDlg::slot_useMsgChatView(bool b) 1153 1161 { 1154 if (!b)1155 {1156 chkTabbedChatting->setChecked(false);1157 chkShowHistory->setChecked(false);1158 }1159 1160 1162 chkTabbedChatting->setEnabled(b); 1161 1163 chkShowHistory->setEnabled(b); 1164 chkShowNotices->setEnabled(b); 1162 1165 } 1163 1166 1164 1167 void OptionsDlg::slot_useProxy(bool b) … … 1744 1747 names[i % 2], 1745 1748 MLView::toRichText(tr(msgs[i]), true, true)); 1746 1749 } 1747 msgChatViewer->addNotice(date, MLView::toRichText(tr(msgs[7]), true, true));1748 1750 1751 if (chkShowNotices->isChecked()) 1752 msgChatViewer->addNotice(date, MLView::toRichText(tr(msgs[7]), true, true)); 1753 1749 1754 msgHistViewer->updateContent(); 1750 1755 } 1751 1756 -
licq/plugins/qt-gui/src/mainwin.cpp
429 429 licqConf.ReadBool("MsgChatView", m_bMsgChatView, true ); 430 430 licqConf.ReadBool("TabbedChatting", m_bTabbedChatting, true); 431 431 licqConf.ReadBool("ShowHistory", m_bShowHistory, true); 432 licqConf.ReadBool("ShowNotices", m_showNotices, true); 432 433 licqConf.ReadBool("AutoPosReplyWin", m_bAutoPosReplyWin, true); 433 434 licqConf.ReadBool("AutoSendThroughServer", m_bAutoSendThroughServer, false); 434 435 licqConf.ReadBool("EnableMainwinMouseMovement", m_bEnableMainwinMouseMovement, true); … … 3571 3572 licqConf.WriteBool("MsgChatView", m_bMsgChatView); 3572 3573 licqConf.WriteBool("TabbedChatting", m_bTabbedChatting); 3573 3574 licqConf.WriteBool("ShowHistory", m_bShowHistory); 3575 licqConf.WriteBool("ShowNotices", m_showNotices); 3574 3576 licqConf.WriteBool("AutoPosReplyWin", m_bAutoPosReplyWin); 3575 3577 licqConf.WriteBool("AutoSendThroughServer", m_bAutoSendThroughServer); 3576 3578 licqConf.WriteBool("EnableMainwinMouseMovement", m_bEnableMainwinMouseMovement); -
licq/plugins/qt-gui/src/optionsdlg.h
114 114 *chkSysBack, *chkSendFromClipboard, *chkMsgChatView, *chkAutoPosReplyWin, 115 115 *chkFlashTaskbar, *chkAutoSendThroughServer, *chkTabbedChatting, 116 116 *chkMainWinSticky, *chkMsgWinSticky, *chkSingleLineChatMode, 117 *chkEnableMainwinMouseMovement, *chkShowHistory, *chkSendTN ;117 *chkEnableMainwinMouseMovement, *chkShowHistory, *chkSendTN, *chkShowNotices; 118 118 QRadioButton *rdbDockDefault, *rdbDockThemed, *rdbDockSmall; 119 119 QComboBox *cmbDockTheme, *cmbSortBy; 120 120
