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:
@@ -580,7 +580,7 @@ void MyCanvas::DrawDefault(wxDC& dc)
|
||||
// rectangle above)
|
||||
//dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
||||
|
||||
if (m_smile_bmp.Ok())
|
||||
if (m_smile_bmp.IsOk())
|
||||
dc.DrawBitmap(m_smile_bmp, x + rectSize - 20, rectSize - 10, true);
|
||||
|
||||
dc.SetBrush( *wxBLACK_BRUSH );
|
||||
@@ -1468,7 +1468,7 @@ void MyCanvas::DrawRegionsHelper(wxDC& dc, wxCoord x, bool firstTime)
|
||||
dc.SetBrush( *wxGREY_BRUSH );
|
||||
dc.DrawRectangle( x, y, 310, 310 );
|
||||
|
||||
if (m_smile_bmp.Ok())
|
||||
if (m_smile_bmp.IsOk())
|
||||
{
|
||||
dc.DrawBitmap( m_smile_bmp, x + 150, y + 150, true );
|
||||
dc.DrawBitmap( m_smile_bmp, x + 130, y + 10, true );
|
||||
@@ -1503,15 +1503,15 @@ void MyCanvas::OnPaint(wxPaintEvent &WXUNUSED(event))
|
||||
m_owner->PrepareDC(dc);
|
||||
|
||||
dc.SetBackgroundMode( m_owner->m_backgroundMode );
|
||||
if ( m_owner->m_backgroundBrush.Ok() )
|
||||
if ( m_owner->m_backgroundBrush.IsOk() )
|
||||
dc.SetBackground( m_owner->m_backgroundBrush );
|
||||
if ( m_owner->m_colourForeground.Ok() )
|
||||
if ( m_owner->m_colourForeground.IsOk() )
|
||||
dc.SetTextForeground( m_owner->m_colourForeground );
|
||||
if ( m_owner->m_colourBackground.Ok() )
|
||||
if ( m_owner->m_colourBackground.IsOk() )
|
||||
dc.SetTextBackground( m_owner->m_colourBackground );
|
||||
|
||||
if ( m_owner->m_textureBackground) {
|
||||
if ( ! m_owner->m_backgroundBrush.Ok() ) {
|
||||
if ( ! m_owner->m_backgroundBrush.IsOk() ) {
|
||||
wxColour clr(0,128,0);
|
||||
wxBrush b(clr, wxSOLID);
|
||||
dc.SetBackground(b);
|
||||
@@ -1916,7 +1916,7 @@ void MyFrame::OnOption(wxCommandEvent& event)
|
||||
case Colour_Background:
|
||||
{
|
||||
wxColour col = SelectColour();
|
||||
if ( col.Ok() )
|
||||
if ( col.IsOk() )
|
||||
{
|
||||
m_backgroundBrush.SetColour(col);
|
||||
}
|
||||
|
Reference in New Issue
Block a user