CTextBox: add signal handler into scroll methodes

Origin commit data
------------------
Commit: 35a08fc5dd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-17 (Sun, 17 Jan 2016)
This commit is contained in:
2016-01-17 20:53:55 +01:00
parent 5a33fb5d93
commit bbeb88d18f
2 changed files with 3 additions and 0 deletions

View File

@@ -685,6 +685,7 @@ void CTextBox::scrollPageDown(const int pages)
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage; m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
if (oldCurrentLine != m_nCurrentLine) if (oldCurrentLine != m_nCurrentLine)
refresh(); refresh();
OnAfterScrollPage();
} }
void CTextBox::scrollPageUp(const int pages) void CTextBox::scrollPageUp(const int pages)
@@ -708,6 +709,7 @@ void CTextBox::scrollPageUp(const int pages)
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage; m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
if (oldCurrentLine != m_nCurrentLine) if (oldCurrentLine != m_nCurrentLine)
refresh(); refresh();
OnAfterScrollPage();
} }
void CTextBox::refresh(void) void CTextBox::refresh(void)

View File

@@ -212,6 +212,7 @@ class CTextBox : public sigc::trackable
void hide (void); void hide (void);
bool clearScreenBuffer(); bool clearScreenBuffer();
sigc::signal<void> OnAfterRefresh; sigc::signal<void> OnAfterRefresh;
sigc::signal<void> OnAfterScrollPage;
}; };
#endif // !defined(AFX_TEXTBOX_H__208DED01_ABEC_491C_A632_5B21057DC5D8__INCLUDED_) #endif // !defined(AFX_TEXTBOX_H__208DED01_ABEC_491C_A632_5B21057DC5D8__INCLUDED_)