Include wx/scrolbar.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-05-30 13:43:18 +00:00
parent a245fd31a6
commit 851dee09b5
16 changed files with 32 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cocoa/scrolbar.mm // Name: src/cocoa/scrolbar.mm
// Purpose: wxScrollBar // Purpose: wxScrollBar
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
@@ -10,11 +10,13 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#if wxUSE_SCROLLBAR #if wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/app.h" #include "wx/app.h"
#include "wx/scrolbar.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#import <AppKit/NSScroller.h> #import <AppKit/NSScroller.h>

View File

@@ -28,14 +28,11 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/event.h" #include "wx/event.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/scrolbar.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/containr.h" #include "wx/containr.h"
#ifdef __WXMAC__
#include "wx/scrolbar.h"
#endif
#ifdef __WXMSW__ #ifdef __WXMSW__
#include "wx/radiobut.h" #include "wx/radiobut.h"
#endif #endif
@@ -646,4 +643,3 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
return false; return false;
} }

View File

@@ -41,11 +41,8 @@
#include "wx/statusbr.h" #include "wx/statusbr.h"
#include "wx/toolbar.h" #include "wx/toolbar.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#endif //WX_PRECOMP
#if defined(__WXMAC__) && wxUSE_SCROLLBAR
#include "wx/scrolbar.h" #include "wx/scrolbar.h"
#endif #endif //WX_PRECOMP
#if wxUSE_CONSTRAINTS #if wxUSE_CONSTRAINTS
#include "wx/layout.h" #include "wx/layout.h"

View File

@@ -20,13 +20,13 @@
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/button.h" #include "wx/button.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/scrolbar.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/notebook.h" #include "wx/notebook.h"
#include "wx/tabctrl.h" #include "wx/tabctrl.h"
#include "wx/radiobox.h" #include "wx/radiobox.h"
#include "wx/spinbutt.h" #include "wx/spinbutt.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/stattext.h" #include "wx/stattext.h"

View File

@@ -11,13 +11,14 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/settings.h" #include "wx/settings.h"
#endif #endif
#include "wx/scrolbar.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)

View File

@@ -26,10 +26,10 @@
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#endif #endif
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#include "wx/tooltip.h" #include "wx/tooltip.h"
#include "wx/statusbr.h" #include "wx/statusbr.h"
@@ -1762,7 +1762,7 @@ bool wxWindowMac::DoPopupMenu(wxMenu *menu, int x, int y)
menu->SetInvokingWindow(this); menu->SetInvokingWindow(this);
menu->UpdateUI(); menu->UpdateUI();
if ( x == -1 && y == -1 ) if ( x == wxDefaultCoord && y == wxDefaultCoord )
{ {
wxPoint mouse = wxGetMousePosition(); wxPoint mouse = wxGetMousePosition();
x = mouse.x; x = mouse.x;

View File

@@ -24,13 +24,13 @@
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/button.h" #include "wx/button.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/scrolbar.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/notebook.h" #include "wx/notebook.h"
#include "wx/tabctrl.h" #include "wx/tabctrl.h"
#include "wx/radiobox.h" #include "wx/radiobox.h"
#include "wx/spinbutt.h" #include "wx/spinbutt.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/stattext.h" #include "wx/stattext.h"

View File

@@ -15,12 +15,13 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/scrolbar.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)

View File

@@ -26,11 +26,11 @@
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#endif #endif
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h" #include "wx/statbox.h"
#include "wx/notebook.h" #include "wx/notebook.h"
#include "wx/tabctrl.h" #include "wx/tabctrl.h"

View File

@@ -18,12 +18,13 @@
#if wxUSE_SCROLLBAR #if wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/settings.h" #include "wx/settings.h"
#endif #endif
#include "wx/scrolbar.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#if wxUSE_EXTENDED_RTTI #if wxUSE_EXTENDED_RTTI

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: msw/slider.cpp // Name: src/msw/slider.cpp
// Purpose: wxSlider, using the Win95 (and later) trackbar control // Purpose: wxSlider, using the Win95 (and later) trackbar control
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -102,7 +102,7 @@ wxBEGIN_FLAGS( wxSliderStyle )
wxEND_FLAGS( wxSliderStyle ) wxEND_FLAGS( wxSliderStyle )
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/scrolbar.h") IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/slider.h")
wxBEGIN_PROPERTIES_TABLE(wxSlider) wxBEGIN_PROPERTIES_TABLE(wxSlider)
wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_CHANGED , wxScrollEvent ) wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_CHANGED , wxScrollEvent )

View File

@@ -12,11 +12,12 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#endif #endif
#include "wx/scrolbar.h"
#include "wx/os2/private.h" #include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)

View File

@@ -18,12 +18,13 @@
#if wxUSE_SCROLLBAR #if wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/settings.h" #include "wx/settings.h"
#endif #endif
#include "wx/scrolbar.h"
#include "wx/palmos/private.h" #include "wx/palmos/private.h"
#if wxUSE_EXTENDED_RTTI #if wxUSE_EXTENDED_RTTI

View File

@@ -73,7 +73,7 @@ wxBEGIN_FLAGS( wxSliderStyle )
wxEND_FLAGS( wxSliderStyle ) wxEND_FLAGS( wxSliderStyle )
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/scrolbar.h") IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider, wxControl,"wx/slider.h")
wxBEGIN_PROPERTIES_TABLE(wxSlider) wxBEGIN_PROPERTIES_TABLE(wxSlider)
wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxScrollEvent ) wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxScrollEvent )

View File

@@ -41,12 +41,12 @@
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#endif #endif
#include "wx/layout.h" #include "wx/layout.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/scrolwin.h" #include "wx/scrolwin.h"
#include "wx/scrolbar.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/menuitem.h" #include "wx/menuitem.h"
#include "wx/fontutil.h" #include "wx/fontutil.h"
@@ -1111,7 +1111,7 @@ void wxWindowX11::GetTextExtent(const wxString& string,
int direction, ascent, descent2; int direction, ascent, descent2;
XCharStruct overall; XCharStruct overall;
int slen = string.Len(); int slen = string.length();
XTextExtents((XFontStruct*) pFontStruct, (char*) string.c_str(), slen, XTextExtents((XFontStruct*) pFontStruct, (char*) string.c_str(), slen,
&direction, &ascent, &descent2, &overall); &direction, &ascent, &descent2, &overall);

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: xh_scrol.cpp // Name: src/xrc/xh_scrol.cpp
// Purpose: XRC resource for wxScrollBar // Purpose: XRC resource for wxScrollBar
// Author: Brian Gavin // Author: Brian Gavin
// Created: 2000/09/09 // Created: 2000/09/09
@@ -18,7 +18,10 @@
#if wxUSE_XRC && wxUSE_SCROLLBAR #if wxUSE_XRC && wxUSE_SCROLLBAR
#include "wx/xrc/xh_scrol.h" #include "wx/xrc/xh_scrol.h"
#include "wx/scrolbar.h"
#ifndef WX_PRECOMP
#include "wx/scrolbar.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxScrollBarXmlHandler, wxXmlResourceHandler) IMPLEMENT_DYNAMIC_CLASS(wxScrollBarXmlHandler, wxXmlResourceHandler)