1 // TortoiseGit - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2008-2009 - TortoiseGit
\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
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
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
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
31 #define IDC_SYNC_TAB 0x1000000
\r
33 class CSyncDlg : public CResizableStandAloneDialog,public CBranchCombox
\r
35 DECLARE_DYNAMIC(CSyncDlg)
\r
38 CSyncDlg(CWnd* pParent = NULL); // standard constructor
\r
39 virtual ~CSyncDlg();
\r
42 enum { IDD = IDD_SYNC };
\r
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
46 BRANCH_COMBOX_EVENT_HANDLE();
\r
48 CRegDWORD m_regPullButton;
\r
49 CRegDWORD m_regPushButton;
\r
50 CMFCTabCtrl m_ctrlTabCtrl;
\r
51 CBalloon m_tooltips;
\r
53 void SetRemote(CString remote)
\r
55 if(!remote.IsEmpty())
\r
57 this->m_ctrlURL.AddString(remote);
\r
60 DECLARE_MESSAGE_MAP()
\r
62 BOOL m_bAutoLoadPuttyKey;
\r
64 CHistoryCombo m_ctrlURL;
\r
65 CButton m_ctrlDumyButton;
\r
66 CMenuButton m_ctrlPull;
\r
67 CMenuButton m_ctrlPush;
\r
68 CMenuButton m_ctrlStatus;
\r
69 afx_msg void OnBnClickedButtonPull();
\r
70 afx_msg void OnBnClickedButtonPush();
\r
71 afx_msg void OnBnClickedButtonApply();
\r
72 afx_msg void OnBnClickedButtonEmail();
\r
73 CProgressCtrl m_ctrlProgress;
\r
74 CAnimateCtrl m_ctrlAnimate;
\r
75 virtual BOOL OnInitDialog();
\r
76 afx_msg void OnBnClickedButtonManage();
\r
77 virtual BOOL PreTranslateMessage(MSG* pMsg);
\r