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:
Dimitri Schoolwerth
2011-05-03 16:29:04 +00:00
parent ddd7e4307b
commit a1b806b982
322 changed files with 1261 additions and 1260 deletions

View File

@@ -668,7 +668,7 @@ void wxFontProperty::OnSetValue()
wxFont font;
font << m_value;
if ( !font.Ok() )
if ( !font.IsOk() )
{
m_value << *wxNORMAL_FONT;
}
@@ -906,7 +906,7 @@ void wxSystemColourProperty::Init( int type, const wxColour& colour )
{
wxColourPropertyValue cpv;
if ( colour.Ok() )
if ( colour.IsOk() )
cpv.Init( type, colour );
else
cpv.Init( type, *wxWHITE );
@@ -1097,7 +1097,7 @@ void wxSystemColourProperty::OnSetValue()
cpv << m_value;
wxColour col = cpv.m_colour;
if ( !col.Ok() )
if ( !col.IsOk() )
{
SetValueToUnspecified();
SetIndex(wxNOT_FOUND);
@@ -1120,7 +1120,7 @@ void wxSystemColourProperty::OnSetValue()
wxColour col;
col << m_value;
if ( !col.Ok() )
if ( !col.IsOk() )
{
SetValueToUnspecified();
SetIndex(wxNOT_FOUND);
@@ -1383,7 +1383,7 @@ void wxSystemColourProperty::OnCustomPaint( wxDC& dc, const wxRect& rect,
col = GetVal().m_colour;
}
if ( col.Ok() )
if ( col.IsOk() )
{
dc.SetBrush(col);
dc.DrawRectangle(rect);
@@ -1585,7 +1585,7 @@ wxColourProperty::~wxColourProperty()
void wxColourProperty::Init( wxColour colour )
{
if ( !colour.Ok() )
if ( !colour.IsOk() )
colour = *wxWHITE;
wxVariant variant;
variant << colour;
@@ -1864,7 +1864,7 @@ void wxImageFileProperty::OnCustomPaint( wxDC& dc,
const wxRect& rect,
wxPGPaintData& )
{
if ( m_pBitmap || (m_pImage && m_pImage->Ok() ) )
if ( m_pBitmap || (m_pImage && m_pImage->IsOk() ) )
{
// Draw the thumbnail