summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-02 14:11:40 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-02 14:11:40 +0300
commit16dae6bd7df08d11cf9175239fb9b27f88c6f12c (patch)
tree4a1f2976ff1256ea807108ece5c2df95b8732bf2 /plugins
parent3b014e321cb0b4fd9ff761cf145b94f71576fdd8 (diff)
fixes #2373 (NewStory: не работают фильтры)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/IEView/src/ieview_logger.cpp30
-rw-r--r--plugins/NewStory/src/history_log.cpp12
-rw-r--r--plugins/Scriver/src/msglog.cpp2
-rw-r--r--plugins/TabSRMM/src/msglog.cpp2
-rw-r--r--plugins/TabSRMM/src/msgs.h2
5 files changed, 16 insertions, 32 deletions
diff --git a/plugins/IEView/src/ieview_logger.cpp b/plugins/IEView/src/ieview_logger.cpp
index 5ab19373d0..20391f34a3 100644
--- a/plugins/IEView/src/ieview_logger.cpp
+++ b/plugins/IEView/src/ieview_logger.cpp
@@ -27,13 +27,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/////////////////////////////////////////////////////////////////////////////////////////
// CIeviewLogWindow class
-class CIeviewLogWindow : public CSrmmLogWindow
+class CIeviewLogWindow : public CSimpleLogWindow
{
HWND m_hwnd = nullptr;
public:
CIeviewLogWindow(CMsgDialog &pDlg) :
- CSrmmLogWindow(pDlg)
+ CSimpleLogWindow(pDlg)
{
}
@@ -105,7 +105,7 @@ public:
////////////////////////////////////////////////////////////////////////////////////////
- void LogEvent(const LOGINFO *lin)
+ void LogChatEvent(const LOGINFO &lin) override
{
IEVIEWEVENTDATA ied = {};
ied.dwFlags = IEEDF_UNICODE_NICK;
@@ -118,12 +118,12 @@ public:
event.eventData = &ied;
event.count = 1;
- ied.szNick.w = lin->ptszNick;
- ied.szText.w = lin->ptszText;
- ied.time = lin->time;
- ied.bIsMe = lin->bIsMe;
+ ied.szNick.w = lin.ptszNick;
+ ied.szText.w = lin.ptszText;
+ ied.time = lin.time;
+ ied.bIsMe = lin.bIsMe;
- switch (lin->iType) {
+ switch (lin.iType) {
case GC_EVENT_MESSAGE:
ied.iType = IEED_GC_EVENT_MESSAGE;
ied.dwData = IEEDD_GC_SHOW_NICK;
@@ -167,19 +167,7 @@ public:
ied.dwFlags = IEEDF_UNICODE_TEXT | IEEDF_UNICODE_NICK;
HandleIEEvent(0, LPARAM(&event));
}
-
- void LogEvents(const LOGINFO *lin) override
- {
- if (lin == nullptr) {
- for (auto &it : m_pDlg.getChat()->arEvents)
- LogEvent(it);
- }
- else LogEvent(lin);
-
- if (lin)
- ScrollToBottom();
- }
-
+
void Resize() override
{
RECT rcRichEdit;
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index 35f3b47c97..8c9775706b 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -1,12 +1,12 @@
#include "stdafx.h"
-class CNewStoryLogWindow : public CSrmmLogWindow
+class CNewStoryLogWindow : public CSimpleLogWindow
{
HWND m_hwnd = nullptr;
public:
CNewStoryLogWindow(CMsgDialog &pDlg) :
- CSrmmLogWindow(pDlg)
+ CSimpleLogWindow(pDlg)
{
}
@@ -60,13 +60,9 @@ public:
SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0);
}
- void LogEvents(const LOGINFO *lin) override
+ void LogChatEvent(const LOGINFO &lin) override
{
- if (lin == nullptr) {
- for (auto &it: m_pDlg.getChat()->arEvents)
- SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)it);
- }
- else SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)lin);
+ SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)&lin);
}
void Resize() override
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp
index 5cc9a73cb5..4901a9f1fb 100644
--- a/plugins/Scriver/src/msglog.cpp
+++ b/plugins/Scriver/src/msglog.cpp
@@ -662,7 +662,7 @@ public:
////////////////////////////////////////////////////////////////////////////////////////
- void LogEvents(const LOGINFO *lin) override
+ void LogChatEvents(const LOGINFO *lin) override
{
if (m_rtf.GetHwnd() == nullptr)
return;
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 8e3a2fab60..b5fc4ca97a 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1235,7 +1235,7 @@ void CLogWindow::LogEvents(MEVENT hDbEventFirst, int count, bool fAppend, DB::Ev
/////////////////////////////////////////////////////////////////////////////////////////
-void CLogWindow::LogEvents(const LOGINFO *lin)
+void CLogWindow::LogChatEvents(const LOGINFO *lin)
{
if (m_rtf.GetHwnd() == nullptr)
return;
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index 1bd350f520..4aef4ccf63 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -692,7 +692,7 @@ public:
void AppendUnicodeString(CMStringA &str, const wchar_t *pwszBuf) override;
void Attach() override;
void LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) override;
- void LogEvents(const LOGINFO *lin) override;
+ void LogChatEvents(const LOGINFO *lin) override;
void ScrollToBottom() override;
void UpdateOptions() override;