// m_isWindow is set to TRUE in wxWindowBase::Init() as well as many other
// member variables - check that it has been called (will catch the case
// when a new ctor is added which doesn't call InitWindow)
- wxASSERT_MSG( m_isWindow, T("Init() must have been called before!") );
+ wxASSERT_MSG( m_isWindow, wxT("Init() must have been called before!") );
// generate a new id if the user doesn't care about it
m_windowId = id == -1 ? NewControlId() : id;
// we weren't a dialog class
wxTopLevelWindows.DeleteObject(this);
- wxASSERT_MSG( GetChildren().GetCount() == 0, T("children not destroyed") );
+ wxASSERT_MSG( GetChildren().GetCount() == 0, wxT("children not destroyed") );
// make sure that there are no dangling pointers left pointing to us
wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
wxWindow *child = node->GetData();
- wxASSERT_MSG( child, T("children list contains empty nodes") );
+ wxASSERT_MSG( child, wxT("children list contains empty nodes") );
delete child;
wxASSERT_MSG( !GetChildren().Find(child),
- T("child didn't remove itself using RemoveChild()") );
+ wxT("child didn't remove itself using RemoveChild()") );
}
return TRUE;
if ( !(direction & wxCENTRE_ON_SCREEN) || wxDynamicCast(this, wxControl) )
{
// theo nly chance to get this is to have a wxControl without parent
- wxCHECK_RET( parent, T("a control must have a parent") );
+ wxCHECK_RET( parent, wxT("a control must have a parent") );
// adjust to the parents client area origin
wxPoint posParent = parent->ClientToScreen(wxPoint(0, 0));
void wxWindowBase::AddChild(wxWindowBase *child)
{
- wxCHECK_RET( child, T("can't add a NULL child") );
+ wxCHECK_RET( child, wxT("can't add a NULL child") );
GetChildren().Append(child);
child->SetParent(this);
void wxWindowBase::RemoveChild(wxWindowBase *child)
{
- wxCHECK_RET( child, T("can't remove a NULL child") );
+ wxCHECK_RET( child, wxT("can't remove a NULL child") );
GetChildren().DeleteObject(child);
child->SetParent((wxWindow *)NULL);
if ( m_caret )
{
wxASSERT_MSG( m_caret->GetWindow() == this,
- T("caret should be created associated to this window") );
+ wxT("caret should be created associated to this window") );
}
}
#endif // wxUSE_CARET
wxChar *windowClass = GetClassInfo()->GetClassName();
wxString winName;
- if ( GetName() == T("") )
- winName = T("unnamed");
+ if ( GetName() == wxT("") )
+ winName = wxT("unnamed");
else
winName = GetName();
- wxLogDebug( T("Constraint(s) not satisfied for window of type %s, name %s:\n"),
+ wxLogDebug( wxT("Constraint(s) not satisfied for window of type %s, name %s:\n"),
(const wxChar *)windowClass,
(const wxChar *)winName);
- if ( !constr->left.GetDone()) wxLogDebug( T(" unsatisfied 'left' constraint.\n") );
- if ( !constr->right.GetDone()) wxLogDebug( T(" unsatisfied 'right' constraint.\n") );
- if ( !constr->width.GetDone()) wxLogDebug( T(" unsatisfied 'width' constraint.\n") );
- if ( !constr->height.GetDone()) wxLogDebug( T(" unsatisfied 'height' constraint.\n") );
- wxLogDebug( T("Please check constraints: try adding AsIs() constraints.\n") );
+ if ( !constr->left.GetDone()) wxLogDebug( wxT(" unsatisfied 'left' constraint.\n") );
+ if ( !constr->right.GetDone()) wxLogDebug( wxT(" unsatisfied 'right' constraint.\n") );
+ if ( !constr->width.GetDone()) wxLogDebug( wxT(" unsatisfied 'width' constraint.\n") );
+ if ( !constr->height.GetDone()) wxLogDebug( wxT(" unsatisfied 'height' constraint.\n") );
+ wxLogDebug( wxT("Please check constraints: try adding AsIs() constraints.\n") );
}
if ( recurse )
void wxWindowBase::DoSetClientObject( wxClientData *data )
{
wxASSERT_MSG( m_clientDataType != ClientData_Void,
- T("can't have both object and void client data") );
+ wxT("can't have both object and void client data") );
if ( m_clientObject )
delete m_clientObject;
wxClientData *wxWindowBase::DoGetClientObject() const
{
wxASSERT_MSG( m_clientDataType == ClientData_Object,
- T("this window doesn't have object client data") );
+ wxT("this window doesn't have object client data") );
return m_clientObject;
}
void wxWindowBase::DoSetClientData( void *data )
{
wxASSERT_MSG( m_clientDataType != ClientData_Object,
- T("can't have both object and void client data") );
+ wxT("can't have both object and void client data") );
m_clientData = data;
m_clientDataType = ClientData_Void;
void *wxWindowBase::DoGetClientData() const
{
wxASSERT_MSG( m_clientDataType == ClientData_Void,
- T("this window doesn't have void client data") );
+ wxT("this window doesn't have void client data") );
return m_clientData;
}