git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49829
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
sizer = CreateStdDialogButtonSizer(flags);
}
{
sizer = CreateStdDialogButtonSizer(flags);
}
+#else // !wxUSE_BUTTON
+ wxUnusedVar(flags);
+#endif // wxUSE_BUTTON/!wxUSE_BUTTON
#endif // __SMARTPHONE__/!__SMARTPHONE__
#endif // __SMARTPHONE__/!__SMARTPHONE__
return true;
#endif // wxUSE_TOOLBAR
return true;
#endif // wxUSE_TOOLBAR
GetEventHandler()->ProcessEvent(commandEvent);
return true;
#else // !wxUSE_MENUS
GetEventHandler()->ProcessEvent(commandEvent);
return true;
#else // !wxUSE_MENUS
return false;
#endif // wxUSE_MENUS/!wxUSE_MENUS
}
return false;
#endif // wxUSE_MENUS/!wxUSE_MENUS
}
// Returns menu item id or wxNOT_FOUND if none.
int
// Returns menu item id or wxNOT_FOUND if none.
int
-wxFindMenuItemId (wxFrame * frame, const wxString& menuString, const wxString& itemString)
+wxFindMenuItemId(wxFrame *frame,
+ const wxString& menuString,
+ const wxString& itemString)
{
#if wxUSE_MENUS
wxMenuBar *menuBar = frame->GetMenuBar ();
if ( menuBar )
return menuBar->FindMenuItem (menuString, itemString);
{
#if wxUSE_MENUS
wxMenuBar *menuBar = frame->GetMenuBar ();
if ( menuBar )
return menuBar->FindMenuItem (menuString, itemString);
+#else // !wxUSE_MENUS
+ wxUnusedVar(frame);
+ wxUnusedVar(menuString);
+ wxUnusedVar(itemString);
+#endif // wxUSE_MENUS/!wxUSE_MENUS
wxImage image = ConvertToImage();
return image.Ok() && image.SaveFile(name, type);
#else // !wxUSE_IMAGE
wxImage image = ConvertToImage();
return image.Ok() && image.SaveFile(name, type);
#else // !wxUSE_IMAGE
+ wxUnusedVar(name);
+ wxUnusedVar(type);
+
return false;
#endif // wxUSE_IMAGE
}
return false;
#endif // wxUSE_IMAGE
}
return wxDoFloodFill( GetOwner(), x, y, col, style);
#else
return wxDoFloodFill( GetOwner(), x, y, col, style);
#else
+ wxUnusedVar(x);
+ wxUnusedVar(y);
+ wxUnusedVar(col);
+ wxUnusedVar(style);
+
col->Set(image.GetRed(0, 0), image.GetGreen(0, 0), image.GetBlue(0, 0));
return true;
#else // !wxUSE_IMAGE
col->Set(image.GetRed(0, 0), image.GetGreen(0, 0), image.GetBlue(0, 0));
return true;
#else // !wxUSE_IMAGE
+ wxUnusedVar(x1);
+ wxUnusedVar(y1);
+ wxUnusedVar(col);
+
return false;
#endif // wxUSE_IMAGE/!wxUSE_IMAGE
}
return false;
#endif // wxUSE_IMAGE/!wxUSE_IMAGE
}
// update the bounding box
CalcBoundingBox(x + minX, y + minY);
CalcBoundingBox(x + maxX, y + maxY);
// update the bounding box
CalcBoundingBox(x + minX, y + minY);
CalcBoundingBox(x + maxX, y + maxY);
+#else // !wxUSE_IMAGE
+ wxUnusedVar(text);
+ wxUnusedVar(x);
+ wxUnusedVar(y);
+ wxUnusedVar(angle);
+#endif // wxUSE_IMAGE/!wxUSE_IMAGE
}
void wxGTKWindowImplDC::DoGetTextExtent(const wxString &string,
}
void wxGTKWindowImplDC::DoGetTextExtent(const wxString &string,
description = pango_font_description_from_string(wxPANGO_CONV(str));
description = pango_font_description_from_string(wxPANGO_CONV(str));
// ensure a valid facename is selected
if (!wxFontEnumerator::IsValidFacename(GetFaceName()))
SetFaceName(wxNORMAL_FONT->GetFaceName());
// ensure a valid facename is selected
if (!wxFontEnumerator::IsValidFacename(GetFaceName()))
SetFaceName(wxNORMAL_FONT->GetFaceName());
+#endif // wxUSE_FONTENUM