git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15847
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void DeletePendingObjects();
#ifdef __WXDEBUG__
void DeletePendingObjects();
#ifdef __WXDEBUG__
- virtual void OnAssert(const wxChar *file, int line, const wxChar *msg);
+ virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
bool IsInAssert() const { return m_isInAssert; }
#endif // __WXDEBUG__
bool IsInAssert() const { return m_isInAssert; }
#endif // __WXDEBUG__
// This returns the current visual: either that used by wxRootWindow
// or the XVisualInfo* for SGI.
GdkVisual *GetGdkVisual();
// This returns the current visual: either that used by wxRootWindow
// or the XVisualInfo* for SGI.
GdkVisual *GetGdkVisual();
private:
// true if we're inside an assert modal dialog
#ifdef __WXDEBUG__
private:
// true if we're inside an assert modal dialog
#ifdef __WXDEBUG__
#endif // __WXDEBUG__
bool CallInternalIdle( wxWindow* win );
#endif // __WXDEBUG__
bool CallInternalIdle( wxWindow* win );
DECLARE_DYNAMIC_CLASS(wxApp)
DECLARE_EVENT_TABLE()
};
DECLARE_DYNAMIC_CLASS(wxApp)
DECLARE_EVENT_TABLE()
};
void DeletePendingObjects();
#ifdef __WXDEBUG__
void DeletePendingObjects();
#ifdef __WXDEBUG__
- virtual void OnAssert(const wxChar *file, int line, const wxChar *msg);
+ virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
bool IsInAssert() const { return m_isInAssert; }
#endif // __WXDEBUG__
bool IsInAssert() const { return m_isInAssert; }
#endif // __WXDEBUG__
// This returns the current visual: either that used by wxRootWindow
// or the XVisualInfo* for SGI.
GdkVisual *GetGdkVisual();
// This returns the current visual: either that used by wxRootWindow
// or the XVisualInfo* for SGI.
GdkVisual *GetGdkVisual();
private:
// true if we're inside an assert modal dialog
#ifdef __WXDEBUG__
private:
// true if we're inside an assert modal dialog
#ifdef __WXDEBUG__
#endif // __WXDEBUG__
bool CallInternalIdle( wxWindow* win );
#endif // __WXDEBUG__
bool CallInternalIdle( wxWindow* win );
DECLARE_DYNAMIC_CLASS(wxApp)
DECLARE_EVENT_TABLE()
};
DECLARE_DYNAMIC_CLASS(wxApp)
DECLARE_EVENT_TABLE()
};
// It's necessary to call ProcessIdle() to update the frames sizes which
// might have been changed (it also will update other things set from
// It's necessary to call ProcessIdle() to update the frames sizes which
// might have been changed (it also will update other things set from
- // OnUpdateUI() which is a nice (and desired) side effect). But we
+ // OnUpdateUI() which is a nice (and desired) side effect). But we
// call ProcessIdle() only once since this is not meant for longish
// background jobs (controlled by wxIdleEvent::RequestMore() and the
// return value of Processidle().
// call ProcessIdle() only once since this is not meant for longish
// background jobs (controlled by wxIdleEvent::RequestMore() and the
// return value of Processidle().
#endif
m_colorCube = (unsigned char*) NULL;
#endif
m_colorCube = (unsigned char*) NULL;
// this is NULL for a "regular" wxApp, but is set (and freed) by a wxGLApp
m_glVisualInfo = (void *) NULL;
}
// this is NULL for a "regular" wxApp, but is set (and freed) by a wxGLApp
m_glVisualInfo = (void *) NULL;
}
// seems gtk_widget_set_default_visual no longer exists?
GdkVisual* vis = gtk_widget_get_default_visual();
#else
// seems gtk_widget_set_default_visual no longer exists?
GdkVisual* vis = gtk_widget_get_default_visual();
#else
- GdkVisual* vis = gdkx_visual_get(
+ GdkVisual* vis = gdkx_visual_get(
((XVisualInfo *) m_glVisualInfo) ->visualid );
gtk_widget_set_default_visual( vis );
#endif
((XVisualInfo *) m_glVisualInfo) ->visualid );
gtk_widget_set_default_visual( vis );
#endif
// On some machines, the default visual is just 256 colours, so
// we make sure we get the best. This can sometimes be wasteful.
// On some machines, the default visual is just 256 colours, so
// we make sure we get the best. This can sometimes be wasteful.
GdkVisual *wxApp::GetGdkVisual()
{
GdkVisual *visual = NULL;
GdkVisual *wxApp::GetGdkVisual()
{
GdkVisual *visual = NULL;
if (m_glVisualInfo)
visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid );
else
visual = gdk_window_get_visual( wxGetRootWindow()->window );
if (m_glVisualInfo)
visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid );
else
visual = gdk_window_get_visual( wxGetRootWindow()->window );
wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
node = node->GetNext();
}
node = node->GetNext();
}
{
wxWindow* win = node->GetData();
CallInternalIdle( win );
{
wxWindow* win = node->GetData();
CallInternalIdle( win );
node = node->GetNext();
}
return needMore;
node = node->GetNext();
}
return needMore;
wxTheApp->OnRun();
wxWindow *topWindow = wxTheApp->GetTopWindow();
wxTheApp->OnRun();
wxWindow *topWindow = wxTheApp->GetTopWindow();
// Delete all pending windows if any
wxTheApp->DeletePendingObjects();
// Delete all pending windows if any
wxTheApp->DeletePendingObjects();
if (topWindow)
wxTheApp->SetTopWindow( (wxWindow*) NULL );
if (topWindow)
wxTheApp->SetTopWindow( (wxWindow*) NULL );
-void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg)
+void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
- wxAppBase::OnAssert(file, line, msg);
+ wxAppBase::OnAssert(file, line, cond, msg);
// It's necessary to call ProcessIdle() to update the frames sizes which
// might have been changed (it also will update other things set from
// It's necessary to call ProcessIdle() to update the frames sizes which
// might have been changed (it also will update other things set from
- // OnUpdateUI() which is a nice (and desired) side effect). But we
+ // OnUpdateUI() which is a nice (and desired) side effect). But we
// call ProcessIdle() only once since this is not meant for longish
// background jobs (controlled by wxIdleEvent::RequestMore() and the
// return value of Processidle().
// call ProcessIdle() only once since this is not meant for longish
// background jobs (controlled by wxIdleEvent::RequestMore() and the
// return value of Processidle().
#endif
m_colorCube = (unsigned char*) NULL;
#endif
m_colorCube = (unsigned char*) NULL;
// this is NULL for a "regular" wxApp, but is set (and freed) by a wxGLApp
m_glVisualInfo = (void *) NULL;
}
// this is NULL for a "regular" wxApp, but is set (and freed) by a wxGLApp
m_glVisualInfo = (void *) NULL;
}
// seems gtk_widget_set_default_visual no longer exists?
GdkVisual* vis = gtk_widget_get_default_visual();
#else
// seems gtk_widget_set_default_visual no longer exists?
GdkVisual* vis = gtk_widget_get_default_visual();
#else
- GdkVisual* vis = gdkx_visual_get(
+ GdkVisual* vis = gdkx_visual_get(
((XVisualInfo *) m_glVisualInfo) ->visualid );
gtk_widget_set_default_visual( vis );
#endif
((XVisualInfo *) m_glVisualInfo) ->visualid );
gtk_widget_set_default_visual( vis );
#endif
// On some machines, the default visual is just 256 colours, so
// we make sure we get the best. This can sometimes be wasteful.
// On some machines, the default visual is just 256 colours, so
// we make sure we get the best. This can sometimes be wasteful.
GdkVisual *wxApp::GetGdkVisual()
{
GdkVisual *visual = NULL;
GdkVisual *wxApp::GetGdkVisual()
{
GdkVisual *visual = NULL;
if (m_glVisualInfo)
visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid );
else
visual = gdk_window_get_visual( wxGetRootWindow()->window );
if (m_glVisualInfo)
visual = gdkx_visual_get( ((XVisualInfo *) m_glVisualInfo)->visualid );
else
visual = gdk_window_get_visual( wxGetRootWindow()->window );
wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
node = node->GetNext();
}
node = node->GetNext();
}
{
wxWindow* win = node->GetData();
CallInternalIdle( win );
{
wxWindow* win = node->GetData();
CallInternalIdle( win );
node = node->GetNext();
}
return needMore;
node = node->GetNext();
}
return needMore;
wxTheApp->OnRun();
wxWindow *topWindow = wxTheApp->GetTopWindow();
wxTheApp->OnRun();
wxWindow *topWindow = wxTheApp->GetTopWindow();
// Delete all pending windows if any
wxTheApp->DeletePendingObjects();
// Delete all pending windows if any
wxTheApp->DeletePendingObjects();
if (topWindow)
wxTheApp->SetTopWindow( (wxWindow*) NULL );
if (topWindow)
wxTheApp->SetTopWindow( (wxWindow*) NULL );
-void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg)
+void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
- wxAppBase::OnAssert(file, line, msg);
+ wxAppBase::OnAssert(file, line, cond, msg);