OSDN Git Service

Add EnableSaveRestore at some dialog.
authorFrank Li <lznuaa@gmail.com>
Fri, 30 Jan 2009 08:30:45 +0000 (16:30 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 30 Jan 2009 08:30:45 +0000 (16:30 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/CloneDlg.cpp
src/TortoiseProc/CreateBranchTagDlg.cpp
src/TortoiseProc/FormatPatchDlg.cpp
src/TortoiseProc/GitSwitchDlg.cpp
src/TortoiseProc/ImportPatchDlg.cpp
src/TortoiseProc/MergeDlg.cpp
src/TortoiseProc/PullFetchDlg.cpp
src/TortoiseProc/PushDlg.cpp
src/TortoiseProc/TortoiseProc.vcproj

index 70f3243..73e6f3c 100644 (file)
@@ -49,7 +49,8 @@ BOOL CCloneDlg::OnInitDialog()
        CWnd *window=this->GetDlgItem(IDC_CLONE_DIR);\r
        if(window)\r
                SHAutoComplete(window->m_hWnd, SHACF_FILESYSTEM);\r
-       \r
+\r
+       EnableSaveRestore(_T("CloneDlg"));\r
        return TRUE;  // return TRUE  unless you set the focus to a control\r
 }\r
 \r
index 5f5b7a3..7a7ac57 100644 (file)
@@ -79,7 +79,7 @@ BOOL CCreateBranchTagDlg::OnInitDialog()
                this->SetWindowTextW(_T("Create Branch"));\r
                this->GetDlgItem(IDC_LABEL_BRANCH)->SetWindowTextW(_T("Branch"));\r
        }\r
-       \r
+       EnableSaveRestore(_T("BranchTagDlg"));\r
        return TRUE;\r
 \r
 \r
index 7528677..0814af6 100644 (file)
@@ -87,6 +87,7 @@ BOOL CFormatPatchDlg::OnInitDialog()
        \r
        OnBnClickedRadio();\r
 \r
+       EnableSaveRestore(_T("FormatPatchDlg"));\r
        return TRUE;\r
 }\r
 // CFormatPatchDlg message handlers\r
index b616c1d..d52b869 100644 (file)
@@ -56,10 +56,12 @@ BOOL CGitSwitchDlg::OnInitDialog()
        AddAnchor(IDOK,BOTTOM_RIGHT);\r
        AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
 \r
-\r
+       \r
        CHOOSE_VERSION_ADDANCHOR;\r
        Init();\r
 \r
+       EnableSaveRestore(_T("SwitchDlg"));\r
+\r
        if(m_Base.IsEmpty())\r
                SetDefaultChoose(IDC_RADIO_BRANCH);\r
        else\r
index e987d4f..0881ba0 100644 (file)
@@ -40,7 +40,7 @@ BOOL CImportPatchDlg::OnInitDialog()
        AddAnchor(IDOK,BOTTOM_RIGHT);\r
        AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
 \r
-\r
+       EnableSaveRestore(_T("ImportDlg"));\r
        return TRUE;\r
 }\r
 \r
index c9481c7..486dc35 100644 (file)
@@ -60,6 +60,8 @@ BOOL CMergeDlg::OnInitDialog()
        Init();\r
        \r
        this->SetDefaultChoose(IDC_RADIO_BRANCH);\r
+       \r
+       EnableSaveRestore(_T("MergeDlg"));\r
 \r
        return TRUE;\r
 }\r
index ff2b2f3..49f908a 100644 (file)
@@ -71,7 +71,7 @@ BOOL CPullFetchDlg::OnInitDialog()
                for(unsigned int i=0;i<list.size();i++)\r
                        m_Remote.AddString(list[i]);\r
        }\r
-\r
+       EnableSaveRestore(_T("PullFetchDlg"));\r
        return TRUE;\r
 }\r
 // CPullFetchDlg message handlers\r
index 66e5b1f..693dd5f 100644 (file)
@@ -44,6 +44,7 @@ END_MESSAGE_MAP()
 BOOL CPushDlg::OnInitDialog()\r
 {\r
        CResizableStandAloneDialog::OnInitDialog();\r
+       \r
        AddAnchor(IDC_BRANCH_REMOTE, TOP_RIGHT);\r
        AddAnchor(IDC_BRANCH_SOURCE, TOP_LEFT);\r
 \r
@@ -59,11 +60,12 @@ BOOL CPushDlg::OnInitDialog()
        AddAnchor(IDOK,BOTTOM_RIGHT);\r
        AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
 \r
+       EnableSaveRestore(_T("PushDlg"));\r
+\r
        m_RemoteURL.SetURLHistory(TRUE);\r
        m_RemoteURL.LoadHistory(_T("Software\\TortoiseGit\\History\\PushURLS"), _T("url"));\r
        m_RemoteURL.SetCurSel(0);\r
 \r
-\r
        m_RemoteURL.EnableWindow(FALSE);\r
        CheckRadioButton(IDC_RD_REMOTE,IDC_RD_URL,IDC_RD_REMOTE);\r
 \r
@@ -87,6 +89,8 @@ BOOL CPushDlg::OnInitDialog()
        m_BranchRemote.SetCurSel(0);\r
 \r
        //m_BranchRemote.SetWindowTextW(m_BranchSource.GetString());\r
+\r
+       \r
        return TRUE;\r
 }\r
 \r
index 7fe42bb..aaa2659 100644 (file)
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\explorer.ico"\r
+                               RelativePath="..\Resources\explorer.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\explorer.ico"\r
+                               RelativePath=".\explorer.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\newfolder.ico"\r
+                               RelativePath="..\Resources\newfolder.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\newfolder.ico"\r
+                               RelativePath=".\newfolder.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\open.ico"\r
+                               RelativePath="..\Resources\open.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\open.ico"\r
+                               RelativePath=".\open.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\save.ico"\r
+                               RelativePath="..\Resources\save.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\save.ico"\r
+                               RelativePath=".\save.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\saveas.ico"\r
+                               RelativePath="..\Resources\saveas.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\saveas.ico"\r
+                               RelativePath=".\saveas.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\up.ico"\r
+                               RelativePath="..\Resources\up.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\up.ico"\r
+                               RelativePath=".\up.ico"\r
                                >\r
                        </File>\r
                        <File\r