git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39487
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
13 files changed:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: cocoa/statbox.mm
+// Name: src/cocoa/statbox.mm
// Purpose: wxStaticBox
// Author: David Elliott
// Modified by:
// Created: 2003/02/15
// Purpose: wxStaticBox
// Author: David Elliott
// Modified by:
// Created: 2003/02/15
// Copyright: (c) 2003 David Elliott
// Copyright: (c) 2003 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
+#include "wx/statbox.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/statbox.h"
#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
if(nextBorder > *borderOther)
*borderOther = nextBorder;
}
if(nextBorder > *borderOther)
*borderOther = nextBorder;
}
#include "wx/math.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/math.h"
#include "wx/utils.h"
#include "wx/settings.h"
+ #include "wx/statbox.h"
#endif // WX_PRECOMP
#include "wx/sizer.h"
#endif // WX_PRECOMP
#include "wx/sizer.h"
#include "wx/listimpl.cpp"
#if WXWIN_COMPATIBILITY_2_4
#include "wx/listimpl.cpp"
#if WXWIN_COMPATIBILITY_2_4
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: generic/statline.cpp
+// Name: src/generic/statline.cpp
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
// ============================================================================
// implementation
// ============================================================================
// implementation
#include "wx/dialog.h"
#include "wx/scrolbar.h"
#include "wx/stattext.h"
#include "wx/dialog.h"
#include "wx/scrolbar.h"
#include "wx/stattext.h"
+ #include "wx/statbox.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#include "wx/sizer.h"
#include "wx/mac/uma.h"
#include "wx/sizer.h"
#include "wx/mac/uma.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: generic/statline.cpp
-// Purpose: a generic wxStaticLine class
+// Name: src/mac/carbon/statline.cpp
+// Purpose: wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Version: $Id$
// Author: Vadim Zeitlin
// Created: 28.06.99
// Version: $Id$
#endif
#include "wx/statline.h"
#endif
#include "wx/statline.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: generic/statline.cpp
+// Name: src/mac/carbon/statlmac.cpp
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
long style,
const wxString &name)
{
long style,
const wxString &name)
{
- m_macIsUserPane = FALSE ;
-
+ m_macIsUserPane = false ;
+
if ( !wxStaticLineBase::Create(parent, id, pos, size,
style, wxDefaultValidator, name) )
return false;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
m_peer = new wxMacControl(this) ;
if ( !wxStaticLineBase::Create(parent, id, pos, size,
style, wxDefaultValidator, name) )
return false;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
m_peer = new wxMacControl(this) ;
- verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;
+ verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;
MacPostControlCreate(pos,size) ;
MacPostControlCreate(pos,size) ;
}
#endif //wxUSE_STATLINE
}
#endif //wxUSE_STATLINE
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
+ #include "wx/statbox.h"
#endif
#include "wx/layout.h"
#endif
#include "wx/layout.h"
#include "wx/tooltip.h"
#include "wx/statusbr.h"
#include "wx/menuitem.h"
#include "wx/tooltip.h"
#include "wx/statusbr.h"
#include "wx/menuitem.h"
#include "wx/dialog.h"
#include "wx/scrolbar.h"
#include "wx/stattext.h"
#include "wx/dialog.h"
#include "wx/scrolbar.h"
#include "wx/stattext.h"
+ #include "wx/statbox.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#include "wx/sizer.h"
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
#include "wx/sizer.h"
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: generic/statline.cpp
-// Purpose: a generic wxStaticLine class
+// Name: src/mac/classic/statline.cpp
+// Purpose: wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Version: $Id$
// Author: Vadim Zeitlin
// Created: 28.06.99
// Version: $Id$
#endif
#include "wx/statline.h"
#endif
#include "wx/statline.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
// ============================================================================
// implementation
// ============================================================================
// implementation
const wxString &name)
{
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
const wxString &name)
{
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
// ok, this is ugly but it's better than nothing: use a thin static box to
// emulate static line
// ok, this is ugly but it's better than nothing: use a thin static box to
// emulate static line
// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
// m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: generic/statline.cpp
+// Name: src/mac/classic/statlmac.cpp
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
#endif
#include "wx/statline.h"
#endif
#include "wx/statline.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
Rect bounds ;
Str255 title ;
Rect bounds ;
Str255 title ;
MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ;
- m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
+ m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1,
kControlSeparatorLineProc , (long) this ) ;
kControlSeparatorLineProc , (long) this ) ;
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
+ #include "wx/statbox.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/tooltip.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/tooltip.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/panel.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/panel.h"
+ #include "wx/statbox.h"
#endif
#include "wx/sizer.h"
#include "wx/gbsizer.h"
#endif
#include "wx/sizer.h"
#include "wx/gbsizer.h"
#include "wx/notebook.h"
#include "wx/tokenzr.h"
#include "wx/notebook.h"
#include "wx/tokenzr.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/xrc/xh_stbox.cpp
// Purpose: XRC resource for wxStaticBox
// Author: Brian Gavin
// Created: 2000/09/09
// Purpose: XRC resource for wxStaticBox
// Author: Brian Gavin
// Created: 2000/09/09
+#if wxUSE_XRC && wxUSE_STATBOX
#include "wx/xrc/xh_stbox.h"
#include "wx/xrc/xh_stbox.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/statbox.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler)
wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler)
wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
-: wxXmlResourceHandler()
+ :wxXmlResourceHandler()
return IsOfClass(node, wxT("wxStaticBox"));
}
return IsOfClass(node, wxT("wxStaticBox"));
}
+#endif // wxUSE_XRC && wxUSE_STATBOX