OSDN Git Service

Use unified Version Choose Code
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / MergeWizard.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2007-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 "TSVNPath.h"\r
21 \r
22 #include "MergeWizardStart.h"\r
23 #include "MergeWizardTree.h"\r
24 #include "MergeWizardRevRange.h"\r
25 #include "MergeWizardOptions.h"\r
26 #include "MergeWizardReintegrate.h"\r
27 \r
28 #define MERGEWIZARD_REVRANGE    0\r
29 #define MERGEWIZARD_TREE                1\r
30 #define MERGEWIZARD_REINTEGRATE 2\r
31 \r
32 class CMergeWizard : public CPropertySheet\r
33 {\r
34         DECLARE_DYNAMIC(CMergeWizard)\r
35 \r
36 public:\r
37         CMergeWizard(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);\r
38         virtual ~CMergeWizard();\r
39 \r
40 protected:\r
41         DECLARE_MESSAGE_MAP()\r
42         virtual BOOL OnInitDialog();\r
43 \r
44         afx_msg void OnPaint();\r
45         afx_msg HCURSOR OnQueryDragIcon();\r
46 \r
47         CMergeWizardStart                               page1;\r
48         CMergeWizardTree                                tree;\r
49         CMergeWizardRevRange                    revrange;\r
50         CMergeWizardOptions                             options;\r
51         CMergeWizardReintegrate                 reintegrate;\r
52 \r
53 public:\r
54         CTSVNPath                                               wcPath;\r
55         CString                                                 url;\r
56         CString                                                 sUUID;\r
57         int                                                             nRevRangeMerge;\r
58 \r
59         CString                                                 URL1;\r
60         CString                                                 URL2;\r
61         SVNRev                                                  startRev;\r
62         SVNRev                                                  endRev;\r
63         SVNRevRangeArray                                revRangeArray;\r
64         BOOL                                                    bReverseMerge;\r
65 \r
66         BOOL                                                    m_bRecordOnly;\r
67 \r
68         BOOL                                                    m_bIgnoreAncestry;\r
69         svn_depth_t                                             m_depth;\r
70         BOOL                                                    m_bIgnoreEOL;\r
71         svn_diff_file_ignore_space_t    m_IgnoreSpaces;\r
72         \r
73         void            SaveMode();\r
74         LRESULT         GetSecondPage();\r
75 \r
76 private:\r
77         bool                                                    m_FirstPageActivation;\r
78         HICON                                                   m_hIcon;\r
79 };\r
80 \r
81 \r