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:
@@ -281,7 +281,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
|
||||
// native hot-tracking line (on XP)
|
||||
const int penwidth = 3;
|
||||
int y = rect.y + rect.height + 1 - penwidth;
|
||||
wxColour c = (params && params->m_selectionColour.Ok()) ?
|
||||
wxColour c = (params && params->m_selectionColour.IsOk()) ?
|
||||
params->m_selectionColour : wxColour(0x66, 0x66, 0x66);
|
||||
wxPen pen(c, penwidth);
|
||||
pen.SetCap(wxCAP_BUTT);
|
||||
@@ -322,7 +322,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
|
||||
triPt[2].y = ar.height;
|
||||
}
|
||||
|
||||
wxColour c = (params && params->m_arrowColour.Ok()) ?
|
||||
wxColour c = (params && params->m_arrowColour.IsOk()) ?
|
||||
params->m_arrowColour : wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW);
|
||||
|
||||
wxDCPenChanger setPen(dc, c);
|
||||
@@ -336,7 +336,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
|
||||
int bmpWidth = 0;
|
||||
|
||||
// draw the bitmap if there is one
|
||||
if ( params && params->m_labelBitmap.Ok() )
|
||||
if ( params && params->m_labelBitmap.IsOk() )
|
||||
{
|
||||
int w = params->m_labelBitmap.GetWidth();
|
||||
int h = params->m_labelBitmap.GetHeight();
|
||||
@@ -379,9 +379,9 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
|
||||
const int margin = 5; // number of pixels to reserve on either side of the label
|
||||
labelWidth += 2*margin;
|
||||
|
||||
wxFont font = params->m_labelFont.Ok() ?
|
||||
wxFont font = params->m_labelFont.IsOk() ?
|
||||
params->m_labelFont : win->GetFont();
|
||||
wxColour clr = params->m_labelColour.Ok() ?
|
||||
wxColour clr = params->m_labelColour.IsOk() ?
|
||||
params->m_labelColour : win->GetForegroundColour();
|
||||
|
||||
wxString label( params->m_labelText );
|
||||
|
||||
Reference in New Issue
Block a user