Update diff del rename ignore document.
[TortoiseGit.git] / src / TortoiseProc / CopyDlg.h
blob89b071a05ca2918068f470ddf46bd5e79d350f86
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 #include "ProjectProperties.h"
21 #include "StandAloneDlg.h"
22 #include "HistoryCombo.h"
23 #include "RegHistory.h"
24 #include "SciEdit.h"
25 #include "TSVNPath.h"
26 #include "SVNRev.h"
27 #include "LogDlg.h"
28 #include "Tooltip.h"
30 #define WM_TSVN_MAXREVFOUND (WM_APP + 1)
32 /**
33 * \ingroup TortoiseProc
34 * Prompts the user for the required information needed for a copy command.
35 * The required information is a single URL to copy the current URL of the
36 * working copy to.
38 class CCopyDlg : public CResizableStandAloneDialog, public SVN
40 DECLARE_DYNAMIC(CCopyDlg)
42 public:
43 CCopyDlg(CWnd* pParent = NULL); // standard constructor
44 virtual ~CCopyDlg();
46 // Dialog Data
47 enum { IDD = IDD_COPY };
49 protected:
50 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
52 virtual BOOL OnInitDialog();
53 virtual void OnOK();
54 virtual void OnCancel();
55 virtual BOOL PreTranslateMessage(MSG* pMsg);
56 afx_msg LRESULT OnRevFound(WPARAM wParam, LPARAM lParam);
57 afx_msg void OnBnClickedBrowse();
58 afx_msg void OnBnClickedHelp();
59 afx_msg LRESULT OnRevSelected(WPARAM wParam, LPARAM lParam);
60 afx_msg void OnBnClickedBrowsefrom();
61 afx_msg void OnBnClickedCopyhead();
62 afx_msg void OnBnClickedCopyrev();
63 afx_msg void OnBnClickedCopywc();
64 afx_msg void OnBnClickedHistory();
65 afx_msg void OnEnChangeLogmessage();
66 afx_msg void OnCbnEditchangeUrlcombo();
67 DECLARE_MESSAGE_MAP()
69 virtual BOOL Cancel() {return m_bCancelled;}
70 void SetRevision(const SVNRev& rev);
71 public:
72 CString m_URL;
73 CTSVNPath m_path;
74 CString m_sLogMessage;
75 SVNRev m_CopyRev;
76 BOOL m_bDoSwitch;
78 private:
79 CLogDlg * m_pLogDlg;
80 CSciEdit m_cLogMessage;
81 CFont m_logFont;
82 BOOL m_bFile;
83 ProjectProperties m_ProjectProperties;
84 CString m_sBugID;
85 CHistoryCombo m_URLCombo;
86 CString m_wcURL;
87 CButton m_butBrowse;
88 CRegHistory m_History;
89 CToolTips m_tooltips;
91 svn_revnum_t m_minrev;
92 svn_revnum_t m_maxrev;
93 bool m_bswitched;
94 bool m_bmodified;
95 bool m_bSparse;
96 bool m_bSettingChanged;
97 static UINT FindRevThreadEntry(LPVOID pVoid);
98 UINT FindRevThread();
99 CWinThread * m_pThread;
100 bool m_bCancelled;
101 volatile LONG m_bThreadRunning;