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.
22 #include "StandAloneDlg.h"
23 #include "SVNStatusListCtrl.h"
24 #include "ProjectProperties.h"
25 #include "RegHistory.h"
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
)
40 CLockDlg(CWnd
* pParent
= NULL
); // standard constructor
43 void SetProjectProperties(ProjectProperties
* pProps
) {m_ProjectProperties
= pProps
;}
45 static UINT
StatusThreadEntry(LPVOID pVoid
);
48 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
49 virtual BOOL
OnInitDialog();
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
);
64 enum { IDD
= IDD_LOCK
};
66 CString m_sLockMessage
;
68 CTSVNPathList m_pathList
;
71 CWinThread
* m_pThread
;
73 CSVNStatusListCtrl m_cFileList
;
75 ProjectProperties
* m_ProjectProperties
;
79 CRegHistory m_History
;