1 // TortoiseSVN - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - TortoiseSVN
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 "HistoryCombo.h"
24 #include "FileDropEdit.h"
30 * \ingroup TortoiseProc
31 * Prompts the user for required information for a checkout command. The information
32 * is the module name and the repository url.
34 class CCheckoutDlg
: public CResizableStandAloneDialog
//CResizableStandAloneDialog
36 DECLARE_DYNAMIC(CCheckoutDlg
)
39 CCheckoutDlg(CWnd
* pParent
= NULL
); ///< standard constructor
40 virtual ~CCheckoutDlg();
43 enum { IDD
= IDD_CHECKOUT
};
46 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
48 virtual BOOL
OnInitDialog();
49 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
51 afx_msg
void OnBnClickedBrowse();
52 afx_msg
void OnBnClickedCheckoutdirectoryBrowse();
53 afx_msg
void OnEnChangeCheckoutdirectory();
54 afx_msg
void OnBnClickedHelp();
55 afx_msg
void OnBnClickedShowlog();
56 afx_msg LRESULT
OnRevSelected(WPARAM wParam
, LPARAM lParam
);
57 afx_msg
void OnEnChangeRevisionNum();
58 afx_msg
void OnCbnEditchangeUrlcombo();
62 void SetRevision(const GitRev
& rev
);
66 CString m_sCheckoutDirOrig
;
67 bool m_bAutoCreateTargetName
;
68 CComboBox m_depthCombo
;
70 CHistoryCombo m_URLCombo
;
76 CString m_strCheckoutDirectory
;
77 CFileDropEdit m_cCheckoutEdit
;