summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-12 13:43:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-12 13:43:31 +0300
commit8dd4143614ffa1a309f07f0b1a19921955f9c3f5 (patch)
treec99f5116020adb618d020fe4df7283fb5268d9ab /plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h
parent6312425c1ad093cad87a688497728fdb12e24385 (diff)
MirandaG15: warning fixes + massive code cleaning
Diffstat (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h')
-rw-r--r--plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h28
1 files changed, 13 insertions, 15 deletions
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<CLogEntry*> m_Entrys;
CLCDBar *m_pScrollbar;
};
-#endif \ No newline at end of file
+#endif