From c77821d0b4b3ae09e47ce6d6ca9d6b21dbb56d30 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 4 Nov 2013 08:59:15 +0000 Subject: LCDFramework project removed, integrated to MirandaG15 project git-svn-id: http://svn.miranda-ng.org/main/trunk@6767 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h | 90 ----------------------- 1 file changed, 90 deletions(-) delete mode 100644 plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h (limited to 'plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h') diff --git a/plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h b/plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h deleted file mode 100644 index 312ec8a992..0000000000 --- a/plugins/MirandaG15/LCDFramework/src/CLCDTextLog.h +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef _CLCDTEXTLOG_H_ -#define _CLCDTEXTLOG_H_ - -#include "CLCDTextObject.h" -#include "CLCDBar.h" - - -enum EScrollMode {SCROLL_NONE, SCROLL_MESSAGE,SCROLL_LINE }; -enum EExpandMode { EXPAND_SCROLL, EXPAND_UP,EXPAND_DOWN }; - -class CLCDTextLog : public CLCDTextObject -{ -public: - - - // Constructor - CLCDTextLog(); - // Destructor - ~CLCDTextLog(); - - // Initializes the log - bool Initialize(); - // Deinitializes the log - bool Shutdown(); - - // updates the log - bool Update(); - // draws the log - bool Draw(CLCDGfx *pGfx); - - // sets the logs text - void SetText(tstring strText); - // adds some text to the log - void AddText(tstring strText,bool bForceAutoscroll=false); - // sets the maximum number of log entrys - void SetLogSize(int iSize); - // clears the log - void ClearLog(); - - // scrolls one line up - bool ScrollUp(); - // scrolls one line down - bool ScrollDown(); - // scrolls to the specified line - bool ScrollTo(int iIndex); - - // associates a scrollbar with the log - void SetScrollbar(CLCDBar *pScrollbar); - - // sets the autoscrolling mode - void SetAutoscrollMode(EScrollMode eMode); - // sets the expand mode - void SetExpandMode(EExpandMode eMode); - -protected: - // called when the logs font has changed - void OnFontChanged(); - // called when the logs size has changed - void OnSizeChanged(SIZE OldSize); - - // rewraps all textlines - void RefreshLines(); -private: - // the log entry class - class CLogEntry - { - public: - tstring strString; - int iLines; - vector vLines; - }; - - // wraps the specified log entry - void WrapMessage(CLogEntry *pEntry); - - EScrollMode m_eAutoScroll; - EExpandMode m_eExpandMode; - - int m_iLogSize; - int m_iPosition; - int m_iTextLines; - int m_iLastScrollDirection; - - DWORD m_dwLastScroll; - - list m_Entrys; - CLCDBar *m_pScrollbar; -}; - -#endif \ No newline at end of file -- cgit v1.2.3