]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/layout.cpp
Crude hack to enable PageUp/DownKeys when controlbar is enabled.
[wxWidgets.git] / src / common / layout.cpp
index 9a021d569b0fe4c112cab71b8457acc4062d7d95..e11c18f3f23d8598056476da6857ba5b11859135 100644 (file)
@@ -16,6 +16,7 @@
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
+
 #ifdef __GNUG__
     #pragma implementation "layout.h"
 #endif
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-    #pragma hdrstop
+  #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+  #include "wx/defs.h"
 #endif
 
-#include "wx/defs.h"
+#if wxUSE_CONSTRAINTS
 
 #ifndef WX_PRECOMP
-    #include "wx/window.h"
-    #include "wx/utils.h"
-    #include "wx/dialog.h"
-    #include "wx/msgdlg.h"
-    #include "wx/intl.h"
+  #include "wx/window.h"
+  #include "wx/utils.h"
+  #include "wx/dialog.h"
+  #include "wx/msgdlg.h"
+  #include "wx/intl.h"
 #endif
 
 #include "wx/layout.h"
@@ -1342,13 +1347,13 @@ void wxSizer::DoSetSize(int x, int y, int w, int h, int WXUNUSED(flags))
     }
 }
 
-void wxSizer::GetSize(int *w, int *h) const
+void wxSizer::DoGetSize(int *w, int *h) const
 {
     *w = sizerWidth;
     *h = sizerHeight;
 }
 
-void wxSizer::GetPosition(int *x, int *y) const
+void wxSizer::DoGetPosition(int *x, int *y) const
 {
     *x = sizerX;
     *y = sizerY;
@@ -1762,3 +1767,4 @@ wxSpacingSizer::~wxSpacingSizer()
 {
 }
 
+#endif // wxUSE_CONSTRAINTS