OSDN Git Service

Git Process Dialog basic worked but can't catch git clone output
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / ProgressDlg.h
1 #pragma once\r
2 \r
3 #include "StandAloneDlg.h"\r
4 \r
5 // CProgressDlg dialog\r
6 \r
7 class CProgressDlg : public CResizableStandAloneDialog\r
8 {\r
9         DECLARE_DYNAMIC(CProgressDlg)\r
10 \r
11 public:\r
12         CProgressDlg(CWnd* pParent = NULL);   // standard constructor\r
13         virtual ~CProgressDlg();\r
14         virtual BOOL OnInitDialog();\r
15 // Dialog Data\r
16         enum { IDD = IDD_GITPROGRESS };\r
17         CString m_GitCmd;\r
18         CProgressCtrl m_Progress;\r
19         \r
20         CEdit             m_Log;\r
21         CAnimateCtrl  m_Animate;\r
22         CStatic           m_CurrentWork;\r
23         CWinThread*                             m_pThread;      \r
24         volatile LONG                   m_bThreadRunning;\r
25         DWORD                     m_GitStatus;\r
26 protected:\r
27         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
28         static UINT ProgressThreadEntry(LPVOID pVoid);\r
29         UINT            ProgressThread();\r
30 \r
31         void            ParserCmdOutput(TCHAR ch);\r
32         int                     FindPercentage(CString &log);\r
33         void        RemoveLastLine(CString &str);\r
34 \r
35         CString         m_LogText;\r
36         DECLARE_MESSAGE_MAP()\r
37 };\r