From 382f12e41917abf78fb7f00d786c7ead112e4df4 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 10 Jan 2009 22:42:09 +0000 Subject: [PATCH] many automated ifacecheck fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/archive.h | 2 +- interface/wx/arrstr.h | 3 +- interface/wx/aui/auibook.h | 4 +-- interface/wx/aui/framemanager.h | 8 ++--- interface/wx/bitmap.h | 2 +- interface/wx/bookctrl.h | 22 ++++++------- interface/wx/colour.h | 4 +-- interface/wx/config.h | 44 +++++++++++++------------ interface/wx/ctrlsub.h | 10 +++--- interface/wx/datetime.h | 45 +++++++++++++------------- interface/wx/dc.h | 24 ++++++++------ interface/wx/dcsvg.h | 14 ++++---- interface/wx/display.h | 2 +- interface/wx/filename.h | 2 +- interface/wx/filesys.h | 2 +- interface/wx/glcanvas.h | 2 +- interface/wx/graphics.h | 6 ++-- interface/wx/html/htmlwin.h | 2 +- interface/wx/html/winpars.h | 2 +- interface/wx/image.h | 2 +- interface/wx/intl.h | 2 +- interface/wx/log.h | 6 ++-- interface/wx/mimetype.h | 2 +- interface/wx/object.h | 2 +- interface/wx/platinfo.h | 2 +- interface/wx/process.h | 2 +- interface/wx/renderer.h | 6 ++-- interface/wx/richtext/richtextbuffer.h | 2 +- interface/wx/richtext/richtextctrl.h | 6 ++-- interface/wx/richtext/richtextstyles.h | 5 +-- interface/wx/socket.h | 14 ++++---- interface/wx/stdpaths.h | 2 +- interface/wx/string.h | 4 +-- interface/wx/textfile.h | 2 +- interface/wx/thread.h | 2 +- interface/wx/valtext.h | 2 +- interface/wx/window.h | 6 ++-- interface/wx/zipstrm.h | 4 +-- 38 files changed, 137 insertions(+), 136 deletions(-) diff --git a/interface/wx/archive.h b/interface/wx/archive.h index 1a06aabad6..1bb6579bfe 100644 --- a/interface/wx/archive.h +++ b/interface/wx/archive.h @@ -358,7 +358,7 @@ public: When using wxSTREAM_FILEEXT for the second parameter, the first parameter can be a complete filename rather than just an extension. */ - static const wxArchiveClassFactory* Find(const wxChar* protocol, + static const wxArchiveClassFactory* Find(const wxString& protocol, wxStreamProtocolType type = wxSTREAM_PROTOCOL); /** diff --git a/interface/wx/arrstr.h b/interface/wx/arrstr.h index f2ea79180f..228126f769 100644 --- a/interface/wx/arrstr.h +++ b/interface/wx/arrstr.h @@ -142,8 +142,7 @@ public: If @a nIndex is equal to GetCount() this function behaves as Add(). */ - void Insert(const wxString& str, size_t nIndex, - size_t copies = 1); + void Insert(wxString lItem, size_t nIndex, size_t copies = 1); /** Returns @true if the array is empty, @false otherwise. This function returns the diff --git a/interface/wx/aui/auibook.h b/interface/wx/aui/auibook.h index ab151ff49b..0d0eb54140 100644 --- a/interface/wx/aui/auibook.h +++ b/interface/wx/aui/auibook.h @@ -248,8 +248,8 @@ public: The @a direction argument specifies where the pane should go, it should be one of the following: wxTOP, wxBOTTOM, wxLEFT, or wxRIGHT. */ - void SetUniformBitmapSize(const wxSize& size); - void Split(size_t page, int direction); + virtual void SetUniformBitmapSize(const wxSize& size); + virtual void Split(size_t page, int direction); //@} /** diff --git a/interface/wx/aui/framemanager.h b/interface/wx/aui/framemanager.h index ac0e4057e6..deac39d0ea 100644 --- a/interface/wx/aui/framemanager.h +++ b/interface/wx/aui/framemanager.h @@ -400,8 +400,8 @@ public: right, bottom) are subtracted from the layout. This is the same thing as calling Direction(wxAUI_DOCK_CENTRE). */ - wxAuiPaneInfo Centre(); - wxAuiPaneInfo Center(); + wxAuiPaneInfo& Centre(); + wxAuiPaneInfo& Center(); //@} //@{ @@ -411,8 +411,8 @@ public: This function provides an easy way of preparing a pane to be displayed in the center dock position. */ - wxAuiPaneInfo CentrePane(); - wxAuiPaneInfo CenterPane(); + wxAuiPaneInfo& CentrePane(); + wxAuiPaneInfo& CenterPane(); //@} /** diff --git a/interface/wx/bitmap.h b/interface/wx/bitmap.h index 3d1ec2000e..b0a215917e 100644 --- a/interface/wx/bitmap.h +++ b/interface/wx/bitmap.h @@ -436,7 +436,7 @@ public: @see wxBitmapHandler */ - static wxList GetHandlers(); + static wxList& GetHandlers(); /** Gets the height of the bitmap in pixels. diff --git a/interface/wx/bookctrl.h b/interface/wx/bookctrl.h index f62f142eea..05fe81a3b7 100644 --- a/interface/wx/bookctrl.h +++ b/interface/wx/bookctrl.h @@ -82,7 +82,7 @@ public: /** Returns the image index for the given page. */ - virtual int GetPageImage(size_t nPage) const; + virtual int GetPageImage(size_t nPage) const = 0; /** Sets the image list for the page control. @@ -96,7 +96,7 @@ public: Sets the image index for the given page. @a image is an index into the image list which was set with SetImageList(). */ - virtual bool SetPageImage(size_t page, int image); + virtual bool SetPageImage(size_t page, int image) = 0; //@} @@ -155,7 +155,7 @@ public: @see GetSelection() */ - virtual int SetSelection(size_t page); + virtual int SetSelection(size_t page) = 0; /** Cycles through the tabs. @@ -170,7 +170,7 @@ public: This is the only difference with SetSelection(). See @ref overview_eventhandling_prog for more infomation. */ - virtual int ChangeSelection(size_t page); + virtual int ChangeSelection(size_t page) = 0; //@} @@ -238,10 +238,8 @@ public: @see InsertPage() */ - bool AddPage(wxWindow* page, - const wxString& text, - bool select = false, - int imageId = wxNOT_FOUND); + virtual bool AddPage(wxWindow* page, const wxString& text, + bool select = false, int imageId = wxNOT_FOUND); /** Deletes all pages. @@ -252,7 +250,7 @@ public: Deletes the specified page, and the associated window. The call to this function generates the page changing events. */ - bool DeletePage(size_t page); + virtual bool DeletePage(size_t page); /** Inserts a new page at the specified position. @@ -283,17 +281,17 @@ public: /** Deletes the specified page, without deleting the associated window. */ - bool RemovePage(size_t page); + virtual bool RemovePage(size_t page); /** Returns the number of pages in the control. */ - size_t GetPageCount() const; + virtual size_t GetPageCount() const; /** Returns the window at the given page position. */ - wxWindow* GetPage(size_t page); + wxWindow* GetPage(size_t page) const; //@} diff --git a/interface/wx/colour.h b/interface/wx/colour.h index fa9cdf5b08..39b3081ec9 100644 --- a/interface/wx/colour.h +++ b/interface/wx/colour.h @@ -170,8 +170,8 @@ public: @see wxColourDatabase */ - wxColour operator =(const wxColour& colour); - wxColour operator =(const wxString& colourName); + wxColour& operator=(const wxColour& colour); + wxColour& operator=(const wxColour& colour); //@} /** diff --git a/interface/wx/config.h b/interface/wx/config.h index b2504846e5..cc134b0029 100644 --- a/interface/wx/config.h +++ b/interface/wx/config.h @@ -348,14 +348,14 @@ public: /** Retrieve the current path (always as absolute path). */ - const wxString GetPath() const; + virtual const wxString& GetPath() const = 0; /** Set current path: if the first character is '/', it is the absolute path, otherwise it is a relative path. '..' is supported. If @a strPath doesn't exist it is created. */ - void SetPath(const wxString& strPath); + virtual void SetPath(const wxString& strPath) = 0; //@} @@ -375,7 +375,7 @@ public: continue flag, the value string, and the index for the next call. @endWxPythonOnly */ - bool GetFirstEntry(wxString& str, long& index) const; + virtual bool GetFirstEntry(wxString& str, long& index) const = 0; /** Gets the first group. @@ -385,7 +385,7 @@ public: continue flag, the value string, and the index for the next call. @endWxPythonOnly */ - bool GetFirstGroup(wxString& str, long& index) const; + virtual bool GetFirstGroup(wxString& str, long& index) const = 0; /** Gets the next entry. @@ -395,7 +395,7 @@ public: continue flag, the value string, and the index for the next call. @endWxPythonOnly */ - bool GetNextEntry(wxString& str, long& index) const; + virtual bool GetNextEntry(wxString& str, long& index) const = 0; /** Gets the next group. @@ -405,18 +405,18 @@ public: continue flag, the value string, and the index for the next call. @endWxPythonOnly */ - bool GetNextGroup(wxString& str, long& index) const; + virtual bool GetNextGroup(wxString& str, long& index) const = 0; /** Get number of entries in the current group. */ - uint GetNumberOfEntries(bool bRecursive = false) const; + virtual size_t GetNumberOfEntries(bool bRecursive = false) const = 0; /** Get number of entries/subgroups in the current group, with or without its subgroups. */ - uint GetNumberOfGroups(bool bRecursive = false) const; + virtual size_t GetNumberOfGroups(bool bRecursive = false) const = 0; //@} @@ -438,7 +438,7 @@ public: /** @return @true if either a group or an entry with a given name exists. */ - bool Exists(wxString& strName) const; + bool Exists(const wxString& strName) const; /** Returns the type of the given entry or @e Unknown if the entry doesn't @@ -447,17 +447,17 @@ public: about type mismatch otherwise: e.g., an attempt to read a string value from an integer key with wxRegConfig will fail. */ - wxConfigBase::EntryType GetEntryType(const wxString& name) const; + virtual wxConfigBase::EntryType GetEntryType(const wxString& name) const; /** @return @true if the entry by this name exists. */ - bool HasEntry(wxString& strName) const; + virtual bool HasEntry(const wxString& strName) const = 0; /** @return @true if the group by this name exists. */ - bool HasGroup(const wxString& strName) const; + virtual bool HasGroup(const wxString& strName) const = 0; //@} @@ -491,7 +491,7 @@ public: Permanently writes all changes (otherwise, they're only written from object's destructor). */ - bool Flush(bool bCurrentOnly = false); + virtual bool Flush(bool bCurrentOnly = false) = 0; /** Read a string from the key, returning @true if the value was read. If @@ -567,13 +567,13 @@ public: Reads a bool value from the key and returns it. @a defaultVal is returned if the key is not found. */ - long ReadBool(const wxString& key, bool defaultVal) const; + bool ReadBool(const wxString& key, bool defaultVal) const; /** Reads a double value from the key and returns it. @a defaultVal is returned if the key is not found. */ - long ReadDouble(const wxString& key, double defaultVal) const; + double ReadDouble(const wxString& key, double defaultVal) const; /** Reads a long value from the key and returns it. @a defaultVal is @@ -639,7 +639,8 @@ public: @return @false if @a oldName doesn't exist or if @a newName already exists. */ - bool RenameEntry(const wxString& oldName, const wxString& newName); + virtual bool RenameEntry(const wxString& oldName, + const wxString& newName) = 0; /** Renames a subgroup of the current group. The subgroup names (both the @@ -649,7 +650,8 @@ public: @return @false if @a oldName doesn't exist or if @a newName already exists. */ - bool RenameGroup(const wxString& oldName, const wxString& newName); + virtual bool RenameGroup(const wxString& oldName, + const wxString& newName) = 0; //@} @@ -667,14 +669,14 @@ public: Delete the whole underlying object (disk file, registry key, ...). Primarly for use by uninstallation routine. */ - bool DeleteAll(); + virtual bool DeleteAll() = 0; /** Deletes the specified entry and the group it belongs to if it was the last key in it and the second parameter is @true. */ - bool DeleteEntry(const wxString& key, - bool bDeleteGroupIfEmpty = true); + virtual bool DeleteEntry(const wxString& key, + bool bDeleteGroupIfEmpty = true) = 0; /** Delete the group (with all subgroups). If the current path is under the @@ -682,7 +684,7 @@ public: component. E.g. if the current path is @c "/A/B/C/D" and the group @c C is deleted, the path becomes @c "/A/B". */ - bool DeleteGroup(const wxString& key); + virtual bool DeleteGroup(const wxString& key) = 0; //@} diff --git a/interface/wx/ctrlsub.h b/interface/wx/ctrlsub.h index f9d338c5d5..0a6e4446f8 100644 --- a/interface/wx/ctrlsub.h +++ b/interface/wx/ctrlsub.h @@ -40,7 +40,7 @@ public: @see IsEmpty() */ - virtual unsigned int GetCount() const; + virtual unsigned int GetCount() const = 0; /** Returns @true if the control is empty or @false if it has some items. @@ -58,7 +58,7 @@ public: @return The label of the item or an empty string if the position was invalid. */ - virtual wxString GetString(unsigned int n) const; + virtual wxString GetString(unsigned int n) const = 0; /** Returns the array of the labels of all items in the control. @@ -73,7 +73,7 @@ public: @param string The label to set. */ - virtual void SetString(unsigned int n, const wxString& string); + virtual void SetString(unsigned int n, const wxString& string) = 0; /** Finds an item whose label matches the given string. @@ -106,7 +106,7 @@ public: @see SetString(), SetStringSelection() */ - virtual void SetSelection(int n); + virtual void SetSelection(int n) = 0; /** Returns the index of the selected item or @c wxNOT_FOUND if no item is @@ -120,7 +120,7 @@ public: @see SetSelection(), GetStringSelection() */ - virtual int GetSelection() const; + virtual int GetSelection() const = 0; /** Selects the item with the specified string in the control. This doesn't diff --git a/interface/wx/datetime.h b/interface/wx/datetime.h index 8599707e8b..ec04f9252d 100644 --- a/interface/wx/datetime.h +++ b/interface/wx/datetime.h @@ -350,7 +350,7 @@ public: /** Sets the day without changing other date components. */ - wxDateTime& SetDay(short unsigned int); + wxDateTime& SetDay(unsigned short day); /** Sets the date from the date and time in DOS format. @@ -360,17 +360,17 @@ public: /** Sets the hour without changing other date components. */ - wxDateTime& SetHour(short unsigned int); + wxDateTime& SetHour(unsigned short hour); /** Sets the millisecond without changing other date components. */ - wxDateTime& SetMillisecond(short unsigned int); + wxDateTime& SetMillisecond(unsigned short millisecond); /** Sets the minute without changing other date components. */ - wxDateTime& SetMinute(short unsigned int); + wxDateTime& SetMinute(unsigned short minute); /** Sets the month without changing other date components. @@ -380,7 +380,7 @@ public: /** Sets the second without changing other date components. */ - wxDateTime& SetSecond(short unsigned int); + wxDateTime& SetSecond(unsigned short second); /** Sets the date and time of to the current values. Same as assigning the @@ -746,7 +746,7 @@ public: @see ParseFormat() */ - wxString Format(const wxChar* format = wxDefaultDateTimeFormat, + wxString Format(const wxString& format = wxDefaultDateTimeFormat, const TimeZone& tz = Local) const; /** @@ -1104,8 +1104,7 @@ public: @return The reference to the modified object itself. */ - wxDateTime SetToLastMonthDay(Month month = Inv_Month, - int year = Inv_Year); + wxDateTime& SetToLastMonthDay(Month month = Inv_Month, int year = Inv_Year); /** The effect of calling this function is the same as of calling @@ -1155,7 +1154,7 @@ public: @return The reference to the modified object itself. */ - wxDateTime SetToWeekDayInSameWeek(WeekDay weekday, + wxDateTime& SetToWeekDayInSameWeek(WeekDay weekday, WeekFlags flags = Monday_First); /** @@ -1251,13 +1250,13 @@ public: /** Same as FromTimezone() but modifies the object in place. */ - wxDateTime MakeFromTimezone(const TimeZone& tz, bool noDST = false); + wxDateTime& MakeFromTimezone(const TimeZone& tz, bool noDST = false); /** Modifies the object in place to represent the date in another time zone. If @a noDST is @true, no DST adjustments will be made. */ - wxDateTime MakeTimezone(const TimeZone& tz, bool noDST = false); + wxDateTime& MakeTimezone(const TimeZone& tz, bool noDST = false); /** This is the same as calling MakeTimezone() with the argument @c GMT0. @@ -1819,12 +1818,12 @@ public: /** Returns the timespan for one day. */ - static wxTimespan Day(); + static wxTimeSpan Day(); /** Returns the timespan for the given number of days. */ - static wxTimespan Days(long days); + static wxTimeSpan Days(long days); /** Returns the string containing the formatted representation of the time @@ -1892,12 +1891,12 @@ public: /** Returns the timespan for one hour. */ - static wxTimespan Hour(); + static wxTimeSpan Hour(); /** Returns the timespan for the given number of hours. */ - static wxTimespan Hours(long hours); + static wxTimeSpan Hours(long hours); /** Returns @true if two timespans are equal. @@ -1936,22 +1935,22 @@ public: /** Returns the timespan for one millisecond. */ - static wxTimespan Millisecond(); + static wxTimeSpan Millisecond(); /** Returns the timespan for the given number of milliseconds. */ - static wxTimespan Milliseconds(long ms); + static wxTimeSpan Milliseconds(wxLongLong ms); /** Returns the timespan for one minute. */ - static wxTimespan Minute(); + static wxTimeSpan Minute(); /** Returns the timespan for the given number of minutes. */ - static wxTimespan Minutes(long min); + static wxTimeSpan Minutes(long min); /** Returns the product of this time span by @a n. @@ -1983,12 +1982,12 @@ public: /** Returns the timespan for one second. */ - static wxTimespan Second(); + static wxTimeSpan Second(); /** Returns the timespan for the given number of seconds. */ - static wxTimespan Seconds(long sec); + static wxTimeSpan Seconds(wxLongLong sec); /** Returns the difference of two time spans. @@ -2005,12 +2004,12 @@ public: /** Returns the timespan for one week. */ - static wxTimespan Week(); + static wxTimeSpan Week(); /** Returns the timespan for the given number of weeks. */ - static wxTimespan Weeks(long weeks); + static wxTimeSpan Weeks(long weeks); /** Adds the given wxTimeSpan to this wxTimeSpan and returns the result. diff --git a/interface/wx/dc.h b/interface/wx/dc.h index bc522c7c6f..39a9bbb710 100644 --- a/interface/wx/dc.h +++ b/interface/wx/dc.h @@ -44,7 +44,8 @@ @library{wxcore} @category{dc,gdi} - @see @ref overview_dc, wxGraphicsContext + @see @ref overview_dc, wxGraphicsContext, wxDCFontChanger, wxDCTextColourChanger, + wxDCPenChanger, wxDCBrushChanger, wxDCClipper @todo Precise definition of default/initial state. @todo Pixelwise definition of operations (e.g. last point of a line not @@ -651,7 +652,7 @@ public: @endWxPythonOnly */ void GetSize(wxCoord* width, wxCoord* height) const; - const wxSize GetSize() const; + wxSize GetSize() const; //@} //@{ @@ -659,7 +660,7 @@ public: Returns the horizontal and vertical resolution in millimetres. */ void GetSizeMM(wxCoord* width, wxCoord* height) const; - const wxSize GetSizeMM() const; + wxSize GetSizeMM() const; //@} /** @@ -700,7 +701,7 @@ public: wxCoord* descent = NULL, wxCoord* externalLeading = NULL, const wxFont* font = NULL) const; - const wxSize GetTextExtent(const wxString& string) const; + wxSize GetTextExtent(const wxString& string) const; //@} /** @@ -1117,7 +1118,8 @@ public: @library{wxcore} @category{gdi} - @see wxDC::SetClippingRegion() + @see wxDC::SetClippingRegion(), wxDCFontChanger, wxDCTextColourChanger, wxDCPenChanger, + wxDCBrushChanger */ class wxDCClipper { @@ -1149,7 +1151,8 @@ public: @library{wxcore} @category{gdi} - @see wxDC::SetBrush() + @see wxDC::SetBrush(), wxDCFontChanger, wxDCTextColourChanger, wxDCPenChanger, + wxDCClipper */ class wxDCBrushChanger { @@ -1180,7 +1183,8 @@ public: @library{wxcore} @category{gdi} - @see wxDC::SetPen() + @see wxDC::SetPen(), wxDCFontChanger, wxDCTextColourChanger, wxDCBrushChanger, + wxDCClipper */ class wxDCPenChanger { @@ -1213,7 +1217,8 @@ public: @library{wxcore} @category{gdi} - @see wxDC::SetTextForeground() + @see wxDC::SetTextForeground(), wxDCFontChanger, wxDCPenChanger, wxDCBrushChanger, + wxDCClipper */ class wxDCTextColourChanger { @@ -1247,7 +1252,8 @@ public: @library{wxcore} @category{gdi} - @see wxDC::SetFont() + @see wxDC::SetFont(), wxDCTextColourChanger, wxDCPenChanger, wxDCBrushChanger, + wxDCClipper */ class wxDCFontChanger { diff --git a/interface/wx/dcsvg.h b/interface/wx/dcsvg.h index 0efdf5a17b..fa5e0ad882 100644 --- a/interface/wx/dcsvg.h +++ b/interface/wx/dcsvg.h @@ -316,7 +316,7 @@ public: @see SetBackground() */ wxBrush GetBackground() const; - const wxBrush GetBackground() const; + const wxBrush& GetBackground() const; //@} /** @@ -333,7 +333,7 @@ public: @see SetBrush() */ wxBrush GetBrush() const; - const wxBrush GetBrush() const; + const wxBrush& GetBrush() const; //@} /** @@ -358,7 +358,7 @@ public: @see SetFont() */ wxFont GetFont() const; - const wxFont GetFont() const; + const wxFont& GetFont() const; //@} /** @@ -382,7 +382,7 @@ public: @see SetPen() */ wxPen GetPen() const; - const wxPen GetPen() const; + const wxPen& GetPen() const; //@} /** @@ -402,7 +402,7 @@ public: @see SetTextBackground() */ - wxColour GetTextBackground() const; + const wxColour& GetTextBackground() const; const wxColour& GetTextBackground() const; //@} @@ -440,7 +440,7 @@ public: @see SetTextForeground() */ wxColour GetTextForeground() const; - const wxColour GetTextForeground() const; + const wxColour& GetTextForeground() const; //@} /** @@ -500,7 +500,7 @@ public: Returns @true if the DC is ok to use. @false values arise from being unable to write the file. */ - bool IsOk(); + bool IsOk() const; /** Resets the bounding box. After a call to this function, the bounding diff --git a/interface/wx/display.h b/interface/wx/display.h index 6829465769..20811d7580 100644 --- a/interface/wx/display.h +++ b/interface/wx/display.h @@ -63,7 +63,7 @@ public: /** Returns the number of connected displays. */ - static unsigned GetCount(); + static unsigned int GetCount(); /** Returns the current video mode that this display is in. diff --git a/interface/wx/filename.h b/interface/wx/filename.h index 774c6b76df..68e841e03f 100644 --- a/interface/wx/filename.h +++ b/interface/wx/filename.h @@ -330,7 +330,7 @@ public: @see GetCwd() */ - static void AssignCwd(const wxString& volume = wxEmptyString); + void AssignCwd(const wxString& volume = wxEmptyString); /** Sets this file name object to the given directory name. diff --git a/interface/wx/filesys.h b/interface/wx/filesys.h index 22246cacbc..561f457966 100644 --- a/interface/wx/filesys.h +++ b/interface/wx/filesys.h @@ -59,7 +59,7 @@ public: handlers are deleted in wxFileSystem's destructor so that you don't have to care about it. */ - static void AddHandler(wxFileSystemHandler handler); + static void AddHandler(wxFileSystemHandler* handler); /** Sets the current location. @a location parameter passed to OpenFile() is diff --git a/interface/wx/glcanvas.h b/interface/wx/glcanvas.h index aee4e0410e..d92570869c 100644 --- a/interface/wx/glcanvas.h +++ b/interface/wx/glcanvas.h @@ -243,7 +243,7 @@ public: @return @true if attributes are supported. */ - static bool IsDisplaySupported(const int* attribList = NULL); + static bool IsDisplaySupported(const int* attribList); /** Returns true if the extension with given name is supported diff --git a/interface/wx/graphics.h b/interface/wx/graphics.h index d463c3e630..1ee8652539 100644 --- a/interface/wx/graphics.h +++ b/interface/wx/graphics.h @@ -378,13 +378,13 @@ public: Draws a polygon. */ virtual void DrawLines(size_t n, const wxPoint2DDouble* points, - int fillStyle = wxODDEVEN_RULE); + wxPolygonFillMode fillStyle = wxODDEVEN_RULE); /** Draws the path by first filling and then stroking. */ virtual void DrawPath(const wxGraphicsPath& path, - int fillStyle = wxODDEVEN_RULE); + wxPolygonFillMode fillStyle = wxODDEVEN_RULE); /** Draws a rectangle. @@ -451,7 +451,7 @@ public: Fills the path with the current brush. */ virtual void FillPath(const wxGraphicsPath& path, - int fillStyle = wxODDEVEN_RULE) = 0; + wxPolygonFillMode fillStyle = wxODDEVEN_RULE) = 0; /** Returns the native context (CGContextRef for Core Graphics, Graphics diff --git a/interface/wx/html/htmlwin.h b/interface/wx/html/htmlwin.h index 34c231c82c..92409c9af2 100644 --- a/interface/wx/html/htmlwin.h +++ b/interface/wx/html/htmlwin.h @@ -74,7 +74,7 @@ public: - @c image/* MIME types - Plain Text filter (this filter is used if no other filter matches) */ - static void AddFilter(wxHtmlFilter filter); + static void AddFilter(wxHtmlFilter* filter); /** Appends HTML fragment to currently displayed text and refreshes the window. diff --git a/interface/wx/html/winpars.h b/interface/wx/html/winpars.h index 10bb39060f..70227dc3a1 100644 --- a/interface/wx/html/winpars.h +++ b/interface/wx/html/winpars.h @@ -90,7 +90,7 @@ public: /** Adds module() to the list of wxHtmlWinParser tag handler. */ - static void AddModule(wxHtmlTagsModule module); + static void AddModule(wxHtmlTagsModule* module); /** Closes the container, sets actual container to the parent one diff --git a/interface/wx/image.h b/interface/wx/image.h index 0c6af9ef93..a6086356f7 100644 --- a/interface/wx/image.h +++ b/interface/wx/image.h @@ -702,7 +702,7 @@ public: @see wxImageHandler */ - static wxList GetHandlers(); + static wxList& GetHandlers(); /** Gets the height of the image in pixels. diff --git a/interface/wx/intl.h b/interface/wx/intl.h index 6b37c635b0..0f537d4dc0 100644 --- a/interface/wx/intl.h +++ b/interface/wx/intl.h @@ -472,7 +472,7 @@ public: @see GetLanguageInfo() */ - static wxLanguageInfo* FindLanguageInfo(const wxString& locale); + static const wxLanguageInfo* FindLanguageInfo(const wxString& locale); /** Returns the canonical form of current locale name. Canonical form is the diff --git a/interface/wx/log.h b/interface/wx/log.h index 620bd1c2fa..972870e61d 100644 --- a/interface/wx/log.h +++ b/interface/wx/log.h @@ -763,7 +763,7 @@ public: /** Returns the current timestamp format string. */ - static const wxString GetTimestamp(); + static const wxString& GetTimestamp(); /** Returns the current trace mask, see Customization() section for details. @@ -775,7 +775,7 @@ public: @see AddTraceMask(). */ - static const wxArrayString GetTraceMasks(); + static const wxArrayString& GetTraceMasks(); /** Returns whether the verbose mode is currently active. @@ -793,7 +793,7 @@ public: Forwards the message at specified level to the @e DoLog() function of the active log target if there is any, does nothing otherwise. */ - static void OnLog(wxLogLevel level, const wxString& message); + static void OnLog(wxLogLevel level, const wxString& szString, time_t t); /** Remove the @a mask from the list of allowed masks for diff --git a/interface/wx/mimetype.h b/interface/wx/mimetype.h index c5e7b48100..36cea60838 100644 --- a/interface/wx/mimetype.h +++ b/interface/wx/mimetype.h @@ -271,7 +271,7 @@ public: function. */ static wxString ExpandCommand(const wxString& command, - MessageParameters& params); + const MessageParameters& params); /** If the function returns @true, the string pointed to by @a desc is filled diff --git a/interface/wx/object.h b/interface/wx/object.h index 74dba5e619..6f2dde528a 100644 --- a/interface/wx/object.h +++ b/interface/wx/object.h @@ -354,7 +354,7 @@ public: /** Finds the wxClassInfo object for a class with the given @a name. */ - static wxClassInfo* FindClass(wxChar* name); + static wxClassInfo* FindClass(const wxString& className); /** Returns the name of the first base class (@NULL if none). diff --git a/interface/wx/platinfo.h b/interface/wx/platinfo.h index 3e8d768522..a9a2c687eb 100644 --- a/interface/wx/platinfo.h +++ b/interface/wx/platinfo.h @@ -169,7 +169,7 @@ public: Returns the global wxPlatformInfo object, initialized with the values for the currently running platform. */ - static const wxPlatformInfo Get(); + static const wxPlatformInfo& Get(); /** Converts the given string to a wxArchitecture enum value or to diff --git a/interface/wx/process.h b/interface/wx/process.h index c18af8660d..f64eb96774 100644 --- a/interface/wx/process.h +++ b/interface/wx/process.h @@ -202,7 +202,7 @@ public: @see Exists(), wxKill(), @ref page_samples_exec "Exec sample" */ - static wxKillError Kill(int pid, wxSignal signal = wxSIGNONE, + static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN); /** diff --git a/interface/wx/renderer.h b/interface/wx/renderer.h index f4557f9bbd..443169a16e 100644 --- a/interface/wx/renderer.h +++ b/interface/wx/renderer.h @@ -409,7 +409,7 @@ public: /** Return the currently used renderer. */ - static wxRendererNative Get(); + static wxRendererNative& Get(); /** Return the default (native) implementation for this platform -- this is also @@ -417,14 +417,14 @@ public: Set() in which case the return value of this method may be different from the return value of Get(). */ - static wxRendererNative GetDefault(); + static wxRendererNative& GetDefault(); /** Return the generic implementation of the renderer. Under some platforms, this is the default renderer implementation, others have platform-specific default renderer which can be retrieved by calling GetDefault(). */ - static wxRendererNative GetGeneric(); + static wxRendererNative& GetGeneric(); /** Returns the size of a check box. diff --git a/interface/wx/richtext/richtextbuffer.h b/interface/wx/richtext/richtextbuffer.h index f6d6fa55ba..e572433a3c 100644 --- a/interface/wx/richtext/richtextbuffer.h +++ b/interface/wx/richtext/richtextbuffer.h @@ -370,7 +370,7 @@ public: @see SetListStyle(), PromoteList(), NumberList() */ - bool ClearListStyle(const wxRichTextRange& range, + virtual bool ClearListStyle(const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); /** diff --git a/interface/wx/richtext/richtextctrl.h b/interface/wx/richtext/richtextctrl.h index 11a5b60b08..62e926befe 100644 --- a/interface/wx/richtext/richtextctrl.h +++ b/interface/wx/richtext/richtextctrl.h @@ -452,7 +452,7 @@ public: @see SetListStyle(), PromoteList(), NumberList(). */ - bool ClearListStyle(const wxRichTextRange& range, + virtual bool ClearListStyle(const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); /** @@ -1391,10 +1391,10 @@ public: - wxRICHTEXT_SETSTYLE_REMOVE: removes the specified style. Only the style flags are used in this operation. */ - bool SetStyleEx(const wxRichTextRange& range, + virtual bool SetStyleEx(const wxRichTextRange& range, const wxTextAttr& style, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); - bool SetStyleEx(long start, long end, + virtual bool SetStyleEx(const wxRichTextRange& range, const wxTextAttr& style, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); //@} diff --git a/interface/wx/richtext/richtextstyles.h b/interface/wx/richtext/richtextstyles.h index 1a6481f789..ccd99a8a83 100644 --- a/interface/wx/richtext/richtextstyles.h +++ b/interface/wx/richtext/richtextstyles.h @@ -517,10 +517,7 @@ public: form is for convenient setting of the most commonly-used attributes. */ void SetLevelAttributes(int level, const wxTextAttr& attr); - void SetLevelAttributes(int level, int leftIndent, - int leftSubIndent, - int bulletStyle, - const wxString& bulletSymbol = wxEmptyString); + void SetLevelAttributes(int i, const wxTextAttr& attr); //@} }; diff --git a/interface/wx/socket.h b/interface/wx/socket.h index 286c05cd00..88d0071a4f 100644 --- a/interface/wx/socket.h +++ b/interface/wx/socket.h @@ -657,7 +657,7 @@ public: Do not destroy a socket using the delete operator directly; use Destroy() instead. Also, do not create socket objects in the stack. */ - ~wxSocketBase(); + virtual ~wxSocketBase(); /** Destroys the socket safely. @@ -723,14 +723,14 @@ public: @return @true if no error happened, @false otherwise. */ - bool GetLocal(wxSockAddress& addr) const; + virtual bool GetLocal(wxSockAddress& addr) const; /** Return the peer address field of the socket. @return @true if no error happened, @false otherwise. */ - bool GetPeer(wxSockAddress& addr) const; + virtual bool GetPeer(wxSockAddress& addr) const; /** Return the socket timeout in seconds. @@ -752,7 +752,7 @@ public: complete immediately without blocking (unless the @b wxSOCKET_WAITALL flag is set, in which case the operation might still block). */ - bool IsData() const; + bool IsData(); /** Returns @true if the socket is not connected. @@ -837,7 +837,7 @@ public: The application must therefore be prepared to handle socket event messages even after calling Close(). */ - void Close(); + virtual bool Close(); /** Shuts down the writing end of the socket. @@ -1002,7 +1002,7 @@ public: be called for client sockets, if it is, @b bind() is called before @b connect(). */ - bool SetLocal(const wxIPV4address& local); + virtual bool SetLocal(const wxIPV4address& local); /** Set the default socket timeout in seconds. @@ -1011,7 +1011,7 @@ public: functions if you don't specify a wait interval. Initially, the default timeout is 10 minutes. */ - void SetTimeout(int seconds); + void SetTimeout(long seconds); /** Put the specified data into the input queue. diff --git a/interface/wx/stdpaths.h b/interface/wx/stdpaths.h index 5cd13375d7..b72c98bd52 100644 --- a/interface/wx/stdpaths.h +++ b/interface/wx/stdpaths.h @@ -51,7 +51,7 @@ public: /** Returns reference to the unique global standard paths object. */ - static wxStandardPathsBase Get(); + static wxStandardPathsBase& Get(); /** Return the directory containing the system config files. diff --git a/interface/wx/string.h b/interface/wx/string.h index b42f6b8edd..aa7e3d3266 100644 --- a/interface/wx/string.h +++ b/interface/wx/string.h @@ -539,7 +539,7 @@ public: @see FormatV(), Printf() */ - static wxString Format(const wxChar format, ...); + static wxString Format(const wxString& format, ...); /** This static function returns the string containing the result of calling @@ -547,7 +547,7 @@ public: @see Format(), PrintfV() */ - static wxString FormatV(const wxChar format, va_list argptr); + static wxString FormatV(const wxString& format, va_list argptr); /** Returns the number of occurrences of @e ch in the string. diff --git a/interface/wx/textfile.h b/interface/wx/textfile.h index 3547925681..865814685d 100644 --- a/interface/wx/textfile.h +++ b/interface/wx/textfile.h @@ -145,7 +145,7 @@ public: compiling with the Apple Developer Tools) and @c wxTextFileType_Mac under Mac OS (including Mac OS X when compiling with CodeWarrior). */ - static const char* GetEOL(wxTextFileType type = typeDefault); + static const wxChar* GetEOL(wxTextFileType type = wxTextBuffer::typeDefault); /** This method together with GetNextLine() allows more "iterator-like" diff --git a/interface/wx/thread.h b/interface/wx/thread.h index 91e4010691..0985caf1b6 100644 --- a/interface/wx/thread.h +++ b/interface/wx/thread.h @@ -984,7 +984,7 @@ public: Returns the platform specific thread ID of the current thread as a long. This can be used to uniquely identify threads, even if they are not wxThreads. */ - static unsigned long GetCurrentId(); + static wxThreadIdType GetCurrentId(); /** Gets the thread identifier: this is a platform dependent number that uniquely diff --git a/interface/wx/valtext.h b/interface/wx/valtext.h index 0ed1f7e284..c61435b3be 100644 --- a/interface/wx/valtext.h +++ b/interface/wx/valtext.h @@ -98,7 +98,7 @@ public: /** Returns the validator style. */ - long GetStyle() const; + wxTextValidatorStyle GetStyle() const; /** Receives character input from the window and filters it according to diff --git a/interface/wx/window.h b/interface/wx/window.h index 039d34c1f3..71b0f46344 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -657,7 +657,7 @@ public: @see FindWindow() */ - static wxWindow* FindWindowById(long id, wxWindow* parent = NULL); + static wxWindow* FindWindowById(long id, const wxWindow* parent = 0); /** Find a window by its label. @@ -671,7 +671,7 @@ public: @see FindWindow() */ static wxWindow* FindWindowByLabel(const wxString& label, - wxWindow* parent = NULL); + const wxWindow* parent = 0); /** Find a window by its name (as given in a window constructor or Create() @@ -687,7 +687,7 @@ public: @see FindWindow() */ static wxWindow* FindWindowByName(const wxString& name, - wxWindow* parent = NULL); + const wxWindow* parent = 0); /** Sizes the window so that it fits around its subwindows. diff --git a/interface/wx/zipstrm.h b/interface/wx/zipstrm.h index f7cdd400a0..0122fff594 100644 --- a/interface/wx/zipstrm.h +++ b/interface/wx/zipstrm.h @@ -214,7 +214,7 @@ public: The extra field is used to store platform or application specific data. See Pkware's document 'appnote.txt' for information on its format. */ - char* GetExtra() const; + const char* GetExtra() const; size_t GetExtraLen() const; void SetExtra(const char* extra, size_t len); //@} @@ -226,7 +226,7 @@ public: The extra field is used to store platform or application specific data. See Pkware's document 'appnote.txt' for information on its format. */ - char* GetLocalExtra() const; + const char* GetLocalExtra() const; size_t GetLocalExtraLen() const; void SetLocalExtra(const char* extra, size_t len); //@} -- 2.45.2