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
25 CString m_csRefName;
\r
26 CString m_csRefHash;
\r
29 CString m_csSubject;
\r
33 TShadowTreeMap m_ShadowTree;
\r
34 CShadowTree* m_pParent;
\r
37 class CBrowseRefsDlg : public CResizableStandAloneDialog
\r
39 DECLARE_DYNAMIC(CBrowseRefsDlg)
\r
42 CBrowseRefsDlg(CWnd* pParent = NULL); // standard constructor
\r
43 virtual ~CBrowseRefsDlg();
\r
47 eCmd_ViewLog = WM_APP,
\r
54 enum { IDD = IDD_DIALOG_BROWSE_REFS };
\r
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
59 DECLARE_MESSAGE_MAP()
\r
61 afx_msg void OnBnClickedOk();
\r
62 virtual BOOL OnInitDialog();
\r
66 CShadowTree& GetTreeNode(CString refName, CShadowTree* pTreePos=NULL);
\r
68 void FillListCtrlForTreeNode(HTREEITEM treeNode);
\r
70 void FillListCtrlForShadowTree(CShadowTree* pTree, CString refNamePrefix, bool isFirstLevel);
\r
72 bool SelectRef(CString refName);
\r
76 CShadowTree m_TreeRoot;
\r
77 CTreeCtrl m_RefTreeCtrl;
\r
78 CListCtrl m_ListRefLeafs;
\r
79 afx_msg void OnTvnSelchangedTreeRef(NMHDR *pNMHDR, LRESULT *pResult);
\r
82 afx_msg void OnContextMenu(CWnd* pWndFrom, CPoint point);
\r
84 void OnContextMenu_ListRefLeafs(CPoint point);
\r
85 void OnContextMenu_RefTreeCtrl(CPoint point);
\r