OSDN Git Service

b081d33905fbc4fda6a95eabe2aa131310dd1885
[tortoisegit/TortoiseGitJp.git] / src / TortoiseGitBlame / PropertiesWnd.h
1 \r
2 #pragma once\r
3 \r
4 class CPropertiesToolBar : public CMFCToolBar\r
5 {\r
6 public:\r
7         virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)\r
8         {\r
9                 CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);\r
10         }\r
11 \r
12         virtual BOOL AllowShowOnList() const { return FALSE; }\r
13 };\r
14 \r
15 class CPropertiesWnd : public CDockablePane\r
16 {\r
17 // Construction\r
18 public:\r
19         CPropertiesWnd();\r
20 \r
21         void AdjustLayout();\r
22 \r
23 // Attributes\r
24 public:\r
25         void SetVSDotNetLook(BOOL bSet)\r
26         {\r
27                 m_wndPropList.SetVSDotNetLook(bSet);\r
28                 m_wndPropList.SetGroupNameFullWidth(bSet);\r
29         }\r
30 \r
31 protected:\r
32         CFont m_fntPropList;\r
33         CComboBox m_wndObjectCombo;\r
34         CPropertiesToolBar m_wndToolBar;\r
35         CMFCPropertyGridCtrl m_wndPropList;\r
36 \r
37 // Implementation\r
38 public:\r
39         virtual ~CPropertiesWnd();\r
40 \r
41 protected:\r
42         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r
43         afx_msg void OnSize(UINT nType, int cx, int cy);\r
44         afx_msg void OnExpandAllProperties();\r
45         afx_msg void OnUpdateExpandAllProperties(CCmdUI* pCmdUI);\r
46         afx_msg void OnSortProperties();\r
47         afx_msg void OnUpdateSortProperties(CCmdUI* pCmdUI);\r
48         afx_msg void OnProperties1();\r
49         afx_msg void OnUpdateProperties1(CCmdUI* pCmdUI);\r
50         afx_msg void OnProperties2();\r
51         afx_msg void OnUpdateProperties2(CCmdUI* pCmdUI);\r
52         afx_msg void OnSetFocus(CWnd* pOldWnd);\r
53         afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);\r
54 \r
55         DECLARE_MESSAGE_MAP()\r
56 \r
57         void InitPropList();\r
58         void SetPropListFont();\r
59 };\r
60 \r