From: boca4711 <boc...@us...> - 2005-10-16 12:19:15
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22130 Modified Files: FuncComboBox.cpp Log Message: - Modified selection, combo box doesn't show functions only Index: FuncComboBox.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/FuncComboBox.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FuncComboBox.cpp 18 Sep 2004 18:42:28 -0000 1.7 --- FuncComboBox.cpp 16 Oct 2005 12:19:07 -0000 1.8 *************** *** 155,159 **** void CFuncComboBox::OnAddedTag(AETagListForFile* pList, AETag* pTag) { ! AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); if (pFunction == NULL) return; --- 155,160 ---- void CFuncComboBox::OnAddedTag(AETagListForFile* pList, AETag* pTag) { ! // AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); ! AETag* pFunction = pTag; if (pFunction == NULL) return; *************** *** 165,169 **** void CFuncComboBox::OnRemovedTag(AETagListForFile* pList, AETag* pTag) { ! AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); if (pFunction == NULL) return; --- 166,171 ---- void CFuncComboBox::OnRemovedTag(AETagListForFile* pList, AETag* pTag) { ! // AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); ! AETag* pFunction = pTag; if (pFunction == NULL) return; *************** *** 184,188 **** { int nIndex = FindItem(pTag); ! AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); if (pFunction == NULL) { --- 186,191 ---- { int nIndex = FindItem(pTag); ! // AEFunctionTag* pFunction = dynamic_cast<AEFunctionTag*>(pTag); ! AETag* pFunction = pTag; if (pFunction == NULL) { *************** *** 258,262 **** void CFuncComboBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { ! AEFunctionTag* pTag = (AEFunctionTag*)lpDrawItemStruct->itemData; COLORREF clr; CRect rect(lpDrawItemStruct->rcItem); --- 261,266 ---- void CFuncComboBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { ! // AEFunctionTag* pTag = (AEFunctionTag*)lpDrawItemStruct->itemData; ! AETag* pTag = (AEFunctionTag*)lpDrawItemStruct->itemData; COLORREF clr; CRect rect(lpDrawItemStruct->rcItem); *************** *** 285,293 **** } // Find the tag! ! const AEFunctionTag* pFunction, *pPrevFunction = NULL; const AEProjectFile* pFile = m_pTagList->GetFile(); for (TAGLIST::const_iterator i = m_pTagList->GetTagListByLocation().begin(); i != m_pTagList->GetTagListByLocation().end(); i++) { ! pFunction = dynamic_cast<const AEFunctionTag*>(*i); if (pFunction == NULL) continue; --- 289,299 ---- } // Find the tag! ! // const AEFunctionTag* pFunction, *pPrevFunction = NULL; ! const AETag* pFunction, *pPrevFunction = NULL; const AEProjectFile* pFile = m_pTagList->GetFile(); for (TAGLIST::const_iterator i = m_pTagList->GetTagListByLocation().begin(); i != m_pTagList->GetTagListByLocation().end(); i++) { ! // pFunction = dynamic_cast<const AEFunctionTag*>(*i); ! pFunction = *i; if (pFunction == NULL) continue; *************** *** 340,344 **** CFuncComboBox* pWndCombo = new CFuncComboBox; ! if (!pWndCombo->Create (m_dwStyle|CBS_DROPDOWN|CBS_DISABLENOSCROLL|CBS_HASSTRINGS|CBS_OWNERDRAWFIXED, rect, pWndParent, m_nID)) { delete pWndCombo; --- 346,350 ---- CFuncComboBox* pWndCombo = new CFuncComboBox; ! if (!pWndCombo->Create (m_dwStyle|CBS_DROPDOWN|CBS_DISABLENOSCROLL|CBS_HASSTRINGS|CBS_OWNERDRAWFIXED|CBS_SORT, rect, pWndParent, m_nID)) { delete pWndCombo; |