]> git.saurik.com Git - wxWidgets.git/commitdiff
even more fixes detected using ifacecheck
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 8 Jan 2009 16:33:08 +0000 (16:33 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 8 Jan 2009 16:33:08 +0000 (16:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 files changed:
interface/wx/dcsvg.h
interface/wx/dirctrl.h
interface/wx/graphics.h
interface/wx/grid.h
interface/wx/html/helpwnd.h
interface/wx/html/htmlwin.h
interface/wx/hyperlink.h
interface/wx/region.h
interface/wx/richtext/richtextformatdlg.h
interface/wx/socket.h
interface/wx/textctrl.h
interface/wx/textfile.h
interface/wx/toolbar.h

index 6f0f34a906927008f97e6e54ff90498cfb65f7a2..0efdf5a17b413e96145dcfe8434718f4cea798fa 100644 (file)
@@ -298,11 +298,6 @@ public:
     */
     void EndDoc();
 
-    /**
-        Does nothing.
-    */
-    void EndDrawing();
-
     /**
         Does nothing.
     */
@@ -505,7 +500,7 @@ public:
         Returns @true if the DC is ok to use. @false values arise from being
         unable to write the file.
     */
-    bool Ok();
+    bool IsOk();
 
     /**
         Resets the bounding box. After a call to this function, the bounding
index 09067ef001a00abbd0599f871bd7b16a3b01c1fd..4769c9277259f0138ca95066d14f6436f99d7658 100644 (file)
@@ -68,7 +68,7 @@ public:
                      const wxString& dir = wxDirDialogDefaultFolderStr,
                      const wxPoint& pos = wxDefaultPosition,
                      const wxSize& size = wxDefaultSize,
-                     long style = wxDIRCTRL_3D_INTERNAL|wxBORDER_SUNKEN,
+                     long style = wxDIRCTRL_3D_INTERNAL,
                      const wxString& filter = wxEmptyString,
                      int defaultFilter = 0,
                      const wxString& name = wxTreeCtrlNameStr);
index df59fbe9c80ab9c530cccf1d60228f4e159f173f..d463c3e630abf6b8de4667117adbe92ad3390d65 100644 (file)
@@ -513,7 +513,7 @@ public:
     /**
         Sets the brush for filling paths.
     */
-    void SetBrush(const wxGraphicsBrush& brush);
+    virtual void SetBrush(const wxGraphicsBrush& brush);
 
     /**
         Sets the font for drawing text.
@@ -522,16 +522,16 @@ public:
     /**
         Sets the font for drawing text.
     */
-    void SetFont(const wxGraphicsFont& font);
+    virtual void SetFont(const wxGraphicsFont& font);
 
     /**
         Sets the pen used for stroking.
     */
-    void SetPen(const wxGraphicsPen& pen);
+    void SetPen(const wxPen& pen);
     /**
         Sets the pen used for stroking.
     */
-    void SetPen(const wxPen& pen);
+    virtual void SetPen(const wxGraphicsPen& pen);
 
     /**
         Sets the current transformation matrix of this context
@@ -547,13 +547,13 @@ public:
         Stroke disconnected lines from begin to end points, fastest method
         available for this purpose.
     */
-    void StrokeLines(size_t n, const wxPoint2DDouble* beginPoints,
-                     const wxPoint2DDouble* endPoints);
+    virtual void StrokeLines(size_t n, const wxPoint2DDouble* beginPoints,
+                             const wxPoint2DDouble* endPoints);
     /**
         Stroke disconnected lines from begin to end points, fastest method
         available for this purpose.
     */
-    void StrokeLines(size_t n, const wxPoint2DDouble* points);
+    virtual void StrokeLines(size_t n, const wxPoint2DDouble* points);
 
     /**
         Strokes along a path with the current pen.
index 93358c81fb37bb39a8996e9e579dbd154e0eb868..3aef6025823d992c2ddd0784e398f6b3b0ddab85 100644 (file)
@@ -480,7 +480,7 @@ public:
     /**
         Default constructor.
     */
-    wxGridCellAttr();
+    wxGridCellAttr(wxGridCellAttr* attrDefault = NULL);
     /**
         Constructor specifying some of the often used attributes.
     */
@@ -3434,8 +3434,7 @@ public:
     */
     wxGridEvent(int id, wxEventType type, wxObject* obj,
                 int row = -1, int col = -1, int x = -1, int y = -1,
-                bool sel = true, bool control = false, bool shift = false,
-                bool alt = false, bool meta = false);
+                bool sel = true, const wxKeyboardState& kbd = wxKeyboardState());
 
     /**
         Returns @true if the Alt key was down at the time of the event.
@@ -3516,8 +3515,7 @@ public:
     */
     wxGridSizeEvent(int id, wxEventType type, wxObject* obj,
                     int rowOrCol = -1, int x = -1, int y = -1,
-                    bool control = false, bool shift = false,
-                    bool alt = false, bool meta = false);
+                    const wxKeyboardState& kbd = wxKeyboardState());
 
     /**
         Returns @true if the Alt key was down at the time of the event.
@@ -3581,9 +3579,7 @@ public:
                            wxObject* obj,
                            const wxGridCellCoords& topLeft,
                            const wxGridCellCoords& bottomRight,
-                           bool sel = true, bool control = false,
-                           bool shift = false, bool alt = false,
-                           bool meta = false);
+                           bool sel = true, const wxKeyboardState& kbd = wxKeyboardState());
 
     /**
         Returns @true if the Alt key was down at the time of the event.
index 690d799c7ae4d7f0c0e6cce6f3b96862ce7f8ae5..1b0b0c79914783ae7677c25a75d4a850ba291bf7 100644 (file)
@@ -110,13 +110,6 @@ public:
     void ReadCustomization(wxConfigBase* cfg,
                            const wxString& path = wxEmptyString);
 
-    /**
-        Sets the frame's title format.
-
-        @a format must contain exactly one "%s" (it will be replaced by the page title).
-    */
-    void SetTitleFormat(const wxString& format);
-
     /**
         Associates a wxConfig object with the help window. It is recommended that you
         use wxHtmlHelpController::UseConfig instead.
index ecadb27cfce17cecdf4ed8818b2fc122e01ecac6..34c231c82c49219a900a1524772bb2872d0d2de7 100644 (file)
@@ -428,7 +428,7 @@ public:
     /**
         The constructor is not normally used by the user code.
     */
-    wxHyperlinkEvent(int id, const wxHtmlLinkInfo& linkinfo);
+    wxHtmlLinkEvent(int id, const wxHtmlLinkInfo& linkinfo);
 
     /**
         Returns the wxHtmlLinkInfo which contains info about the cell clicked
index 115db369cbaf0e5257dd86b1a3c26f5eb8bffcd5..4fdf631ae345753e4e830f7efbd1abc97dbff4c3 100644 (file)
@@ -91,13 +91,13 @@ public:
     /**
         Constructor. See Create() for more info.
     */
-    wxHyperLink(wxWindow* parent, wxWindowID id,
-                const wxString& label,
-                const wxString& url,
-                const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxHL_DEFAULT_STYLE,
-                const wxString& name = "hyperlink");
+    wxHyperLinkCtrl(wxWindow* parent, wxWindowID id,
+                    const wxString& label,
+                    const wxString& url,
+                    const wxPoint& pos = wxDefaultPosition,
+                    const wxSize& size = wxDefaultSize,
+                    long style = wxHL_DEFAULT_STYLE,
+                    const wxString& name = wxHyperlinkCtrlNameStr);
 
     /**
         Creates the hyperlink control.
index 7710f308c37d139e28e8aa8eed3eb0404d4d4879..45e42d730ec9c71d0d686107914ca0a9b8090cec 100644 (file)
@@ -181,7 +181,7 @@ public:
         in the provided array.
         @a fillStyle parameter may have values @c wxWINDING_RULE or @c wxODDEVEN_RULE.
     */
-    wxRegion(size_t n, const wxPoint* points, int fillStyle = wxODDEVEN_RULE);
+    wxRegion(size_t n, const wxPoint* points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
     /**
         Constructs a region using a bitmap. See Union() for more details.
     */
index 3eb9bc722eb3958d2f85a1d3a8cf1440a33151d1..5ef56d5c6ab045c92d5022942007ddd88219a04e 100644 (file)
@@ -135,6 +135,10 @@ public:
             The pages to show.
         @param parent
             The dialog's parent.
+        @param title
+            The dialog's title.
+        @param id
+            The dialog's ID.
         @param pos
             The dialog's position.
         @param sz
@@ -142,10 +146,9 @@ public:
         @param style
             The dialog's window style.
     */
-    wxRichTextFormattingDialog(long flags, wxWindow* parent,
-                               const wxPoint& pos = wxDefaultPosition,
-                               const wxSize& sz = wxDefaultSize,
-                               long style = wxDEFAULT_DIALOG_STYLE);
+    wxRichTextFormattingDialog(long flags, wxWindow* parent, const wxString& title = "Formatting",
+                               wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
+                               const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
 
     /**
         Destructor.
index 3efa425a6c9f92b38def40b570118d282d64dfe3..286c05cd00000111e5bfd7b077523e2d4ba33834 100644 (file)
@@ -6,6 +6,98 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
+
+/**
+    @class wxIPaddress
+
+    wxIPaddress is an abstract base class for all internet protocol address
+    objects. Currently, only wxIPV4address is implemented. An experimental
+    implementation for IPV6, wxIPV6address, is being developed.
+
+    @library{wxbase}
+    @category{net}
+*/
+class wxIPaddress : public wxSockAddress
+{
+public:
+    /**
+        Internally, this is the same as setting the IP address to @b INADDR_ANY.
+
+        On IPV4 implementations, 0.0.0.0
+
+        On IPV6 implementations, ::
+
+        @return @true on success, @false if something went wrong.
+    */
+    bool AnyAddress();
+
+    /**
+        Internally, this is the same as setting the IP address to @b INADDR_BROADCAST.
+
+        On IPV4 implementations, 255.255.255.255
+
+        @return @true on success, @false if something went wrong.
+    */
+    virtual bool BroadcastAddress() = 0;
+
+    /**
+        Set the address to hostname, which can be a host name or an IP-style address
+        in a format dependent on implementation.
+
+        @return @true on success, @false if something goes wrong (invalid
+                hostname or invalid IP address).
+    */
+    bool Hostname(const wxString& hostname);
+
+    /**
+        Returns the hostname which matches the IP address.
+    */
+    wxString Hostname() const;
+
+    /**
+        Returns a wxString containing the IP address.
+    */
+    virtual wxString IPAddress() const = 0;
+
+    /**
+        Determines if current address is set to localhost.
+
+        @return @true if address is localhost, @false if internet address.
+    */
+    virtual bool IsLocalHost() const = 0;
+
+    /**
+        Set address to localhost.
+
+        On IPV4 implementations, 127.0.0.1
+
+        On IPV6 implementations, ::1
+
+        @return @true on success, @false if something went wrong.
+    */
+    bool LocalHost();
+
+    /**
+        Set the port to that corresponding to the specified service.
+
+        @return @true on success, @false if something goes wrong (invalid @a service).
+    */
+    bool Service(const wxString& service);
+
+    /**
+        Set the port to that corresponding to the specified service.
+
+        @return @true on success, @false if something goes wrong (invalid @a service).
+    */
+    bool Service(unsigned short service);
+
+    /**
+        Returns the current service.
+    */
+    unsigned short Service() const;
+};
+
+
 /**
     @class wxIPV4address
 
@@ -70,12 +162,12 @@ public:
 
         @return @true on success, @false if something goes wrong (invalid @a service).
     */
-    bool Service(unsigned short service) = 0;
+    bool Service(unsigned short service);
 
     /**
         Returns the current service.
     */
-    unsigned short Service() const = 0;
+    unsigned short Service() const;
 };
 
 
@@ -174,99 +266,6 @@ public:
 };
 
 
-
-/**
-    @class wxIPaddress
-
-    wxIPaddress is an abstract base class for all internet protocol address
-    objects. Currently, only wxIPV4address is implemented. An experimental
-    implementation for IPV6, wxIPV6address, is being developed.
-
-    @library{wxbase}
-    @category{net}
-*/
-class wxIPaddress : public wxSockAddress
-{
-public:
-    /**
-        Internally, this is the same as setting the IP address to @b INADDR_ANY.
-
-        On IPV4 implementations, 0.0.0.0
-
-        On IPV6 implementations, ::
-
-        @return @true on success, @false if something went wrong.
-    */
-    bool AnyAddress();
-
-    /**
-        Internally, this is the same as setting the IP address to @b INADDR_BROADCAST.
-
-        On IPV4 implementations, 255.255.255.255
-
-        @return @true on success, @false if something went wrong.
-    */
-    virtual bool BroadcastAddress() = 0;
-
-    /**
-        Set the address to hostname, which can be a host name or an IP-style address
-        in a format dependent on implementation.
-
-        @return @true on success, @false if something goes wrong (invalid
-                hostname or invalid IP address).
-    */
-    virtual bool Hostname(const wxString& hostname) = 0;
-
-    /**
-        Returns the hostname which matches the IP address.
-    */
-    virtual wxString Hostname() const = 0;
-
-    /**
-        Returns a wxString containing the IP address.
-    */
-    virtual wxString IPAddress() const = 0;
-
-    /**
-        Determines if current address is set to localhost.
-
-        @return @true if address is localhost, @false if internet address.
-    */
-    virtual bool IsLocalHost() const = 0;
-
-    /**
-        Set address to localhost.
-
-        On IPV4 implementations, 127.0.0.1
-
-        On IPV6 implementations, ::1
-
-        @return @true on success, @false if something went wrong.
-    */
-    bool LocalHost();
-
-    /**
-        Set the port to that corresponding to the specified service.
-
-        @return @true on success, @false if something goes wrong (invalid @a service).
-    */
-    virtual bool Service(const wxString& service) = 0;
-
-    /**
-        Set the port to that corresponding to the specified service.
-
-        @return @true on success, @false if something goes wrong (invalid @a service).
-    */
-    virtual bool Service(unsigned short service) = 0;
-
-    /**
-        Returns the current service.
-    */
-    virtual unsigned short Service() const = 0;
-};
-
-
-
 /**
     @class wxSocketClient
 
index e6f3aae4aceacf1241d87d0f781718ac39a3f9c3..7cd22db8f05fe9f9f9c4b6769fbc4a51799e997d 100644 (file)
@@ -1044,7 +1044,7 @@ public:
         @see Create(), wxValidator
     */
     wxTextCtrl(wxWindow* parent, wxWindowID id,
-               const wxString& value = "",
+               const wxString& value = wxEmptyString,
                const wxPoint& pos = wxDefaultPosition,
                const wxSize& size = wxDefaultSize,
                long style = 0,
index 101b9debb1274f34d3f5692c3c887bd20e86a123..044dc9529e0caeceaaaf18da0383c76903cab937 100644 (file)
@@ -106,7 +106,7 @@ public:
 
         It will fail if the file already exists, Open() should be used in this case.
     */
-    bool Create() const;
+    bool Create();
 
     /**
         Creates the file with the given name.
@@ -114,7 +114,7 @@ public:
 
         It will fail if the file already exists, Open() should be used in this case.
     */
-    bool Create(const wxString& strFile) const;
+    bool Create(const wxString& strFile);
 
     /**
         Returns @true if the current line is the last one.
index 0d36ef377f667e53e2313db6a0cb070971c0a270..cef105a0dc669c819d9926f695853859a5923ce3 100644 (file)
@@ -160,7 +160,7 @@ public:
     wxToolBar(wxWindow* parent, wxWindowID id,
               const wxPoint& pos = wxDefaultPosition,
               const wxSize& size = wxDefaultSize,
-              long style = wxTB_HORIZONTAL | wxBORDER_NONE,
+              long style = wxTB_HORIZONTAL,
               const wxString& name = wxToolBarNameStr);
 
     /**