]> git.saurik.com Git - wxWidgets.git/commitdiff
automated ifacecheck fixes
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 29 Oct 2008 15:34:31 +0000 (15:34 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 29 Oct 2008 15:34:31 +0000 (15:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

42 files changed:
interface/wx/dnd.h
interface/wx/file.h
interface/wx/filedlg.h
interface/wx/fontpicker.h
interface/wx/gdicmn.h
interface/wx/generic/spinctrg.h
interface/wx/glcanvas.h
interface/wx/graphics.h
interface/wx/grid.h
interface/wx/html/helpctrl.h
interface/wx/html/helpdata.h
interface/wx/html/helpfrm.h
interface/wx/html/helpwnd.h
interface/wx/html/htmlcell.h
interface/wx/html/htmlpars.h
interface/wx/html/htmltag.h
interface/wx/html/htmlwin.h
interface/wx/html/htmprint.h
interface/wx/image.h
interface/wx/listctrl.h
interface/wx/mdi.h
interface/wx/mstream.h
interface/wx/richtext/richtextbuffer.h
interface/wx/richtext/richtextctrl.h
interface/wx/richtext/richtextformatdlg.h
interface/wx/richtext/richtexthtml.h
interface/wx/richtext/richtextprint.h
interface/wx/richtext/richtextstyledlg.h
interface/wx/richtext/richtextstyles.h
interface/wx/richtext/richtextsymboldlg.h
interface/wx/sckipc.h
interface/wx/sizer.h
interface/wx/spinbutt.h
interface/wx/splitter.h
interface/wx/statbox.h
interface/wx/statline.h
interface/wx/strconv.h
interface/wx/stream.h
interface/wx/string.h
interface/wx/thread.h
interface/wx/timer.h
interface/wx/txtstrm.h

index 6d71d58d84bb3cce25c2192dfa59453acb795086..f93a5b12ed79628f3194fd7ca8b132a188876e49 100644 (file)
@@ -28,7 +28,7 @@ public:
         See wxDropTarget::OnDrop(). This function is implemented appropriately
         for text, and calls OnDropText().
     */
-    virtual bool OnDrop(long x, long y, const void data, size_t size);
+    virtual bool OnDrop(wxCoord x, wxCoord y);
 
     /**
         Override this function to receive dropped text.
@@ -99,7 +99,7 @@ public:
         associated with this drop target, calling its wxDataObject::SetData()
         method.
     */
-    virtual void GetData();
+    virtual bool GetData();
 
     /**
         Called after OnDrop() returns @true. By default this will usually
@@ -313,7 +313,7 @@ public:
         See wxDropTarget::OnDrop(). This function is implemented appropriately
         for files, and calls OnDropFiles().
     */
-    virtual bool OnDrop(long x, long y, const void data, size_t size);
+    virtual bool OnDrop(wxCoord x, wxCoord y);
 
     /**
         Override this function to receive dropped files.
index 2522be80e1d5b39b0794065d57fd8e538b8badcd..4f693d2dea6b41a1b0b13f2c0f9351665e5d28a1 100644 (file)
@@ -297,7 +297,7 @@ public:
     /**
         Closes the file.
     */
-    void Close();
+    bool Close();
 
     /**
         Creates a file for writing.
@@ -378,7 +378,7 @@ public:
             An OR-combination of wxPosixPermissions enumeration values.
     */
     bool Open(const wxString& filename,
-              wxFile::OpenMode mode = wxFile::read,
+    bool Open(const wxString& filename, wxFile::OpenMode mode = wxFile::read,
               int access = wxS_DEFAULT);
 
     /**
@@ -391,7 +391,7 @@ public:
 
         @return The number of bytes read, or the symbol wxInvalidOffset.
     */
-    size_t Read(void* buffer, size_t count);
+    ssize_t Read(void* buffer, size_t count);
 
     /**
         Seeks to the specified position.
index 5dbe7de000d11958d7cebb1083021a4b5069c7af..a3851926db335cd5cbf1fb3bf98d910f73571535 100644 (file)
@@ -183,7 +183,7 @@ public:
 
         Supported platforms: wxGTK, wxUniv.
     */
-    bool SetExtraControlCreator(t_extraControlCreator creator);
+    bool SetExtraControlCreator(ExtraControlCreatorFunction);
 
     /**
         Sets the default filename.
index 4476d3ce9845f64f53e9d2914c45bb90634018fa..be4b5ba3e7b1bdb093723211e2553e115b0f5768 100644 (file)
@@ -91,7 +91,7 @@ public:
                 const wxSize& size = wxDefaultSize,
                 long style = wxFNTP_DEFAULT_STYLE,
                 const wxValidator& validator = wxDefaultValidator,
-                const wxString& name = "fontpickerctrl");
+                const wxString& name = wxFontPickerCtrlNameStr);
 
     /**
         Returns the maximum point size value allowed for the user-chosen font.
@@ -113,7 +113,7 @@ public:
         (see wxFNTP_USE_TEXTCTRL), it's a good idea to put a limit to the maximum
         font size when huge fonts do not make much sense.
     */
-    void GetMaxPointSize(unsigned int max);
+    unsigned int GetMaxPointSize() const;
 
     /**
         Sets the currently selected font.
index 188ad9382cd63d6d6175b07998bc16c5b3c2ceee..4872365ac3729de2122fa2ce431a8311bf721cb7 100644 (file)
@@ -402,7 +402,7 @@ public:
     /**
         Assignment operator.
     */
-    void operator =(const wxRect& rect);
+    wxRect& operator=(const wxRect& rect);
 
     /**
         Equality operator.
@@ -462,7 +462,7 @@ public:
     /**
         Assignment operator.
     */
-    void operator =(const wxPoint& pt);
+    wxPoint& operator=(const wxPoint& pt);
 
     bool operator ==(const wxPoint& p1, const wxPoint& p2);
     bool operator !=(const wxPoint& p1, const wxPoint& p2);
@@ -757,7 +757,7 @@ public:
     /**
         Assignment operator.
     */
-    void operator =(const wxSize& sz);
+    wxSize& operator=(const wxSize& sz);
 
     bool operator ==(const wxSize& s1, const wxSize& s2);
     bool operator !=(const wxSize& s1, const wxSize& s2);
index c0b7467061d3084994dc45e9641ddefe393acbfc..bf1cb0fb412ede9d00ed9972a27f591a423a8549 100644 (file)
@@ -76,19 +76,18 @@ public:
         Creation function called by the spin control constructor.
         See wxSpinCtrlDouble() for details.
     */
-    bool Create(wxWindow* parent, wxWindowID id = -1,
+    bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
                 const wxString& value = wxEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
-                long style = wxSP_ARROW_KEYS,
-                double min = 0, double max = 100,
+                long style = wxSP_ARROW_KEYS, double min = 0, double max = 100,
                 double initial = 0, double inc = 1,
-                const wxString& name = _T("wxSpinCtrlDouble"));
+                const wxString& name = "wxSpinCtrlDouble");
 
     /**
         Gets the number of digits in the display.
     */
-    unsigned GetDigits() const;
+    unsigned int GetDigits() const;
 
     /**
         Gets the increment value.
@@ -113,7 +112,7 @@ public:
     /**
         Sets the number of digits in the display.
     */
-    void SetDigits(unsigned digits);
+    void SetDigits(unsigned int digits);
 
     /**
         Sets the increment value.
index 9a744d9fb468a21092e31183845627389b37d169..3eefc74a3bfad116c1114351d2d0c68b0e6fd518 100644 (file)
@@ -67,7 +67,7 @@ public:
         RC.SetCurrent(win); and @e win.SetCurrent(RC); are equivalent,
         see wxGLCanvas::SetCurrent.
     */
-    void SetCurrent(const wxGLCanvas& win);
+    virtual bool SetCurrent(const wxGLCanvas& win) const;
 };
 
 /**
@@ -244,7 +244,7 @@ public:
         Sets the current colour for this window (using @c glcolor3f()), using the
         wxWidgets colour database to find a named colour.
     */
-    void SetColour(const wxString& colour);
+    bool SetColour(const wxString& colour);
 
     /**
         Makes the OpenGL state that is represented by the OpenGL rendering context
index fbe23c33c76f8ad2ef6329dc4a86283b9a431e71..491abe5f91ef6c95457ac61cc932b42ee30faa94 100644 (file)
@@ -283,8 +283,8 @@ public:
     /**
         Creates a native graphics font from a wxFont and a text colour.
     */
-    wxGraphicsFont CreateFont(const wxFont& font,
-                              const wxColour& col = wxBLACK) const;
+    virtual wxGraphicsFont CreateFont(const wxFont& font,
+                                      const wxColour& col = *wxBLACK) const;
 
     /**
         Creates a wxGraphicsContext from a native context. This native context must be
@@ -317,9 +317,8 @@ public:
         Creates a native affine transformation matrix from the passed in values. The
         defaults result in an identity matrix.
     */
-    wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
-                                  wxDouble c = 0.0,
-                                  wxDouble d = 1.0,
+    virtual wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
+                                          wxDouble c = 0.0, wxDouble d = 1.0,
                                   wxDouble tx = 0.0,
                                   wxDouble ty = 0.0) const;
 
@@ -565,8 +564,8 @@ public:
     /**
         Creates a native graphics font from a wxFont and a text colour.
     */
-    wxGraphicsFont CreateFont(const wxFont& font,
-                              const wxColour& col = wxBLACK);
+    virtual wxGraphicsFont CreateFont(const wxFont& font,
+                                      const wxColour& col = *wxBLACK) = 0;
 
     /**
         Creates a native brush, having a linear gradient, starting at (x1,y1) with
@@ -583,11 +582,10 @@ public:
         Creates a native affine transformation matrix from the passed in values. The
         defaults result in an identity matrix.
     */
-    wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
-                                  wxDouble c = 0.0,
-                                  wxDouble d = 1.0,
+    virtual wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
+                                          wxDouble c = 0.0, wxDouble d = 1.0,
                                   wxDouble tx = 0.0,
-                                  wxDouble ty = 0.0);
+                                          wxDouble ty = 0.0) = 0;
 
     /**
         Creates a native graphics path which is initially empty.
@@ -739,9 +737,8 @@ public:
         Sets the matrix to the respective values (default values are the identity
         matrix)
     */
-    void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 0.0,
-             wxDouble d = 1.0, wxDouble tx = 0.0,
-             wxDouble ty = 0.0);
+    virtual void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 0.0,
+                     wxDouble d = 1.0, wxDouble tx = 0.0, wxDouble ty = 0.0);
 
     /**
         Applies this matrix to a distance (ie. performs all transforms except
index d3d1cf7db97d5dca8e598fdd9184983e224c3f45..58909bdbd2bca2791a777b7f71c4206cdac7af6e 100644 (file)
@@ -984,27 +984,27 @@ public:
     /**
 
     */
-    const wxColour GetBackgroundColour() const;
+    const wxColour& GetBackgroundColour() const;
 
     /**
 
     */
-    wxGridCellEditor* GetEditor(wxGrid* grid, int row, int col) const;
+    wxGridCellEditor* GetEditor(const wxGrid* grid, int row, int col) const;
 
     /**
 
     */
-    const wxFont GetFont() const;
+    const wxFont& GetFont() const;
 
     /**
 
     */
-    wxGridCellRenderer* GetRenderer(wxGrid* grid, int row, int col) const;
+    wxGridCellRenderer* GetRenderer(const wxGrid* grid, int row, int col) const;
 
     /**
 
     */
-    const wxColour GetTextColour() const;
+    const wxColour& GetTextColour() const;
 
     /**
 
@@ -3013,7 +3013,7 @@ public:
 
         Returns @c wxNOT_FOUND if there is no row at the y position.
     */
-    int YToRow(int y) const;
+    int YToRow(int y, bool clipToMinMax = false) const;
 };
 
 
index 006cc238c53bed137d42dc41fb1531637387b9c8..3e0b5cfeb6b5fa992224b7e2d52bfe341fedd4dd 100644 (file)
@@ -157,12 +157,12 @@ public:
     /**
         Displays help window and focuses contents panel.
     */
-    void DisplayContents();
+    virtual bool DisplayContents();
 
     /**
         Displays help window and focuses index panel.
     */
-    void DisplayIndex();
+    bool DisplayIndex();
 
     /**
         Displays the help window, focuses search panel and starts searching.
@@ -180,8 +180,8 @@ public:
     /**
         Reads the controller's setting (position of window, etc.)
     */
-    void ReadCustomization(wxConfigBase* cfg,
-                           wxString path = wxEmptyString);
+    virtual void ReadCustomization(wxConfigBase* cfg,
+                                   const wxString& path = wxEmptyString);
 
     /**
         Sets the path for storing temporary files - cached binary versions of index and
@@ -220,8 +220,8 @@ public:
     /**
         Stores controllers setting (position of window etc.)
     */
-    void WriteCustomization(wxConfigBase* cfg,
-                            wxString path = wxEmptyString);
+    virtual void WriteCustomization(wxConfigBase* cfg,
+                                    const wxString& path = wxEmptyString);
 };
 
 
index 70e388de71f50e1112a46b0073799108035875b4..cf458f64ee447a89c8a70286b552f23e9dac2293 100644 (file)
@@ -50,17 +50,17 @@ public:
     /**
         Returns array with help books info.
     */
-    const wxHtmlBookRecArray GetBookRecArray();
+    const wxHtmlBookRecArray& GetBookRecArray() const;
 
     /**
         Returns reference to array with contents entries.
     */
-    const wxHtmlHelpDataItems GetContentsArray();
+    const wxHtmlHelpDataItems& GetContentsArray() const;
 
     /**
         Returns reference to array with index entries.
     */
-    const wxHtmlHelpDataItems GetIndexArray();
+    const wxHtmlHelpDataItems& GetIndexArray() const;
 
     /**
         Sets the temporary directory where binary cached versions of MS HTML Workshop
index e469d1a39389068ab1a7f5464ac57c9659757ed4..a53c0ef7f6540de8c47429724bde3c46c7d8364d 100644 (file)
@@ -45,8 +45,9 @@ public:
         for a description of the parameters.
     */
     bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& title = wxEmptyString,
-                int style = wxHF_DEFAULT_STYLE);
+                const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
+                wxConfigBase* config = NULL,
+                const wxString& rootpath = wxEmptyString);
 
     /**
         Returns the help controller associated with the frame.
index 5b8d287d6dc81d69edf5f8eb63f6b85b269a250f..e175f4d14c678039e23fa7c9b9c1d8dccd14f94c 100644 (file)
@@ -67,10 +67,8 @@ public:
     */
     bool Create(wxWindow* parent, wxWindowID id,
                 const wxPoint& pos = wxDefaultPosition,
-                const wxSize& pos = wxDefaultSize,
-                int style = wxTAB_TRAVERSAL|wxBORDER_NONE,
-                int helpStyle = wxHF_DEFAULT_STYLE,
-                wxHtmlHelpData* data = NULL);
+                const wxSize& size = wxDefaultSize, int style = wxTAB_TRAVERSAL|wxBORDER_NONE,
+                int helpStyle = wxHF_DEFAULT_STYLE);
 
     /**
         Creates search panel.
index 34b3c9c3a78097cac5c29957219211b00933bb1c..86f728562a7b8428bea0f377f9fbf0eab87f8fb0 100644 (file)
@@ -100,7 +100,8 @@ public:
         while (container->AdjustPagebreak(&p)) {}
         @endcode
     */
-    virtual bool AdjustPagebreak(int* pagebreak);
+    virtual bool AdjustPagebreak(int* pagebreak,
+                                 wxArrayInt& known_pagebreaks) const;
 
     /**
         Renders the cell.
@@ -121,7 +122,7 @@ public:
             y-coord of the last line visible in window.
             This is used to optimize rendering speed
     */
-    virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
+    virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2, wxHtmlRenderingInfo& info);
 
     /**
         This method is called instead of Draw() when the cell is certainly out of
@@ -138,7 +139,7 @@ public:
                 dc->DrawText("hello", x + m_PosX, y + m_PosY)
             @endcode
     */
-    virtual void DrawInvisible(wxDC& dc, int x, int y);
+    virtual void DrawInvisible(wxDC& cd, int x , int y, wxHtmlRenderingInfo& info);
 
     /**
         Returns pointer to itself if this cell matches condition (or if any of the
@@ -182,7 +183,7 @@ public:
     /**
         Returns unique cell identifier if there is any, the empty string otherwise.
     */
-    virtual wxString GetId() const;
+    const wxString& GetId() const;
 
     /**
         Returns hypertext link if associated with this cell or @NULL otherwise.
@@ -284,13 +285,13 @@ public:
         Sets the next cell in the list. This shouldn't be called by user - it is
         to be used only by wxHtmlContainerCell::InsertCell.
     */
-    void SetNext(wxHtmlCell cell);
+    void SetNext(wxHtmlCell* cell);
 
     /**
         Sets parent container of this cell.
         This is called from wxHtmlContainerCell::InsertCell.
     */
-    void SetParent(wxHtmlContainerCell p);
+    void SetParent(wxHtmlContainerCell* p);
 
     /**
         Sets the cell's position within parent container.
@@ -353,7 +354,7 @@ public:
     /**
         Inserts a new cell into the container.
     */
-    void InsertCell(wxHtmlCell cell);
+    void InsertCell(wxHtmlCell* cell);
 
     /**
         Sets the container's alignment (both horizontal and vertical) according to
index 9d8a5688040842ca133147cad613e089cfb67f34..85c4c67e206d7ada71c6f4a727134376fc940b80 100644 (file)
@@ -71,7 +71,7 @@ public:
         Assigns @a parser to this handler. Each @b instance of handler
         is guaranteed to be called only from the parser.
     */
-    virtual void SetParser(wxHtmlParser parser);
+    virtual void SetParser(wxHtmlParser* parser);
 
 protected:
     /**
@@ -135,7 +135,7 @@ public:
 
         All handlers are deleted on object deletion.
     */
-    virtual void AddTagHandler(wxHtmlTagHandler handler);
+    virtual void AddTagHandler(wxHtmlTagHandler* handler);
 
     /**
         Must be overwritten in derived class.
@@ -184,7 +184,7 @@ public:
     /**
         Returns pointer to the source being parsed.
     */
-    wxString* GetSource();
+    const wxString* GetSource();
 
     /**
         Setups the parser for parsing the @a source string.
@@ -291,7 +291,7 @@ public:
         Sets the virtual file system that will be used to request additional files.
         (For example @c IMG tag handler requests wxFSFile with the image data.)
     */
-    void SetFS(wxFileSystem fs);
+    void SetFS(wxFileSystem* fs);
 
     /**
         Call this function to interrupt parsing from a tag handler.
index e5ef38cb4475c2b128573800397396b73da2fae9..903d23ff3a4321a63333bc7d35f92cbd32c7accf 100644 (file)
@@ -33,7 +33,7 @@ public:
         Example: tag contains \<FONT SIZE=+2 COLOR="#000000"\>.
         Call to tag.GetAllParams() would return @c 'SIZE=+2 COLOR="#000000"'.
     */
-    const wxString GetAllParams() const;
+    wxString GetAllParams() const;
 
     /**
         Returns beginning position of the text @e between this tag and paired
index 50efdf2166c8e446f591bf0b5f09b4090dc43bb5..2aa8bb3c9ef6692d399bb3c24fe12d6efa72d63a 100644 (file)
@@ -229,7 +229,7 @@ public:
         @param path
             Optional path in config tree. If not given current path is used.
     */
-    virtual void ReadCustomization(wxConfigBase cfg,
+    virtual void ReadCustomization(wxConfigBase* cfg,
                                    wxString path = wxEmptyString);
 
     /**
@@ -294,9 +294,8 @@ public:
         wxHTML_FONT_SIZE_2, ..., wxHTML_FONT_SIZE_7.
         Note that they differ among platforms. Default face names are empty strings.
     */
-    void SetFonts(const wxString& normal_face,
-                  const wxString& fixed_face,
-                  const int sizes = NULL);
+    void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+                  const int* sizes = NULL);
 
     /**
         Sets HTML page and display it. This won't @b load the page!!
@@ -364,7 +363,7 @@ public:
         @param path
             Optional path in config tree. If not given, the current path is used.
     */
-    virtual void WriteCustomization(wxConfigBase cfg,
+    virtual void WriteCustomization(wxConfigBase* cfg,
                                     wxString path = wxEmptyString);
 
 protected:
@@ -389,7 +388,7 @@ protected:
 
         @return @true if a link was clicked, @false otherwise.
     */
-    virtual bool OnCellClicked(wxHtmlCell cell, wxCoord x, wxCoord y,
+    virtual bool OnCellClicked(wxHtmlCell* cell, wxCoord x, wxCoord y,
                                const wxMouseEvent& event);
 
     /**
@@ -406,7 +405,7 @@ protected:
         @param y
             The logical y coordinate of the click point
     */
-    virtual void OnCellMouseHover(wxHtmlCell cell, wxCoord x, wxCoord y);
+    virtual void OnCellMouseHover(wxHtmlCell* cell, wxCoord x, wxCoord y);
 };
 
 
@@ -490,6 +489,6 @@ public:
         With this function the event handler can return info to the wxHtmlWindow
         which sent the event.
     */
-    bool SetLinkClicked(bool linkclicked);
+    void SetLinkClicked(bool linkclicked);
 };
 
index 7748f3915e78c02ac013487a64373577e012a944..7bc796b99dc6aa89e859f688e8083016d1f0f88d 100644 (file)
@@ -54,7 +54,8 @@ public:
         - SetHtmlText()
         <b>Render() changes the DC's user scale and does NOT restore it.</b>
     */
-    int Render(int x, int y, int from = 0, int dont_render = false);
+    int Render(int x, int y, wxArrayInt& known_pagebreaks, int from = 0,
+               int dont_render = 0, int to = INT_MAX);
 
     /**
         Assign DC instance to the renderer.
@@ -72,9 +73,8 @@ public:
 
         @see SetSize()
     */
-    void SetFonts(const wxString& normal_face,
-                  const wxString& fixed_face,
-                  const int sizes = NULL);
+    void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+                  const int* sizes = NULL);
 
     /**
         Assign text to the renderer. Render() then draws the text onto DC.
@@ -202,9 +202,8 @@ public:
     /**
         Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
     */
-    void SetFonts(const wxString& normal_face,
-                  const wxString& fixed_face,
-                  const int sizes = NULL);
+    void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+                  const int* sizes = NULL);
 
     /**
         Set page footer. The following macros can be used inside it:
@@ -269,9 +268,8 @@ public:
     /**
         Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
     */
-    void SetFonts(const wxString& normal_face,
-                  const wxString& fixed_face,
-                  const int sizes = NULL);
+    void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+                  const int* sizes = NULL);
 
     /**
         Set page footer. The following macros can be used inside it:
index 72d9a52757f51b583e3eb7f5f036833dcae344c5..f901628f82547b8152e7adaeac515900771edd4e 100644 (file)
@@ -109,8 +109,8 @@ public:
 
         @see wxImage::LoadFile, wxImage::SaveFile, SaveFile()
     */
-    bool LoadFile(wxImage* image, wxInputStream& stream,
-                  bool verbose = true, int index = 0);
+    virtual bool LoadFile(wxImage* image, wxInputStream& stream,
+                          bool verbose = true, int index = -1);
 
     /**
         Saves a image in the output stream.
@@ -124,7 +124,8 @@ public:
 
         @see wxImage::LoadFile, wxImage::SaveFile, LoadFile()
     */
-    bool SaveFile(wxImage* image, wxOutputStream& stream);
+    virtual bool SaveFile(wxImage* image, wxOutputStream& stream,
+                          bool verbose = true);
 
     /**
         Sets the handler extension.
@@ -497,7 +498,7 @@ public:
 
         @return @false if FindFirstUnusedColour returns @false, @true otherwise.
     */
-    bool ConvertAlphaToMask(unsigned char threshold = 128);
+    bool ConvertAlphaToMask(unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD);
 
     /**
         @deprecated
@@ -514,8 +515,7 @@ public:
         when converting to YUV, where every pixel equals
         (R * @a lr) + (G * @a lg) + (B * @a lb).
     */
-    wxImage ConvertToGreyscale(double lr = 0.299, double lg = 0.587,
-                               double lb = 0.114) const;
+    wxImage ConvertToGreyscale(double lr = 0.299, double lg = 0.587, double lb = 1.114) const;
 
     /**
         Returns monochromatic version of the image.
@@ -777,8 +777,8 @@ public:
         Get the current mask colour or find a suitable unused colour that could be
         used as a mask colour. Returns @true if the image currently has a mask.
     */
-    bool GetOrFindMaskColour(unsigned char r, unsigned char g,
-                             unsigned char b) const;
+    bool GetOrFindMaskColour(unsigned char* r, unsigned char* g,
+                             unsigned char* b) const;
 
     /**
         Returns the palette associated with the image.
@@ -818,7 +818,7 @@ public:
     /**
         Converts a color in HSV color space to RGB color space.
     */
-    wxImage::RGBValue HSVtoRGB(const wxImage::HSVValue & hsv);
+    static wxImage::RGBValue HSVtoRGB(const wxImage::HSVValue& hsv);
 
     /**
         Returns @true if this image has alpha channel, @false otherwise.
@@ -882,7 +882,8 @@ public:
         colour if this image has a mask or if this image has alpha channel and alpha
         value of this pixel is strictly less than @a threshold.
     */
-    bool IsTransparent(int x, int y, unsigned char threshold = 128) const;
+    bool IsTransparent(int x, int y,
+                       unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD) const;
 
     /**
         Loads an image from an input stream.
@@ -988,7 +989,7 @@ public:
     /**
         Converts a color in RGB color space to HSV color space.
     */
-    wxImage::HSVValue RGBtoHSV(const wxImage::RGBValue& rgb);
+    static wxImage::HSVValue RGBtoHSV(const wxImage::RGBValue& rgb);
 
     /**
         Finds the handler with the given name, and removes it.
@@ -1019,7 +1020,7 @@ public:
 
         @see Scale()
     */
-    wxImage Rescale(int width, int height,
+    wxImage& Rescale(int width, int height,
                     int quality = wxIMAGE_QUALITY_NORMAL);
 
     /**
@@ -1037,9 +1038,8 @@ public:
 
         @see Size()
     */
-    wxImage Resize(const wxSize& size, const wxPoint& pos,
-                   int red = -1, int green = -1,
-                   int blue = -1);
+    wxImage& Resize(const wxSize& size, const wxPoint& pos, int red = -1,
+                    int green = -1, int blue = -1);
 
     /**
         Rotates the image about the given point, by @a angle radians.
@@ -1349,7 +1349,7 @@ public:
 
         @return Returns 'this' object.
     */
-    wxImage operator =(const wxImage& image);
+    wxImage& operator=(const wxImage& image);
 };
 
 // ============================================================================
index 66acc9a65eb56bd4b98f50e014502a560da5f1e0..ea1f76ef46618af635db6c260ca44f668ae86543 100644 (file)
@@ -252,7 +252,8 @@ public:
         the text control without changes, a @c EVT_LIST_END_LABEL_EDIT event
         will be sent which can be vetoed as well.
     */
-    void EditLabel(long item);
+    wxTextCtrl* EditLabel(long item,
+                          wxClassInfo* textControlClass = CLASSINFO(wxTextCtrl));
 
     /**
         Ensures this item is visible.
@@ -360,7 +361,7 @@ public:
     /**
         Gets the application-defined data associated with this item.
     */
-    long GetItemData(long item) const;
+    wxUIntPtr GetItemData(long item) const;
 
     /**
         Returns the item's font.
@@ -523,7 +524,7 @@ public:
         To compile this feature into wxWidgets library you need to have access to
         commctrl.h of version 4.70 that is provided by Microsoft.
     */
-    long HitTest(const wxPoint& point, int& flags, long* ptrSubItem) const;
+    long HitTest(const wxPoint& point, int& flags, long* ptrSubItem = NULL) const;
 
     /**
         For report view mode (only), inserts a column. For more details, see SetItem().
@@ -664,7 +665,7 @@ public:
         Note that the wxWindow::GetBackgroundColour() function of wxWindow base
         class can be used to retrieve the current background colour.
     */
-    void SetBackgroundColour(const wxColour& col);
+    virtual bool SetBackgroundColour(const wxColour& col);
 
     /**
         Sets information about this column.
@@ -770,7 +771,7 @@ public:
         Sets the unselected and selected images associated with the item.
         The images are indices into the image list associated with the list control.
     */
-    bool SetItemImage(long item, int image);
+    bool SetItemImage(long item, int image, int selImage = -1);
 
     /**
         Sets the unselected and selected images associated with the item.
@@ -780,7 +781,7 @@ public:
         This form is deprecated: @a selImage is not used; use the other
         SetItemImage() overload.
     */
-    bool SetItemImage(long item, int image, int selImage);
+    bool SetItemImage(long item, int image, int selImage = -1);
 
     /**
         Sets the position of the item, in icon or small icon view. Windows only.
@@ -961,7 +962,7 @@ public:
     /**
         An item object, used by some events. See also wxListCtrl::SetItem.
     */
-    const wxListItem GetItem() const;
+    const wxListItem& GetItem() const;
 
     /**
         Key code if the event is a keypress event.
@@ -971,7 +972,7 @@ public:
     /**
         The (new) item label for @c EVT_LIST_END_LABEL_EDIT event.
     */
-    const wxString GetLabel() const;
+    const wxString& GetLabel() const;
 
     /**
         The mask.
@@ -986,7 +987,7 @@ public:
     /**
         The text.
     */
-    const wxString GetText() const;
+    const wxString& GetText() const;
 
     /**
         This method only makes sense for @c EVT_LIST_END_LABEL_EDIT message and
@@ -1255,7 +1256,7 @@ public:
         Returns client data associated with the control.
         Please note that client data is associated with the item and not with subitems.
     */
-    long GetData() const;
+    wxUIntPtr GetData() const;
 
     /**
         Returns the font used to display the item.
index ff39121e6def2f3bbe37b93d5f0b9ef023152d51..75724d0bb005993d69c15d845792730df496056c 100644 (file)
@@ -224,12 +224,10 @@ public:
         Used in two-step frame construction.
         See wxMDIParentFrame() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& title,
+    bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
                 const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
-                const wxString& name = "frame");
+                const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+                const wxString& name = wxFrameNameStr);
 
     /**
         Returns a pointer to the active MDI child, if there is one.
@@ -290,7 +288,7 @@ public:
 
         @see SetToolBar()
     */
-    virtual wxWindow* GetToolBar() const;
+    virtual wxToolBar* GetToolBar() const;
 
     /**
         Returns the current Window menu (added by wxWidgets to the menubar). This
@@ -351,7 +349,7 @@ public:
 
         @see GetToolBar(), GetClientSize()
     */
-    virtual void SetToolBar(wxWindow* toolbar);
+    virtual void SetToolBar(wxToolBar* toolbar);
 
     /**
         Call this to change the current Window menu.
@@ -482,19 +480,18 @@ public:
         Used in two-step frame construction.
         See wxMDIChildFrame() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& title,
+    bool Create(wxMDIParentFrame* parent, wxWindowID id, const wxString& title,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxDEFAULT_FRAME_STYLE,
-                const wxString& name = "frame");
+                const wxString& name = wxFrameNameStr);
 
     /**
         Maximizes this MDI child frame.
 
         @see Activate(), Restore()
     */
-    void Maximize(bool maximize);
+    virtual void Maximize(bool maximize = true);
 
     /**
         Restores this MDI child frame (unmaximizes).
index 889344b929f6c17be117d72ba09bae67a7afaa20..c6c2eacd6cb032cb6f08af0e3d64ceeecadfff84 100644 (file)
@@ -37,7 +37,7 @@ public:
         Allows you to transfer data from the internal buffer of wxMemoryOutputStream
         to an external buffer. @a len specifies the size of the buffer.
     */
-    size_t CopyTo(char* buffer, size_t len) const;
+    size_t CopyTo(void* buffer, size_t len) const;
 
     /**
         Returns the pointer to the stream object used as an internal buffer
index d3f3bb1a1511c34bdc7dbf66dc49e960426a4466..ade84e7cea0208ad42c02201a6b15865ae1e07e2 100644 (file)
@@ -179,7 +179,8 @@ public:
     /**
         Adds a paragraph of text.
     */
-    wxRichTextRange AddParagraph(const wxString& text);
+    virtual wxRichTextRange AddParagraph(const wxString& text,
+                                         wxTextAttr* paraStyle = 0);
 
     /**
         Returns @true if the buffer is currently collapsing commands into a single
@@ -322,7 +323,7 @@ public:
         See BeginNumberedBullet() for an explanation of how indentation is used
         to render the bulleted paragraph.
     */
-    bool BeginSymbolBullet(wxChar symbol, int leftIndent,
+    bool BeginSymbolBullet(const wxString& symbol, int leftIndent,
                            int leftSubIndent,
                            int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL);
 
@@ -539,8 +540,7 @@ public:
     /**
         Finds a handler by filename or, if supplied, type.
     */
-    wxRichTextFileHandler* FindHandlerFilenameOrType(const wxString& filename,
-                                                     int imageType);
+    static wxRichTextFileHandler* FindHandlerFilenameOrType(const wxString& filename, wxRichTextFileType imageType);
 
     /**
         Gets the basic (overall) style.
@@ -550,7 +550,7 @@ public:
         applied (for example, setting the default style to bold will cause
         subsequently inserted text to be bold).
     */
-    const wxTextAttr GetBasicStyle() const;
+    virtual const wxTextAttr& GetBasicStyle() const;
 
     /**
         Gets the collapsed command.
@@ -568,7 +568,7 @@ public:
         (for example, setting the default style to bold will cause subsequently
         inserted text to be bold).
     */
-    const wxTextAttr GetDefaultStyle() const;
+    virtual const wxTextAttr& GetDefaultStyle() const;
 
     /**
         Gets a wildcard incorporating all visible handlers.
@@ -582,7 +582,7 @@ public:
     /**
         Returns the list of file handlers.
     */
-    wxList GetHandlers();
+    static wxList& GetHandlers();
 
     /**
         Returns the object to be used to render certain aspects of the content, such as
@@ -676,20 +676,19 @@ public:
     /**
         Submits a command to insert the given image.
     */
-    bool InsertImageWithUndo(long pos,
-                             const wxRichTextImageBlock& imageBlock,
-                             wxRichTextCtrl* ctrl);
+    bool InsertImageWithUndo(long pos, const wxRichTextImageBlock& imageBlock,
+                             wxRichTextCtrl* ctrl, int flags = 0);
 
     /**
         Submits a command to insert a newline.
     */
-    bool InsertNewlineWithUndo(long pos, wxRichTextCtrl* ctrl);
+    bool InsertNewlineWithUndo(long pos, wxRichTextCtrl* ctrl, int flags = 0);
 
     /**
         Submits a command to insert the given text.
     */
     bool InsertTextWithUndo(long pos, const wxString& text,
-                            wxRichTextCtrl* ctrl);
+                            wxRichTextCtrl* ctrl, int flags = 0);
 
     /**
         Returns @true if the buffer has been modified.
@@ -820,7 +819,7 @@ public:
         This is not cumulative - setting the default style will replace the previous
         default style.
     */
-    void SetDefaultStyle(const wxTextAttr& style);
+    virtual bool SetDefaultStyle(const wxTextAttr& style);
 
     //@{
     /**
@@ -952,7 +951,7 @@ public:
     /**
         Returns the encoding associated with the handler (if any).
     */
-    const wxString GetEncoding() const;
+    const wxString& GetEncoding() const;
 
     /**
         Returns the extension associated with the handler.
index cb2e6fab522880c01ecd8b655dfbfa919c2e07b7..72fc00fd8f17eaad2516f420bc03636d98051b2e 100644 (file)
@@ -114,7 +114,7 @@ public:
     /**
         Gets the range for the current operation.
     */
-    wxRichTextRange GetRange() const;
+    const wxRichTextRange& GetRange() const;
 
     /**
         Sets the character variable.
@@ -389,7 +389,7 @@ public:
         See BeginNumberedBullet() for an explanation of how indentation is used
         to render the bulleted paragraph.
     */
-    bool BeginSymbolBullet(wxChar symbol, int leftIndent,
+    bool BeginSymbolBullet(const wxString& symbol, int leftIndent,
                            int leftSubIndent,
                            int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL);
 
@@ -649,7 +649,7 @@ public:
         applied (for example, setting the default style to bold will cause
         subsequently inserted text to be bold).
     */
-    const wxTextAttr GetBasicStyle() const;
+    virtual const wxTextAttr& GetBasicStyle() const;
 
     //@{
     /**
@@ -678,7 +678,7 @@ public:
         Returns the current default style, which can be used to change how subsequently
         inserted text is displayed.
     */
-    const wxTextAttr GetDefaultStyle() const;
+    virtual const wxTextAttr& GetDefaultStyle() const;
 
     /**
         Gets the size of the buffer beyond which layout is delayed during resizing.
@@ -756,7 +756,7 @@ public:
     /**
         Returns the selection range in character positions. -1, -1 means no selection.
     */
-    const wxRichTextRange GetSelectionRange() const;
+    wxRichTextRange GetSelectionRange() const;
 
     /**
         Returns the text within the current selection range, if any.
index 3fc735b5783bf39852a4370e9c1c49772be1d4b0..3eb9bc722eb3958d2f85a1d3a8cf1440a33151d1 100644 (file)
@@ -163,9 +163,8 @@ public:
         Creation: see wxRichTextFormattingDialog() "the constructor" for
         details about the parameters.
     */
-    bool Create(long flags, wxWindow* parent, const wxString& title,
-                wxWindowID id, const wxPoint& pos = wxDefaultPosition,
-                const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
+    bool Create(long flags, wxWindow* parent,
+                const wxString& title = wxGetTranslation(wxT("Formatting")), wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
 
     //@{
     /**
index b5d9c228fe992daf13dfc2169ecd6f3a3fbfb748..c266e6b13eb2e679e0bf3c8bbda6abb25c245ff4 100644 (file)
@@ -95,12 +95,12 @@ public:
     /**
         Returns the directory used to store temporary image files.
     */
-    const wxString GetTempDir() const;
+    const wxString& GetTempDir() const;
 
     /**
         Returns the image locations for the last operation.
     */
-    const wxArrayString GetTemporaryImageLocations() const;
+    const wxArrayString& GetTemporaryImageLocations() const;
 
     /**
         Reset the file counter, in case, for example, the same names are required each
index a604aa9edaba287ee4568b3ccafc15c17e3e7e20..ae7417c1219ee9b6bc28e4bad7ee3ce2df5ee1a0 100644 (file)
@@ -120,7 +120,7 @@ public:
     /**
         Returns the text colour for drawing the header and footer.
     */
-    const wxColour GetTextColour() const;
+    const wxColour& GetTextColour() const;
 
     /**
         Initialises the object.
@@ -206,7 +206,7 @@ public:
     /**
         Returns the header and footer data associated with the printout.
     */
-    const wxRichTextHeaderFooterData GetHeaderFooterData() const;
+    const wxRichTextHeaderFooterData& GetHeaderFooterData() const;
 
     /**
         Gets the page information.
@@ -242,8 +242,8 @@ public:
     /**
         Sets margins in 10ths of millimetre. Defaults to 1 inch for margins.
     */
-    void SetMargins(int top = 252, int bottom = 252, int left = 252,
-                    int right = 252);
+    void SetMargins(int top = 254, int bottom = 254, int left = 254,
+                    int right = 254);
 
     /**
         Sets the buffer to print. wxRichTextPrintout does not manage this pointer;
@@ -285,7 +285,7 @@ public:
     /**
         Returns the internal wxRichTextHeaderFooterData object.
     */
-    const wxRichTextHeaderFooterData GetHeaderFooterData() const;
+    const wxRichTextHeaderFooterData& GetHeaderFooterData() const;
 
     /**
         A convenience function to get the header text.
@@ -308,7 +308,7 @@ public:
     /**
         Returns the dimensions to be used for the preview window.
     */
-    const wxRect GetPreviewRect() const;
+    const wxRect& GetPreviewRect() const;
 
     /**
         Returns a pointer to the internal print data.
@@ -318,7 +318,7 @@ public:
     /**
         Returns the title of the preview window or printing wait caption.
     */
-    const wxString GetTitle() const;
+    const wxString& GetTitle() const;
 
     /**
         Shows the page setup dialog.
@@ -384,7 +384,7 @@ public:
     /**
         Sets the page setup data.
     */
-    void SetPageSetupData(const wxPageSetupData& pageSetupData);
+    void SetPageSetupData(const wxPageSetupDialogData& pageSetupData);
 
     /**
         Sets the parent window to be used for the preview window and printing
index fac7c75dbde558b4c231e54c9143cc873f7ba62b..9b8787377b8601cc0b298fa10a1fec1977664b5b 100644 (file)
@@ -83,15 +83,9 @@ public:
     /**
         Creates the dialog. See the ctor.
     */
-    bool Create(int flags,
-                wxRichTextStyleSheet* sheet,
-                wxRichTextCtrl* ctrl,
-                wxWindow* parent,
-                wxWindowID id = wxID_ANY,
-                const wxString& caption = _("Style Organiser"),
-                const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX);
+    bool Create(int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl,
+                wxWindow* parent, wxWindowID id = wxID_ANY,
+                const wxString& caption = wxGetTranslation("Style Organiser"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 300), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX);
 
     /**
         Returns @true if the user has opted to restart numbering.
index 43760b46b32762cd830114d559ad49a86a150016..4f99f22c3bc521e52ccef21ede5afef683f6b255 100644 (file)
@@ -134,17 +134,17 @@ public:
     /**
         Returns the style on which this style is based.
     */
-    const wxString GetBaseStyle() const;
+    const wxString& GetBaseStyle() const;
 
     /**
         Returns the style's description.
     */
-    const wxString GetDescription() const;
+    const wxString& GetDescription() const;
 
     /**
         Returns the style name.
     */
-    const wxString GetName() const;
+    const wxString& GetName() const;
 
     //@{
     /**
@@ -158,7 +158,7 @@ public:
         Returns the style attributes combined with the attributes of the specified base
         style, if any. This function works recursively.
     */
-    wxTextAttr GetStyleMergedWithBase(wxRichTextStyleSheet* sheet) const;
+    virtual wxTextAttr GetStyleMergedWithBase(const wxRichTextStyleSheet* sheet) const;
 
     /**
         Sets the name of the style that this style is based on.
@@ -208,7 +208,7 @@ public:
     /**
         Returns the style that should normally follow this style.
     */
-    const wxString GetNextStyle() const;
+    const wxString& GetNextStyle() const;
 
     /**
         Sets the style that should normally follow this style.
@@ -506,7 +506,7 @@ public:
     /**
         Returns @true if the given level has numbered list attributes.
     */
-    int IsNumbered(int level) const;
+    bool IsNumbered(int level) const;
 
     //@{
     /**
@@ -577,17 +577,20 @@ public:
     /**
         Finds a character definition by name.
     */
-    wxRichTextCharacterStyleDefinition* FindCharacterStyle(const wxString& name) const;
+    wxRichTextCharacterStyleDefinition* FindCharacterStyle(const wxString& name,
+                                                           bool recurse = true) const;
 
     /**
         Finds a list definition by name.
     */
-    wxRichTextListStyleDefinition* FindListStyle(const wxString& name) const;
+    wxRichTextListStyleDefinition* FindListStyle(const wxString& name,
+                                                 bool recurse = true) const;
 
     /**
         Finds a paragraph definition by name.
     */
-    wxRichTextParagraphStyleDefinition* FindParagraphStyle(const wxString& name) const;
+    wxRichTextParagraphStyleDefinition* FindParagraphStyle(const wxString& name,
+                                                           bool recurse = true) const;
 
     /**
         Finds a style definition by name.
@@ -607,7 +610,7 @@ public:
     /**
         Returns the style sheet's description.
     */
-    const wxString GetDescription() const;
+    const wxString& GetDescription() const;
 
     /**
         Returns the @e nth list style.
@@ -622,7 +625,7 @@ public:
     /**
         Returns the style sheet's name.
     */
-    const wxString GetName() const;
+    const wxString& GetName() const;
 
     /**
         Returns the @e nth paragraph style.
index 1095e8c05840c75a25220fbe03093dfe52016986..c3e574075169d506ed203be4207ec4fd3b0dbdfa 100644 (file)
@@ -120,15 +120,10 @@ public:
         Creation: see @ref wxSymbolPickerDialog() "the constructor" for details about
         the parameters.
     */
-    bool Create(const wxString& symbol,
-                const wxString& initialFont,
-                const wxString& normalTextFont,
-                wxWindow* parent,
+    bool Create(const wxString& symbol, const wxString& initialFont,
+                const wxString& normalTextFont, wxWindow* parent,
                 wxWindowID id = wxID_ANY,
-                const wxString& title = _("Symbols"),
-                const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX);
+                const wxString& caption = wxGetTranslation("Symbols"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 300), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX);
 
     /**
         Returns the font name (the font reflected in the font list).
@@ -163,7 +158,7 @@ public:
     /**
         Sets the initial/selected font name.
     */
-    void SetFontName(const wxString& value);
+    void SetFontName(wxString value);
 
     /**
         Sets the internal flag indicating that the full Unicode range should be
@@ -174,12 +169,12 @@ public:
     /**
         Sets the name of the font to be used in the absence of a selected font.
     */
-    void SetNormalTextFontName(const wxString& value);
+    void SetNormalTextFontName(wxString value);
 
     /**
         Sets the symbol as a one or zero character string.
     */
-    void SetSymbol(const wxString& value);
+    void SetSymbol(wxString value);
 
     /**
         Sets Unicode display mode.
index db37476d381977864fe084186613d4ac88777597..3eaac132a8035ce8cccac7186db512cd0bc298c4 100644 (file)
@@ -328,7 +328,7 @@ public:
         Returns a character string (actually a pointer to the connection's buffer) if
         successful, @NULL otherwise.
     */
-    const void* Request(const wxString& item, size_t* size,
+    virtual const void* Request(const wxString& item, size_t* size = 0,
                         wxIPCFormat format = wxIPC_TEXT);
 
     /**
index c389cb23759469665c5b91feb661ada5b64b3e7a..f49915df5cb0950ca0d2a92a1ec25fce25e279aa 100644 (file)
@@ -239,7 +239,7 @@ public:
     /**
         If this item is tracking a spacer, return its size.
     */
-    const wxSize GetSpacer() const;
+    wxSize GetSpacer() const;
 
     /**
         Get the userData item attribute.
@@ -406,7 +406,7 @@ public:
 
         @see Top(), Left(), Right(), Bottom(), Centre()
     */
-    wxSizerFlags& Align(int align = 0);
+    wxSizerFlags& Align(int alignment);
 
     /**
         Sets the wxSizerFlags to have a border of a number of pixels specified
@@ -493,7 +493,7 @@ public:
     /**
         Sets the proportion of this wxSizerFlags to @e proportion
     */
-    wxSizerFlags& Proportion(int proportion = 0);
+    wxSizerFlags& Proportion(int proportion);
 
     /**
         Aligns the object to the right, similar for @c Align(wxALIGN_RIGHT).
@@ -655,7 +655,7 @@ public:
 
         @see SetFlexibleDirection(), SetNonFlexibleGrowMode()
     */
-    int GetNonFlexibleGrowMode() const;
+    wxFlexSizerGrowMode GetNonFlexibleGrowMode() const;
 
     /**
         Returns @true if column @a idx is growable.
index 6de0b4799683c23e800c025c579a9b973c4cbf44..2465c5bef430fd6bc178df8fc35220e83e5c4083 100644 (file)
@@ -139,11 +139,10 @@ public:
         Scrollbar creation function called by the spin button constructor.
         See wxSpinButton() for details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
+    bool Create(wxWindow* parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxSP_HORIZONTAL,
-                const wxString& name = "spinButton");
+                const wxSize& size = wxDefaultSize, long style = wxSP_HORIZONTAL,
+                const wxString& name = "wxSpinButton");
 
     /**
         Returns the maximum permissible value.
index 3561831d42326a8e355813f2a8c59150086cf5f6..16b3e22844f72a00dde09576747f14b2dfe7b7d7 100644 (file)
@@ -110,11 +110,10 @@ public:
         Creation function, for two-step construction.
         See wxSplitterWindow() for details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
+    bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
                 const wxPoint& point = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxSP_3D,
-                const wxString& name = "splitterWindow");
+                const wxSize& size = wxDefaultSize, long style = wxSP_3D,
+                const wxString& name = "splitter");
 
     /**
         Returns the current minimum pane size (defaults to zero).
@@ -142,7 +141,7 @@ public:
 
         @see SetSplitMode(), SplitVertically(), SplitHorizontally().
     */
-    int GetSplitMode() const;
+    wxSplitMode GetSplitMode() const;
 
     /**
         Returns the left/top or only pane.
@@ -284,7 +283,7 @@ public:
 
         @see GetSashPosition()
     */
-    void SetSashPosition(int position, const bool redraw = true);
+    void SetSashPosition(int position, bool redraw = true);
 
     /**
         Sets the sash size. Normally, the sash size is determined according to the
index a0aa6ad295143c06a897aea54ff09e5c7a3e1d2e..bf750622b77e7a41c04f46a82a09b7c9224ad0a6 100644 (file)
@@ -74,11 +74,9 @@ public:
         Creates the static box for two-step construction.
         See wxStaticBox() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& label,
+    bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
                 const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = 0,
-                const wxString& name = "staticBox");
+                const wxSize& size = wxDefaultSize, long style = 0,
+                const wxString& name = wxStaticBoxNameStr);
 };
 
index 745e1aeb2129af59d6ece5fc31a42198bd0c5b03..f2830d91cd24bb7ff6671cd29b1eb33e12a0a017 100644 (file)
@@ -69,9 +69,8 @@ public:
     */
     bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
                 const wxPoint& pos = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = 0,
-                const wxString& name = "staticLine");
+                const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL,
+                const wxString& name = wxStaticLineNameStr);
 
     /**
         This static function returns the size which will be given to the smaller
index eb4bafedb3ed2f8a91f2a1dfbe634a047f1cf736..9a40c5cdec70dae425c0d035cfc57bb9d7e9ee5a 100644 (file)
@@ -67,7 +67,7 @@ public:
         This method can be used to allocate the buffer with enough space for the
         trailing @c NUL characters for any encoding.
     */
-    const size_t GetMaxMBNulLen();
+    static size_t GetMaxMBNulLen();
 
     /**
         Convert multibyte string to a wide character one.
@@ -125,8 +125,7 @@ public:
             The number of character written (or which would have been written
             if it were non-@NULL) to @a dst or @c wxCONV_FAILED on error.
     */
-    virtual size_t ToWChar(wchar_t* dst, size_t dstLen,
-                           const char* src,
+    virtual size_t ToWChar(wchar_t* dst, size_t dstLen, const char* src,
                            size_t srcLen = wxNO_LEN) const;
 
     /**
@@ -153,8 +152,7 @@ public:
             The number of character written (or which would have been written
             if it were non-@NULL) to @a dst or @c wxCONV_FAILED on error.
     */
-    virtual size_t FromWChar(char* dst, size_t dstLen,
-                             const wchar_t* src,
+    virtual size_t FromWChar(char* dst, size_t dstLen, const wchar_t* src,
                              size_t srcLen = wxNO_LEN) const;
 
     /**
index 828fad13746ffbe18f15e0bc474a81f8873add48..2b96f1a96a2b457388e8878fdf6f75147187e650 100644 (file)
@@ -212,7 +212,7 @@ public:
     /**
         Returns the current position (counted in bytes) in the stream buffer.
     */
-    wxFileOffset GetIntPosition() const;
+    size_t GetIntPosition() const;
 
     /**
         Returns the amount of bytes read during the last IO call to the parent stream.
@@ -729,7 +729,7 @@ public:
         Returns the first character in the input queue and removes it,
         blocking until it appears if necessary.
     */
-    char GetC();
+    int GetC();
 
     /**
         Returns the last number of bytes read.
index 47c020601bf2cfa6a3b0fa971c123e973392a51c..255058dac2bfe9c6aeda5b3cbcf786a0ae313aa4 100644 (file)
@@ -741,7 +741,7 @@ public:
     /**
         wxWidgets compatibility conversion. Same as c_str().
     */
-    const wxCStrData* GetData() const;
+    const wxCStrData GetData() const;
 
     /**
         Returns a reference to the character at position @e n.
@@ -880,15 +880,14 @@ public:
         Returns a substring starting at @e first, with length @e count, or the rest of
         the string if @a count is the default value.
     */
-    wxString Mid(size_t first, size_t count = wxSTRING_MAXLEN) const;
+    wxString Mid(size_t first, size_t nCount = wxString::npos) const;
 
 
     /**
         Adds @a count copies of @a pad to the beginning, or to the end of the
         string (the default).  Removes spaces from the left or from the right (default).
     */
-    wxString& Pad(size_t count, wxUniChar pad = ' ',
-                 bool fromRight = true);
+    wxString& Pad(size_t count, wxUniChar chPad = ' ', bool fromRight = true);
 
     /**
         Prepends @a str to this string, returning a reference to this string.
@@ -906,14 +905,14 @@ public:
         size. Unfortunately, this function is not available on all platforms and the
         dangerous @e vsprintf() will be used then which may lead to buffer overflows.
     */
-    int Printf(const wxChar* pszFormat, ...);
+    int Printf(const wxString& pszFormat, ...);
 
     /**
         Similar to vprintf. Returns the number of characters written, or an integer
         less than zero
         on error.
     */
-    int PrintfV(const wxChar* pszFormat, va_list argPtr);
+    int PrintfV(const wxString& pszFormat, va_list argPtr);
 
     //@{
     /**
@@ -928,7 +927,7 @@ public:
     /**
         Removes the last character.
     */
-    wxString RemoveLast();
+    wxString& RemoveLast(size_t n = 1);
 
     /**
         Replace first (or all) occurrences of substring with another one.
@@ -952,7 +951,7 @@ public:
         Minimizes the string's memory. This can be useful after a call to
         Alloc() if too much memory were preallocated.
     */
-    void Shrink();
+    bool Shrink();
 
     /**
         This function can be used to test if the string starts with the specified
@@ -1016,7 +1015,7 @@ public:
 
         @see ToLong(), ToULong()
     */
-    bool ToDouble(double val) const;
+    bool ToDouble(double* val) const;
 
     /**
         Attempts to convert the string to a signed integer in base @e base. Returns
@@ -1034,7 +1033,7 @@ public:
 
         @see ToDouble(), ToULong()
     */
-    bool ToLong(long val, int base = 10) const;
+    bool ToLong(long* val, int base = 10) const;
 
     /**
         This is exactly the same as ToLong() but works with 64
@@ -1045,7 +1044,7 @@ public:
 
         @see ToLong(), ToULongLong()
     */
-    bool ToLongLong(wxLongLong_t val, int base = 10) const;
+    bool ToLongLong(wxLongLong_t* val, int base = 10) const;
 
     /**
         Attempts to convert the string to an unsigned integer in base @e base.
@@ -1062,14 +1061,14 @@ public:
 
         @see ToDouble(), ToLong()
     */
-    bool ToULong(unsigned long val, int base = 10) const;
+    bool ToULong(unsigned long* val, int base = 10) const;
 
     /**
         This is exactly the same as ToULong() but works with 64
         bit integer numbers.
         Please see ToLongLong() for additional remarks.
     */
-    bool ToULongLong(wxULongLong_t val, int base = 10) const;
+    bool ToULongLong(wxULongLong_t* val, int base = 10) const;
 
     //@{
     /**
@@ -1138,7 +1137,7 @@ public:
 
         @see wc_str(), utf8_str(), c_str(), mb_str(), fn_str()
     */
-    const wxCStrData c_str() const;
+    wxCStrData c_str() const;
 
     /**
         Returns an object with string data that is implicitly convertible to
index 1038b6120a6ce7fa2abcfe744af2fe5fbf514384..2007458cf054585d7c83e2e6b1e50370dce38fcf 100644 (file)
@@ -322,7 +322,7 @@ public:
         This function is called by wxWidgets itself and should never be called
         directly.
     */
-    virtual ExitCode Entry();
+    virtual ExitCode Entry() = 0;
 
     /**
         Creates a new thread.
@@ -632,7 +632,7 @@ public:
 
         See @ref thread_deletion for a broader explanation of this routine.
     */
-    wxThreadError Delete();
+    wxThreadError Delete(void** rc = NULL);
 
     /**
         Returns the number of system CPUs or -1 if the value is unknown.
@@ -652,7 +652,7 @@ public:
         identifies the thread throughout the system during its existence
         (i.e. the thread identifiers may be reused).
     */
-    unsigned long GetId() const;
+    wxThreadIdType GetId() const;
 
     /**
         Gets the priority of the thread, between zero and 100.
@@ -662,7 +662,7 @@ public:
           - @b WXTHREAD_DEFAULT_PRIORITY: 50
           - @b WXTHREAD_MAX_PRIORITY: 100
     */
-    int GetPriority() const;
+    unsigned int GetPriority() const;
 
     /**
         Returns @true if the thread is alive (i.e. started and not terminating).
@@ -781,7 +781,7 @@ public:
           - @b WXTHREAD_DEFAULT_PRIORITY: 50
           - @b WXTHREAD_MAX_PRIORITY: 100
     */
-    void SetPriority(int priority);
+    void SetPriority(unsigned int priority);
 
     /**
         Pauses the thread execution for the given amount of time.
@@ -822,7 +822,7 @@ public:
 
         See @ref thread_deletion for a broader explanation of this routine.
     */
-    ExitCode Wait() const;
+    ExitCode Wait();
 
     /**
         Give the rest of the thread time slice to the system allowing the other
@@ -873,7 +873,7 @@ protected:
         This function is called by wxWidgets itself and should never be called
         directly.
     */
-    virtual ExitCode Entry();
+    virtual ExitCode Entry() = 0;
 
     /**
         This is a protected function of the wxThread class and thus can only be called
@@ -983,7 +983,7 @@ public:
             - wxSEMA_TIMEOUT: Timeout occurred without receiving semaphore.
             - wxSEMA_MISC_ERROR: Miscellaneous error.
     */
-    wxSemaError WaitTimeout(unsigned longtimeout_millis);
+    wxSemaError WaitTimeout(unsigned long timeout_millis);
 };
 
 
index 6d11c2484c8d183d246cbdca81ee19a450bf3af7..3960006bee49afe8e88b278071a9567248162c67 100644 (file)
@@ -74,7 +74,7 @@ public:
         If non-@NULL this is the event handler which will receive the
         timer events (see wxTimerEvent) when the timer is running.
     */
-    wxEvtHandler GetOwner() const;
+    wxEvtHandler* GetOwner() const;
 
     /**
         Returns @true if the timer is one shot, i.e. if it will stop after firing
@@ -178,6 +178,6 @@ public:
     /**
         Returns the timer object which generated this event.
     */
-    wxTimer GetTimer() const;
+    wxTimer& GetTimer() const;
 };
 
index 1592d75f272a9dd7bb818b94363ed8e538e98712..94ff44ae3a74a02d3f7f2dd0bd2284f6810a049a 100644 (file)
@@ -261,7 +261,7 @@ public:
     /**
         Writes a character to the stream.
     */
-    void PutChar(wxChar c);
+    wxTextOutputStream& PutChar(wxChar c);
 
     /**
         Set the end-of-line mode. One of ::wxEOL_NATIVE, ::wxEOL_DOS,