git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56536
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
33 files changed:
the @a bCase and @a bFromEnd parameters.
*/
int Index(const wxString& sz, bool bCase = true,
the @a bCase and @a bFromEnd parameters.
*/
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
@see wxDataViewItemAttr.
*/
@see wxDataViewItemAttr.
*/
- bool GetAttr(const wxDataViewItem& item, unsigned int col,
- wxDataViewItemAttr& attr);
+ virtual bool GetAttr(const wxDataViewItem& item, unsigned int col,
+ wxDataViewItemAttr& attr);
/**
Override this so the control can query the child items of an item.
Returns the number of items.
*/
virtual unsigned int GetChildren(const wxDataViewItem& item,
/**
Override this so the control can query the child items of an item.
Returns the number of items.
*/
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.
@see wxDataViewItemAttr.
*/
@see wxDataViewItemAttr.
*/
- bool GetAttr(unsigned int row, unsigned int col,
- wxDataViewItemAttr& attr);
+ virtual bool GetAttr(unsigned int row, unsigned int col,
+ wxDataViewItemAttr& attr);
/**
Returns the wxDataViewItem at the given @e row.
/**
Returns the wxDataViewItem at the given @e row.
/**
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,
- unsigned int col) const;
+ virtual void GetValue(wxVariant& variant, unsigned int row,
+ 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.
/**
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,
- unsigned int col);
+ virtual bool SetValue(const wxVariant& variant, unsigned int row,
+ unsigned int col) = 0;
/**
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,
- const wxDataViewColumn* column = NULL);
+ virtual void EnsureVisible(const wxDataViewItem& item,
+ const wxDataViewColumn* column = NULL);
/**
Returns item rect.
*/
/**
Returns item rect.
*/
- wxRect GetItemRect(const wxDataViewItem& item,
- const wxDataViewColumn* col = NULL) const;
+ virtual wxRect GetItemRect(const wxDataViewItem& item,
+ 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).
- void HitTest(const wxPoint& point, wxDataViewItem& item,
- wxDataViewColumn*& col) const;
+ virtual void HitTest(const wxPoint& point, wxDataViewItem& item,
+ wxDataViewColumn*& col) const;
/**
Return @true if the item is selected.
/**
Return @true if the item is selected.
/**
Called by owning model.
*/
/**
Called by owning model.
*/
- bool ItemAdded(const wxDataViewItem& parent,
- const wxDataViewItem& item);
+ virtual bool ItemAdded(const wxDataViewItem& parent,
+ const wxDataViewItem& item) = 0;
/**
Called by owning model.
/**
Called by owning model.
/**
Called by owning model.
*/
/**
Called by owning model.
*/
- bool ItemDeleted(const wxDataViewItem& parent,
- const wxDataViewItem& item);
+ virtual bool ItemDeleted(const wxDataViewItem& parent,
+ const wxDataViewItem& item) = 0;
/**
Called by owning model.
*/
/**
Called by owning model.
*/
- bool ItemsAdded(const wxDataViewItem& parent,
- const wxDataViewItemArray& items);
+ virtual bool ItemsAdded(const wxDataViewItem& parent,
+ const wxDataViewItemArray& items);
/**
Called by owning model.
/**
Called by owning model.
/**
Called by owning model.
*/
/**
Called by owning model.
*/
- bool ItemsDeleted(const wxDataViewItem& parent,
- const wxDataViewItemArray& items);
+ virtual bool ItemsDeleted(const wxDataViewItem& parent,
+ const wxDataViewItemArray& items);
/**
Called by owning model.
/**
Called by owning model.
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",
- const wxString& commandHangup = "/usr/bin/poff") const;
+ virtual void SetConnectCommand(const wxString& commandDial = "/usr/bin/pon",
+ 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
Return @true to accept the data, or @false to veto the operation.
*/
virtual bool OnDropFiles(wxCoord x, wxCoord y,
Return @true to accept the data, or @false to veto the operation.
*/
virtual bool OnDropFiles(wxCoord x, wxCoord y,
- const wxArrayString& filenames);
+ const wxArrayString& filenames) = 0;
will have to choose from is sorted or not when shown the choice box
dialog. Default is @false.
*/
will have to choose from is sorted or not when shown the choice box
dialog. Default is @false.
*/
- wxDocTemplate* SelectDocumentType(wxDocTemplate** templates,
- int noTemplates, bool sort = false);
+ virtual wxDocTemplate* SelectDocumentType(wxDocTemplate** templates,
+ 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
will have to choose from is sorted or not when shown the choice box
dialog. Default is @false.
*/
will have to choose from is sorted or not when shown the choice box
dialog. Default is @false.
*/
- wxDocTemplate* SelectViewType(wxDocTemplate** templates,
- int noTemplates, bool sort = false);
+ virtual wxDocTemplate* SelectViewType(wxDocTemplate** templates,
+ 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.
@param location
The absolute location of file.
*/
@param location
The absolute location of file.
*/
- virtual wxFSFile* OpenFile(wxFileSystem& fs,
- const wxString& location);
+ virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) = 0;
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
- bool operator !=(const wxFont& font);
+ bool operator!=(const wxFont& font) const;
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
See @ref overview_refcount_equality "reference-counted object comparison" for
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".
idea to call this function from the event handlers for repeatedly generated
events such as @c EVT_PAINT.
*/
idea to call this function from the event handlers for repeatedly generated
events such as @c EVT_PAINT.
*/
- wxFontEncoding CharsetToEncoding(const wxString& charset,
- bool interactive = true);
+ virtual wxFontEncoding CharsetToEncoding(const wxString& charset,
+ 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.
Check whether given encoding is available in given face or not.
If no facename is given, find @e any font in this encoding.
*/
Check whether given encoding is available in given face or not.
If no facename is given, find @e any font in this encoding.
*/
- bool IsEncodingAvailable(wxFontEncoding encoding,
- const wxString& facename = wxEmptyString);
+ virtual bool IsEncodingAvailable(wxFontEncoding encoding,
+ 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).
Adds a quadratic Bezier curve from the current point, using a control point and
an end point.
*/
Adds a quadratic Bezier curve from the current point, using a control point and
an end point.
*/
- void AddQuadCurveToPoint(wxDouble cx, wxDouble cy, wxDouble x,
- wxDouble y);
+ virtual void AddQuadCurveToPoint(wxDouble cx, wxDouble cy, wxDouble x,
+ wxDouble y);
/**
Appends a rectangle as a new closed subpath.
/**
Appends a rectangle as a new closed subpath.
Draws the bitmap. In case of a mono bitmap, this is treated as a mask and the
current brushed is used for filling.
*/
Draws the bitmap. In case of a mono bitmap, this is treated as a mask and the
current brushed is used for filling.
*/
- void DrawBitmap(const wxBitmap& bmp, wxDouble x, wxDouble y,
- wxDouble w, wxDouble h);
+ virtual void DrawBitmap(const wxBitmap& bmp, wxDouble x, wxDouble y,
+ wxDouble w, wxDouble h) = 0;
- void DrawIcon(const wxIcon& icon, wxDouble x, wxDouble y,
- wxDouble w, wxDouble h);
+ virtual void DrawIcon(const wxIcon& icon, wxDouble x, wxDouble y,
+ wxDouble w, wxDouble h) = 0;
- void DrawLines(size_t n, const wxPoint2DDouble* points,
- int fillStyle = wxODDEVEN_RULE);
+ virtual void DrawLines(size_t n, const wxPoint2DDouble* points,
+ 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,
- int fillStyle = wxODDEVEN_RULE);
+ virtual void DrawPath(const wxGraphicsPath& path,
+ int fillStyle = wxODDEVEN_RULE);
/**
Draws a rectangle.
*/
/**
Draws a rectangle.
*/
- void DrawRectangle(wxDouble x, wxDouble y, wxDouble w,
- wxDouble h);
+ virtual void DrawRectangle(wxDouble x, wxDouble y, wxDouble w, wxDouble h);
/**
Draws a rounded rectangle.
/**
Draws a rounded rectangle.
/**
Fills the path with the current brush.
*/
/**
Fills the path with the current brush.
*/
- void FillPath(const wxGraphicsPath& path,
- int fillStyle = wxODDEVEN_RULE);
+ virtual void FillPath(const wxGraphicsPath& path,
+ 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
Fills the @a widths array with the widths from the beginning of
@a text to the corresponding character of @e text.
*/
Fills the @a widths array with the widths from the beginning of
@a text to the corresponding character of @e text.
*/
- void GetPartialTextExtents(const wxString& text,
- wxArrayDouble& widths) const;
+ virtual void GetPartialTextExtents(const wxString& text,
+ 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.
/**
Strokes a single line.
*/
/**
Strokes a single line.
*/
- void StrokeLine(wxDouble x1, wxDouble y1, wxDouble x2,
- wxDouble y2);
+ virtual void StrokeLine(wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2);
/**
Creates the actual edit control.
*/
/**
Creates the actual edit control.
*/
- void Create(wxWindow* parent, wxWindowID id,
- wxEvtHandler* evtHandler);
+ virtual void Create(wxWindow* parent, wxWindowID id,
+ wxEvtHandler* evtHandler) = 0;
Draws the part of the cell not occupied by the control: the base class
version just fills it with background colour from the attribute.
*/
Draws the part of the cell not occupied by the control: the base class
version just fills it with background colour from the attribute.
*/
- void PaintBackground(const wxRect& rectCell,
- wxGridCellAttr* attr);
+ virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr* attr);
/**
Reset the value in the control back to its starting value.
/**
Reset the value in the control back to its starting value.
/**
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,
- int row, int col);
+ virtual wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
+ int row, int col) = 0;
KeywordSearch() searches only pages listed in @c ".hhc" file(s).
You should list all pages in the contents file.
*/
KeywordSearch() searches only pages listed in @c ".hhc" file(s).
You should list all pages in the contents file.
*/
- bool KeywordSearch(const wxString& keyword,
- wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
+ virtual bool KeywordSearch(const wxString& keyword,
+ wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
/**
Reads the controller's setting (position of window, etc.)
/**
Reads the controller's setting (position of window, etc.)
Returned wxFSFile object is not guaranteed to point to url, it might have
been redirected!
*/
Returned wxFSFile object is not guaranteed to point to url, it might have
been redirected!
*/
- virtual wxFSFile* OpenURL(wxHtmlURLType type,
- const wxString& url);
+ virtual wxFSFile* OpenURL(wxHtmlURLType type, const wxString& url) const;
/**
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
@param index
See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
*/
@param index
See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
*/
- bool LoadFile(const wxString& name, const wxString& mimetype,
- int index = -1);
+ virtual bool LoadFile(const wxString& name, const wxString& mimetype,
+ int index = -1);
- bool SaveFile(wxOutputStream& stream,
- const wxString& mimetype) const;
+ virtual bool SaveFile(wxOutputStream& stream,
+ const wxString& mimetype) const;
/**
Saves an image in the named file.
/**
Saves an image in the named file.
@param mimetype
MIME type.
*/
@param mimetype
MIME type.
*/
- bool SaveFile(const wxString& name,
- const wxString& mimetype) const;
+ virtual bool SaveFile(const wxString& name, const wxString& mimetype) const;
/**
Saves an image in the named file.
/**
Saves an image in the named file.
@remarks Domains are searched in the last to first order, i.e. catalogs
added later override those added before.
*/
@remarks Domains are searched in the last to first order, i.e. catalogs
added later override those added before.
*/
- const wxString& GetString(const wxString& origString,
- const wxString& domain = wxEmptyString) const;
+ virtual const wxString& GetString(const wxString& origString,
+ 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
logging them in the log frame (default), @false to only log them in the
log frame.
*/
logging them in the log frame (default), @false to only log them in the
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);
/**
corresponding to the log level and then calls
DoLogString() with the resulting string.
*/
corresponding to the log level and then calls
DoLogString() with the resulting string.
*/
- virtual void DoLog(wxLogLevel level, const wxString& msg,
- time_t timestamp);
+ virtual void DoLog(wxLogLevel level, const wxString& msg, 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
@remarks Any special menu codes are stripped out of source and target
strings before matching.
*/
@remarks Any special menu codes are stripped out of source and target
strings before matching.
*/
- int FindMenuItem(const wxString& menuString,
- const wxString& itemString) const;
+ virtual int FindMenuItem(const wxString& menuString,
+ const wxString& itemString) const;
/**
Gets the help string associated with the menu item identifier.
/**
Gets the help string associated with the menu item identifier.
Please see the remarks in SetYesNoLabels() documentation.
*/
Please see the remarks in SetYesNoLabels() documentation.
*/
- bool SetYesNoCancelLabels(const ButtonLabel& yes, const ButtonLabel& no,
- const ButtonLabel& cancel);
+ virtual bool SetYesNoCancelLabels(const ButtonLabel& yes,
+ 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.
@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,
- int flags) const;
+ virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, int item,
+ 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
@param flags
A combination of the ::wxOwnerDrawnComboBoxPaintingFlags enumeration values.
*/
@param flags
A combination of the ::wxOwnerDrawnComboBoxPaintingFlags enumeration values.
*/
- void OnDrawItem(wxDC& dc, const wxRect& rect, int item,
- int flags) const;
+ virtual void OnDrawItem(wxDC& dc, const wxRect& rect, int item,
+ 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
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
See @ref overview_refcount_equality "reference-counted object comparison" for
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.
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
- bool operator ==(const wxPen& pen);
+ bool operator==(const wxPen& pen) const;
context (current printer not set, for example) or the user cancelled printing.
Call GetLastError() to get detailed information about the kind of the error.
*/
context (current printer not set, for example) or the user cancelled printing.
Call GetLastError() to get detailed information about the kind of the error.
*/
- bool Print(wxWindow* parent, wxPrintout* printout,
- bool prompt = true);
+ virtual bool Print(wxWindow* parent, wxPrintout* printout,
+ bool prompt = true);
/**
Invokes the print dialog.
/**
Invokes the print dialog.
/**
Default error-reporting function.
*/
/**
Default error-reporting function.
*/
- void ReportError(wxWindow* parent, wxPrintout* printout,
- const wxString& message);
+ virtual void ReportError(wxWindow* parent, wxPrintout* printout,
+ const wxString& message);
/**
Invokes the print setup dialog.
/**
Invokes the print setup dialog.
four integers.
@endWxPythonOnly
*/
four integers.
@endWxPythonOnly
*/
- void GetPageInfo(int* minPage, int* maxPage, int* pageFrom,
- int* pageTo);
+ virtual void GetPageInfo(int* minPage, int* maxPage, int* pageFrom,
+ int* pageTo);
/**
Returns the size of the printer page in millimetres.
/**
Returns the size of the printer page in millimetres.
see @ref wxCONTROL_FLAGS.
*/
virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect,
see @ref wxCONTROL_FLAGS.
*/
virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect,
/**
Draw the header control button (used, for example, by wxListCtrl).
/**
Draw the header control button (used, for example, by wxListCtrl).
the @a win.
*/
virtual void DrawItemSelectionRect(wxWindow* win, wxDC& dc,
the @a win.
*/
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.
Draw the border for sash window: this border must be such that the sash
drawn by DrawSplitterSash() blends into it well.
*/
Draw the border for sash window: this border must be such that the sash
drawn by DrawSplitterSash() blends into it well.
*/
- virtual void DrawSplitterBorder(wxWindow* win, wxDC& dc,
- const wxRect& rect, int flags = 0);
+ virtual void DrawSplitterBorder(wxWindow* win, wxDC& dc, const wxRect& rect,
+ 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
To draw an expanded button the @a flags parameter must contain @c wxCONTROL_EXPANDED bit,
see @ref wxCONTROL_FLAGS.
*/
To draw an expanded button the @a flags parameter must contain @c wxCONTROL_EXPANDED bit,
see @ref wxCONTROL_FLAGS.
*/
- virtual void DrawTreeItemButton(wxWindow* win, wxDC& dc,
- const wxRect& rect, int flags = 0);
+ virtual void DrawTreeItemButton(wxWindow* win, wxDC& dc, const wxRect& rect,
+ int flags = 0) = 0;
/**
Return the currently used renderer.
/**
Return the currently used renderer.
to each filter. This can be used to determine the type to pass to LoadFile()
given a selected filter.
*/
to each filter. This can be used to determine the type to pass to LoadFile()
given a selected filter.
*/
- wxString GetExtWildcard(bool combine = false, bool save = false,
- wxArrayInt* types = NULL);
+ static wxString GetExtWildcard(bool combine = false, bool save = false,
+ wxArrayInt* types = NULL);
/**
Returns the list of file handlers.
/**
Returns the list of file handlers.
changed to bold because this is already specified by the paragraph.
However the text colour attributes @e will be changed to show red.
*/
changed to bold because this is already specified by the paragraph.
However the text colour attributes @e will be changed to show red.
*/
- bool GetStyleForRange(const wxRichTextRange& range,
- wxTextAttr& style);
+ virtual bool GetStyleForRange(const wxRichTextRange& range,
+ wxTextAttr& style);
/**
Returns the current style sheet associated with the buffer, if any.
/**
Returns the current style sheet associated with the buffer, if any.
Helper function for extending the selection, returning @true if the selection
was changed. Selections are in caret positions.
*/
Helper function for extending the selection, returning @true if the selection
was changed. Selections are in caret positions.
*/
- bool ExtendSelection(long oldPosition, long newPosition,
- int flags);
+ virtual bool ExtendSelection(long oldPosition, long newPosition, int flags);
/**
Helper function for finding the caret position for the next word.
/**
Helper function for finding the caret position for the next word.
Attributes that differ in value within the range will not be included
in @a style flags.
*/
Attributes that differ in value within the range will not be included
in @a style flags.
*/
- bool GetStyleForRange(const wxRichTextRange& range,
- wxTextAttr& style);
+ virtual bool GetStyleForRange(const wxRichTextRange& range,
+ wxTextAttr& style);
/**
Returns the style sheet associated with the control, if any.
/**
Returns the style sheet associated with the control, if any.
You can use this to implement, for example, bold button updating.
@a style must have flags indicating which attributes are of interest.
*/
You can use this to implement, for example, bold button updating.
@a style must have flags indicating which attributes are of interest.
*/
- bool HasCharacterAttributes(const wxRichTextRange& range,
- const wxTextAttr& style) const;
+ virtual bool HasCharacterAttributes(const wxRichTextRange& range,
+ 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.
You can use this to implement, for example, centering button updating.
@a style must have flags indicating which attributes are of interest.
*/
You can use this to implement, for example, centering button updating.
@a style must have flags indicating which attributes are of interest.
*/
- bool HasParagraphAttributes(const wxRichTextRange& range,
- const wxTextAttr& style) const;
+ virtual bool HasParagraphAttributes(const wxRichTextRange& range,
+ const wxTextAttr& style) const;
/**
Returns @true if there is a selection.
/**
Returns @true if there is a selection.
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.
*/
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.
*/
- bool DeleteTemporaryImages(int flags,
- const wxArrayString& imageLocations);
+ static bool DeleteTemporaryImages(int flags,
+ const wxArrayString& imageLocations);
/**
Saves the buffer content to the HTML stream.
/**
Saves the buffer content to the HTML stream.
/**
Gets the page information.
*/
/**
Gets the page information.
*/
- void GetPageInfo(int* minPage, int* maxPage, int* selPageFrom,
- int* selPageTo);
+ virtual void GetPageInfo(int* minPage, int* maxPage, int* selPageFrom,
+ int* selPageTo);
/**
Returns a pointer to the buffer being rendered.
/**
Returns a pointer to the buffer being rendered.
included in the result.
*/
wxTextAttr GetCombinedStyle(int indent,
included in the result.
*/
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
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,
- bool recursive = false);
+ virtual bool Replace(wxWindow* oldwin, wxWindow* newwin,
+ 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
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,
- bool recursive = false);
+ virtual bool Replace(wxSizer* oldsz, wxSizer* newsz,
+ 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
@see SplitVertically(), IsSplit(), Unsplit()
*/
@see SplitVertically(), IsSplit(), Unsplit()
*/
- bool SplitHorizontally(wxWindow* window1, wxWindow* window2,
- int sashPosition = 0);
+ virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2,
+ int sashPosition = 0);
/**
Initializes the left and right panes of the splitter window.
/**
Initializes the left and right panes of the splitter window.
@see SplitHorizontally(), IsSplit(), Unsplit().
*/
@see SplitHorizontally(), IsSplit(), Unsplit().
*/
- bool SplitVertically(wxWindow* window1, wxWindow* window2,
- int sashPosition = 0);
+ virtual bool SplitVertically(wxWindow* window1, wxWindow* window2,
+ int sashPosition = 0);
Return @true if at least some values could be retrieved.
This function currently is only implemented under Win32 and requires a PDB file.
*/
Return @true if at least some values could be retrieved.
This function currently is only implemented under Win32 and requires a PDB file.
*/
- bool GetParam(size_t n, wxString* type, wxString* name,
- wxString* value) const;
+ virtual bool GetParam(size_t n, wxString* type, wxString* name,
+ 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
/**
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;
@true if operation succeeded, @false if it failed.
*/
bool Write(wxTextFileType typeNew = wxTextFileType_None,
@true if operation succeeded, @false if it failed.
*/
bool Write(wxTextFileType typeNew = wxTextFileType_None,
- const wxMBConv& conv = wxConvAuto()) const;
+ const wxMBConv& conv = wxConvAuto());
/**
The same as GetLine().
/**
The same as GetLine().
None.
@endWxPythonOnly
*/
None.
@endWxPythonOnly
*/
- bool GetBoundingRect(const wxTreeItemId& item, wxRect& rect,
- bool textOnly = false) const;
+ virtual bool GetBoundingRect(const wxTreeItemId& item, wxRect& rect,
+ bool textOnly = false) const;
/**
Returns the buttons image list (from which application-defined button
/**
Returns the buttons image list (from which application-defined button
@see GetNextChild(), GetNextSibling()
*/
@see GetNextChild(), GetNextSibling()
*/
- wxTreeItemId GetFirstChild(const wxTreeItemId& item,
- wxTreeItemIdValue& cookie) const;
+ virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
+ wxTreeItemIdValue& cookie) const;
/**
Returns the first visible item.
/**
Returns the first visible item.
- ::wxTreeItemIcon_SelectedExpanded: to get the selected expanded image
(which is shown when an expanded item is currently selected).
*/
- ::wxTreeItemIcon_SelectedExpanded: to get the selected expanded image
(which is shown when an expanded item is currently selected).
*/
- int GetItemImage(const wxTreeItemId& item,
- wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
+ virtual int GetItemImage(const wxTreeItemId& item,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
/**
Returns the item's parent.
/**
Returns the item's parent.
- wxTreeItemId GetNextChild(const wxTreeItemId& item,
- wxTreeItemIdValue& cookie) const;
+ virtual wxTreeItemId GetNextChild(const wxTreeItemId& item,
+ wxTreeItemIdValue& cookie) const;
/**
Returns the next sibling of the specified item; call GetPrevSibling()
/**
Returns the next sibling of the specified item; call GetPrevSibling()
- int OnCompareItems(const wxTreeItemId& item1,
- const wxTreeItemId& item2);
+ virtual int OnCompareItems(const wxTreeItemId& item1,
+ 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.
/**
Sets the colour of the item's background.
*/
/**
Sets the colour of the item's background.
*/
- void SetItemBackgroundColour(const wxTreeItemId& item,
- const wxColour& col);
+ virtual void SetItemBackgroundColour(const wxTreeItemId& item,
+ 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
(as opposed to a DnD operation within the tree control, which already
is implemented internally).
*/
(as opposed to a DnD operation within the tree control, which already
is implemented internally).
*/
- void SetItemDropHighlight(const wxTreeItemId& item,
- bool highlight = true);
+ virtual void SetItemDropHighlight(const wxTreeItemId& item,
+ 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
but instead adding them only when needed, thus minimizing memory
usage and loading time.
*/
but instead adding them only when needed, thus minimizing memory
usage and loading time.
*/
- void SetItemHasChildren(const wxTreeItemId& item,
- bool hasChildren = true);
+ virtual void SetItemHasChildren(const wxTreeItemId& item,
+ bool hasChildren = true);
/**
Sets the specified item's image. See GetItemImage() for the description
of the @a which parameter.
*/
/**
Sets the specified item's image. See GetItemImage() for the description
of the @a which parameter.
*/
- void SetItemImage(const wxTreeItemId& item, int image,
- wxTreeItemIcon which = wxTreeItemIcon_Normal);
+ virtual void SetItemImage(const wxTreeItemId& item, int image,
+ 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
/**
Sets the colour of the item's text.
*/
/**
Sets the colour of the item's text.
*/
- void SetItemTextColour(const wxTreeItemId& item,
- const wxColour& col);
+ virtual void SetItemTextColour(const wxTreeItemId& item,
+ 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
@see UnregisterHotKey()
*/
@see UnregisterHotKey()
*/
- bool RegisterHotKey(int hotkeyId, int modifiers,
- int virtualKeyCode);
+ virtual bool RegisterHotKey(int hotkeyId, int modifiers,
+ int virtualKeyCode);
/**
Releases mouse input captured with CaptureMouse().
/**
Releases mouse input captured with CaptureMouse().