automated ifacecheck fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-10-27 21:26:54 +00:00
parent 50ec54b656
commit fadc2df682
33 changed files with 145 additions and 151 deletions

View File

@@ -302,7 +302,7 @@ public:
the @a bCase and @a bFromEnd parameters. the @a bCase and @a bFromEnd parameters.
*/ */
int Index(const wxString& sz, bool bCase = true, int Index(const wxString& sz, bool bCase = true,
bool bFromEnd = false); bool bFromEnd = false) const;
/** /**
@warning this function should not be used with sorted arrays because it @warning this function should not be used with sorted arrays because it

View File

@@ -237,15 +237,15 @@ public:
@see wxDataViewItemAttr. @see wxDataViewItemAttr.
*/ */
bool GetAttr(const wxDataViewItem& item, unsigned int col, virtual bool GetAttr(const wxDataViewItem& item, unsigned int col,
wxDataViewItemAttr& attr); wxDataViewItemAttr& attr);
/** /**
Override this so the control can query the child items of an item. Override this so the control can query the child items of an item.
Returns the number of items. Returns the number of items.
*/ */
virtual unsigned int GetChildren(const wxDataViewItem& item, virtual unsigned int GetChildren(const wxDataViewItem& item,
wxDataViewItemArray& children) const; wxDataViewItemArray& children) const = 0;
/** /**
Override this to indicate the number of columns in the model. Override this to indicate the number of columns in the model.
@@ -415,8 +415,8 @@ public:
@see wxDataViewItemAttr. @see wxDataViewItemAttr.
*/ */
bool GetAttr(unsigned int row, unsigned int col, virtual bool GetAttr(unsigned int row, unsigned int col,
wxDataViewItemAttr& attr); wxDataViewItemAttr& attr);
/** /**
Returns the wxDataViewItem at the given @e row. Returns the wxDataViewItem at the given @e row.
@@ -431,8 +431,8 @@ public:
/** /**
Override this to allow getting values from the model. Override this to allow getting values from the model.
*/ */
void GetValue(wxVariant& variant, unsigned int row, virtual void GetValue(wxVariant& variant, unsigned int row,
unsigned int col) const; unsigned int col) const = 0;
/** /**
Call this after if the data has to be read again from the model. Call this after if the data has to be read again from the model.
@@ -481,8 +481,8 @@ public:
/** /**
Called in order to set a value in the model. Called in order to set a value in the model.
*/ */
bool SetValue(const wxVariant& variant, unsigned int row, virtual bool SetValue(const wxVariant& variant, unsigned int row,
unsigned int col); unsigned int col) = 0;
}; };
@@ -882,8 +882,8 @@ public:
/** /**
Call this to ensure that the given item is visible. Call this to ensure that the given item is visible.
*/ */
void EnsureVisible(const wxDataViewItem& item, virtual void EnsureVisible(const wxDataViewItem& item,
const wxDataViewColumn* column = NULL); const wxDataViewColumn* column = NULL);
/** /**
Expands the item. Expands the item.
@@ -919,8 +919,8 @@ public:
/** /**
Returns item rect. Returns item rect.
*/ */
wxRect GetItemRect(const wxDataViewItem& item, virtual wxRect GetItemRect(const wxDataViewItem& item,
const wxDataViewColumn* col = NULL) const; const wxDataViewColumn* col = NULL) const;
/** /**
Returns pointer to the data model associated with the control (if any). Returns pointer to the data model associated with the control (if any).
@@ -946,8 +946,8 @@ public:
/** /**
Hittest. Hittest.
*/ */
void HitTest(const wxPoint& point, wxDataViewItem& item, virtual void HitTest(const wxPoint& point, wxDataViewItem& item,
wxDataViewColumn*& col) const; wxDataViewColumn*& col) const;
/** /**
Return @true if the item is selected. Return @true if the item is selected.
@@ -1029,8 +1029,8 @@ public:
/** /**
Called by owning model. Called by owning model.
*/ */
bool ItemAdded(const wxDataViewItem& parent, virtual bool ItemAdded(const wxDataViewItem& parent,
const wxDataViewItem& item); const wxDataViewItem& item) = 0;
/** /**
Called by owning model. Called by owning model.
@@ -1040,14 +1040,14 @@ public:
/** /**
Called by owning model. Called by owning model.
*/ */
bool ItemDeleted(const wxDataViewItem& parent, virtual bool ItemDeleted(const wxDataViewItem& parent,
const wxDataViewItem& item); const wxDataViewItem& item) = 0;
/** /**
Called by owning model. Called by owning model.
*/ */
bool ItemsAdded(const wxDataViewItem& parent, virtual bool ItemsAdded(const wxDataViewItem& parent,
const wxDataViewItemArray& items); const wxDataViewItemArray& items);
/** /**
Called by owning model. Called by owning model.
@@ -1057,8 +1057,8 @@ public:
/** /**
Called by owning model. Called by owning model.
*/ */
bool ItemsDeleted(const wxDataViewItem& parent, virtual bool ItemsDeleted(const wxDataViewItem& parent,
const wxDataViewItemArray& items); const wxDataViewItemArray& items);
/** /**
Called by owning model. Called by owning model.

View File

@@ -157,8 +157,8 @@ public:
Sets the commands to start up the network and to hang up again. Sets the commands to start up the network and to hang up again.
*/ */
void SetConnectCommand(const wxString& commandDial = "/usr/bin/pon", virtual void SetConnectCommand(const wxString& commandDial = "/usr/bin/pon",
const wxString& commandHangup = "/usr/bin/poff") const; const wxString& commandHangup = "/usr/bin/poff") = 0;
/** /**
Sometimes the built-in logic for determining the online status may Sometimes the built-in logic for determining the online status may

View File

@@ -328,7 +328,7 @@ public:
Return @true to accept the data, or @false to veto the operation. Return @true to accept the data, or @false to veto the operation.
*/ */
virtual bool OnDropFiles(wxCoord x, wxCoord y, virtual bool OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString& filenames); const wxArrayString& filenames) = 0;
}; };

View File

@@ -554,8 +554,9 @@ public:
will have to choose from is sorted or not when shown the choice box will have to choose from is sorted or not when shown the choice box
dialog. Default is @false. dialog. Default is @false.
*/ */
wxDocTemplate* SelectDocumentType(wxDocTemplate** templates, virtual wxDocTemplate* SelectDocumentType(wxDocTemplate** templates,
int noTemplates, bool sort = false); int noTemplates,
bool sort = false);
/** /**
Returns a document template by asking the user (if there is more than Returns a document template by asking the user (if there is more than
@@ -575,8 +576,8 @@ public:
will have to choose from is sorted or not when shown the choice box will have to choose from is sorted or not when shown the choice box
dialog. Default is @false. dialog. Default is @false.
*/ */
wxDocTemplate* SelectViewType(wxDocTemplate** templates, virtual wxDocTemplate* SelectViewType(wxDocTemplate** templates,
int noTemplates, bool sort = false); int noTemplates, bool sort = false);
/** /**
Sets the directory to be displayed to the user when opening a file. Sets the directory to be displayed to the user when opening a file.

View File

@@ -443,7 +443,6 @@ public:
@param location @param location
The absolute location of file. The absolute location of file.
*/ */
virtual wxFSFile* OpenFile(wxFileSystem& fs, virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) = 0;
const wxString& location);
}; };

View File

@@ -614,7 +614,7 @@ public:
See @ref overview_refcount_equality "reference-counted object comparison" for See @ref overview_refcount_equality "reference-counted object comparison" for
more info. more info.
*/ */
bool operator !=(const wxFont& font); bool operator!=(const wxFont& font) const;
/** /**
Equality operator. Equality operator.
@@ -622,7 +622,7 @@ public:
See @ref overview_refcount_equality "reference-counted object comparison" for See @ref overview_refcount_equality "reference-counted object comparison" for
more info. more info.
*/ */
bool operator ==(const wxFont& font); bool operator==(const wxFont& font) const;
/** /**
Assignment operator, using @ref overview_refcount "reference counting". Assignment operator, using @ref overview_refcount "reference counting".

View File

@@ -85,8 +85,8 @@ public:
idea to call this function from the event handlers for repeatedly generated idea to call this function from the event handlers for repeatedly generated
events such as @c EVT_PAINT. events such as @c EVT_PAINT.
*/ */
wxFontEncoding CharsetToEncoding(const wxString& charset, virtual wxFontEncoding CharsetToEncoding(const wxString& charset,
bool interactive = true); bool interactive = true);
/** /**
Get the current font mapper object. If there is no current object, creates one. Get the current font mapper object. If there is no current object, creates one.
@@ -167,8 +167,8 @@ public:
Check whether given encoding is available in given face or not. Check whether given encoding is available in given face or not.
If no facename is given, find @e any font in this encoding. If no facename is given, find @e any font in this encoding.
*/ */
bool IsEncodingAvailable(wxFontEncoding encoding, virtual bool IsEncodingAvailable(wxFontEncoding encoding,
const wxString& facename = wxEmptyString); const wxString& facename = wxEmptyString);
/** /**
Set the current font mapper object and return previous one (may be @NULL). Set the current font mapper object and return previous one (may be @NULL).

View File

@@ -80,8 +80,8 @@ public:
Adds a quadratic Bezier curve from the current point, using a control point and Adds a quadratic Bezier curve from the current point, using a control point and
an end point. an end point.
*/ */
void AddQuadCurveToPoint(wxDouble cx, wxDouble cy, wxDouble x, virtual void AddQuadCurveToPoint(wxDouble cx, wxDouble cy, wxDouble x,
wxDouble y); wxDouble y);
/** /**
Appends a rectangle as a new closed subpath. Appends a rectangle as a new closed subpath.
@@ -347,8 +347,8 @@ public:
Draws the bitmap. In case of a mono bitmap, this is treated as a mask and the Draws the bitmap. In case of a mono bitmap, this is treated as a mask and the
current brushed is used for filling. current brushed is used for filling.
*/ */
void DrawBitmap(const wxBitmap& bmp, wxDouble x, wxDouble y, virtual void DrawBitmap(const wxBitmap& bmp, wxDouble x, wxDouble y,
wxDouble w, wxDouble h); wxDouble w, wxDouble h) = 0;
/** /**
Draws an ellipse. Draws an ellipse.
@@ -358,26 +358,25 @@ public:
/** /**
Draws the icon. Draws the icon.
*/ */
void DrawIcon(const wxIcon& icon, wxDouble x, wxDouble y, virtual void DrawIcon(const wxIcon& icon, wxDouble x, wxDouble y,
wxDouble w, wxDouble h); wxDouble w, wxDouble h) = 0;
/** /**
Draws a polygon. Draws a polygon.
*/ */
void DrawLines(size_t n, const wxPoint2DDouble* points, virtual void DrawLines(size_t n, const wxPoint2DDouble* points,
int fillStyle = wxODDEVEN_RULE); int fillStyle = wxODDEVEN_RULE);
/** /**
Draws the path by first filling and then stroking. Draws the path by first filling and then stroking.
*/ */
void DrawPath(const wxGraphicsPath& path, virtual void DrawPath(const wxGraphicsPath& path,
int fillStyle = wxODDEVEN_RULE); int fillStyle = wxODDEVEN_RULE);
/** /**
Draws a rectangle. Draws a rectangle.
*/ */
void DrawRectangle(wxDouble x, wxDouble y, wxDouble w, virtual void DrawRectangle(wxDouble x, wxDouble y, wxDouble w, wxDouble h);
wxDouble h);
/** /**
Draws a rounded rectangle. Draws a rounded rectangle.
@@ -397,8 +396,8 @@ public:
/** /**
Fills the path with the current brush. Fills the path with the current brush.
*/ */
void FillPath(const wxGraphicsPath& path, virtual void FillPath(const wxGraphicsPath& path,
int fillStyle = wxODDEVEN_RULE); int fillStyle = wxODDEVEN_RULE) = 0;
/** /**
Returns the native context (CGContextRef for Core Graphics, Graphics pointer Returns the native context (CGContextRef for Core Graphics, Graphics pointer
@@ -410,8 +409,8 @@ public:
Fills the @a widths array with the widths from the beginning of Fills the @a widths array with the widths from the beginning of
@a text to the corresponding character of @e text. @a text to the corresponding character of @e text.
*/ */
void GetPartialTextExtents(const wxString& text, virtual void GetPartialTextExtents(const wxString& text,
wxArrayDouble& widths) const; wxArrayDouble& widths) const = 0;
/** /**
Gets the dimensions of the string using the currently selected font. Gets the dimensions of the string using the currently selected font.
@@ -477,8 +476,7 @@ public:
/** /**
Strokes a single line. Strokes a single line.
*/ */
void StrokeLine(wxDouble x1, wxDouble y1, wxDouble x2, virtual void StrokeLine(wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2);
wxDouble y2);
//@{ //@{
/** /**

View File

@@ -486,8 +486,8 @@ public:
/** /**
Creates the actual edit control. Creates the actual edit control.
*/ */
void Create(wxWindow* parent, wxWindowID id, virtual void Create(wxWindow* parent, wxWindowID id,
wxEvtHandler* evtHandler); wxEvtHandler* evtHandler) = 0;
/** /**
Final cleanup. Final cleanup.
@@ -515,8 +515,7 @@ public:
Draws the part of the cell not occupied by the control: the base class Draws the part of the cell not occupied by the control: the base class
version just fills it with background colour from the attribute. version just fills it with background colour from the attribute.
*/ */
void PaintBackground(const wxRect& rectCell, virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr* attr);
wxGridCellAttr* attr);
/** /**
Reset the value in the control back to its starting value. Reset the value in the control back to its starting value.
@@ -817,8 +816,8 @@ public:
/** /**
Get the preferred size of the cell for its contents. Get the preferred size of the cell for its contents.
*/ */
wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, virtual wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
int row, int col); int row, int col) = 0;
}; };

View File

@@ -174,8 +174,8 @@ public:
KeywordSearch() searches only pages listed in @c ".hhc" file(s). KeywordSearch() searches only pages listed in @c ".hhc" file(s).
You should list all pages in the contents file. You should list all pages in the contents file.
*/ */
bool KeywordSearch(const wxString& keyword, virtual bool KeywordSearch(const wxString& keyword,
wxHelpSearchMode mode = wxHELP_SEARCH_ALL); wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
/** /**
Reads the controller's setting (position of window, etc.) Reads the controller's setting (position of window, etc.)

View File

@@ -217,8 +217,7 @@ public:
Returned wxFSFile object is not guaranteed to point to url, it might have Returned wxFSFile object is not guaranteed to point to url, it might have
been redirected! been redirected!
*/ */
virtual wxFSFile* OpenURL(wxHtmlURLType type, virtual wxFSFile* OpenURL(wxHtmlURLType type, const wxString& url) const;
const wxString& url);
/** /**
Proceeds parsing of the document. This is end-user method. You can simply Proceeds parsing of the document. This is end-user method. You can simply

View File

@@ -956,8 +956,8 @@ public:
@param index @param index
See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload. See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
*/ */
bool LoadFile(const wxString& name, const wxString& mimetype, virtual bool LoadFile(const wxString& name, const wxString& mimetype,
int index = -1); int index = -1);
/** /**
@@ -1091,8 +1091,8 @@ public:
@see LoadFile() @see LoadFile()
*/ */
bool SaveFile(wxOutputStream& stream, virtual bool SaveFile(wxOutputStream& stream,
const wxString& mimetype) const; const wxString& mimetype) const;
/** /**
Saves an image in the named file. Saves an image in the named file.
@@ -1124,8 +1124,7 @@ public:
@param mimetype @param mimetype
MIME type. MIME type.
*/ */
bool SaveFile(const wxString& name, virtual bool SaveFile(const wxString& name, const wxString& mimetype) const;
const wxString& mimetype) const;
/** /**
Saves an image in the named file. Saves an image in the named file.

View File

@@ -520,8 +520,8 @@ public:
@remarks Domains are searched in the last to first order, i.e. catalogs @remarks Domains are searched in the last to first order, i.e. catalogs
added later override those added before. added later override those added before.
*/ */
const wxString& GetString(const wxString& origString, virtual const wxString& GetString(const wxString& origString,
const wxString& domain = wxEmptyString) const; const wxString& domain = wxEmptyString) const;
/** /**
Retrieves the translation for a string in all loaded domains unless the @a domain Retrieves the translation for a string in all loaded domains unless the @a domain

View File

@@ -38,7 +38,7 @@ public:
logging them in the log frame (default), @false to only log them in the logging them in the log frame (default), @false to only log them in the
log frame. log frame.
*/ */
wxLogWindow(wxFrame parent, const wxChar title, bool show = true, wxLogWindow(wxWindow* pParent, const wxString& szTitle, bool show = true,
bool passToOld = true); bool passToOld = true);
/** /**
@@ -692,8 +692,7 @@ public:
corresponding to the log level and then calls corresponding to the log level and then calls
DoLogString() with the resulting string. DoLogString() with the resulting string.
*/ */
virtual void DoLog(wxLogLevel level, const wxString& msg, virtual void DoLog(wxLogLevel level, const wxString& msg, time_t timestamp);
time_t timestamp);
/** /**
Called to log the specified string. The timestamp is already included in the Called to log the specified string. The timestamp is already included in the

View File

@@ -151,8 +151,8 @@ public:
@remarks Any special menu codes are stripped out of source and target @remarks Any special menu codes are stripped out of source and target
strings before matching. strings before matching.
*/ */
int FindMenuItem(const wxString& menuString, virtual int FindMenuItem(const wxString& menuString,
const wxString& itemString) const; const wxString& itemString) const;
/** /**
Gets the help string associated with the menu item identifier. Gets the help string associated with the menu item identifier.

View File

@@ -123,8 +123,9 @@ public:
Please see the remarks in SetYesNoLabels() documentation. Please see the remarks in SetYesNoLabels() documentation.
*/ */
bool SetYesNoCancelLabels(const ButtonLabel& yes, const ButtonLabel& no, virtual bool SetYesNoCancelLabels(const ButtonLabel& yes,
const ButtonLabel& cancel); const ButtonLabel& no,
const ButtonLabel& cancel);
/** /**
Overrides the default labels of the Yes and No buttons. Overrides the default labels of the Yes and No buttons.

View File

@@ -189,8 +189,8 @@ public:
@remarks flags has the same meaning as with OnDrawItem(). @remarks flags has the same meaning as with OnDrawItem().
*/ */
void OnDrawBackground(wxDC& dc, const wxRect& rect, int item, virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, int item,
int flags) const; int flags) const;
/** /**
The derived class may implement this function to actually draw the item The derived class may implement this function to actually draw the item
@@ -209,8 +209,8 @@ public:
@param flags @param flags
A combination of the ::wxOwnerDrawnComboBoxPaintingFlags enumeration values. A combination of the ::wxOwnerDrawnComboBoxPaintingFlags enumeration values.
*/ */
void OnDrawItem(wxDC& dc, const wxRect& rect, int item, virtual void OnDrawItem(wxDC& dc, const wxRect& rect, int item,
int flags) const; int flags) const;
/** /**
The derived class may implement this method to return the height of the The derived class may implement this method to return the height of the

View File

@@ -334,7 +334,7 @@ public:
See @ref overview_refcount_equality "reference-counted object comparison" for See @ref overview_refcount_equality "reference-counted object comparison" for
more info. more info.
*/ */
bool operator !=(const wxPen& pen); bool operator!=(const wxPen& pen) const;
/** /**
Assignment operator, using @ref overview_refcount. Assignment operator, using @ref overview_refcount.
@@ -347,7 +347,7 @@ public:
See @ref overview_refcount_equality "reference-counted object comparison" for See @ref overview_refcount_equality "reference-counted object comparison" for
more info. more info.
*/ */
bool operator ==(const wxPen& pen); bool operator==(const wxPen& pen) const;
}; };
/** /**

View File

@@ -411,8 +411,8 @@ public:
context (current printer not set, for example) or the user cancelled printing. context (current printer not set, for example) or the user cancelled printing.
Call GetLastError() to get detailed information about the kind of the error. Call GetLastError() to get detailed information about the kind of the error.
*/ */
bool Print(wxWindow* parent, wxPrintout* printout, virtual bool Print(wxWindow* parent, wxPrintout* printout,
bool prompt = true); bool prompt = true);
/** /**
Invokes the print dialog. Invokes the print dialog.
@@ -429,8 +429,8 @@ public:
/** /**
Default error-reporting function. Default error-reporting function.
*/ */
void ReportError(wxWindow* parent, wxPrintout* printout, virtual void ReportError(wxWindow* parent, wxPrintout* printout,
const wxString& message); const wxString& message);
/** /**
Invokes the print setup dialog. Invokes the print setup dialog.
@@ -621,8 +621,8 @@ public:
four integers. four integers.
@endWxPythonOnly @endWxPythonOnly
*/ */
void GetPageInfo(int* minPage, int* maxPage, int* pageFrom, virtual void GetPageInfo(int* minPage, int* maxPage, int* pageFrom,
int* pageTo); int* pageTo);
/** /**
Returns the size of the printer page in millimetres. Returns the size of the printer page in millimetres.

View File

@@ -328,7 +328,7 @@ public:
see @ref wxCONTROL_FLAGS. see @ref wxCONTROL_FLAGS.
*/ */
virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect,
int flags = 0); int flags = 0) = 0;
/** /**
Draw the header control button (used, for example, by wxListCtrl). Draw the header control button (used, for example, by wxListCtrl).
@@ -372,7 +372,7 @@ public:
the @a win. the @a win.
*/ */
virtual void DrawItemSelectionRect(wxWindow* win, wxDC& dc, virtual void DrawItemSelectionRect(wxWindow* win, wxDC& dc,
const wxRect& rect, int flags = 0); const wxRect& rect, int flags = 0) = 0;
/** /**
Draw a blank push button that looks very similar to wxButton. Draw a blank push button that looks very similar to wxButton.
@@ -387,8 +387,8 @@ public:
Draw the border for sash window: this border must be such that the sash Draw the border for sash window: this border must be such that the sash
drawn by DrawSplitterSash() blends into it well. drawn by DrawSplitterSash() blends into it well.
*/ */
virtual void DrawSplitterBorder(wxWindow* win, wxDC& dc, virtual void DrawSplitterBorder(wxWindow* win, wxDC& dc, const wxRect& rect,
const wxRect& rect, int flags = 0); int flags = 0) = 0;
/** /**
Draw a sash. The @a orient parameter defines whether the sash should be Draw a sash. The @a orient parameter defines whether the sash should be
@@ -404,8 +404,8 @@ public:
To draw an expanded button the @a flags parameter must contain @c wxCONTROL_EXPANDED bit, To draw an expanded button the @a flags parameter must contain @c wxCONTROL_EXPANDED bit,
see @ref wxCONTROL_FLAGS. see @ref wxCONTROL_FLAGS.
*/ */
virtual void DrawTreeItemButton(wxWindow* win, wxDC& dc, virtual void DrawTreeItemButton(wxWindow* win, wxDC& dc, const wxRect& rect,
const wxRect& rect, int flags = 0); int flags = 0) = 0;
/** /**
Return the currently used renderer. Return the currently used renderer.

View File

@@ -576,8 +576,8 @@ public:
to each filter. This can be used to determine the type to pass to LoadFile() to each filter. This can be used to determine the type to pass to LoadFile()
given a selected filter. given a selected filter.
*/ */
wxString GetExtWildcard(bool combine = false, bool save = false, static wxString GetExtWildcard(bool combine = false, bool save = false,
wxArrayInt* types = NULL); wxArrayInt* types = NULL);
/** /**
Returns the list of file handlers. Returns the list of file handlers.
@@ -623,8 +623,8 @@ public:
changed to bold because this is already specified by the paragraph. changed to bold because this is already specified by the paragraph.
However the text colour attributes @e will be changed to show red. However the text colour attributes @e will be changed to show red.
*/ */
bool GetStyleForRange(const wxRichTextRange& range, virtual bool GetStyleForRange(const wxRichTextRange& range,
wxTextAttr& style); wxTextAttr& style);
/** /**
Returns the current style sheet associated with the buffer, if any. Returns the current style sheet associated with the buffer, if any.

View File

@@ -627,8 +627,7 @@ public:
Helper function for extending the selection, returning @true if the selection Helper function for extending the selection, returning @true if the selection
was changed. Selections are in caret positions. was changed. Selections are in caret positions.
*/ */
bool ExtendSelection(long oldPosition, long newPosition, virtual bool ExtendSelection(long oldPosition, long newPosition, int flags);
int flags);
/** /**
Helper function for finding the caret position for the next word. Helper function for finding the caret position for the next word.
@@ -779,8 +778,8 @@ public:
Attributes that differ in value within the range will not be included Attributes that differ in value within the range will not be included
in @a style flags. in @a style flags.
*/ */
bool GetStyleForRange(const wxRichTextRange& range, virtual bool GetStyleForRange(const wxRichTextRange& range,
wxTextAttr& style); wxTextAttr& style);
/** /**
Returns the style sheet associated with the control, if any. Returns the style sheet associated with the control, if any.
@@ -821,8 +820,8 @@ public:
You can use this to implement, for example, bold button updating. You can use this to implement, for example, bold button updating.
@a style must have flags indicating which attributes are of interest. @a style must have flags indicating which attributes are of interest.
*/ */
bool HasCharacterAttributes(const wxRichTextRange& range, virtual bool HasCharacterAttributes(const wxRichTextRange& range,
const wxTextAttr& style) const; const wxTextAttr& style) const;
/** /**
Test if this whole range has paragraph attributes of the specified kind. Test if this whole range has paragraph attributes of the specified kind.
@@ -830,8 +829,8 @@ public:
You can use this to implement, for example, centering button updating. You can use this to implement, for example, centering button updating.
@a style must have flags indicating which attributes are of interest. @a style must have flags indicating which attributes are of interest.
*/ */
bool HasParagraphAttributes(const wxRichTextRange& range, virtual bool HasParagraphAttributes(const wxRichTextRange& range,
const wxTextAttr& style) const; const wxTextAttr& style) const;
/** /**
Returns @true if there is a selection. Returns @true if there is a selection.

View File

@@ -79,8 +79,8 @@ public:
This is a static function that can be used to delete the saved locations This is a static function that can be used to delete the saved locations
from an earlier operation, for example after the user has viewed the HTML file. from an earlier operation, for example after the user has viewed the HTML file.
*/ */
bool DeleteTemporaryImages(int flags, static bool DeleteTemporaryImages(int flags,
const wxArrayString& imageLocations); const wxArrayString& imageLocations);
/** /**
Saves the buffer content to the HTML stream. Saves the buffer content to the HTML stream.

View File

@@ -211,8 +211,8 @@ public:
/** /**
Gets the page information. Gets the page information.
*/ */
void GetPageInfo(int* minPage, int* maxPage, int* selPageFrom, virtual void GetPageInfo(int* minPage, int* maxPage, int* selPageFrom,
int* selPageTo); int* selPageTo);
/** /**
Returns a pointer to the buffer being rendered. Returns a pointer to the buffer being rendered.

View File

@@ -480,7 +480,7 @@ public:
included in the result. included in the result.
*/ */
wxTextAttr GetCombinedStyle(int indent, wxTextAttr GetCombinedStyle(int indent,
wxRichTextStyleSheet* styleSheet = NULL) const; wxRichTextStyleSheet* styleSheet = NULL);
/** /**
This function combines the list style's base attributes and the style for the This function combines the list style's base attributes and the style for the

View File

@@ -1418,8 +1418,8 @@ public:
Returns @true if the child item was found and removed, @false otherwise. Returns @true if the child item was found and removed, @false otherwise.
*/ */
bool Replace(wxWindow* oldwin, wxWindow* newwin, virtual bool Replace(wxWindow* oldwin, wxWindow* newwin,
bool recursive = false); bool recursive = false);
/** /**
Detaches the given @a oldsz from the sizer and replaces it with the Detaches the given @a oldsz from the sizer and replaces it with the
@@ -1433,8 +1433,8 @@ public:
Returns @true if the child item was found and removed, @false otherwise. Returns @true if the child item was found and removed, @false otherwise.
*/ */
bool Replace(wxSizer* oldsz, wxSizer* newsz, virtual bool Replace(wxSizer* oldsz, wxSizer* newsz,
bool recursive = false); bool recursive = false);
/** /**
Detaches the given item at position @a index from the sizer and Detaches the given item at position @a index from the sizer and

View File

@@ -330,8 +330,8 @@ public:
@see SplitVertically(), IsSplit(), Unsplit() @see SplitVertically(), IsSplit(), Unsplit()
*/ */
bool SplitHorizontally(wxWindow* window1, wxWindow* window2, virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2,
int sashPosition = 0); int sashPosition = 0);
/** /**
Initializes the left and right panes of the splitter window. Initializes the left and right panes of the splitter window.
@@ -357,8 +357,8 @@ public:
@see SplitHorizontally(), IsSplit(), Unsplit(). @see SplitHorizontally(), IsSplit(), Unsplit().
*/ */
bool SplitVertically(wxWindow* window1, wxWindow* window2, virtual bool SplitVertically(wxWindow* window1, wxWindow* window2,
int sashPosition = 0); int sashPosition = 0);
/** /**
Unsplits the window. Unsplits the window.

View File

@@ -144,8 +144,8 @@ public:
Return @true if at least some values could be retrieved. Return @true if at least some values could be retrieved.
This function currently is only implemented under Win32 and requires a PDB file. This function currently is only implemented under Win32 and requires a PDB file.
*/ */
bool GetParam(size_t n, wxString* type, wxString* name, virtual bool GetParam(size_t n, wxString* type, wxString* name,
wxString* value) const; wxString* value) const;
/** /**
Return the number of parameters of this function (may return 0 if we Return the number of parameters of this function (may return 0 if we

View File

@@ -1227,7 +1227,7 @@ public:
/** /**
Same as Mid() (substring extraction). Same as Mid() (substring extraction).
*/ */
wxString operator ()(size_t start, size_t len); wxString operator()(size_t start, size_t len) const;
//@{ //@{
/** /**

View File

@@ -269,7 +269,7 @@ public:
@true if operation succeeded, @false if it failed. @true if operation succeeded, @false if it failed.
*/ */
bool Write(wxTextFileType typeNew = wxTextFileType_None, bool Write(wxTextFileType typeNew = wxTextFileType_None,
const wxMBConv& conv = wxConvAuto()) const; const wxMBConv& conv = wxConvAuto());
/** /**
The same as GetLine(). The same as GetLine().

View File

@@ -350,8 +350,8 @@ public:
None. None.
@endWxPythonOnly @endWxPythonOnly
*/ */
bool GetBoundingRect(const wxTreeItemId& item, wxRect& rect, virtual bool GetBoundingRect(const wxTreeItemId& item, wxRect& rect,
bool textOnly = false) const; bool textOnly = false) const;
/** /**
Returns the buttons image list (from which application-defined button Returns the buttons image list (from which application-defined button
@@ -401,8 +401,8 @@ public:
@see GetNextChild(), GetNextSibling() @see GetNextChild(), GetNextSibling()
*/ */
wxTreeItemId GetFirstChild(const wxTreeItemId& item, virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
wxTreeItemIdValue& cookie) const; wxTreeItemIdValue& cookie) const;
/** /**
Returns the first visible item. Returns the first visible item.
@@ -454,8 +454,8 @@ public:
- ::wxTreeItemIcon_SelectedExpanded: to get the selected expanded image - ::wxTreeItemIcon_SelectedExpanded: to get the selected expanded image
(which is shown when an expanded item is currently selected). (which is shown when an expanded item is currently selected).
*/ */
int GetItemImage(const wxTreeItemId& item, virtual int GetItemImage(const wxTreeItemId& item,
wxTreeItemIcon which = wxTreeItemIcon_Normal) const; wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
/** /**
Returns the item's parent. Returns the item's parent.
@@ -509,8 +509,8 @@ public:
@see GetFirstChild() @see GetFirstChild()
*/ */
wxTreeItemId GetNextChild(const wxTreeItemId& item, virtual wxTreeItemId GetNextChild(const wxTreeItemId& item,
wxTreeItemIdValue& cookie) const; wxTreeItemIdValue& cookie) const;
/** /**
Returns the next sibling of the specified item; call GetPrevSibling() Returns the next sibling of the specified item; call GetPrevSibling()
@@ -699,8 +699,8 @@ public:
@see SortChildren() @see SortChildren()
*/ */
int OnCompareItems(const wxTreeItemId& item1, virtual int OnCompareItems(const wxTreeItemId& item1,
const wxTreeItemId& item2); const wxTreeItemId& item2);
/** /**
Appends an item as the first child of @a parent, return a new item id. Appends an item as the first child of @a parent, return a new item id.
@@ -761,8 +761,8 @@ public:
/** /**
Sets the colour of the item's background. Sets the colour of the item's background.
*/ */
void SetItemBackgroundColour(const wxTreeItemId& item, virtual void SetItemBackgroundColour(const wxTreeItemId& item,
const wxColour& col); const wxColour& col);
/** /**
Makes item appear in bold font if @a bold parameter is @true or resets Makes item appear in bold font if @a bold parameter is @true or resets
@@ -790,8 +790,8 @@ public:
(as opposed to a DnD operation within the tree control, which already (as opposed to a DnD operation within the tree control, which already
is implemented internally). is implemented internally).
*/ */
void SetItemDropHighlight(const wxTreeItemId& item, virtual void SetItemDropHighlight(const wxTreeItemId& item,
bool highlight = true); bool highlight = true);
/** /**
Sets the item's font. All items in the tree should have the same height Sets the item's font. All items in the tree should have the same height
@@ -808,15 +808,15 @@ public:
but instead adding them only when needed, thus minimizing memory but instead adding them only when needed, thus minimizing memory
usage and loading time. usage and loading time.
*/ */
void SetItemHasChildren(const wxTreeItemId& item, virtual void SetItemHasChildren(const wxTreeItemId& item,
bool hasChildren = true); bool hasChildren = true);
/** /**
Sets the specified item's image. See GetItemImage() for the description Sets the specified item's image. See GetItemImage() for the description
of the @a which parameter. of the @a which parameter.
*/ */
void SetItemImage(const wxTreeItemId& item, int image, virtual void SetItemImage(const wxTreeItemId& item, int image,
wxTreeItemIcon which = wxTreeItemIcon_Normal); wxTreeItemIcon which = wxTreeItemIcon_Normal);
/** /**
Sets the selected item image (this function is obsolete, use @ref Sets the selected item image (this function is obsolete, use @ref
@@ -842,8 +842,8 @@ public:
/** /**
Sets the colour of the item's text. Sets the colour of the item's text.
*/ */
void SetItemTextColour(const wxTreeItemId& item, virtual void SetItemTextColour(const wxTreeItemId& item,
const wxColour& col); const wxColour& col);
/** /**
If @true is passed, specifies that the control will use a quick If @true is passed, specifies that the control will use a quick

View File

@@ -1809,8 +1809,8 @@ public:
@see UnregisterHotKey() @see UnregisterHotKey()
*/ */
bool RegisterHotKey(int hotkeyId, int modifiers, virtual bool RegisterHotKey(int hotkeyId, int modifiers,
int virtualKeyCode); int virtualKeyCode);
/** /**
Releases mouse input captured with CaptureMouse(). Releases mouse input captured with CaptureMouse().