automated ifacecheck fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-10-29 15:34:31 +00:00
parent 0c61ab6f66
commit 5267aefd85
42 changed files with 214 additions and 241 deletions

View File

@@ -28,7 +28,7 @@ public:
See wxDropTarget::OnDrop(). This function is implemented appropriately See wxDropTarget::OnDrop(). This function is implemented appropriately
for text, and calls OnDropText(). 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. Override this function to receive dropped text.
@@ -99,7 +99,7 @@ public:
associated with this drop target, calling its wxDataObject::SetData() associated with this drop target, calling its wxDataObject::SetData()
method. method.
*/ */
virtual void GetData(); virtual bool GetData();
/** /**
Called after OnDrop() returns @true. By default this will usually Called after OnDrop() returns @true. By default this will usually
@@ -313,7 +313,7 @@ public:
See wxDropTarget::OnDrop(). This function is implemented appropriately See wxDropTarget::OnDrop(). This function is implemented appropriately
for files, and calls OnDropFiles(). 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. Override this function to receive dropped files.

View File

@@ -297,7 +297,7 @@ public:
/** /**
Closes the file. Closes the file.
*/ */
void Close(); bool Close();
/** /**
Creates a file for writing. Creates a file for writing.
@@ -378,7 +378,7 @@ public:
An OR-combination of wxPosixPermissions enumeration values. An OR-combination of wxPosixPermissions enumeration values.
*/ */
bool Open(const wxString& filename, bool Open(const wxString& filename,
wxFile::OpenMode mode = wxFile::read, bool Open(const wxString& filename, wxFile::OpenMode mode = wxFile::read,
int access = wxS_DEFAULT); int access = wxS_DEFAULT);
/** /**
@@ -391,7 +391,7 @@ public:
@return The number of bytes read, or the symbol wxInvalidOffset. @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. Seeks to the specified position.

View File

@@ -183,7 +183,7 @@ public:
Supported platforms: wxGTK, wxUniv. Supported platforms: wxGTK, wxUniv.
*/ */
bool SetExtraControlCreator(t_extraControlCreator creator); bool SetExtraControlCreator(ExtraControlCreatorFunction);
/** /**
Sets the default filename. Sets the default filename.

View File

@@ -91,7 +91,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFNTP_DEFAULT_STYLE, long style = wxFNTP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = "fontpickerctrl"); const wxString& name = wxFontPickerCtrlNameStr);
/** /**
Returns the maximum point size value allowed for the user-chosen font. 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 (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. font size when huge fonts do not make much sense.
*/ */
void GetMaxPointSize(unsigned int max); unsigned int GetMaxPointSize() const;
/** /**
Sets the currently selected font. Sets the currently selected font.

View File

@@ -402,7 +402,7 @@ public:
/** /**
Assignment operator. Assignment operator.
*/ */
void operator =(const wxRect& rect); wxRect& operator=(const wxRect& rect);
/** /**
Equality operator. Equality operator.
@@ -462,7 +462,7 @@ public:
/** /**
Assignment operator. 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);
bool operator !=(const wxPoint& p1, const wxPoint& p2); bool operator !=(const wxPoint& p1, const wxPoint& p2);
@@ -757,7 +757,7 @@ public:
/** /**
Assignment operator. 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);
bool operator !=(const wxSize& s1, const wxSize& s2); bool operator !=(const wxSize& s1, const wxSize& s2);

View File

@@ -76,19 +76,18 @@ public:
Creation function called by the spin control constructor. Creation function called by the spin control constructor.
See wxSpinCtrlDouble() for details. See wxSpinCtrlDouble() for details.
*/ */
bool Create(wxWindow* parent, wxWindowID id = -1, bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxString& value = wxEmptyString, const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSP_ARROW_KEYS, long style = wxSP_ARROW_KEYS, double min = 0, double max = 100,
double min = 0, double max = 100,
double initial = 0, double inc = 1, double initial = 0, double inc = 1,
const wxString& name = _T("wxSpinCtrlDouble")); const wxString& name = "wxSpinCtrlDouble");
/** /**
Gets the number of digits in the display. Gets the number of digits in the display.
*/ */
unsigned GetDigits() const; unsigned int GetDigits() const;
/** /**
Gets the increment value. Gets the increment value.
@@ -113,7 +112,7 @@ public:
/** /**
Sets the number of digits in the display. Sets the number of digits in the display.
*/ */
void SetDigits(unsigned digits); void SetDigits(unsigned int digits);
/** /**
Sets the increment value. Sets the increment value.

View File

@@ -67,7 +67,7 @@ public:
RC.SetCurrent(win); and @e win.SetCurrent(RC); are equivalent, RC.SetCurrent(win); and @e win.SetCurrent(RC); are equivalent,
see wxGLCanvas::SetCurrent. 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 Sets the current colour for this window (using @c glcolor3f()), using the
wxWidgets colour database to find a named colour. 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 Makes the OpenGL state that is represented by the OpenGL rendering context

View File

@@ -283,8 +283,8 @@ public:
/** /**
Creates a native graphics font from a wxFont and a text colour. Creates a native graphics font from a wxFont and a text colour.
*/ */
wxGraphicsFont CreateFont(const wxFont& font, virtual wxGraphicsFont CreateFont(const wxFont& font,
const wxColour& col = wxBLACK) const; const wxColour& col = *wxBLACK) const;
/** /**
Creates a wxGraphicsContext from a native context. This native context must be 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 Creates a native affine transformation matrix from the passed in values. The
defaults result in an identity matrix. defaults result in an identity matrix.
*/ */
wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0, virtual wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
wxDouble c = 0.0, wxDouble c = 0.0, wxDouble d = 1.0,
wxDouble d = 1.0,
wxDouble tx = 0.0, wxDouble tx = 0.0,
wxDouble ty = 0.0) const; wxDouble ty = 0.0) const;
@@ -565,8 +564,8 @@ public:
/** /**
Creates a native graphics font from a wxFont and a text colour. Creates a native graphics font from a wxFont and a text colour.
*/ */
wxGraphicsFont CreateFont(const wxFont& font, virtual wxGraphicsFont CreateFont(const wxFont& font,
const wxColour& col = wxBLACK); const wxColour& col = *wxBLACK) = 0;
/** /**
Creates a native brush, having a linear gradient, starting at (x1,y1) with 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 Creates a native affine transformation matrix from the passed in values. The
defaults result in an identity matrix. defaults result in an identity matrix.
*/ */
wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0, virtual wxGraphicsMatrix CreateMatrix(wxDouble a = 1.0, wxDouble b = 0.0,
wxDouble c = 0.0, wxDouble c = 0.0, wxDouble d = 1.0,
wxDouble d = 1.0,
wxDouble tx = 0.0, wxDouble tx = 0.0,
wxDouble ty = 0.0); wxDouble ty = 0.0) = 0;
/** /**
Creates a native graphics path which is initially empty. 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 Sets the matrix to the respective values (default values are the identity
matrix) matrix)
*/ */
void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 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 d = 1.0, wxDouble tx = 0.0, wxDouble ty = 0.0);
wxDouble ty = 0.0);
/** /**
Applies this matrix to a distance (ie. performs all transforms except Applies this matrix to a distance (ie. performs all transforms except

View 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. 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;
}; };

View File

@@ -157,12 +157,12 @@ public:
/** /**
Displays help window and focuses contents panel. Displays help window and focuses contents panel.
*/ */
void DisplayContents(); virtual bool DisplayContents();
/** /**
Displays help window and focuses index panel. Displays help window and focuses index panel.
*/ */
void DisplayIndex(); bool DisplayIndex();
/** /**
Displays the help window, focuses search panel and starts searching. Displays the help window, focuses search panel and starts searching.
@@ -180,8 +180,8 @@ public:
/** /**
Reads the controller's setting (position of window, etc.) Reads the controller's setting (position of window, etc.)
*/ */
void ReadCustomization(wxConfigBase* cfg, virtual void ReadCustomization(wxConfigBase* cfg,
wxString path = wxEmptyString); const wxString& path = wxEmptyString);
/** /**
Sets the path for storing temporary files - cached binary versions of index and 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.) Stores controllers setting (position of window etc.)
*/ */
void WriteCustomization(wxConfigBase* cfg, virtual void WriteCustomization(wxConfigBase* cfg,
wxString path = wxEmptyString); const wxString& path = wxEmptyString);
}; };

View File

@@ -50,17 +50,17 @@ public:
/** /**
Returns array with help books info. Returns array with help books info.
*/ */
const wxHtmlBookRecArray GetBookRecArray(); const wxHtmlBookRecArray& GetBookRecArray() const;
/** /**
Returns reference to array with contents entries. Returns reference to array with contents entries.
*/ */
const wxHtmlHelpDataItems GetContentsArray(); const wxHtmlHelpDataItems& GetContentsArray() const;
/** /**
Returns reference to array with index entries. 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 Sets the temporary directory where binary cached versions of MS HTML Workshop

View File

@@ -45,8 +45,9 @@ public:
for a description of the parameters. for a description of the parameters.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id,
const wxString& title = wxEmptyString, const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
int style = wxHF_DEFAULT_STYLE); wxConfigBase* config = NULL,
const wxString& rootpath = wxEmptyString);
/** /**
Returns the help controller associated with the frame. Returns the help controller associated with the frame.

View File

@@ -67,10 +67,8 @@ public:
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& pos = wxDefaultSize, const wxSize& size = wxDefaultSize, int style = wxTAB_TRAVERSAL|wxBORDER_NONE,
int style = wxTAB_TRAVERSAL|wxBORDER_NONE, int helpStyle = wxHF_DEFAULT_STYLE);
int helpStyle = wxHF_DEFAULT_STYLE,
wxHtmlHelpData* data = NULL);
/** /**
Creates search panel. Creates search panel.

View File

@@ -100,7 +100,8 @@ public:
while (container->AdjustPagebreak(&p)) {} while (container->AdjustPagebreak(&p)) {}
@endcode @endcode
*/ */
virtual bool AdjustPagebreak(int* pagebreak); virtual bool AdjustPagebreak(int* pagebreak,
wxArrayInt& known_pagebreaks) const;
/** /**
Renders the cell. Renders the cell.
@@ -121,7 +122,7 @@ public:
y-coord of the last line visible in window. y-coord of the last line visible in window.
This is used to optimize rendering speed 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 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) dc->DrawText("hello", x + m_PosX, y + m_PosY)
@endcode @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 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. 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. 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 Sets the next cell in the list. This shouldn't be called by user - it is
to be used only by wxHtmlContainerCell::InsertCell. to be used only by wxHtmlContainerCell::InsertCell.
*/ */
void SetNext(wxHtmlCell cell); void SetNext(wxHtmlCell* cell);
/** /**
Sets parent container of this cell. Sets parent container of this cell.
This is called from wxHtmlContainerCell::InsertCell. This is called from wxHtmlContainerCell::InsertCell.
*/ */
void SetParent(wxHtmlContainerCell p); void SetParent(wxHtmlContainerCell* p);
/** /**
Sets the cell's position within parent container. Sets the cell's position within parent container.
@@ -353,7 +354,7 @@ public:
/** /**
Inserts a new cell into the container. 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 Sets the container's alignment (both horizontal and vertical) according to

View File

@@ -71,7 +71,7 @@ public:
Assigns @a parser to this handler. Each @b instance of handler Assigns @a parser to this handler. Each @b instance of handler
is guaranteed to be called only from the parser. is guaranteed to be called only from the parser.
*/ */
virtual void SetParser(wxHtmlParser parser); virtual void SetParser(wxHtmlParser* parser);
protected: protected:
/** /**
@@ -135,7 +135,7 @@ public:
All handlers are deleted on object deletion. All handlers are deleted on object deletion.
*/ */
virtual void AddTagHandler(wxHtmlTagHandler handler); virtual void AddTagHandler(wxHtmlTagHandler* handler);
/** /**
Must be overwritten in derived class. Must be overwritten in derived class.
@@ -184,7 +184,7 @@ public:
/** /**
Returns pointer to the source being parsed. Returns pointer to the source being parsed.
*/ */
wxString* GetSource(); const wxString* GetSource();
/** /**
Setups the parser for parsing the @a source string. 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. 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.) (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. Call this function to interrupt parsing from a tag handler.

View File

@@ -33,7 +33,7 @@ public:
Example: tag contains \<FONT SIZE=+2 COLOR="#000000"\>. Example: tag contains \<FONT SIZE=+2 COLOR="#000000"\>.
Call to tag.GetAllParams() would return @c '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 Returns beginning position of the text @e between this tag and paired

View File

@@ -229,7 +229,7 @@ public:
@param path @param path
Optional path in config tree. If not given current path is used. 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); wxString path = wxEmptyString);
/** /**
@@ -294,9 +294,8 @@ public:
wxHTML_FONT_SIZE_2, ..., wxHTML_FONT_SIZE_7. wxHTML_FONT_SIZE_2, ..., wxHTML_FONT_SIZE_7.
Note that they differ among platforms. Default face names are empty strings. Note that they differ among platforms. Default face names are empty strings.
*/ */
void SetFonts(const wxString& normal_face, void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const wxString& fixed_face, const int* sizes = NULL);
const int sizes = NULL);
/** /**
Sets HTML page and display it. This won't @b load the page!! Sets HTML page and display it. This won't @b load the page!!
@@ -364,7 +363,7 @@ public:
@param path @param path
Optional path in config tree. If not given, the current path is used. 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); wxString path = wxEmptyString);
protected: protected:
@@ -389,7 +388,7 @@ protected:
@return @true if a link was clicked, @false otherwise. @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); const wxMouseEvent& event);
/** /**
@@ -406,7 +405,7 @@ protected:
@param y @param y
The logical y coordinate of the click point 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 With this function the event handler can return info to the wxHtmlWindow
which sent the event. which sent the event.
*/ */
bool SetLinkClicked(bool linkclicked); void SetLinkClicked(bool linkclicked);
}; };

View File

@@ -54,7 +54,8 @@ public:
- SetHtmlText() - SetHtmlText()
<b>Render() changes the DC's user scale and does NOT restore it.</b> <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. Assign DC instance to the renderer.
@@ -72,9 +73,8 @@ public:
@see SetSize() @see SetSize()
*/ */
void SetFonts(const wxString& normal_face, void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const wxString& fixed_face, const int* sizes = NULL);
const int sizes = NULL);
/** /**
Assign text to the renderer. Render() then draws the text onto DC. 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. Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
*/ */
void SetFonts(const wxString& normal_face, void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const wxString& fixed_face, const int* sizes = NULL);
const int sizes = NULL);
/** /**
Set page footer. The following macros can be used inside it: Set page footer. The following macros can be used inside it:
@@ -269,9 +268,8 @@ public:
/** /**
Sets fonts. See wxHtmlWindow::SetFonts for detailed description. Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
*/ */
void SetFonts(const wxString& normal_face, void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const wxString& fixed_face, const int* sizes = NULL);
const int sizes = NULL);
/** /**
Set page footer. The following macros can be used inside it: Set page footer. The following macros can be used inside it:

View File

@@ -109,8 +109,8 @@ public:
@see wxImage::LoadFile, wxImage::SaveFile, SaveFile() @see wxImage::LoadFile, wxImage::SaveFile, SaveFile()
*/ */
bool LoadFile(wxImage* image, wxInputStream& stream, virtual bool LoadFile(wxImage* image, wxInputStream& stream,
bool verbose = true, int index = 0); bool verbose = true, int index = -1);
/** /**
Saves a image in the output stream. Saves a image in the output stream.
@@ -124,7 +124,8 @@ public:
@see wxImage::LoadFile, wxImage::SaveFile, LoadFile() @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. Sets the handler extension.
@@ -497,7 +498,7 @@ public:
@return @false if FindFirstUnusedColour returns @false, @true otherwise. @return @false if FindFirstUnusedColour returns @false, @true otherwise.
*/ */
bool ConvertAlphaToMask(unsigned char threshold = 128); bool ConvertAlphaToMask(unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD);
/** /**
@deprecated @deprecated
@@ -514,8 +515,7 @@ public:
when converting to YUV, where every pixel equals when converting to YUV, where every pixel equals
(R * @a lr) + (G * @a lg) + (B * @a lb). (R * @a lr) + (G * @a lg) + (B * @a lb).
*/ */
wxImage ConvertToGreyscale(double lr = 0.299, double lg = 0.587, wxImage ConvertToGreyscale(double lr = 0.299, double lg = 0.587, double lb = 1.114) const;
double lb = 0.114) const;
/** /**
Returns monochromatic version of the image. 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 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. used as a mask colour. Returns @true if the image currently has a mask.
*/ */
bool GetOrFindMaskColour(unsigned char r, unsigned char g, bool GetOrFindMaskColour(unsigned char* r, unsigned char* g,
unsigned char b) const; unsigned char* b) const;
/** /**
Returns the palette associated with the image. Returns the palette associated with the image.
@@ -818,7 +818,7 @@ public:
/** /**
Converts a color in HSV color space to RGB color space. 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. 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 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. 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. Loads an image from an input stream.
@@ -988,7 +989,7 @@ public:
/** /**
Converts a color in RGB color space to HSV color space. 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. Finds the handler with the given name, and removes it.
@@ -1019,7 +1020,7 @@ public:
@see Scale() @see Scale()
*/ */
wxImage Rescale(int width, int height, wxImage& Rescale(int width, int height,
int quality = wxIMAGE_QUALITY_NORMAL); int quality = wxIMAGE_QUALITY_NORMAL);
/** /**
@@ -1037,9 +1038,8 @@ public:
@see Size() @see Size()
*/ */
wxImage Resize(const wxSize& size, const wxPoint& pos, wxImage& Resize(const wxSize& size, const wxPoint& pos, int red = -1,
int red = -1, int green = -1, int green = -1, int blue = -1);
int blue = -1);
/** /**
Rotates the image about the given point, by @a angle radians. Rotates the image about the given point, by @a angle radians.
@@ -1349,7 +1349,7 @@ public:
@return Returns 'this' object. @return Returns 'this' object.
*/ */
wxImage operator =(const wxImage& image); wxImage& operator=(const wxImage& image);
}; };
// ============================================================================ // ============================================================================

View File

@@ -252,7 +252,8 @@ public:
the text control without changes, a @c EVT_LIST_END_LABEL_EDIT event the text control without changes, a @c EVT_LIST_END_LABEL_EDIT event
will be sent which can be vetoed as well. 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. Ensures this item is visible.
@@ -360,7 +361,7 @@ public:
/** /**
Gets the application-defined data associated with this item. Gets the application-defined data associated with this item.
*/ */
long GetItemData(long item) const; wxUIntPtr GetItemData(long item) const;
/** /**
Returns the item's font. Returns the item's font.
@@ -523,7 +524,7 @@ public:
To compile this feature into wxWidgets library you need to have access to To compile this feature into wxWidgets library you need to have access to
commctrl.h of version 4.70 that is provided by Microsoft. 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(). 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 Note that the wxWindow::GetBackgroundColour() function of wxWindow base
class can be used to retrieve the current background colour. 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. Sets information about this column.
@@ -770,7 +771,7 @@ public:
Sets the unselected and selected images associated with the item. Sets the unselected and selected images associated with the item.
The images are indices into the image list associated with the list control. 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. 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 This form is deprecated: @a selImage is not used; use the other
SetItemImage() overload. 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. 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. 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. 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. The (new) item label for @c EVT_LIST_END_LABEL_EDIT event.
*/ */
const wxString GetLabel() const; const wxString& GetLabel() const;
/** /**
The mask. The mask.
@@ -986,7 +987,7 @@ public:
/** /**
The text. The text.
*/ */
const wxString GetText() const; const wxString& GetText() const;
/** /**
This method only makes sense for @c EVT_LIST_END_LABEL_EDIT message and 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. Returns client data associated with the control.
Please note that client data is associated with the item and not with subitems. 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. Returns the font used to display the item.

View File

@@ -224,12 +224,10 @@ public:
Used in two-step frame construction. Used in two-step frame construction.
See wxMDIParentFrame() for further details. See wxMDIParentFrame() for further details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = wxFrameNameStr);
const wxString& name = "frame");
/** /**
Returns a pointer to the active MDI child, if there is one. Returns a pointer to the active MDI child, if there is one.
@@ -290,7 +288,7 @@ public:
@see SetToolBar() @see SetToolBar()
*/ */
virtual wxWindow* GetToolBar() const; virtual wxToolBar* GetToolBar() const;
/** /**
Returns the current Window menu (added by wxWidgets to the menubar). This Returns the current Window menu (added by wxWidgets to the menubar). This
@@ -351,7 +349,7 @@ public:
@see GetToolBar(), GetClientSize() @see GetToolBar(), GetClientSize()
*/ */
virtual void SetToolBar(wxWindow* toolbar); virtual void SetToolBar(wxToolBar* toolbar);
/** /**
Call this to change the current Window menu. Call this to change the current Window menu.
@@ -482,19 +480,18 @@ public:
Used in two-step frame construction. Used in two-step frame construction.
See wxMDIChildFrame() for further details. See wxMDIChildFrame() for further details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxMDIParentFrame* parent, wxWindowID id, const wxString& title,
const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = "frame"); const wxString& name = wxFrameNameStr);
/** /**
Maximizes this MDI child frame. Maximizes this MDI child frame.
@see Activate(), Restore() @see Activate(), Restore()
*/ */
void Maximize(bool maximize); virtual void Maximize(bool maximize = true);
/** /**
Restores this MDI child frame (unmaximizes). Restores this MDI child frame (unmaximizes).

View File

@@ -37,7 +37,7 @@ public:
Allows you to transfer data from the internal buffer of wxMemoryOutputStream Allows you to transfer data from the internal buffer of wxMemoryOutputStream
to an external buffer. @a len specifies the size of the buffer. 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 Returns the pointer to the stream object used as an internal buffer

View File

@@ -179,7 +179,8 @@ public:
/** /**
Adds a paragraph of text. 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 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 See BeginNumberedBullet() for an explanation of how indentation is used
to render the bulleted paragraph. to render the bulleted paragraph.
*/ */
bool BeginSymbolBullet(wxChar symbol, int leftIndent, bool BeginSymbolBullet(const wxString& symbol, int leftIndent,
int leftSubIndent, int leftSubIndent,
int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL); int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL);
@@ -539,8 +540,7 @@ public:
/** /**
Finds a handler by filename or, if supplied, type. Finds a handler by filename or, if supplied, type.
*/ */
wxRichTextFileHandler* FindHandlerFilenameOrType(const wxString& filename, static wxRichTextFileHandler* FindHandlerFilenameOrType(const wxString& filename, wxRichTextFileType imageType);
int imageType);
/** /**
Gets the basic (overall) style. Gets the basic (overall) style.
@@ -550,7 +550,7 @@ public:
applied (for example, setting the default style to bold will cause applied (for example, setting the default style to bold will cause
subsequently inserted text to be bold). subsequently inserted text to be bold).
*/ */
const wxTextAttr GetBasicStyle() const; virtual const wxTextAttr& GetBasicStyle() const;
/** /**
Gets the collapsed command. Gets the collapsed command.
@@ -568,7 +568,7 @@ public:
(for example, setting the default style to bold will cause subsequently (for example, setting the default style to bold will cause subsequently
inserted text to be bold). inserted text to be bold).
*/ */
const wxTextAttr GetDefaultStyle() const; virtual const wxTextAttr& GetDefaultStyle() const;
/** /**
Gets a wildcard incorporating all visible handlers. Gets a wildcard incorporating all visible handlers.
@@ -582,7 +582,7 @@ public:
/** /**
Returns the list of file handlers. 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 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. Submits a command to insert the given image.
*/ */
bool InsertImageWithUndo(long pos, bool InsertImageWithUndo(long pos, const wxRichTextImageBlock& imageBlock,
const wxRichTextImageBlock& imageBlock, wxRichTextCtrl* ctrl, int flags = 0);
wxRichTextCtrl* ctrl);
/** /**
Submits a command to insert a newline. 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. Submits a command to insert the given text.
*/ */
bool InsertTextWithUndo(long pos, const wxString& text, bool InsertTextWithUndo(long pos, const wxString& text,
wxRichTextCtrl* ctrl); wxRichTextCtrl* ctrl, int flags = 0);
/** /**
Returns @true if the buffer has been modified. 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 This is not cumulative - setting the default style will replace the previous
default style. 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). Returns the encoding associated with the handler (if any).
*/ */
const wxString GetEncoding() const; const wxString& GetEncoding() const;
/** /**
Returns the extension associated with the handler. Returns the extension associated with the handler.

View File

@@ -114,7 +114,7 @@ public:
/** /**
Gets the range for the current operation. Gets the range for the current operation.
*/ */
wxRichTextRange GetRange() const; const wxRichTextRange& GetRange() const;
/** /**
Sets the character variable. Sets the character variable.
@@ -389,7 +389,7 @@ public:
See BeginNumberedBullet() for an explanation of how indentation is used See BeginNumberedBullet() for an explanation of how indentation is used
to render the bulleted paragraph. to render the bulleted paragraph.
*/ */
bool BeginSymbolBullet(wxChar symbol, int leftIndent, bool BeginSymbolBullet(const wxString& symbol, int leftIndent,
int leftSubIndent, int leftSubIndent,
int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL); int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL);
@@ -649,7 +649,7 @@ public:
applied (for example, setting the default style to bold will cause applied (for example, setting the default style to bold will cause
subsequently inserted text to be bold). 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 Returns the current default style, which can be used to change how subsequently
inserted text is displayed. 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. 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. 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. Returns the text within the current selection range, if any.

View File

@@ -163,9 +163,8 @@ public:
Creation: see wxRichTextFormattingDialog() "the constructor" for Creation: see wxRichTextFormattingDialog() "the constructor" for
details about the parameters. details about the parameters.
*/ */
bool Create(long flags, wxWindow* parent, const wxString& title, bool Create(long flags, wxWindow* parent,
wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxString& title = wxGetTranslation(wxT("Formatting")), wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
//@{ //@{
/** /**

View File

@@ -95,12 +95,12 @@ public:
/** /**
Returns the directory used to store temporary image files. 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. 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 Reset the file counter, in case, for example, the same names are required each

View File

@@ -120,7 +120,7 @@ public:
/** /**
Returns the text colour for drawing the header and footer. Returns the text colour for drawing the header and footer.
*/ */
const wxColour GetTextColour() const; const wxColour& GetTextColour() const;
/** /**
Initialises the object. Initialises the object.
@@ -206,7 +206,7 @@ public:
/** /**
Returns the header and footer data associated with the printout. Returns the header and footer data associated with the printout.
*/ */
const wxRichTextHeaderFooterData GetHeaderFooterData() const; const wxRichTextHeaderFooterData& GetHeaderFooterData() const;
/** /**
Gets the page information. Gets the page information.
@@ -242,8 +242,8 @@ public:
/** /**
Sets margins in 10ths of millimetre. Defaults to 1 inch for margins. Sets margins in 10ths of millimetre. Defaults to 1 inch for margins.
*/ */
void SetMargins(int top = 252, int bottom = 252, int left = 252, void SetMargins(int top = 254, int bottom = 254, int left = 254,
int right = 252); int right = 254);
/** /**
Sets the buffer to print. wxRichTextPrintout does not manage this pointer; Sets the buffer to print. wxRichTextPrintout does not manage this pointer;
@@ -285,7 +285,7 @@ public:
/** /**
Returns the internal wxRichTextHeaderFooterData object. Returns the internal wxRichTextHeaderFooterData object.
*/ */
const wxRichTextHeaderFooterData GetHeaderFooterData() const; const wxRichTextHeaderFooterData& GetHeaderFooterData() const;
/** /**
A convenience function to get the header text. A convenience function to get the header text.
@@ -308,7 +308,7 @@ public:
/** /**
Returns the dimensions to be used for the preview window. 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. Returns a pointer to the internal print data.
@@ -318,7 +318,7 @@ public:
/** /**
Returns the title of the preview window or printing wait caption. Returns the title of the preview window or printing wait caption.
*/ */
const wxString GetTitle() const; const wxString& GetTitle() const;
/** /**
Shows the page setup dialog. Shows the page setup dialog.
@@ -384,7 +384,7 @@ public:
/** /**
Sets the page setup data. 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 Sets the parent window to be used for the preview window and printing

View File

@@ -83,15 +83,9 @@ public:
/** /**
Creates the dialog. See the ctor. Creates the dialog. See the ctor.
*/ */
bool Create(int flags, bool Create(int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl,
wxRichTextStyleSheet* sheet, wxWindow* parent, wxWindowID id = wxID_ANY,
wxRichTextCtrl* ctrl, 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);
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);
/** /**
Returns @true if the user has opted to restart numbering. Returns @true if the user has opted to restart numbering.

View File

@@ -134,17 +134,17 @@ public:
/** /**
Returns the style on which this style is based. Returns the style on which this style is based.
*/ */
const wxString GetBaseStyle() const; const wxString& GetBaseStyle() const;
/** /**
Returns the style's description. Returns the style's description.
*/ */
const wxString GetDescription() const; const wxString& GetDescription() const;
/** /**
Returns the style name. 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 Returns the style attributes combined with the attributes of the specified base
style, if any. This function works recursively. 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. 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. 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. Sets the style that should normally follow this style.
@@ -506,7 +506,7 @@ public:
/** /**
Returns @true if the given level has numbered list attributes. 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. 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. 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. 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. Finds a style definition by name.
@@ -607,7 +610,7 @@ public:
/** /**
Returns the style sheet's description. Returns the style sheet's description.
*/ */
const wxString GetDescription() const; const wxString& GetDescription() const;
/** /**
Returns the @e nth list style. Returns the @e nth list style.
@@ -622,7 +625,7 @@ public:
/** /**
Returns the style sheet's name. Returns the style sheet's name.
*/ */
const wxString GetName() const; const wxString& GetName() const;
/** /**
Returns the @e nth paragraph style. Returns the @e nth paragraph style.

View File

@@ -120,15 +120,10 @@ public:
Creation: see @ref wxSymbolPickerDialog() "the constructor" for details about Creation: see @ref wxSymbolPickerDialog() "the constructor" for details about
the parameters. the parameters.
*/ */
bool Create(const wxString& symbol, bool Create(const wxString& symbol, const wxString& initialFont,
const wxString& initialFont, const wxString& normalTextFont, wxWindow* parent,
const wxString& normalTextFont,
wxWindow* parent,
wxWindowID id = wxID_ANY, wxWindowID id = wxID_ANY,
const wxString& title = _("Symbols"), const wxString& caption = wxGetTranslation("Symbols"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 300), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX);
/** /**
Returns the font name (the font reflected in the font list). Returns the font name (the font reflected in the font list).
@@ -163,7 +158,7 @@ public:
/** /**
Sets the initial/selected font name. 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 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. 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. Sets the symbol as a one or zero character string.
*/ */
void SetSymbol(const wxString& value); void SetSymbol(wxString value);
/** /**
Sets Unicode display mode. Sets Unicode display mode.

View File

@@ -328,7 +328,7 @@ public:
Returns a character string (actually a pointer to the connection's buffer) if Returns a character string (actually a pointer to the connection's buffer) if
successful, @NULL otherwise. 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); wxIPCFormat format = wxIPC_TEXT);
/** /**

View File

@@ -239,7 +239,7 @@ public:
/** /**
If this item is tracking a spacer, return its size. If this item is tracking a spacer, return its size.
*/ */
const wxSize GetSpacer() const; wxSize GetSpacer() const;
/** /**
Get the userData item attribute. Get the userData item attribute.
@@ -406,7 +406,7 @@ public:
@see Top(), Left(), Right(), Bottom(), Centre() @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 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 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). Aligns the object to the right, similar for @c Align(wxALIGN_RIGHT).
@@ -655,7 +655,7 @@ public:
@see SetFlexibleDirection(), SetNonFlexibleGrowMode() @see SetFlexibleDirection(), SetNonFlexibleGrowMode()
*/ */
int GetNonFlexibleGrowMode() const; wxFlexSizerGrowMode GetNonFlexibleGrowMode() const;
/** /**
Returns @true if column @a idx is growable. Returns @true if column @a idx is growable.

View File

@@ -139,11 +139,10 @@ public:
Scrollbar creation function called by the spin button constructor. Scrollbar creation function called by the spin button constructor.
See wxSpinButton() for details. See wxSpinButton() for details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = wxSP_HORIZONTAL,
long style = wxSP_HORIZONTAL, const wxString& name = "wxSpinButton");
const wxString& name = "spinButton");
/** /**
Returns the maximum permissible value. Returns the maximum permissible value.

View File

@@ -110,11 +110,10 @@ public:
Creation function, for two-step construction. Creation function, for two-step construction.
See wxSplitterWindow() for details. See wxSplitterWindow() for details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& point = wxDefaultPosition, const wxPoint& point = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = wxSP_3D,
long style = wxSP_3D, const wxString& name = "splitter");
const wxString& name = "splitterWindow");
/** /**
Returns the current minimum pane size (defaults to zero). Returns the current minimum pane size (defaults to zero).
@@ -142,7 +141,7 @@ public:
@see SetSplitMode(), SplitVertically(), SplitHorizontally(). @see SetSplitMode(), SplitVertically(), SplitHorizontally().
*/ */
int GetSplitMode() const; wxSplitMode GetSplitMode() const;
/** /**
Returns the left/top or only pane. Returns the left/top or only pane.
@@ -284,7 +283,7 @@ public:
@see GetSashPosition() @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 Sets the sash size. Normally, the sash size is determined according to the

View File

@@ -74,11 +74,9 @@ public:
Creates the static box for two-step construction. Creates the static box for two-step construction.
See wxStaticBox() for further details. See wxStaticBox() for further details.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = 0,
long style = 0, const wxString& name = wxStaticBoxNameStr);
const wxString& name = "staticBox");
}; };

View File

@@ -69,9 +69,8 @@ public:
*/ */
bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL,
long style = 0, const wxString& name = wxStaticLineNameStr);
const wxString& name = "staticLine");
/** /**
This static function returns the size which will be given to the smaller This static function returns the size which will be given to the smaller

View File

@@ -67,7 +67,7 @@ public:
This method can be used to allocate the buffer with enough space for the This method can be used to allocate the buffer with enough space for the
trailing @c NUL characters for any encoding. trailing @c NUL characters for any encoding.
*/ */
const size_t GetMaxMBNulLen(); static size_t GetMaxMBNulLen();
/** /**
Convert multibyte string to a wide character one. Convert multibyte string to a wide character one.
@@ -125,8 +125,7 @@ public:
The number of character written (or which would have been written 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. if it were non-@NULL) to @a dst or @c wxCONV_FAILED on error.
*/ */
virtual size_t ToWChar(wchar_t* dst, size_t dstLen, virtual size_t ToWChar(wchar_t* dst, size_t dstLen, const char* src,
const char* src,
size_t srcLen = wxNO_LEN) const; size_t srcLen = wxNO_LEN) const;
/** /**
@@ -153,8 +152,7 @@ public:
The number of character written (or which would have been written 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. if it were non-@NULL) to @a dst or @c wxCONV_FAILED on error.
*/ */
virtual size_t FromWChar(char* dst, size_t dstLen, virtual size_t FromWChar(char* dst, size_t dstLen, const wchar_t* src,
const wchar_t* src,
size_t srcLen = wxNO_LEN) const; size_t srcLen = wxNO_LEN) const;
/** /**

View File

@@ -212,7 +212,7 @@ public:
/** /**
Returns the current position (counted in bytes) in the stream buffer. 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. 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, Returns the first character in the input queue and removes it,
blocking until it appears if necessary. blocking until it appears if necessary.
*/ */
char GetC(); int GetC();
/** /**
Returns the last number of bytes read. Returns the last number of bytes read.

View File

@@ -741,7 +741,7 @@ public:
/** /**
wxWidgets compatibility conversion. Same as c_str(). 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. 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 Returns a substring starting at @e first, with length @e count, or the rest of
the string if @a count is the default value. 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 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). string (the default). Removes spaces from the left or from the right (default).
*/ */
wxString& Pad(size_t count, wxUniChar pad = ' ', wxString& Pad(size_t count, wxUniChar chPad = ' ', bool fromRight = true);
bool fromRight = true);
/** /**
Prepends @a str to this string, returning a reference to this string. 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 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. 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 Similar to vprintf. Returns the number of characters written, or an integer
less than zero less than zero
on error. 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. Removes the last character.
*/ */
wxString RemoveLast(); wxString& RemoveLast(size_t n = 1);
/** /**
Replace first (or all) occurrences of substring with another one. 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 Minimizes the string's memory. This can be useful after a call to
Alloc() if too much memory were preallocated. 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 This function can be used to test if the string starts with the specified
@@ -1016,7 +1015,7 @@ public:
@see ToLong(), ToULong() @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 Attempts to convert the string to a signed integer in base @e base. Returns
@@ -1034,7 +1033,7 @@ public:
@see ToDouble(), ToULong() @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 This is exactly the same as ToLong() but works with 64
@@ -1045,7 +1044,7 @@ public:
@see ToLong(), ToULongLong() @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. Attempts to convert the string to an unsigned integer in base @e base.
@@ -1062,14 +1061,14 @@ public:
@see ToDouble(), ToLong() @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 This is exactly the same as ToULong() but works with 64
bit integer numbers. bit integer numbers.
Please see ToLongLong() for additional remarks. 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() @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 Returns an object with string data that is implicitly convertible to

View File

@@ -322,7 +322,7 @@ public:
This function is called by wxWidgets itself and should never be called This function is called by wxWidgets itself and should never be called
directly. directly.
*/ */
virtual ExitCode Entry(); virtual ExitCode Entry() = 0;
/** /**
Creates a new thread. Creates a new thread.
@@ -632,7 +632,7 @@ public:
See @ref thread_deletion for a broader explanation of this routine. 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. 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 identifies the thread throughout the system during its existence
(i.e. the thread identifiers may be reused). (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. Gets the priority of the thread, between zero and 100.
@@ -662,7 +662,7 @@ public:
- @b WXTHREAD_DEFAULT_PRIORITY: 50 - @b WXTHREAD_DEFAULT_PRIORITY: 50
- @b WXTHREAD_MAX_PRIORITY: 100 - @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). 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_DEFAULT_PRIORITY: 50
- @b WXTHREAD_MAX_PRIORITY: 100 - @b WXTHREAD_MAX_PRIORITY: 100
*/ */
void SetPriority(int priority); void SetPriority(unsigned int priority);
/** /**
Pauses the thread execution for the given amount of time. 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. 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 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 This function is called by wxWidgets itself and should never be called
directly. directly.
*/ */
virtual ExitCode Entry(); virtual ExitCode Entry() = 0;
/** /**
This is a protected function of the wxThread class and thus can only be called 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_TIMEOUT: Timeout occurred without receiving semaphore.
- wxSEMA_MISC_ERROR: Miscellaneous error. - wxSEMA_MISC_ERROR: Miscellaneous error.
*/ */
wxSemaError WaitTimeout(unsigned longtimeout_millis); wxSemaError WaitTimeout(unsigned long timeout_millis);
}; };

View File

@@ -74,7 +74,7 @@ public:
If non-@NULL this is the event handler which will receive the If non-@NULL this is the event handler which will receive the
timer events (see wxTimerEvent) when the timer is running. 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 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. Returns the timer object which generated this event.
*/ */
wxTimer GetTimer() const; wxTimer& GetTimer() const;
}; };

View File

@@ -261,7 +261,7 @@ public:
/** /**
Writes a character to the stream. 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, Set the end-of-line mode. One of ::wxEOL_NATIVE, ::wxEOL_DOS,