OSDN Git Service

Sync Dialog branch select basic work.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SyncDlg.h
index bf3c94b..a2222a7 100644 (file)
 #include "HistoryCombo.h"\r
 #include "MenuButton.h"\r
 #include "registry.h"\r
+#include "Balloon.h"\r
+#include "BranchCombox.h"\r
 // CSyncDlg dialog\r
+#define IDC_SYNC_TAB 0x1000000\r
 \r
-class CSyncDlg : public CResizableStandAloneDialog\r
+class CSyncDlg : public CResizableStandAloneDialog,public CBranchCombox\r
 {\r
        DECLARE_DYNAMIC(CSyncDlg)\r
 \r
@@ -40,16 +43,25 @@ public:
 \r
 protected:\r
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
+       BRANCH_COMBOX_EVENT_HANDLE();\r
 \r
        CRegDWORD m_regPullButton;\r
        CRegDWORD m_regPushButton;\r
-\r
+       CMFCTabCtrl m_ctrlTabCtrl;\r
+       CBalloon                        m_tooltips;\r
+       \r
+       void SetRemote(CString remote)\r
+       {\r
+               if(!remote.IsEmpty())\r
+               {\r
+                       this->m_ctrlURL.AddString(remote);\r
+               }\r
+       }\r
        DECLARE_MESSAGE_MAP()\r
 public:\r
        BOOL m_bAutoLoadPuttyKey;\r
-       CComboBoxEx m_ctrlLocalBranch;\r
-       CComboBoxEx m_ctrlRemoteBranch;\r
-       CComboBoxEx m_ctrlURL;\r
+       \r
+       CHistoryCombo m_ctrlURL;\r
        CButton m_ctrlDumyButton;\r
        CMenuButton m_ctrlPull;\r
        CMenuButton m_ctrlPush;\r
@@ -61,4 +73,6 @@ public:
        CProgressCtrl m_ctrlProgress;\r
        CAnimateCtrl m_ctrlAnimate;\r
        virtual BOOL OnInitDialog();\r
+       afx_msg void OnBnClickedButtonManage();\r
+       virtual BOOL PreTranslateMessage(MSG* pMsg);\r
 };\r