BrowseRefs: Context menu enhancements
[TortoiseGit.git] / src / TortoiseProc / CheckoutDlg.h
blob092246731744cff4bf5851e70e2806d885dcc4a9
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.
19 #pragma once
20 #if 0
21 #include "GitRev.h"
22 #include "StandAloneDlg.h"
23 #include "HistoryCombo.h"
24 #include "FileDropEdit.h"
25 #include "LogDlg.h"
26 #include "afxwin.h"
27 #include "Tooltip.h"
29 /**
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)
38 public:
39 CCheckoutDlg(CWnd* pParent = NULL); ///< standard constructor
40 virtual ~CCheckoutDlg();
42 // Dialog Data
43 enum { IDD = IDD_CHECKOUT };
45 protected:
46 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
48 virtual BOOL OnInitDialog();
49 virtual BOOL PreTranslateMessage(MSG* pMsg);
50 virtual void OnOK();
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();
60 DECLARE_MESSAGE_MAP()
62 void SetRevision(const GitRev& rev);
63 protected:
64 CToolTips m_tooltips;
65 CString m_sRevision;
66 CString m_sCheckoutDirOrig;
67 bool m_bAutoCreateTargetName;
68 CComboBox m_depthCombo;
69 public:
70 CHistoryCombo m_URLCombo;
71 CString m_URL;
72 GitRev Revision;
73 BOOL m_bNoExternals;
74 CButton m_butBrowse;
75 CEdit m_editRevision;
76 CString m_strCheckoutDirectory;
77 CFileDropEdit m_cCheckoutEdit;
78 CLogDlg * m_pLogDlg;
79 git_depth_t m_depth;
81 #endif