OSDN Git Service

Show Ignore Sub Menu
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Settings / SetLogCache.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2007-2008 - TortoiseSVN\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 #pragma once\r
20 #include "SettingsPropPage.h"\r
21 #include "Tooltip.h"\r
22 #include "Registry.h"\r
23 #include "ILogReceiver.h"\r
24 \r
25 class CProgressDlg;\r
26 \r
27 /**\r
28  * \ingroup TortoiseProc\r
29  * Settings page to configure miscellaneous stuff. \r
30  */\r
31 class CSetLogCache \r
32     : public ISettingsPropPage\r
33 {\r
34         DECLARE_DYNAMIC(CSetLogCache)\r
35 \r
36 public:\r
37         CSetLogCache();\r
38         virtual ~CSetLogCache();\r
39         \r
40         UINT GetIconID() {return IDI_CACHE;}\r
41 \r
42 // Dialog Data\r
43         enum { IDD = IDD_SETTINGSLOGCACHE };\r
44 \r
45 protected:\r
46         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
47         afx_msg void OnChanged();\r
48         afx_msg void OnStandardDefaults();\r
49         afx_msg void OnPowerDefaults();\r
50         virtual BOOL OnInitDialog();\r
51         virtual BOOL PreTranslateMessage(MSG* pMsg);\r
52         virtual BOOL OnApply();\r
53 \r
54     DECLARE_MESSAGE_MAP()\r
55 private:\r
56         CToolTips               m_tooltips;\r
57 \r
58         BOOL                    m_bEnableLogCaching;\r
59         BOOL                    m_bSupportAmbiguousURL;\r
60         BOOL                    m_bSupportAmbiguousUUID;\r
61 \r
62         CComboBox       m_cDefaultConnectionState;\r
63 \r
64         DWORD                   m_dwMaxHeadAge;\r
65         DWORD                   m_dwCacheDropAge;\r
66         DWORD                   m_dwCacheDropMaxSize;\r
67 \r
68         DWORD                   m_dwMaxFailuresUntilDrop;\r
69 };\r