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.
20 #include "StandAloneDlg.h"
21 #include "SVNStatusListCtrl.h"
24 * \ingroup TortoiseProc
25 * Shows the patch dialog where the user can select the files/folders to be
26 * included in the resulting patch (unified diff) file.
28 class CCreatePatch
: public CResizableStandAloneDialog
//CResizableStandAloneDialog
30 DECLARE_DYNAMIC(CCreatePatch
)
33 CCreatePatch(CWnd
* pParent
= NULL
); // standard constructor
34 virtual ~CCreatePatch();
36 enum { IDD
= IDD_CREATEPATCH
};
39 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
40 virtual BOOL
OnInitDialog();
41 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
42 virtual void OnCancel();
44 afx_msg
void OnBnClickedSelectall();
45 afx_msg
void OnBnClickedShowunversioned();
46 afx_msg
void OnBnClickedHelp();
47 afx_msg LRESULT
OnSVNStatusListCtrlNeedsRefresh(WPARAM
, LPARAM
);
48 afx_msg LRESULT
OnFileDropped(WPARAM
, LPARAM lParam
);
53 static UINT
PatchThreadEntry(LPVOID pVoid
);
58 CSVNStatusListCtrl m_PatchList
;
59 LONG m_bThreadRunning
;
62 BOOL m_bShowUnversioned
;
64 /// the list of files to include in the patch
65 CTSVNPathList m_pathList
;
67 * The files which have to be reverted after the patch was created.
68 * That's necessary if the user selected an unversioned file - such files
69 * are added automatically to version control so they can be included in
70 * the patch, but then must be reverted later.
72 CTSVNPathList m_filesToRevert
;
73 afx_msg
void OnTimer(UINT_PTR nIDEvent
);