OSDN Git Service

Export Progress Dialog Okay
[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         CString m_LogFile;\r
19 \r
20         CProgressCtrl m_Progress;\r
21         \r
22         CEdit             m_Log;\r
23         CAnimateCtrl  m_Animate;\r
24         CStatic           m_CurrentWork;\r
25         CWinThread*                             m_pThread;      \r
26         volatile LONG                   m_bThreadRunning;\r
27         DWORD                     m_GitStatus;\r
28 protected:\r
29         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
30         static UINT ProgressThreadEntry(LPVOID pVoid);\r
31         UINT            ProgressThread();\r
32 \r
33         void            ParserCmdOutput(TCHAR ch);\r
34         int                     FindPercentage(CString &log);\r
35         void        RemoveLastLine(CString &str);\r
36 \r
37         CString         m_LogText;\r
38         DECLARE_MESSAGE_MAP()\r
39 };\r