1 // TortoiseGit - 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.
20 #include "ProjectProperties.h"
21 #include "StandAloneDlg.h"
22 #include "HistoryCombo.h"
23 #include "RegHistory.h"
30 #define WM_TSVN_MAXREVFOUND (WM_APP + 1)
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
38 class CCopyDlg
: public CResizableStandAloneDialog
, public SVN
40 DECLARE_DYNAMIC(CCopyDlg
)
43 CCopyDlg(CWnd
* pParent
= NULL
); // standard constructor
47 enum { IDD
= IDD_COPY
};
50 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
52 virtual BOOL
OnInitDialog();
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();
69 virtual BOOL
Cancel() {return m_bCancelled
;}
70 void SetRevision(const SVNRev
& rev
);
74 CString m_sLogMessage
;
80 CSciEdit m_cLogMessage
;
83 ProjectProperties m_ProjectProperties
;
85 CHistoryCombo m_URLCombo
;
88 CRegHistory m_History
;
91 svn_revnum_t m_minrev
;
92 svn_revnum_t m_maxrev
;
96 bool m_bSettingChanged
;
97 static UINT
FindRevThreadEntry(LPVOID pVoid
);
99 CWinThread
* m_pThread
;
101 volatile LONG m_bThreadRunning
;