Compilation fixes (true->TRUE, false->FALSE)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
581e8516ea
commit
0912bee1aa
@ -69,7 +69,7 @@ bool wxGridSelection::IsInSelection ( int row, int col )
|
|||||||
{
|
{
|
||||||
wxGridCellCoords& coords = m_cellSelection[n];
|
wxGridCellCoords& coords = m_cellSelection[n];
|
||||||
if ( row == coords.GetRow() && col == coords.GetCol() )
|
if ( row == coords.GetRow() && col == coords.GetCol() )
|
||||||
return true;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ bool wxGridSelection::IsInSelection ( int row, int col )
|
|||||||
if ( BlockContainsCell(coords1.GetRow(), coords1.GetCol(),
|
if ( BlockContainsCell(coords1.GetRow(), coords1.GetCol(),
|
||||||
coords2.GetRow(), coords2.GetCol(),
|
coords2.GetRow(), coords2.GetCol(),
|
||||||
row, col ) )
|
row, col ) )
|
||||||
return true;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now check whether the given cell is
|
// Now check whether the given cell is
|
||||||
@ -95,7 +95,7 @@ bool wxGridSelection::IsInSelection ( int row, int col )
|
|||||||
for ( size_t n = 0; n < count; n++ )
|
for ( size_t n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
if ( row == m_rowSelection[n] )
|
if ( row == m_rowSelection[n] )
|
||||||
return true;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,10 +108,10 @@ bool wxGridSelection::IsInSelection ( int row, int col )
|
|||||||
for ( size_t n = 0; n < count; n++ )
|
for ( size_t n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
if ( col == m_colSelection[n] )
|
if ( col == m_colSelection[n] )
|
||||||
return true;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the selection mode
|
// Change the selection mode
|
||||||
@ -208,7 +208,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected )
|
|||||||
|
|
||||||
// Simplify list of selected blocks (if possible)
|
// Simplify list of selected blocks (if possible)
|
||||||
count = m_blockSelectionTopLeft.GetCount();
|
count = m_blockSelectionTopLeft.GetCount();
|
||||||
bool done = false;
|
bool done = FALSE;
|
||||||
for ( n = 0; n < count; n++ )
|
for ( n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
|
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
|
||||||
@ -231,12 +231,12 @@ void wxGridSelection::SelectRow( int row, bool addToSelected )
|
|||||||
else if ( coords1.GetRow() == row + 1)
|
else if ( coords1.GetRow() == row + 1)
|
||||||
{
|
{
|
||||||
coords1.SetRow(row);
|
coords1.SetRow(row);
|
||||||
done = true;
|
done = TRUE;
|
||||||
}
|
}
|
||||||
else if ( coords2.GetRow() == row - 1)
|
else if ( coords2.GetRow() == row - 1)
|
||||||
{
|
{
|
||||||
coords2.SetRow(row);
|
coords2.SetRow(row);
|
||||||
done = true;
|
done = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -296,7 +296,7 @@ void wxGridSelection::SelectCol( int col, bool addToSelected )
|
|||||||
|
|
||||||
// Simplify list of selected blocks (if possible)
|
// Simplify list of selected blocks (if possible)
|
||||||
count = m_blockSelectionTopLeft.GetCount();
|
count = m_blockSelectionTopLeft.GetCount();
|
||||||
bool done = false;
|
bool done = FALSE;
|
||||||
for ( n = 0; n < count; n++ )
|
for ( n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
|
wxGridCellCoords& coords1 = m_blockSelectionTopLeft[n];
|
||||||
@ -319,12 +319,12 @@ void wxGridSelection::SelectCol( int col, bool addToSelected )
|
|||||||
else if ( coords1.GetCol() == col + 1)
|
else if ( coords1.GetCol() == col + 1)
|
||||||
{
|
{
|
||||||
coords1.SetCol(col);
|
coords1.SetCol(col);
|
||||||
done = true;
|
done = TRUE;
|
||||||
}
|
}
|
||||||
else if ( coords2.GetCol() == col - 1)
|
else if ( coords2.GetCol() == col - 1)
|
||||||
{
|
{
|
||||||
coords2.SetCol(col);
|
coords2.SetCol(col);
|
||||||
done = true;
|
done = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user