git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6449
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxGridCellCoords& coords = m_cellSelection[n];
if ( row == coords.GetRow() && col == coords.GetCol() )
{
wxGridCellCoords& coords = m_cellSelection[n];
if ( row == coords.GetRow() && col == coords.GetCol() )
if ( BlockContainsCell(coords1.GetRow(), coords1.GetCol(),
coords2.GetRow(), coords2.GetCol(),
row, col ) )
if ( BlockContainsCell(coords1.GetRow(), coords1.GetCol(),
coords2.GetRow(), coords2.GetCol(),
row, col ) )
}
// Now check whether the given cell is
}
// Now check whether the given cell is
for ( size_t n = 0; n < count; n++ )
{
if ( row == m_rowSelection[n] )
for ( size_t n = 0; n < count; n++ )
{
if ( row == m_rowSelection[n] )
for ( size_t n = 0; n < count; n++ )
{
if ( col == m_colSelection[n] )
for ( size_t n = 0; n < count; n++ )
{
if ( col == m_colSelection[n] )
}
// Change the selection mode
}
// Change the selection mode
// Simplify list of selected blocks (if possible)
count = m_blockSelectionTopLeft.GetCount();
// Simplify list of selected blocks (if possible)
count = m_blockSelectionTopLeft.GetCount();
for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
else if ( coords1.GetRow() == row + 1)
{
coords1.SetRow(row);
else if ( coords1.GetRow() == row + 1)
{
coords1.SetRow(row);
}
else if ( coords2.GetRow() == row - 1)
{
coords2.SetRow(row);
}
else if ( coords2.GetRow() == row - 1)
{
coords2.SetRow(row);
// Simplify list of selected blocks (if possible)
count = m_blockSelectionTopLeft.GetCount();
// Simplify list of selected blocks (if possible)
count = m_blockSelectionTopLeft.GetCount();
for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
for ( n = 0; n < count; n++ )
{
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
else if ( coords1.GetCol() == col + 1)
{
coords1.SetCol(col);
else if ( coords1.GetCol() == col + 1)
{
coords1.SetCol(col);
}
else if ( coords2.GetCol() == col - 1)
{
coords2.SetCol(col);
}
else if ( coords2.GetCol() == col - 1)
{
coords2.SetCol(col);