From 35a08fc5dd37576f905a48b75da84cc1bb1023e4 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 17 Jan 2016 20:53:55 +0100 Subject: [PATCH] CTextBox: add signal handler into scroll methodes --- src/gui/widget/textbox.cpp | 2 ++ src/gui/widget/textbox.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index c42fa67e2..18205ea50 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -685,6 +685,7 @@ void CTextBox::scrollPageDown(const int pages) m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage; if (oldCurrentLine != m_nCurrentLine) refresh(); + OnAfterScrollPage(); } void CTextBox::scrollPageUp(const int pages) @@ -708,6 +709,7 @@ void CTextBox::scrollPageUp(const int pages) m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage; if (oldCurrentLine != m_nCurrentLine) refresh(); + OnAfterScrollPage(); } void CTextBox::refresh(void) diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index 860e2cd7b..e895ece0e 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -212,6 +212,7 @@ class CTextBox : public sigc::trackable void hide (void); bool clearScreenBuffer(); sigc::signal OnAfterRefresh; + sigc::signal OnAfterScrollPage; }; #endif // !defined(AFX_TEXTBOX_H__208DED01_ABEC_491C_A632_5B21057DC5D8__INCLUDED_)