]> git.saurik.com Git - wxWidgets.git/commitdiff
make DoSetSizeHints protected, remove parameter defaults
authorPaul Cornett <paulcor@bullseye.com>
Thu, 22 Nov 2007 06:12:56 +0000 (06:12 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 22 Nov 2007 06:12:56 +0000 (06:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/aui/tabmdi.h
include/wx/generic/mdig.h
include/wx/gtk/mdi.h
include/wx/gtk/minifram.h
include/wx/gtk/toplevel.h
include/wx/mac/carbon/slider.h
include/wx/motif/mdi.h
include/wx/motif/toplevel.h
include/wx/window.h
include/wx/x11/window.h

index b677a0fdf20c638b008dc6a701d0d6d2bae66bc2..1084829cf0eb7fd3c0da4e50e552edb3207c6216 100644 (file)
@@ -169,13 +169,6 @@ public:
     virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
 #endif
 
-    // no size hints
-    virtual void DoSetSizeHints(int WXUNUSED(minW),
-                                int WXUNUSED(minH),
-                                int WXUNUSED(maxW) = wxDefaultCoord,
-                                int WXUNUSED(maxH) = wxDefaultCoord,
-                                int WXUNUSED(incW) = wxDefaultCoord,
-                                int WXUNUSED(incH) = wxDefaultCoord) {}
 #if wxUSE_TOOLBAR
     // no toolbar bars
     virtual wxToolBar* CreateToolBar(long WXUNUSED(style),
@@ -209,6 +202,10 @@ protected:
     virtual void DoSetSize(int x, int y, int width, int height, int size_flags);
     virtual void DoMoveWindow(int x, int y, int width, int height);
 
+    // no size hints
+    virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
+                                int WXUNUSED(maxW), int WXUNUSED(maxH),
+                                int WXUNUSED(incW), int WXUNUSED(incH)) {}
 public:
     // This function needs to be called when a size change is confirmed,
     // we needed this function to prevent anybody from the outside
index d43fc4130c5fcfb6c44eee3b782e4dfb5186e6e0..11f75518b6c813094b9ee09f2bf82491e1d41121 100644 (file)
@@ -152,14 +152,6 @@ public:
     virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
 #endif
 
-    // no size hints
-    virtual void DoSetSizeHints( int WXUNUSED(minW),
-                               int WXUNUSED(minH),
-                               int WXUNUSED(maxW) = wxDefaultCoord,
-                               int WXUNUSED(maxH) = wxDefaultCoord,
-                               int WXUNUSED(incW) = wxDefaultCoord,
-                               int WXUNUSED(incH) = wxDefaultCoord) {}
-
 #if wxUSE_TOOLBAR
     // no toolbar bars
     virtual wxToolBar* CreateToolBar( long WXUNUSED(style),
@@ -207,6 +199,11 @@ protected:
 
     virtual void DoMoveWindow(int x, int y, int width, int height);
 
+    // no size hints
+    virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
+                                int WXUNUSED(maxW), int WXUNUSED(maxH),
+                                int WXUNUSED(incW), int WXUNUSED(incH)) {}
+
     // This function needs to be called when a size change is confirmed,
     // we needed this function to prevent any body from the outside
     // changing the panel... it messes the UI layout when we would allow it.
index fb3521fa05d39c4fa69e1710ddfdb24213b23995..53a3cdecebb9a69067e6b8164d8cad90338749ba 100644 (file)
@@ -118,14 +118,6 @@ public:
     virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
 #endif
 
-    // no size hints
-    virtual void DoSetSizeHints( int WXUNUSED(minW),
-                                 int WXUNUSED(minH),
-                                 int WXUNUSED(maxW) = wxDefaultCoord,
-                                 int WXUNUSED(maxH) = wxDefaultCoord,
-                                 int WXUNUSED(incW) = wxDefaultCoord,
-                                 int WXUNUSED(incH) = wxDefaultCoord) {}
-
 #if wxUSE_TOOLBAR
     // no toolbar
     virtual wxToolBar* CreateToolBar( long WXUNUSED(style),
@@ -168,6 +160,11 @@ protected:
                            int width, int height,
                            int sizeFlags = wxSIZE_AUTO);
 
+    // no size hints
+    virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
+                                int WXUNUSED(maxW), int WXUNUSED(maxH),
+                                int WXUNUSED(incW), int WXUNUSED(incH)) {}
+
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
index 15ecd86552b57cde82131e9df4832237c2b06d62..7cda4e321640bd4c6f73bff563095443fe6b0b74 100644 (file)
@@ -44,10 +44,10 @@ public:
 
     virtual void SetTitle( const wxString &title );
 
+protected:
     virtual void DoSetSizeHints( int minW, int minH,
                                  int maxW, int maxH,
                                  int incW, int incH );
-protected:
     virtual void DoGetClientSize(int* width, int* height) const;
 
  // implementation
index f6f1b7c5407f92c0feca50181f7cb06f69136e26..2224a9a2c5395f87c7aeadbe902bc862c3301493 100644 (file)
@@ -106,12 +106,6 @@ public:
     // wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
     int m_urgency_hint;
 
-    // give hints to the Window Manager for how the size
-    // of the TLW can be changed by dragging
-    virtual void DoSetSizeHints( int minW, int minH,
-                                 int maxW = wxDefaultCoord, int maxH = wxDefaultCoord,
-                                 int incW = wxDefaultCoord, int incH = wxDefaultCoord );
-
     // return the size of the window without WM decorations
     void GTKDoGetSize(int *width, int *height) const;
 
@@ -119,6 +113,11 @@ public:
     virtual bool IsDecorCacheable() const;
 
 protected:
+    // give hints to the Window Manager for how the size
+    // of the TLW can be changed by dragging
+    virtual void DoSetSizeHints( int minW, int minH,
+                                 int maxW, int maxH,
+                                 int incW, int incH);
     // common part of all ctors
     void Init();
 
index 5e176c61d382654df73871a0fdccf47c0edfff68..4cd1a1d78adbed4b21040e00540de15df22b7738 100644 (file)
@@ -74,11 +74,6 @@ public:
     int GetThumbLength() const ;
     void SetTick(int tickPos) ;
 
-    // set min/max size of the slider
-    virtual void DoSetSizeHints( int minW, int minH,
-                                 int maxW = -1, int maxH = -1,
-                                 int incW = -1, int incH = -1 );
-
     void Command(wxCommandEvent& event);
     virtual wxInt32 MacControlHit(WXEVENTHANDLERREF handler, WXEVENTREF event);
     void MacHandleControlClick(WXWidget control, wxInt16 controlpart, bool mouseStillDown);
@@ -88,6 +83,11 @@ protected:
     virtual void   DoSetSize(int x, int y, int w, int h, int sizeFlags);
     virtual void   DoMoveWindow(int x, int y, int w, int h);
 
+    // set min/max size of the slider
+    virtual void DoSetSizeHints( int minW, int minH,
+                                 int maxW, int maxH,
+                                 int incW, int incH);
+
     // Common processing to invert slider values based on wxSL_INVERSE
     virtual int ValueInvertOrNot(int value) const;
 
index 7266a0100d3b308ecc9d0f769ed661f688513c37..fb2621f5a397064a2b1115ac3c9d0ceb9c6427c9 100644 (file)
@@ -152,12 +152,6 @@ public:
     void ReleaseMouse();
     void Raise();
     void Lower(void);
-    void DoSetSizeHints(int minW = wxDefaultCoord,
-                        int minH = wxDefaultCoord,
-                        int maxW = wxDefaultCoord,
-                        int maxH = wxDefaultCoord,
-                        int incW = wxDefaultCoord,
-                        int incH = wxDefaultCoord);
 
     // MDI operations
     virtual void Maximize();
@@ -199,6 +193,9 @@ protected:
     void DoGetClientSize(int *width, int *height) const;
     void DoGetSize(int *width, int *height) const;
     void DoGetPosition(int *x, int *y) const ;
+    void DoSetSizeHints(int minW, int minH,
+                        int maxW, int maxH,
+                        int incW, int incH);
 };
 
 /* The client window is a child of the parent MDI frame, and itself
index 80e3f1d204fb4838004a7befc98e457230572cc9..4144b83a3a48952156a0dcd1fccc889f031027f8 100644 (file)
@@ -52,10 +52,6 @@ public:
     virtual wxString GetTitle() const { return m_title; }
     virtual void SetTitle( const wxString& title ) { m_title = title; }
 
-    virtual void DoSetSizeHints( int minW, int minH,
-                               int maxW = -1, int maxH = -1,
-                               int incW = -1, int incH = -1 );
-
     virtual bool SetShape( const wxRegion& region );
 
     WXWidget GetShellWidget() const;
@@ -66,6 +62,9 @@ protected:
     void PreDestroy();
 
     virtual void DoGetPosition(int* x, int* y) const;
+    virtual void DoSetSizeHints(int minW, int minH,
+                                int maxW, int maxH,
+                                int incW, int incH);
 
 private:
     // really create the Motif widget for TLW
index 39cea13986142c8852536891d40b0e7f79470729..b4008d2ec9183c4a98112722aa5132adb2bb330b 100644 (file)
@@ -417,10 +417,6 @@ public:
                        const wxSize& incSize=wxDefaultSize)
     { DoSetSizeHints(minSize.x, minSize.y, maxSize.x, maxSize.y, incSize.x, incSize.y); }
 
-    virtual void DoSetSizeHints( int minW, int minH,
-                                 int maxW, int maxH,
-                                 int incW, int incH );
-
         // Methods for setting virtual size hints
         // FIXME: What are virtual size hints?
 
@@ -1495,6 +1491,10 @@ protected:
     // same as DoSetSize() for the client size
     virtual void DoSetClientSize(int width, int height) = 0;
 
+    virtual void DoSetSizeHints( int minW, int minH,
+                                 int maxW, int maxH,
+                                 int incW, int incH );
+
     // move the window to the specified location and resize it: this is called
     // from both DoSetSize() and DoSetClientSize() and would usually just
     // reposition this window except for composite controls which will want to
index 8480c4760f9f6dc3585a759616fd792108eb78dc..6c04d16eac9c859f4483102634c4f1f05cfbfc5c 100644 (file)
@@ -81,10 +81,6 @@ public:
     virtual void ScrollWindow( int dx, int dy,
         const wxRect* rect = (wxRect *) NULL );
 
-    virtual void DoSetSizeHints(int minW, int minH,
-        int maxW = wxDefaultCoord, int maxH = wxDefaultCoord,
-        int incW = wxDefaultCoord, int incH = wxDefaultCoord);
-
 #if wxUSE_DRAG_AND_DROP
     virtual void SetDropTarget( wxDropTarget *dropTarget );
 #endif // wxUSE_DRAG_AND_DROP
@@ -179,6 +175,9 @@ protected:
         int sizeFlags = wxSIZE_AUTO);
     virtual void DoSetClientSize(int width, int height);
     virtual void DoMoveWindow(int x, int y, int width, int height);
+    virtual void DoSetSizeHints(int minW, int minH,
+        int maxW, int maxH,
+        int incW, int incH);
     virtual void DoCaptureMouse();
     virtual void DoReleaseMouse();