Include wx/scrolwin.h and wx/dirdlg.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -22,10 +22,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#if wxUSE_DIRDLG
 | 
					#if wxUSE_DIRDLG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "wx/dirdlg.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
    #include "wx/msgdlg.h"
 | 
					    #include "wx/msgdlg.h"
 | 
				
			||||||
    #include "wx/filedlg.h"
 | 
					    #include "wx/filedlg.h"
 | 
				
			||||||
    #include "wx/dirdlg.h"
 | 
					 | 
				
			||||||
    #include "wx/app.h"
 | 
					    #include "wx/app.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,12 +24,12 @@
 | 
				
			|||||||
    #pragma hdrstop
 | 
					    #pragma hdrstop
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#if wxUSE_DIRDLG
 | 
				
			||||||
#endif //WX_PRECOMP
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wx/dirdlg.h"
 | 
					#include "wx/dirdlg.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if wxUSE_DIRDLG
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
 | 
					#endif //WX_PRECOMP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ============================================================================
 | 
					// ============================================================================
 | 
				
			||||||
// implementation
 | 
					// implementation
 | 
				
			||||||
@@ -53,4 +53,3 @@ wxString wxDirSelector(const wxString& message,
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // wxUSE_DIRDLG
 | 
					#endif // wxUSE_DIRDLG
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,10 +37,10 @@
 | 
				
			|||||||
    #include "wx/button.h"
 | 
					    #include "wx/button.h"
 | 
				
			||||||
    #include "wx/menu.h"
 | 
					    #include "wx/menu.h"
 | 
				
			||||||
    #include "wx/settings.h"
 | 
					    #include "wx/settings.h"
 | 
				
			||||||
 | 
					    #include "wx/scrolwin.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wx/layout.h"
 | 
					#include "wx/layout.h"
 | 
				
			||||||
#include "wx/scrolwin.h"
 | 
					 | 
				
			||||||
#include "wx/module.h"
 | 
					#include "wx/module.h"
 | 
				
			||||||
#include "wx/menuitem.h"
 | 
					#include "wx/menuitem.h"
 | 
				
			||||||
#include "wx/evtloop.h"
 | 
					#include "wx/evtloop.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,10 +29,11 @@
 | 
				
			|||||||
#if wxUSE_OLE && !defined(__GNUWIN32_OLD__) && (!defined(__WXWINCE__) || \
 | 
					#if wxUSE_OLE && !defined(__GNUWIN32_OLD__) && (!defined(__WXWINCE__) || \
 | 
				
			||||||
    (defined(__HANDHELDPC__) && (_WIN32_WCE >= 500)))
 | 
					    (defined(__HANDHELDPC__) && (_WIN32_WCE >= 500)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "wx/dirdlg.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
    #include "wx/utils.h"
 | 
					    #include "wx/utils.h"
 | 
				
			||||||
    #include "wx/dialog.h"
 | 
					    #include "wx/dialog.h"
 | 
				
			||||||
    #include "wx/dirdlg.h"
 | 
					 | 
				
			||||||
    #include "wx/log.h"
 | 
					    #include "wx/log.h"
 | 
				
			||||||
    #include "wx/app.h"     // for GetComCtl32Version()
 | 
					    #include "wx/app.h"     // for GetComCtl32Version()
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@@ -248,4 +249,3 @@ BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
 | 
				
			|||||||
#endif // compiler/platform on which the code here compiles
 | 
					#endif // compiler/platform on which the code here compiles
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif // wxUSE_DIRDLG
 | 
					#endif // wxUSE_DIRDLG
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,10 +17,10 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
#include <stdio.h>
 | 
					    #include <stdio.h>
 | 
				
			||||||
#include "wx/utils.h"
 | 
					    #include "wx/utils.h"
 | 
				
			||||||
#include "wx/brush.h"
 | 
					    #include "wx/brush.h"
 | 
				
			||||||
#include "wx/scrolwin.h"
 | 
					    #include "wx/scrolwin.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if wxUSE_SLIDER
 | 
					#if wxUSE_SLIDER
 | 
				
			||||||
@@ -232,7 +232,7 @@ bool wxSlider::Create(
 | 
				
			|||||||
    m_windowStyle  = lStyle;
 | 
					    m_windowStyle  = lStyle;
 | 
				
			||||||
    m_nTickFreq    = 0;
 | 
					    m_nTickFreq    = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (vId == -1)
 | 
					    if (vId == wxID_ANY)
 | 
				
			||||||
        m_windowId = (int)NewControlId();
 | 
					        m_windowId = (int)NewControlId();
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        m_windowId = vId;
 | 
					        m_windowId = vId;
 | 
				
			||||||
@@ -464,27 +464,25 @@ bool wxSlider::Create(
 | 
				
			|||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
} // end of wxSlider::Create
 | 
					} // end of wxSlider::Create
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wxSlider::DoSetSize(
 | 
					void wxSlider::DoSetSize( int nX,
 | 
				
			||||||
  int                               nX
 | 
					                          int nY,
 | 
				
			||||||
, int                               nY
 | 
					                          int nWidth,
 | 
				
			||||||
, int                               nWidth
 | 
					                          int nHeight,
 | 
				
			||||||
, int                               nHeight
 | 
					                          int nSizeFlags )
 | 
				
			||||||
, int                               nSizeFlags
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int                             nX1      = nX;
 | 
					    int    nX1      = nX;
 | 
				
			||||||
    int                             nY1      = nY;
 | 
					    int    nY1      = nY;
 | 
				
			||||||
    int                             nWidth1  = nWidth;
 | 
					    int    nWidth1  = nWidth;
 | 
				
			||||||
    int                             nHeight1 = nHeight;
 | 
					    int    nHeight1 = nHeight;
 | 
				
			||||||
    int                             nXOffset = nX;
 | 
					    int    nXOffset = nX;
 | 
				
			||||||
    int                             nYOffset = nY;
 | 
					    int    nYOffset = nY;
 | 
				
			||||||
    int                             nCx;     // slider,min,max sizes
 | 
					    int    nCx;     // slider,min,max sizes
 | 
				
			||||||
    int                             nCy;
 | 
					    int    nCy;
 | 
				
			||||||
    int                             nCyf;
 | 
					    int    nCyf;
 | 
				
			||||||
    int                             nCurrentX;
 | 
					    int    nCurrentX;
 | 
				
			||||||
    int                             nCurrentY;
 | 
					    int    nCurrentY;
 | 
				
			||||||
    wxChar                          zBuf[300];
 | 
					    wxChar zBuf[300];
 | 
				
			||||||
    wxFont                          vFont = this->GetFont();
 | 
					    wxFont vFont = this->GetFont();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    // Adjust for OS/2's reverse coordinate system
 | 
					    // Adjust for OS/2's reverse coordinate system
 | 
				
			||||||
@@ -499,26 +497,24 @@ void wxSlider::DoSetSize(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (pParent)
 | 
					    if (pParent)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        int                         nOS2ParentHeight = GetOS2ParentHeight(pParent);
 | 
					        int nOS2ParentHeight = GetOS2ParentHeight(pParent);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        nYOffset = nOS2ParentHeight - (nYOffset + nOS2Height);
 | 
					        nYOffset = nOS2ParentHeight - (nYOffset + nOS2Height);
 | 
				
			||||||
        if (nY != -1)
 | 
					        if (nY != wxDefaultCoord)
 | 
				
			||||||
            nY1 = nOS2ParentHeight - (nY1 + nOS2Height);
 | 
					            nY1 = nOS2ParentHeight - (nY1 + nOS2Height);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        RECTL                       vRect;
 | 
					        RECTL vRect;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ::WinQueryWindowRect(HWND_DESKTOP, &vRect);
 | 
					        ::WinQueryWindowRect(HWND_DESKTOP, &vRect);
 | 
				
			||||||
        nYOffset = vRect.yTop - (nYOffset + nOS2Height);
 | 
					        nYOffset = vRect.yTop - (nYOffset + nOS2Height);
 | 
				
			||||||
        if (nY != -1)
 | 
					        if (nY != wxDefaultCoord)
 | 
				
			||||||
            nY1 = vRect.yTop - (nY1 + nOS2Height);
 | 
					            nY1 = vRect.yTop - (nY1 + nOS2Height);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    m_nSizeFlags = nSizeFlags;
 | 
					    m_nSizeFlags = nSizeFlags;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    GetPosition( &nCurrentX
 | 
					    GetPosition( &nCurrentX, &nCurrentY );
 | 
				
			||||||
                ,&nCurrentY
 | 
					 | 
				
			||||||
               );
 | 
					 | 
				
			||||||
    if (nX == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))
 | 
					    if (nX == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))
 | 
				
			||||||
        nX1 = nCurrentX;
 | 
					        nX1 = nCurrentX;
 | 
				
			||||||
    if (nY == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))
 | 
					    if (nY == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,10 +28,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
 | 
					#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "wx/dirdlg.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
    #include "wx/utils.h"
 | 
					    #include "wx/utils.h"
 | 
				
			||||||
    #include "wx/dialog.h"
 | 
					    #include "wx/dialog.h"
 | 
				
			||||||
    #include "wx/dirdlg.h"
 | 
					 | 
				
			||||||
    #include "wx/log.h"
 | 
					    #include "wx/log.h"
 | 
				
			||||||
    #include "wx/app.h"     // for GetComCtl32Version()
 | 
					    #include "wx/app.h"     // for GetComCtl32Version()
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,10 +43,10 @@
 | 
				
			|||||||
    #include "wx/msgdlg.h"
 | 
					    #include "wx/msgdlg.h"
 | 
				
			||||||
    #include "wx/scrolbar.h"
 | 
					    #include "wx/scrolbar.h"
 | 
				
			||||||
    #include "wx/listbox.h"
 | 
					    #include "wx/listbox.h"
 | 
				
			||||||
 | 
					    #include "wx/scrolwin.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wx/layout.h"
 | 
					#include "wx/layout.h"
 | 
				
			||||||
#include "wx/scrolwin.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"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,10 +21,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifndef WX_PRECOMP
 | 
					#ifndef WX_PRECOMP
 | 
				
			||||||
    #include "wx/frame.h"
 | 
					    #include "wx/frame.h"
 | 
				
			||||||
 | 
					    #include "wx/scrolwin.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wx/scrolwin.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
 | 
					IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
 | 
					wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user