Replaced Ok() occurrences with IsOk() throughout trunk.
Additionally renamed wxOSX' private wxNativePrinterDC::Ok() function to IsOk(). Didn't deprecate the various Ok() functions: given the amount of changes already introduced in 3.0 a trivial one like this seems more suitable for after 3.0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -230,7 +230,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
validator, name))
|
||||
return false;
|
||||
|
||||
if (!GetFont().Ok())
|
||||
if (!GetFont().IsOk())
|
||||
{
|
||||
SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
||||
}
|
||||
@@ -2323,7 +2323,7 @@ void wxRichTextCtrl::SetupScrollbars(bool atTop)
|
||||
void wxRichTextCtrl::PaintBackground(wxDC& dc)
|
||||
{
|
||||
wxColour backgroundColour = GetBackgroundColour();
|
||||
if (!backgroundColour.Ok())
|
||||
if (!backgroundColour.IsOk())
|
||||
backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
|
||||
|
||||
// Clear the background
|
||||
@@ -2350,9 +2350,9 @@ bool wxRichTextCtrl::RecreateBuffer(const wxSize& size)
|
||||
if (sz.x < 1 || sz.y < 1)
|
||||
return false;
|
||||
|
||||
if (!m_bufferBitmap.Ok() || m_bufferBitmap.GetWidth() < sz.x || m_bufferBitmap.GetHeight() < sz.y)
|
||||
if (!m_bufferBitmap.IsOk() || m_bufferBitmap.GetWidth() < sz.x || m_bufferBitmap.GetHeight() < sz.y)
|
||||
m_bufferBitmap = wxBitmap(sz.x, sz.y);
|
||||
return m_bufferBitmap.Ok();
|
||||
return m_bufferBitmap.IsOk();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2664,12 +2664,12 @@ bool wxRichTextCtrl::WriteImage(const wxRichTextImageBlock& imageBlock, const wx
|
||||
|
||||
bool wxRichTextCtrl::WriteImage(const wxBitmap& bitmap, wxBitmapType bitmapType, const wxRichTextAttr& textAttr)
|
||||
{
|
||||
if (bitmap.Ok())
|
||||
if (bitmap.IsOk())
|
||||
{
|
||||
wxRichTextImageBlock imageBlock;
|
||||
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
if (image.Ok() && imageBlock.MakeImageBlock(image, bitmapType))
|
||||
if (image.IsOk() && imageBlock.MakeImageBlock(image, bitmapType))
|
||||
return WriteImage(imageBlock, textAttr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user