]> git.saurik.com Git - wxWidgets.git/commitdiff
gave default value of wxID_ANY to id parameter of wxStaticLine ctor as nobody uses...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Mar 2005 02:13:30 +0000 (02:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Mar 2005 02:13:30 +0000 (02:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/statline.tex
include/wx/cocoa/statline.h
include/wx/generic/statline.h
include/wx/gtk/statline.h
include/wx/gtk1/statline.h
include/wx/mac/carbon/statline.h
include/wx/mac/classic/statline.h
include/wx/msw/statline.h
include/wx/os2/statline.h
include/wx/palmos/statline.h
include/wx/univ/statline.h

index 3fe2b22681f40cadbe278428dfd8be6face43a05..b43505a9dc76d14287510f57d42268e924c4a87e 100644 (file)
@@ -34,7 +34,7 @@ groups of controls. The line may be only vertical or horizontal.
 
 Default constructor.
 
-\func{}{wxStaticLine}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{}{wxStaticLine}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
 \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
 \param{long}{ style = wxLI\_HORIZONTAL}, \param{const wxString\& }{name = ``staticLine"}}
 
@@ -61,7 +61,7 @@ whether the line if horizontal or vertical) is ignored.}
 
 \membersection{wxStaticLine::Create}\label{wxstaticlinecreate}
 
-\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
 \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
 \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticLine"}}
 
index 1b9e206455e1366ebc47d6c6ba7bb83158d587d3..9c69a65ea8a6ed1e113a5f0a63fb826c91c693f5 100644 (file)
@@ -27,7 +27,7 @@ class WXDLLEXPORT wxStaticLine: public wxStaticLineBase// , protected wxCocoaNSB
 // ------------------------------------------------------------------------
 public:
     wxStaticLine() { }
-    wxStaticLine(wxWindow *parent, wxWindowID winid,
+    wxStaticLine(wxWindow *parent, wxWindowID winid = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize,
             long style = 0, const wxString& name = wxStaticTextNameStr)
@@ -35,7 +35,7 @@ public:
         Create(parent, winid, pos, size, style, name);
     }
 
-    bool Create(wxWindow *parent, wxWindowID winid,
+    bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition,
             const wxSize& size = wxDefaultSize,
             long style = 0, const wxString& name = wxStaticTextNameStr);
index 3ba19ec310abf28f9b08451aa5fbc7913b448008..a2993d8f84188657a0267ebc7fa30f329c217825 100644 (file)
@@ -30,7 +30,7 @@ public:
     wxStaticLine() { m_statbox = NULL; }
 
     wxStaticLine( wxWindow *parent,
-                  wxWindowID id,
+                  wxWindowID id = wxID_ANY,
                   const wxPoint &pos = wxDefaultPosition,
                   const wxSize &size = wxDefaultSize,
                   long style = wxLI_HORIZONTAL,
@@ -42,7 +42,7 @@ public:
     virtual ~wxStaticLine();
 
     bool Create( wxWindow *parent,
-                 wxWindowID id,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint &pos = wxDefaultPosition,
                  const wxSize &size = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
index 803ae2018acb3f06ab5b3c697c629e97a5541396..aec537285678482829467139ff6bf5ddc25ed3af 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        statline.h
+// Name:        wx/gtk/statline.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 #define __GTKSTATICLINEH__
 
 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface
+    #pragma interface "statline.h"
 #endif
 
 #include "wx/defs.h"
 
 #if wxUSE_STATLINE
 
-#include "wx/object.h"
-#include "wx/list.h"
-#include "wx/control.h"
-
-//-----------------------------------------------------------------------------
-// classes
-//-----------------------------------------------------------------------------
-
-class wxStaticLine;
-
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
 // wxStaticLine
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
 
 class wxStaticLine : public wxStaticLineBase
 {
-    DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
 public:
     wxStaticLine();
-    wxStaticLine( wxWindow *parent, wxWindowID id,
-            const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, 
-            long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
-    bool Create(  wxWindow *parent, wxWindowID id,
-            const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, 
-            long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
+    wxStaticLine(wxWindow *parent,
+                 wxWindowID id = wxID_ANY,
+                 const wxPoint &pos = wxDefaultPosition,
+                 const wxSize& size = wxDefaultSize,
+                 long style = wxLI_HORIZONTAL,
+                 const wxString &name = wxStaticTextNameStr);
+    bool Create(wxWindow *parent,
+                wxWindowID id = wxID_ANY,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = wxLI_HORIZONTAL,
+                const wxString &name = wxStaticTextNameStr);
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxStaticLine)
 };
 
-#endif 
-  // wxUSE_STATLINE
-  
-#endif 
-  // __GTKSTATICLINEH__
+#endif // wxUSE_STATLINE
+
+#endif // __GTKSTATICLINEH__
+
index 803ae2018acb3f06ab5b3c697c629e97a5541396..aec537285678482829467139ff6bf5ddc25ed3af 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        statline.h
+// Name:        wx/gtk/statline.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
 #define __GTKSTATICLINEH__
 
 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface
+    #pragma interface "statline.h"
 #endif
 
 #include "wx/defs.h"
 
 #if wxUSE_STATLINE
 
-#include "wx/object.h"
-#include "wx/list.h"
-#include "wx/control.h"
-
-//-----------------------------------------------------------------------------
-// classes
-//-----------------------------------------------------------------------------
-
-class wxStaticLine;
-
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
 // wxStaticLine
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
 
 class wxStaticLine : public wxStaticLineBase
 {
-    DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
 public:
     wxStaticLine();
-    wxStaticLine( wxWindow *parent, wxWindowID id,
-            const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, 
-            long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
-    bool Create(  wxWindow *parent, wxWindowID id,
-            const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, 
-            long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
+    wxStaticLine(wxWindow *parent,
+                 wxWindowID id = wxID_ANY,
+                 const wxPoint &pos = wxDefaultPosition,
+                 const wxSize& size = wxDefaultSize,
+                 long style = wxLI_HORIZONTAL,
+                 const wxString &name = wxStaticTextNameStr);
+    bool Create(wxWindow *parent,
+                wxWindowID id = wxID_ANY,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = wxLI_HORIZONTAL,
+                const wxString &name = wxStaticTextNameStr);
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxStaticLine)
 };
 
-#endif 
-  // wxUSE_STATLINE
-  
-#endif 
-  // __GTKSTATICLINEH__
+#endif // wxUSE_STATLINE
+
+#endif // __GTKSTATICLINEH__
+
index 911e9f535c3910012a631e2169642cc27a129a62..5b78ea37088b11a716d50787000d7b7f8d4a2156 100644 (file)
@@ -23,14 +23,12 @@ class wxStaticBox;
 
 class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
 {
-    DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
 public:
     // constructors and pseudo-constructors
     wxStaticLine() : m_statbox(NULL) { }
 
     wxStaticLine( wxWindow *parent,
-                  wxWindowID id,
+                  wxWindowID id = wxID_ANY,
                   const wxPoint &pos = wxDefaultPosition,
                   const wxSize &size = wxDefaultSize,
                   long style = wxLI_HORIZONTAL,
@@ -41,7 +39,7 @@ public:
     }
 
     bool Create( wxWindow *parent,
-                 wxWindowID id,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint &pos = wxDefaultPosition,
                  const wxSize &size = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
@@ -51,10 +49,12 @@ public:
     // will want to return the main widget for m_statbox
     //
     WXWidget GetMainWidget() const;
-        
+
 protected:
     // we implement the static line using a static box
     wxStaticBox *m_statbox;
+
+    DECLARE_DYNAMIC_CLASS(wxStaticLine)
 };
 
 #endif // _WX_GENERIC_STATLINE_H_
index 911e9f535c3910012a631e2169642cc27a129a62..5b78ea37088b11a716d50787000d7b7f8d4a2156 100644 (file)
@@ -23,14 +23,12 @@ class wxStaticBox;
 
 class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
 {
-    DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
 public:
     // constructors and pseudo-constructors
     wxStaticLine() : m_statbox(NULL) { }
 
     wxStaticLine( wxWindow *parent,
-                  wxWindowID id,
+                  wxWindowID id = wxID_ANY,
                   const wxPoint &pos = wxDefaultPosition,
                   const wxSize &size = wxDefaultSize,
                   long style = wxLI_HORIZONTAL,
@@ -41,7 +39,7 @@ public:
     }
 
     bool Create( wxWindow *parent,
-                 wxWindowID id,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint &pos = wxDefaultPosition,
                  const wxSize &size = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
@@ -51,10 +49,12 @@ public:
     // will want to return the main widget for m_statbox
     //
     WXWidget GetMainWidget() const;
-        
+
 protected:
     // we implement the static line using a static box
     wxStaticBox *m_statbox;
+
+    DECLARE_DYNAMIC_CLASS(wxStaticLine)
 };
 
 #endif // _WX_GENERIC_STATLINE_H_
index 554bfb0151c006c3cac93a1d0755d25917ac89b0..6422b1c06a8b734b7eb310afed246484a837d814 100644 (file)
@@ -26,9 +26,9 @@ public:
     wxStaticLine() { }
 
     wxStaticLine( wxWindow *parent,
-                  wxWindowID id,
-                  const wxPoint &pos = wxDefaultPosition,
-                  const wxSize &size = wxDefaultSize,
+                  wxWindowID id = wxID_ANY,
+                  const wxPointpos = wxDefaultPosition,
+                  const wxSizesize = wxDefaultSize,
                   long style = wxLI_HORIZONTAL,
                   const wxString &name = wxStaticTextNameStr )
     {
@@ -36,9 +36,9 @@ public:
     }
 
     bool Create( wxWindow *parent,
-                 wxWindowID id,
-                 const wxPoint &pos = wxDefaultPosition,
-                 const wxSize &size = wxDefaultSize,
+                 wxWindowID id = wxID_ANY,
+                 const wxPointpos = wxDefaultPosition,
+                 const wxSizesize = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
                  const wxString &name = wxStaticTextNameStr );
 
index 3b2ff75484fc1b81eb22896010379e216885ea11..b092a34409a5024ecd710140e98940d6b0556991 100644 (file)
@@ -26,7 +26,7 @@ public:
     // constructors and pseudo-constructors
     wxStaticLine() { }
     wxStaticLine( wxWindow*       pParent
-                 ,wxWindowID      vId
+                 ,wxWindowID      vId = wxID_ANY
                  ,const wxPoint&  rPos = wxDefaultPosition
                  ,const wxSize&   rSize = wxDefaultSize
                  ,long            lStyle = wxLI_HORIZONTAL
@@ -37,7 +37,7 @@ public:
     }
 
     bool Create(  wxWindow*       pParent
-                 ,wxWindowID      vId
+                 ,wxWindowID      vId = wxID_ANY
                  ,const wxPoint&  rPos = wxDefaultPosition
                  ,const wxSize&   rSize = wxDefaultSize
                  ,long            lStyle = wxLI_HORIZONTAL
index 4e11f108a1d47b0ba85e37f68f8122095cf65662..b4941d154949dee37a3159018fa8fa7618dab26d 100644 (file)
@@ -27,7 +27,7 @@ public:
     wxStaticLine() { }
 
     wxStaticLine( wxWindow *parent,
-                  wxWindowID id,
+                  wxWindowID id = wxID_ANY,
                   const wxPoint &pos = wxDefaultPosition,
                   const wxSize &size = wxDefaultSize,
                   long style = wxLI_HORIZONTAL,
@@ -37,7 +37,7 @@ public:
     }
 
     bool Create( wxWindow *parent,
-                 wxWindowID id,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint &pos = wxDefaultPosition,
                  const wxSize &size = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
index c6419bb5135ca25cf371c52572813cb79872ebac..56545ae3f4a1a1e805e2341f01807044736a218f 100644 (file)
@@ -33,7 +33,7 @@ public:
     }
 
     wxStaticLine(wxWindow *parent,
-                 wxWindowID id,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint &pos = wxDefaultPosition,
                  const wxSize &size = wxDefaultSize,
                  long style = wxLI_HORIZONTAL,
@@ -43,7 +43,7 @@ public:
     }
 
     bool Create(wxWindow *parent,
-                wxWindowID id,
+                wxWindowID id = wxID_ANY,
                 const wxPoint &pos = wxDefaultPosition,
                 const wxSize &size = wxDefaultSize,
                 long style = wxLI_HORIZONTAL,