OSDN Git Service

Change Dir Structure to be same as TortoiseSVN'
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / CheckoutDlg.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2008 - TortoiseSVN\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 "SVNRev.h"\r
21 #include "StandAloneDlg.h"\r
22 #include "HistoryCombo.h"\r
23 #include "FileDropEdit.h"\r
24 #include "LogDlg.h"\r
25 #include "afxwin.h"\r
26 #include "Tooltip.h"\r
27 \r
28 /**\r
29  * \ingroup TortoiseProc\r
30  * Prompts the user for required information for a checkout command. The information\r
31  * is the module name and the repository url.\r
32  */\r
33 class CCheckoutDlg : public CResizableStandAloneDialog //CResizableStandAloneDialog\r
34 {\r
35         DECLARE_DYNAMIC(CCheckoutDlg)\r
36 \r
37 public:\r
38         CCheckoutDlg(CWnd* pParent = NULL);   ///< standard constructor\r
39         virtual ~CCheckoutDlg();\r
40 \r
41 // Dialog Data\r
42         enum { IDD = IDD_CHECKOUT };\r
43 \r
44 protected:\r
45         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
46 \r
47         virtual BOOL OnInitDialog();\r
48         virtual BOOL PreTranslateMessage(MSG* pMsg);\r
49         virtual void OnOK();\r
50         afx_msg void OnBnClickedBrowse();\r
51         afx_msg void OnBnClickedCheckoutdirectoryBrowse();\r
52         afx_msg void OnEnChangeCheckoutdirectory();\r
53         afx_msg void OnBnClickedHelp();\r
54         afx_msg void OnBnClickedShowlog();\r
55         afx_msg LRESULT OnRevSelected(WPARAM wParam, LPARAM lParam);\r
56         afx_msg void OnEnChangeRevisionNum();\r
57         afx_msg void OnCbnEditchangeUrlcombo();\r
58 \r
59         DECLARE_MESSAGE_MAP()\r
60 \r
61         void            SetRevision(const SVNRev& rev);\r
62 protected:\r
63         CToolTips               m_tooltips;\r
64         CString                 m_sRevision;\r
65         CString                 m_sCheckoutDirOrig;\r
66         bool                    m_bAutoCreateTargetName;\r
67         CComboBox               m_depthCombo;\r
68 public:\r
69         CHistoryCombo   m_URLCombo;\r
70         CString                 m_URL;\r
71         SVNRev                  Revision;\r
72         BOOL                    m_bNoExternals;\r
73         CButton                 m_butBrowse;\r
74         CEdit                   m_editRevision;\r
75         CString                 m_strCheckoutDirectory;\r
76         CFileDropEdit   m_cCheckoutEdit;\r
77         CLogDlg *               m_pLogDlg;\r
78         svn_depth_t             m_depth;\r
79 };\r