OSDN Git Service

Auto MsysGit Path and use git.exe replace git.cmd
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / LockDlg.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2008 - Stefan Kueng\r
4 \r
5 // This program is free software; you can redistribute it and/or\r
6 // modify it under the terms of the GNU General Public License\r
7 // as published by the Free Software Foundation; either version 2\r
8 // of the License, or (at your option) any later version.\r
9 \r
10 // This program is distributed in the hope that it will be useful,\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 // GNU General Public License for more details.\r
14 \r
15 // You should have received a copy of the GNU General Public License\r
16 // along with this program; if not, write to the Free Software Foundation,\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 //\r
19 #pragma once\r
20 #include "afxcmn.h"\r
21 #include "sciedit.h"\r
22 #include "StandAloneDlg.h"\r
23 #include "SVNStatusListCtrl.h"\r
24 #include "ProjectProperties.h"\r
25 #include "RegHistory.h"\r
26 #include "SciEdit.h"\r
27 #include "Registry.h"\r
28 #include "Tooltip.h"\r
29 \r
30 /**\r
31  * \ingroup TortoiseProc\r
32  * Dialog asking the user for a lock-message and a list control\r
33  * where the user can select which files to lock.\r
34  */\r
35 class CLockDlg : public CResizableStandAloneDialog\r
36 {\r
37         DECLARE_DYNAMIC(CLockDlg)\r
38 \r
39 public:\r
40         CLockDlg(CWnd* pParent = NULL);   // standard constructor\r
41         virtual ~CLockDlg();\r
42 \r
43         void    SetProjectProperties(ProjectProperties * pProps) {m_ProjectProperties = pProps;}\r
44 private:\r
45         static UINT StatusThreadEntry(LPVOID pVoid);\r
46         UINT StatusThread();\r
47 \r
48         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
49         virtual BOOL OnInitDialog();\r
50         virtual void OnOK();\r
51         virtual void OnCancel();\r
52         virtual BOOL PreTranslateMessage(MSG* pMsg);\r
53         afx_msg void OnBnClickedHelp();\r
54         afx_msg void OnEnChangeLockmessage();\r
55         afx_msg LRESULT OnSVNStatusListCtrlNeedsRefresh(WPARAM, LPARAM);\r
56         afx_msg void OnBnClickedSelectall();\r
57         afx_msg void OnBnClickedHistory();\r
58         afx_msg LRESULT OnFileDropped(WPARAM, LPARAM lParam);\r
59         afx_msg void OnTimer(UINT_PTR nIDEvent);\r
60         void Refresh();\r
61 \r
62         DECLARE_MESSAGE_MAP()\r
63 \r
64         enum { IDD = IDD_LOCK };\r
65 public:\r
66         CString                         m_sLockMessage;\r
67         BOOL                            m_bStealLocks;\r
68         CTSVNPathList           m_pathList;\r
69 \r
70 private:\r
71         CWinThread*                     m_pThread;\r
72         BOOL                            m_bBlock;\r
73         CSVNStatusListCtrl      m_cFileList;\r
74         CSciEdit                        m_cEdit;\r
75         ProjectProperties *     m_ProjectProperties;\r
76         bool                            m_bCancelled;\r
77         CToolTips                       m_tooltips;\r
78         CButton                         m_SelectAll;\r
79         CRegHistory                     m_History;\r
80 };\r