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
52 enum { IDD = IDD_DIALOG_BROWSE_REFS };
\r
55 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
57 DECLARE_MESSAGE_MAP()
\r
59 afx_msg void OnBnClickedOk();
\r
60 virtual BOOL OnInitDialog();
\r
64 CShadowTree& GetTreeNode(CString refName, CShadowTree* pTreePos=NULL);
\r
66 void FillListCtrlForTreeNode(HTREEITEM treeNode);
\r
68 void FillListCtrlForShadowTree(CShadowTree* pTree, CString refNamePrefix, bool isFirstLevel);
\r
70 bool SelectRef(CString refName);
\r
74 CShadowTree m_TreeRoot;
\r
75 CTreeCtrl m_RefTreeCtrl;
\r
76 CListCtrl m_ListRefLeafs;
\r
77 afx_msg void OnTvnSelchangedTreeRef(NMHDR *pNMHDR, LRESULT *pResult);
\r
80 afx_msg void OnContextMenu(CWnd* pWndFrom, CPoint point);
\r
82 void OnContextMenu_ListRefLeafs(CPoint point);
\r
83 void OnContextMenu_RefTreeCtrl(CPoint point);
\r