///////////////////////////////////////////////////////////////////////////
-// Name: generic/grid.cpp
+// Name: src/generic/grid.cpp
// Purpose: wxGrid and related classes
// Author: Michael Bedward (based on code by Julian Smart, Robin Dunn)
// Modified by: Robin Dunn, Vadim Zeitlin
// get the widths of all cells previous to this one
int colXPos = 0;
- for ( int i = 0; i < col; i++ )
+ for ( int i = 0; i < col; i++ )
{
colXPos += m_grid->GetColSize(i);
}
// get the widths of all cells previous to this one
int colXPos = 0;
- for ( int i = 0; i < col; i++ )
+ for ( int i = 0; i < col; i++ )
{
colXPos += m_grid->GetColSize(i);
}
}
break;
- case WXK_PRIOR:
+ case WXK_PAGEUP:
MovePageUp();
break;
- case WXK_NEXT:
+ case WXK_PAGEDOWN:
MovePageDown();
break;
wxString eol = wxTextFile::GetEOL( wxTextFileType_Unix );
wxString tVal = wxTextFile::Translate( value, wxTextFileType_Unix );
- while ( startPos < (int)tVal.Length() )
+ while ( startPos < (int)tVal.length() )
{
pos = tVal.Mid(startPos).Find( eol );
if ( pos < 0 )
startPos += pos + 1;
}
- if ( startPos < (int)value.Length() )
+ if ( startPos < (int)value.length() )
{
lines.Add( value.Mid( startPos ) );
}
if (! m_editable)
return;
- if ( m_currentCellCoords == wxGridNoCellCoords )
- SetCurrentCell( 0, 0 );
-
if ( enable != m_cellEditCtrlEnabled )
{
if ( enable )
editor->Show( true, attr );
int colXPos = 0;
- for (int i = 0; i < m_currentCellCoords.GetCol(); i++)
+ for (int i = 0; i < m_currentCellCoords.GetCol(); i++)
{
colXPos += GetColSize(i);
}
}
// special handling for wide cells - show always left part of the cell!
- // Otherwise, e.g. when stepping from row to row, it would jump between
+ // Otherwise, e.g. when stepping from row to row, it would jump between
// left and right part of the cell on every step!
// if ( left < 0 )
if ( left < 0 || (right-left) >= cw )
int index = m_typeRegistry->FindOrCloneDataType(typeName);
if ( index == wxNOT_FOUND )
{
- wxString errStr;
+ wxString errStr;
errStr.Printf(wxT("Unknown data type name [%s]"), typeName.c_str());
wxFAIL_MSG(errStr.c_str());
}
#endif // wxUSE_GRID
-