wxFrame::Set/GetClientSize() uses toolbar area again,
wxWindow no longer reroutes mouse events to invisble windows, Compile fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -615,7 +615,6 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
/* tool bar */
|
/* tool bar */
|
||||||
/*
|
|
||||||
if (m_frameToolBar)
|
if (m_frameToolBar)
|
||||||
{
|
{
|
||||||
if (!m_toolBarDetached)
|
if (!m_toolBarDetached)
|
||||||
@@ -627,7 +626,6 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const
|
|||||||
else
|
else
|
||||||
(*height) -= wxPLACE_HOLDER;
|
(*height) -= wxPLACE_HOLDER;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* mini edge */
|
/* mini edge */
|
||||||
@@ -661,7 +659,6 @@ void wxFrame::DoSetClientSize( int width, int height )
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
/* tool bar */
|
/* tool bar */
|
||||||
/*
|
|
||||||
if (m_frameToolBar)
|
if (m_frameToolBar)
|
||||||
{
|
{
|
||||||
if (!m_toolBarDetached)
|
if (!m_toolBarDetached)
|
||||||
@@ -673,7 +670,6 @@ void wxFrame::DoSetClientSize( int width, int height )
|
|||||||
else
|
else
|
||||||
height += wxPLACE_HOLDER;
|
height += wxPLACE_HOLDER;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DoSetSize( -1, -1, width + m_miniEdge*2, height + m_miniEdge*2 + m_miniTitle, 0 );
|
DoSetSize( -1, -1, width + m_miniEdge*2, height + m_miniEdge*2 + m_miniTitle, 0 );
|
||||||
|
@@ -277,7 +277,11 @@ bool wxRadioBox::Show( bool show )
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid radiobox") );
|
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid radiobox") );
|
||||||
|
|
||||||
wxWindow::Show( show );
|
if (!wxControl::Show(show))
|
||||||
|
{
|
||||||
|
// nothing to do
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if ((m_windowStyle & wxNO_BORDER) != 0)
|
if ((m_windowStyle & wxNO_BORDER) != 0)
|
||||||
gtk_widget_hide( m_widget );
|
gtk_widget_hide( m_widget );
|
||||||
|
@@ -1122,6 +1122,10 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
@@ -1161,7 +1165,6 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1247,6 +1250,10 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
// wxStaticBox is transparent in the box itself
|
// wxStaticBox is transparent in the box itself
|
||||||
@@ -1285,7 +1292,6 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1364,6 +1370,10 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
// wxStaticBox is transparent in the box itself
|
// wxStaticBox is transparent in the box itself
|
||||||
@@ -1402,7 +1412,6 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -615,7 +615,6 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
/* tool bar */
|
/* tool bar */
|
||||||
/*
|
|
||||||
if (m_frameToolBar)
|
if (m_frameToolBar)
|
||||||
{
|
{
|
||||||
if (!m_toolBarDetached)
|
if (!m_toolBarDetached)
|
||||||
@@ -627,7 +626,6 @@ void wxFrame::DoGetClientSize( int *width, int *height ) const
|
|||||||
else
|
else
|
||||||
(*height) -= wxPLACE_HOLDER;
|
(*height) -= wxPLACE_HOLDER;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* mini edge */
|
/* mini edge */
|
||||||
@@ -661,7 +659,6 @@ void wxFrame::DoSetClientSize( int width, int height )
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
/* tool bar */
|
/* tool bar */
|
||||||
/*
|
|
||||||
if (m_frameToolBar)
|
if (m_frameToolBar)
|
||||||
{
|
{
|
||||||
if (!m_toolBarDetached)
|
if (!m_toolBarDetached)
|
||||||
@@ -673,7 +670,6 @@ void wxFrame::DoSetClientSize( int width, int height )
|
|||||||
else
|
else
|
||||||
height += wxPLACE_HOLDER;
|
height += wxPLACE_HOLDER;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DoSetSize( -1, -1, width + m_miniEdge*2, height + m_miniEdge*2 + m_miniTitle, 0 );
|
DoSetSize( -1, -1, width + m_miniEdge*2, height + m_miniEdge*2 + m_miniTitle, 0 );
|
||||||
|
@@ -277,7 +277,11 @@ bool wxRadioBox::Show( bool show )
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid radiobox") );
|
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid radiobox") );
|
||||||
|
|
||||||
wxWindow::Show( show );
|
if (!wxControl::Show(show))
|
||||||
|
{
|
||||||
|
// nothing to do
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if ((m_windowStyle & wxNO_BORDER) != 0)
|
if ((m_windowStyle & wxNO_BORDER) != 0)
|
||||||
gtk_widget_hide( m_widget );
|
gtk_widget_hide( m_widget );
|
||||||
|
@@ -1122,6 +1122,10 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
@@ -1161,7 +1165,6 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1247,6 +1250,10 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
// wxStaticBox is transparent in the box itself
|
// wxStaticBox is transparent in the box itself
|
||||||
@@ -1285,7 +1292,6 @@ static gint gtk_window_button_release_callback( GtkWidget *widget, GdkEventButto
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1364,6 +1370,10 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
{
|
{
|
||||||
wxWindow *child = (wxWindow*)node->Data();
|
wxWindow *child = (wxWindow*)node->Data();
|
||||||
|
|
||||||
|
node = node->Next();
|
||||||
|
if (!child->IsShown())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (child->m_isStaticBox)
|
if (child->m_isStaticBox)
|
||||||
{
|
{
|
||||||
// wxStaticBox is transparent in the box itself
|
// wxStaticBox is transparent in the box itself
|
||||||
@@ -1402,7 +1412,6 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node = node->Next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -208,12 +208,14 @@ extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__VISAGECPP__)
|
||||||
typedef uLong (ZEXPORT _Optlink *check_func) OF((uLong check, const Bytef *buf,
|
typedef uLong (ZEXPORT _Optlink *check_func) OF((uLong check, const Bytef *buf,
|
||||||
uInt len));
|
uInt len));
|
||||||
#if defined(__VISAGECPP__)
|
|
||||||
voidpf _Optlink zcalloc OF((voidpf opaque, unsigned items, unsigned size));
|
voidpf _Optlink zcalloc OF((voidpf opaque, unsigned items, unsigned size));
|
||||||
void _Optlink zcfree OF((voidpf opaque, voidpf ptr));
|
void _Optlink zcfree OF((voidpf opaque, voidpf ptr));
|
||||||
#else
|
#else
|
||||||
|
typedef uLong (ZEXPORT *check_func) OF((uLong check, const Bytef *buf,
|
||||||
|
uInt len));
|
||||||
voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size));
|
voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size));
|
||||||
void zcfree OF((voidpf opaque, voidpf ptr));
|
void zcfree OF((voidpf opaque, voidpf ptr));
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user