6 #include "StandAloneDlg.h"
\r
11 typedef std::map<CString,CShadowTree> TShadowTreeMap;
\r
13 CShadowTree():m_hTree(NULL),m_pParent(NULL){}
\r
15 CShadowTree* GetNextSub(CString& nameLeft);
\r
17 bool IsLeaf()const {return m_ShadowTree.empty();}
\r
18 CString GetRefName()const
\r
22 return m_pParent->GetRefName()+"/"+m_csRefName;
\r
24 bool IsFrom(const wchar_t* from)const
\r
26 return wcsncmp(GetRefName(),from,wcslen(from))==0;
\r
29 CString m_csRefName;
\r
30 CString m_csRefHash;
\r
33 CString m_csSubject;
\r
37 TShadowTreeMap m_ShadowTree;
\r
38 CShadowTree* m_pParent;
\r
41 class CBrowseRefsDlg : public CResizableStandAloneDialog
\r
43 DECLARE_DYNAMIC(CBrowseRefsDlg)
\r
46 CBrowseRefsDlg(CString cmdPath, CWnd* pParent = NULL); // standard constructor
\r
47 virtual ~CBrowseRefsDlg();
\r
51 eCmd_ViewLog = WM_APP,
\r
61 enum { IDD = IDD_DIALOG_BROWSE_REFS };
\r
64 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
66 DECLARE_MESSAGE_MAP()
\r
68 afx_msg void OnBnClickedOk();
\r
69 virtual BOOL OnInitDialog();
\r
73 CShadowTree& GetTreeNode(CString refName, CShadowTree* pTreePos=NULL);
\r
75 void FillListCtrlForTreeNode(HTREEITEM treeNode);
\r
77 void FillListCtrlForShadowTree(CShadowTree* pTree, CString refNamePrefix, bool isFirstLevel);
\r
79 bool SelectRef(CString refName);
\r
84 CShadowTree m_TreeRoot;
\r
85 CTreeCtrl m_RefTreeCtrl;
\r
86 CListCtrl m_ListRefLeafs;
\r
87 afx_msg void OnTvnSelchangedTreeRef(NMHDR *pNMHDR, LRESULT *pResult);
\r
90 afx_msg void OnContextMenu(CWnd* pWndFrom, CPoint point);
\r
92 void OnContextMenu_ListRefLeafs(CPoint point);
\r
93 void OnContextMenu_RefTreeCtrl(CPoint point);
\r
94 virtual BOOL PreTranslateMessage(MSG* pMsg);
\r