// wxMotif needs a little extra help...
size_t pos = (size_t)( Text()->GetInsertionPoint() );
wxString s( Text()->GetValue() );
- s = s.Left(pos) + "\n" + s.Mid(pos);
+ s = s.Left(pos) + wxT("\n") + s.Mid(pos);
Text()->SetValue(s);
Text()->SetInsertionPoint( pos );
#else
default:
// additionally accept 'e' as in '1e+6'
if ( (keycode < 128) &&
- (isdigit(keycode) || tolower(keycode) == 'e') )
+ (isdigit(keycode) || tolower(keycode) == wxT('e')) )
return TRUE;
}
}
else
{
wxString cellval( grid->GetTable()->GetValue(row, col) );
- m_startValue = !( !cellval || (cellval == "0") );
+ m_startValue = !( !cellval || (cellval == wxT("0")) );
}
CBox()->SetValue(m_startValue);
CBox()->SetFocus();
else
{
wxString cellval( grid.GetTable()->GetValue(row, col) );
- value = !( !cellval || (cellval == "0") );
+ value = !( !cellval || (cellval == wxT("0")) );
}
if ( value )
wxGridRowLabelWindow *rowLblWin,
wxGridColLabelWindow *colLblWin,
wxWindowID id, const wxPoint &pos, const wxSize &size )
- : wxWindow( parent, id, pos, size, wxWANTS_CHARS, "grid window" )
+ : wxWindow( parent, id, pos, size, wxWANTS_CHARS, wxT("grid window") )
{
m_owner = parent;
m_rowLabelWin = rowLblWin;
m_dragRowOrCol = 0;
m_dragStartPosition = 0;
m_dragLastPosition = 0;
- m_divisionPen = * wxThePenList->FindOrCreatePen("LIGHT GREY", 1, wxSOLID);
+ m_divisionPen = * wxThePenList->FindOrCreatePen(wxT("LIGHT GREY"), 1, wxSOLID);
m_highlightPen = * wxBLACK_PEN;
m_doubleBufferingBitmap = (wxBitmap *) NULL;
m_editingPanel = new wxPanel(this);
- m_textItem = new wxTextCtrl(m_editingPanel, wxGRID_TEXT_CTRL, "",
+ m_textItem = new wxTextCtrl(m_editingPanel, wxGRID_TEXT_CTRL, wxT(""),
wxPoint(m_editControlPosition.x, m_editControlPosition.y),
wxSize(m_editControlPosition.width, -1),
wxTE_PROCESS_ENTER);
// SetSize(pos.x, pos.y, size.x, size.y);
- m_inPlaceTextItem = new wxTextCtrl( (wxPanel*)this, wxGRID_EDIT_IN_PLACE_TEXT_CTRL, "",
+ m_inPlaceTextItem = new wxTextCtrl( (wxPanel*)this, wxGRID_EDIT_IN_PLACE_TEXT_CTRL, wxT(""),
wxPoint( m_currentRect.x-wxIPE_ADJUST, m_currentRect.y-wxIPE_ADJUST ),
wxSize( m_currentRect.width+wxIPE_ADJUST*2, m_currentRect.height+wxIPE_ADJUST*2 ),
wxNO_BORDER | wxTE_PROCESS_ENTER );
if (cell)
{
if ( cell->GetTextValue().IsNull() )
- m_textItem->SetValue("");
+ m_textItem->SetValue(wxT(""));
else
m_textItem->SetValue(cell->GetTextValue());
}
m_inPlaceTextItem->SetForegroundColour(cell->GetTextColour());
if ( cell->GetTextValue().IsNull() ) {
- m_inPlaceTextItem->SetValue( "" );
+ m_inPlaceTextItem->SetValue( wxT("") );
}
else {
m_inPlaceTextItem->SetValue( cell->GetTextValue() );
int i;
for (i = 0; i < m_totalRows; i++)
{
- sprintf(buf, "%d", i+1);
+ sprintf(buf, wxT("%d"), i+1);
SetLabelValue(wxVERTICAL, buf, i);
}
// A...Z,AA...ZZ,AAA...ZZZ, etc.
for (j = 0; j < noTimes; j++)
{
char buf2[20];
- sprintf(buf2, "%c", (char)ch);
+ sprintf(buf2, wxT("%c"), (char)ch);
strcat(buf, buf2);
}
SetLabelValue(wxHORIZONTAL, buf, i);
rect.height -= 4;
// FIXME: what's this string of spaces supposed to represent?
- DrawTextRect(& dc, " ", &rect, wxLEFT);
+ DrawTextRect(& dc, wxT(" "), &rect, wxLEFT);
DrawTextRect(& dc, editValue, &rect, cell->GetAlignment());
dc.DestroyClippingRegion();
wxString& wxGenericGrid::GetCellValue(int row, int col) const
{
- static wxString emptyString("");
+ static wxString emptyString(wxT(""));
wxGridCell *cell = GetCell(row, col);
if (cell)
wxString& wxGenericGrid::GetLabelValue(int orientation, int pos) const
{
- static wxString emptyString = "";
+ static wxString emptyString = wxT("");
wxGridCell *cell = GetLabelCell(orientation, pos);
if (cell)
return cell->GetTextValue();
m_inPlaceTextItem->SetForegroundColour(cell->GetTextColour());
if ( cell->GetTextValue().IsNull() ) {
- m_inPlaceTextItem->SetValue( "" );
+ m_inPlaceTextItem->SetValue( wxT("") );
}
else {
m_inPlaceTextItem->SetValue( cell->GetTextValue() );