From 8dd4143614ffa1a309f07f0b1a19921955f9c3f5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Mar 2019 13:43:31 +0300 Subject: MirandaG15: warning fixes + massive code cleaning --- plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h | 28 +++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h index 312ec8a992..3f9f2bbc3c 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h +++ b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h @@ -4,15 +4,12 @@ #include "CLCDTextObject.h" #include "CLCDBar.h" - -enum EScrollMode {SCROLL_NONE, SCROLL_MESSAGE,SCROLL_LINE }; -enum EExpandMode { EXPAND_SCROLL, EXPAND_UP,EXPAND_DOWN }; +enum EScrollMode { SCROLL_NONE, SCROLL_MESSAGE, SCROLL_LINE }; +enum EExpandMode { EXPAND_SCROLL, EXPAND_UP, EXPAND_DOWN }; class CLCDTextLog : public CLCDTextObject { public: - - // Constructor CLCDTextLog(); // Destructor @@ -31,7 +28,7 @@ public: // sets the logs text void SetText(tstring strText); // adds some text to the log - void AddText(tstring strText,bool bForceAutoscroll=false); + void AddText(tstring strText, bool bForceAutoscroll = false); // sets the maximum number of log entrys void SetLogSize(int iSize); // clears the log @@ -60,6 +57,7 @@ protected: // rewraps all textlines void RefreshLines(); + private: // the log entry class class CLogEntry @@ -73,18 +71,18 @@ private: // wraps the specified log entry void WrapMessage(CLogEntry *pEntry); - EScrollMode m_eAutoScroll; - EExpandMode m_eExpandMode; + EScrollMode m_eAutoScroll = SCROLL_MESSAGE; + EExpandMode m_eExpandMode = EXPAND_SCROLL; + + int m_iLogSize = 10; + int m_iPosition = 0; + int m_iTextLines = 0; + int m_iLastScrollDirection = 0; - int m_iLogSize; - int m_iPosition; - int m_iTextLines; - int m_iLastScrollDirection; - - DWORD m_dwLastScroll; + DWORD m_dwLastScroll = 0; list m_Entrys; CLCDBar *m_pScrollbar; }; -#endif \ No newline at end of file +#endif -- cgit v1.2.3