X-Git-Url: http://git.sourceforge.jp/view?p=tortoisegit%2FTortoiseGitJp.git;a=blobdiff_plain;f=src%2FTortoiseProc%2FGitLogListBase.h;h=76564fb3bb66aa7a187108619d64cbfd51a3d651;hp=659c8817eafe8699d05e7fd79be1c1c01947438d;hb=8feb7c6a89a613054e5f42da7a0d99d022747c90;hpb=c2f3f68058dd234be756310fc729cce0dcf6e370 diff --git a/src/TortoiseProc/GitLogListBase.h b/src/TortoiseProc/GitLogListBase.h index 659c881..76564fb 100644 --- a/src/TortoiseProc/GitLogListBase.h +++ b/src/TortoiseProc/GitLogListBase.h @@ -56,6 +56,7 @@ enum LISTITEMSTATES_MINE { //typedef void CALLBACK_PROCESS(void * data, int progress); #define MSG_LOADED (WM_USER+110) #define MSG_LOAD_PERCENTAGE (WM_USER+111) +#define MSG_REFLOG_CHANGED (WM_USER+112) class CGitLogListBase : public CHintListCtrl { @@ -69,6 +70,8 @@ public: BOOL m_IsOldFirst; BOOL m_IsRebaseReplaceGraph; + void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); + void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct); BOOL m_bStrictStopped; BOOL m_bShowBugtraqColumn; @@ -77,6 +80,7 @@ public: unsigned __int64 m_ContextMenuMask; bool m_hasWC; + bool m_bShowWC; GitRev m_wcRev; volatile LONG m_bThreadRunning; CLogCache m_LogCache; @@ -138,6 +142,13 @@ public: ID_REBASE_EDIT, ID_REBASE_SQUASH, ID_REBASE_SKIP, + ID_COMBINE_COMMIT, + ID_STASH_APPLY, + ID_REFLOG_DEL, + ID_REBASE_TO_VERSION, + ID_CREATE_PATCH, + ID_DELETE, + ID_COMMIT, }; inline unsigned __int64 GetContextMenuBit(int i){ return ((unsigned __int64 )0x1)<m_HeadHash=g_Git.GetHash(CString(_T("HEAD"))).Left(40); + m_wcRev.m_ParentHash.clear(); + m_wcRev.m_ParentHash.push_back(m_HeadHash); } void TerminateThread() { @@ -185,14 +199,22 @@ public: { return (AfxGetThread() == m_LoadingThread); } + + void SetStartRef(const CString& StartRef) + { + m_StartRef=StartRef; + } + + CString GetStartRef() const {return m_StartRef;} + volatile bool m_bExitThread; CWinThread* m_LoadingThread; protected: DECLARE_MESSAGE_MAP() afx_msg void OnDestroy(); - afx_msg void OnNMCustomdrawLoglist(NMHDR *pNMHDR, LRESULT *pResult); - afx_msg void OnLvnGetdispinfoLoglist(NMHDR *pNMHDR, LRESULT *pResult); + virtual afx_msg void OnNMCustomdrawLoglist(NMHDR *pNMHDR, LRESULT *pResult); + virtual afx_msg void OnLvnGetdispinfoLoglist(NMHDR *pNMHDR, LRESULT *pResult); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); afx_msg LRESULT OnLoad(WPARAM wParam, LPARAM lParam); @@ -202,15 +224,15 @@ protected: virtual BOOL PreTranslateMessage(MSG* pMsg); static UINT LogThreadEntry(LPVOID pVoid); UINT LogThread(); - void FetchFullLogInfoOrig(); - void FetchFullLogInfo(); + void FetchLastLogInfo(); + void FetchFullLogInfo(CString &from, CString &to); void FillBackGround(HDC hdc, int Index,CRect &rect); void DrawTagBranch(HDC,CRect &rect,INT_PTR index); void DrawGraph(HDC,CRect &rect,INT_PTR index); BOOL GetShortName(CString ref, CString &shortname,CString prefix); void paintGraphLane(HDC hdc,int laneHeight, int type, int x1, int x2, - const COLORREF& col,int top) ; + const COLORREF& col,const COLORREF& activeColor, int top) ; void DrawLine(HDC hdc, int x1, int y1, int x2, int y2){::MoveToEx(hdc,x1,y1,NULL);::LineTo(hdc,x2,y2);} /** * Save column widths to the registry @@ -219,7 +241,9 @@ protected: BOOL IsEntryInDateRange(int i); + int GetHeadIndex(); + CComCriticalSection m_critSec; bool m_bFilterWithRegex; @@ -244,10 +268,16 @@ protected: CColors m_Colors; CString m_CurrentBranch; + CString m_HeadHash; + + CString m_StartRef; //Ref of the top-commit + CString m_ColumnRegKey; + COLORREF m_LineColors[Lanes::COLORS_NUM]; DWORD m_DateFormat; // DATE_SHORTDATE or DATE_LONGDATE bool m_bRelativeTimes; // Show relative times + GIT_LOG m_DllGitLog; };