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