many changes; major ones:

1. start of !wxUSE_GUI support
2. _T() macro renamed to T()
3. wxConvertWX2MB and MB2WX macro added


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-04 20:15:38 +00:00
parent 9841339c74
commit e90c1d2a19
298 changed files with 5153 additions and 4672 deletions

View File

@@ -328,7 +328,7 @@ wxPropertyValue *wxPropertyValue::NewCopy(void) const
return new wxPropertyValue(m_value.stringPtr);
case wxPropertyValueNull:
wxFAIL_MSG( _T("Should never get here!\n" ) );
wxFAIL_MSG( T("Should never get here!\n" ) );
break;
}
return NULL;
@@ -399,7 +399,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
return;
}
case wxPropertyValueNull:
wxFAIL_MSG( _T("Should never get here!\n" ) );
wxFAIL_MSG( T("Should never get here!\n" ) );
break;
}
}
@@ -461,20 +461,20 @@ void wxPropertyValue::WritePropertyClause(wxString& stream) // Write this expre
if (node)
{
node->WritePropertyType(stream);
stream.Append( _T("(") );
stream.Append( T("(") );
node = node->m_next;
bool first = TRUE;
while (node)
{
if (!first)
stream.Append( _T(" ") );
stream.Append( T(" ") );
node->WritePropertyType(stream);
node = node->m_next;
if (node)
stream.Append( _T(",\n" ) );
stream.Append( T(",\n" ) );
first = FALSE;
}
stream.Append( _T(").\n\n") );
stream.Append( T(").\n\n") );
}
}
@@ -485,43 +485,43 @@ void wxPropertyValue::WritePropertyType(wxString& stream) // Write as any oth
{
case wxPropertyValueInteger:
{
tmp.Printf( _T("%ld"), m_value.integer );
tmp.Printf( T("%ld"), m_value.integer );
stream.Append( tmp );
break;
}
case wxPropertyValueIntegerPtr:
{
tmp.Printf( _T("%ld"), *m_value.integerPtr );
tmp.Printf( T("%ld"), *m_value.integerPtr );
stream.Append( tmp );
break;
}
case wxPropertyValuebool:
{
if (m_value.integer)
stream.Append( _T("True") );
stream.Append( T("True") );
else
stream.Append( _T("False") );
stream.Append( T("False") );
break;
}
case wxPropertyValueboolPtr:
{
if (*m_value.integerPtr)
stream.Append( _T("True") );
stream.Append( T("True") );
else
stream.Append( _T("False") );
stream.Append( T("False") );
break;
}
case wxPropertyValueReal:
{
double d = m_value.real;
tmp.Printf( _T("%.6g"), d );
tmp.Printf( T("%.6g"), d );
stream.Append( tmp );
break;
}
case wxPropertyValueRealPtr:
{
double d = *m_value.realPtr;
tmp.Printf( _T("%.6g"), d );
tmp.Printf( T("%.6g"), d );
stream.Append( tmp );
break;
}
@@ -532,7 +532,7 @@ void wxPropertyValue::WritePropertyType(wxString& stream) // Write as any oth
}
case wxPropertyValueStringPtr:
{
wxFAIL_MSG( _T("wxPropertyValue::WritePropertyType( wxPropertyValueStringPtr ) not implemented") );
wxFAIL_MSG( T("wxPropertyValue::WritePropertyType( wxPropertyValueStringPtr ) not implemented") );
/*
int i;
int len = strlen(*(m_value.stringPtr));
@@ -547,20 +547,20 @@ void wxPropertyValue::WritePropertyType(wxString& stream) // Write as any oth
case wxPropertyValueList:
{
if (!m_value.first)
stream.Append( _T("[]") );
stream.Append( T("[]") );
else
{
wxPropertyValue *expr = m_value.first;
stream.Append( _T("[") );
stream.Append( T("[") );
while (expr)
{
expr->WritePropertyType(stream);
expr = expr->m_next;
if (expr)
stream.Append( _T(", ") );
stream.Append( T(", ") );
}
stream.Append( _T("]") );
stream.Append( T("]") );
}
break;
}
@@ -1097,13 +1097,13 @@ bool wxPropertyValidator::StringToLong (wxChar *s, long *number) {
wxChar *wxPropertyValidator::FloatToString (float number) {
static wxChar buf[20];
wxSprintf (buf, _T("%.6g"), number);
wxSprintf (buf, T("%.6g"), number);
return buf;
}
wxChar *wxPropertyValidator::DoubleToString (double number) {
static wxChar buf[20];
wxSprintf (buf, _T("%.6g"), number);
wxSprintf (buf, T("%.6g"), number);
return buf;
}