OSDN Git Service

f0a970012693f26ded4a4e79112f34df0fd368d3
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SyncDlg.cpp
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 // SyncDlg.cpp : implementation file\r
21 //\r
22 \r
23 #include "stdafx.h"\r
24 #include "TortoiseProc.h"\r
25 #include "SyncDlg.h"\r
26 \r
27 \r
28 // CSyncDlg dialog\r
29 \r
30 IMPLEMENT_DYNAMIC(CSyncDlg, CResizableStandAloneDialog)\r
31 \r
32 CSyncDlg::CSyncDlg(CWnd* pParent /*=NULL*/)\r
33         : CResizableStandAloneDialog(CSyncDlg::IDD, pParent)\r
34         , m_bAutoLoadPuttyKey(FALSE)\r
35 {\r
36 \r
37 }\r
38 \r
39 CSyncDlg::~CSyncDlg()\r
40 {\r
41 }\r
42 \r
43 void CSyncDlg::DoDataExchange(CDataExchange* pDX)\r
44 {\r
45         CDialog::DoDataExchange(pDX);\r
46         DDX_Check(pDX, IDC_CHECK_PUTTY_KEY, m_bAutoLoadPuttyKey);\r
47         DDX_Control(pDX, IDC_COMBOBOXEX_LOCAL_BRANCH, m_ctrlLocalBranch);\r
48         DDX_Control(pDX, IDC_COMBOBOXEX_REMOTE_BRANCH, m_ctrlRemoteBranch);\r
49         DDX_Control(pDX, IDC_COMBOBOXEX_URL, m_ctrlURL);\r
50         DDX_Control(pDX, IDC_BUTTON_TABCTRL, m_ctrlDumyButton);\r
51         DDX_Control(pDX, IDC_BUTTON_PULL, m_ctrlPull);\r
52         DDX_Control(pDX, IDC_BUTTON_PUSH, m_ctrlPush);\r
53         DDX_Control(pDX, IDC_STATIC_STATUS, m_ctrlStatus);\r
54         DDX_Control(pDX, IDC_PROGRESS_SYNC, m_ctrlProgress);\r
55         DDX_Control(pDX, IDC_ANIMATE_SYNC, m_ctrlAnimate);\r
56 }\r
57 \r
58 \r
59 BEGIN_MESSAGE_MAP(CSyncDlg, CResizableStandAloneDialog)\r
60         ON_BN_CLICKED(IDC_BUTTON_PULL, &CSyncDlg::OnBnClickedButtonPull)\r
61         ON_BN_CLICKED(IDC_BUTTON_PUSH, &CSyncDlg::OnBnClickedButtonPush)\r
62         ON_BN_CLICKED(IDC_BUTTON_APPLY, &CSyncDlg::OnBnClickedButtonApply)\r
63         ON_BN_CLICKED(IDC_BUTTON_EMAIL, &CSyncDlg::OnBnClickedButtonEmail)\r
64 END_MESSAGE_MAP()\r
65 \r
66 \r
67 // CSyncDlg message handlers\r
68 \r
69 void CSyncDlg::OnBnClickedButtonPull()\r
70 {\r
71         // TODO: Add your control notification handler code here\r
72 }\r
73 \r
74 void CSyncDlg::OnBnClickedButtonPush()\r
75 {\r
76         // TODO: Add your control notification handler code here\r
77 }\r
78 \r
79 void CSyncDlg::OnBnClickedButtonApply()\r
80 {\r
81         // TODO: Add your control notification handler code here\r
82 }\r
83 \r
84 void CSyncDlg::OnBnClickedButtonEmail()\r
85 {\r
86         // TODO: Add your control notification handler code here\r
87 }\r
88 \r
89 BOOL CSyncDlg::OnInitDialog()\r
90 {\r
91         CResizableStandAloneDialog::OnInitDialog();\r
92 \r
93         AddAnchor(IDC_STATIC_REMOTE_BRANCH,TOP_RIGHT);\r
94         AddAnchor(IDC_COMBOBOXEX_REMOTE_BRANCH,TOP_RIGHT);\r
95         AddAnchor(IDC_BUTTON_REMOTE_BRANCH,TOP_RIGHT);\r
96         AddAnchor(IDC_GROUP_INFO,TOP_LEFT,TOP_RIGHT);\r
97         AddAnchor(IDC_COMBOBOXEX_URL,TOP_LEFT,TOP_RIGHT);\r
98         AddAnchor(IDC_BUTTON_MANAGE,TOP_RIGHT);\r
99         AddAnchor(IDC_BUTTON_PULL,BOTTOM_LEFT);\r
100         AddAnchor(IDC_BUTTON_PUSH,BOTTOM_LEFT);\r
101         AddAnchor(IDC_BUTTON_APPLY,BOTTOM_LEFT);\r
102         AddAnchor(IDC_BUTTON_EMAIL,BOTTOM_LEFT);\r
103         AddAnchor(IDC_PROGRESS_SYNC,BOTTOM_LEFT,BOTTOM_RIGHT);\r
104         AddAnchor(IDOK,BOTTOM_RIGHT);\r
105         AddAnchor(IDHELP,BOTTOM_RIGHT);\r
106         AddAnchor(IDC_STATIC_STATUS,BOTTOM_LEFT);\r
107         AddAnchor(IDC_ANIMATE_SYNC,TOP_RIGHT);\r
108 \r
109         this->AddOthersToAnchor();\r
110         // TODO:  Add extra initialization here\r
111 \r
112         return TRUE;  // return TRUE unless you set the focus to a control\r
113         // EXCEPTION: OCX Property Pages should return FALSE\r
114 }\r