1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2003-2008 - Stefan Kueng
\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
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
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
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
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
35 class CLockDlg : public CResizableStandAloneDialog
\r
37 DECLARE_DYNAMIC(CLockDlg)
\r
40 CLockDlg(CWnd* pParent = NULL); // standard constructor
\r
41 virtual ~CLockDlg();
\r
43 void SetProjectProperties(ProjectProperties * pProps) {m_ProjectProperties = pProps;}
\r
45 static UINT StatusThreadEntry(LPVOID pVoid);
\r
46 UINT StatusThread();
\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
62 DECLARE_MESSAGE_MAP()
\r
64 enum { IDD = IDD_LOCK };
\r
66 CString m_sLockMessage;
\r
68 CTSVNPathList m_pathList;
\r
71 CWinThread* m_pThread;
\r
73 CSVNStatusListCtrl m_cFileList;
\r
75 ProjectProperties * m_ProjectProperties;
\r
77 CToolTips m_tooltips;
\r
78 CButton m_SelectAll;
\r
79 CRegHistory m_History;
\r