X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..80a24267cbc17d85e278e1f10cdfdaea12199639:/src/stubs/statusbr.cpp diff --git a/src/stubs/statusbr.cpp b/src/stubs/statusbr.cpp index 59fd64d927..34bdee3ea5 100644 --- a/src/stubs/statusbr.cpp +++ b/src/stubs/statusbr.cpp @@ -19,13 +19,11 @@ #include "wx/stubs/statusbr.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXX, wxStatusBar); BEGIN_EVENT_TABLE(wxStatusBarXX, wxStatusBar) EVT_SIZE(wxStatusBarXX::OnSize) END_EVENT_TABLE() -#endif //USE_SHARED_LIBRARY // ============================================================================ @@ -59,21 +57,6 @@ bool wxStatusBarXX::Create(wxWindow *parent, wxWindowID id, long style) return FALSE; } -void wxStatusBarXX::CopyFieldsWidth(const int widths[]) -{ - if (widths && !m_statusWidths) - m_statusWidths = new int[m_nFields]; - - if ( widths != NULL ) { - for ( int i = 0; i < m_nFields; i++ ) - m_statusWidths[i] = widths[i]; - } - else { - delete [] m_statusWidths; - m_statusWidths = NULL; - } -} - void wxStatusBarXX::SetFieldsCount(int nFields, const int widths[]) { wxASSERT( (nFields > 0) && (nFields < 255) ); @@ -92,6 +75,21 @@ void wxStatusBarXX::SetStatusWidths(int n, const int widths[]) SetFieldsWidth(); } +void wxStatusBarXX::CopyFieldsWidth(const int widths[]) +{ + if (widths && !m_statusWidths) + m_statusWidths = new int[m_nFields]; + + if ( widths != NULL ) { + for ( int i = 0; i < m_nFields; i++ ) + m_statusWidths[i] = widths[i]; + } + else { + delete [] m_statusWidths; + m_statusWidths = NULL; + } +} + void wxStatusBarXX::SetFieldsWidth() { int *pWidths = new int[m_nFields];