Remove direct reference to SvListEntry outside svtools.
Not all instances are removed, however... Some are used in virtual method signatures, which will take a little more effort to fix. Change-Id: Ib30e6bbef5f27f970e6e19291501f7a09d94e0ab
This commit is contained in:
@@ -1841,10 +1841,10 @@ void OfaTreeOptionsDialog::ResizeTreeLB( void )
|
||||
SvLBoxTreeList* pTreeList = aTreeLB.GetModel();
|
||||
DBG_ASSERT( pTreeList, "-OfaTreeOptionsDialog::ResizeTreeLB(): no model, no cookies!" );
|
||||
|
||||
SvListEntry* pEntry = pTreeList->First();
|
||||
SvLBoxEntry* pEntry = pTreeList->First();
|
||||
while( pEntry )
|
||||
{
|
||||
long n = aTreeLB.GetTextWidth( aTreeLB.GetEntryText( static_cast< SvLBoxEntry* >( pEntry ) ) );
|
||||
long n = aTreeLB.GetTextWidth(aTreeLB.GetEntryText(pEntry));
|
||||
n += ((nDepth == 0) ? nIndent0 : nIndent1);
|
||||
|
||||
if( n > nDelta )
|
||||
|
@@ -217,13 +217,14 @@ void DBTreeListBox::ModelHasEntryInvalidated( SvListEntry* _pEntry )
|
||||
{
|
||||
SvTreeListBox::ModelHasEntryInvalidated( _pEntry );
|
||||
|
||||
if ( m_aSelectedEntries.find( _pEntry ) != m_aSelectedEntries.end() )
|
||||
SvLBoxEntry* pLBEntry = static_cast<SvLBoxEntry*>(_pEntry);
|
||||
if (m_aSelectedEntries.find(pLBEntry) != m_aSelectedEntries.end())
|
||||
{
|
||||
SvLBoxItem* pTextItem = static_cast< SvLBoxEntry* >( _pEntry )->GetFirstItem( SV_ITEM_ID_BOLDLBSTRING );
|
||||
SvLBoxItem* pTextItem = pLBEntry->GetFirstItem(SV_ITEM_ID_BOLDLBSTRING);
|
||||
if ( pTextItem && !static_cast< OBoldListboxString* >( pTextItem )->isEmphasized() )
|
||||
{
|
||||
implStopSelectionTimer();
|
||||
m_aSelectedEntries.erase( _pEntry );
|
||||
m_aSelectedEntries.erase(pLBEntry);
|
||||
// ehm - why?
|
||||
}
|
||||
}
|
||||
@@ -232,10 +233,11 @@ void DBTreeListBox::ModelHasEntryInvalidated( SvListEntry* _pEntry )
|
||||
void DBTreeListBox::ModelHasRemoved( SvListEntry* _pEntry )
|
||||
{
|
||||
SvTreeListBox::ModelHasRemoved(_pEntry);
|
||||
if ( m_aSelectedEntries.find( _pEntry ) != m_aSelectedEntries.end() )
|
||||
SvLBoxEntry* pLBEntry = static_cast<SvLBoxEntry*>(_pEntry);
|
||||
if (m_aSelectedEntries.find(pLBEntry) != m_aSelectedEntries.end())
|
||||
{
|
||||
implStopSelectionTimer();
|
||||
m_aSelectedEntries.erase( _pEntry );
|
||||
m_aSelectedEntries.erase(pLBEntry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -56,7 +56,7 @@ namespace dbaui
|
||||
OScrollHelper m_aScrollHelper;
|
||||
Timer m_aTimer; // is needed for table updates
|
||||
Point m_aMousePos;
|
||||
::std::set< SvListEntry* > m_aSelectedEntries;
|
||||
std::set<SvLBoxEntry*> m_aSelectedEntries;
|
||||
SvLBoxEntry* m_pDragedEntry;
|
||||
IControlActionListener* m_pActionListener;
|
||||
IContextMenuProvider*
|
||||
|
Reference in New Issue
Block a user