OSDN Git Service

Add commit list and change list ctrl at SyncDlg
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SyncDlg.h
1 // TortoiseGit - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2008-2009 - TortoiseGit\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 \r
20 #pragma once\r
21 #include "afxcmn.h"\r
22 #include "afxwin.h"\r
23 \r
24 #include "StandAloneDlg.h"\r
25 #include "HistoryCombo.h"\r
26 #include "MenuButton.h"\r
27 #include "registry.h"\r
28 #include "Balloon.h"\r
29 #include "BranchCombox.h"\r
30 #include "GitLoglist.h"\r
31 // CSyncDlg dialog\r
32 #define IDC_SYNC_TAB 0x1000000\r
33 #define IDC_OUT_LOGLIST 0x1\r
34 #define IDC_OUT_CHANGELIST 0x2\r
35 class CSyncDlg : public CResizableStandAloneDialog,public CBranchCombox\r
36 {\r
37         DECLARE_DYNAMIC(CSyncDlg)\r
38 \r
39 public:\r
40         CSyncDlg(CWnd* pParent = NULL);   // standard constructor\r
41         virtual ~CSyncDlg();\r
42 \r
43 // Dialog Data\r
44         enum { IDD = IDD_SYNC };\r
45 \r
46 protected:\r
47         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
48         BRANCH_COMBOX_EVENT_HANDLE();\r
49 \r
50         CRegDWORD m_regPullButton;\r
51         CRegDWORD m_regPushButton;\r
52         CMFCTabCtrl m_ctrlTabCtrl;\r
53         CBalloon                        m_tooltips;\r
54         \r
55         CGitLogList     m_OutLogList;\r
56         CGitLogList m_InLogList;\r
57 \r
58         CGitStatusListCtrl m_OutChangeFileList;\r
59         CGitStatusListCtrl m_InChangeFileList;\r
60         CGitStatusListCtrl m_ConflictFileList;\r
61 \r
62         void FetchOutList();\r
63 \r
64         void SetRemote(CString remote)\r
65         {\r
66                 if(!remote.IsEmpty())\r
67                 {\r
68                         this->m_ctrlURL.AddString(remote);\r
69                 }\r
70         }\r
71         DECLARE_MESSAGE_MAP()\r
72 public:\r
73         BOOL m_bAutoLoadPuttyKey;\r
74         \r
75         CHistoryCombo m_ctrlURL;\r
76         CButton m_ctrlDumyButton;\r
77         CMenuButton m_ctrlPull;\r
78         CMenuButton m_ctrlPush;\r
79         CMenuButton m_ctrlStatus;\r
80         afx_msg void OnBnClickedButtonPull();\r
81         afx_msg void OnBnClickedButtonPush();\r
82         afx_msg void OnBnClickedButtonApply();\r
83         afx_msg void OnBnClickedButtonEmail();\r
84         CProgressCtrl m_ctrlProgress;\r
85         CAnimateCtrl m_ctrlAnimate;\r
86         virtual BOOL OnInitDialog();\r
87         afx_msg void OnBnClickedButtonManage();\r
88         virtual BOOL PreTranslateMessage(MSG* pMsg);\r
89 };\r