1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2007-2008 - TortoiseSVN
\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
20 #include "SettingsPropPage.h"
\r
21 #include "Tooltip.h"
\r
22 #include "Registry.h"
\r
23 #include "ILogReceiver.h"
\r
28 * \ingroup TortoiseProc
\r
29 * Settings page to configure miscellaneous stuff.
\r
31 class CSettingsLogCaches
\r
32 : public ISettingsPropPage
\r
33 , private ILogReceiver
\r
35 DECLARE_DYNAMIC(CSettingsLogCaches)
\r
38 CSettingsLogCaches();
\r
39 virtual ~CSettingsLogCaches();
\r
41 UINT GetIconID() {return IDI_CACHELIST;}
\r
43 // update cache list
\r
45 virtual BOOL OnSetActive();
\r
48 enum { IDD = IDD_SETTINGSLOGCACHELIST };
\r
51 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
52 virtual BOOL OnInitDialog();
\r
53 virtual BOOL PreTranslateMessage(MSG* pMsg);
\r
55 afx_msg void OnBnClickedDetails();
\r
56 afx_msg void OnBnClickedUpdate();
\r
57 afx_msg void OnBnClickedExport();
\r
58 afx_msg void OnBnClickedDelete();
\r
60 afx_msg LRESULT OnRefeshRepositoryList (WPARAM wParam, LPARAM lParam);
\r
61 afx_msg void OnNMDblclkRepositorylist(NMHDR *pNMHDR, LRESULT *pResult);
\r
62 afx_msg void OnLvnItemchangedRepositorylist(NMHDR *pNMHDR, LRESULT *pResult);
\r
64 DECLARE_MESSAGE_MAP()
\r
66 CToolTips m_tooltips;
\r
68 CListCtrl m_cRepositoryList;
\r
70 /// current repository list
\r
72 typedef std::multimap<CString, CString> TRepos;
\r
73 typedef TRepos::value_type TRepo;
\r
74 typedef TRepos::const_iterator IT;
\r
77 TRepo GetSelectedRepo();
\r
78 void FillRepositoryList();
\r
80 static UINT WorkerThread(LPVOID pVoid);
\r
82 /// used by cache update
\r
84 CProgressDlg* progress;
\r
85 CString headRevision;
\r
87 void ReceiveLog ( LogChangedPathArray* changes
\r
89 , const StandardRevProps* stdRevProps
\r
90 , UserRevPropArray* userRevProps
\r
91 , bool mergesFollow);
\r