diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index da1fbe15efe..fcacd404ba6 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -12,24 +12,38 @@ wxBitmap wxBitmapBundle wxBitmapHandler + wxBoxSizer wxBrush wxChar wxUniChar wxUniCharRef wxColour + wxColourDatabase wxCursor wxDateSpan + wxDCClipper + wxDCBrushChanger + wxDCFontChanger + wxDCPenChanger + wxDCTextColourChanger + wxDCTextBgColourChanger + wxDCTextBgModeChanger wxFileType wxFont + wxFlexGridSizer + wxFontEnumerator wxFontInfo wxFontList wxFontMetrics wxGraphicsGradientStop wxGraphicsGradientStops + wxGridBagSizer + wxGridSizer wxIcon wxIconLocation wxImage wxMask + wxNativeFontInfo wxPen wxPenList wxPoint @@ -41,6 +55,10 @@ wxRegEx wxRect wxSize + wxSizer + wxSizerItem + wxStaticBoxSizer + wxStdDialogButtonSizer wxSystemOptions wxSystemSettings wxTimeSpan @@ -52,6 +70,7 @@ wxVariantDataSafeArray wxVector wxVersionInfo + wxWrapSizer diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 6da7f492c8d..54cc78d1434 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -31,7 +31,10 @@ #include #include #include +#include +#include #include +#include #include #include #include @@ -62,6 +65,7 @@ #include #include #include +#include #if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle) @@ -81,6 +85,114 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons } #endif +#if wxCHECK_VERSION(3, 1, 3) // wxWidets-3.1.3 or higher +void unreadVariable_wxDCTextBgModeChanger(wxDC &dc) +{ + // cppcheck-suppress unreadVariable + wxDCTextBgModeChanger a(dc); +} + +void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour) +{ + // cppcheck-suppress unreadVariable + wxDCTextBgColourChanger a(dc); + // cppcheck-suppress unreadVariable + wxDCTextBgColourChanger b(dc, colour); +} +#endif + +void unreadVariable_wxDCTextColourChanger(wxDC &dc, const wxColour &colour) +{ + // cppcheck-suppress unreadVariable + wxDCTextColourChanger a(dc); + // cppcheck-suppress unreadVariable + wxDCTextColourChanger b(dc, colour); +} + +void unreadVariable_wxDCPenChanger(wxDC &dc, const wxPen &pen) +{ + // cppcheck-suppress unreadVariable + wxDCPenChanger a(dc, pen); +} + +void unreadVariable_wxDCFontChanger(wxDC &dc, const wxFont &font) +{ + // cppcheck-suppress unreadVariable + wxDCFontChanger a(dc); + // cppcheck-suppress unreadVariable + wxDCFontChanger b(dc, font); +} + +void unreadVariable_wxDCBrushChanger(wxDC &dc, const wxBrush &brush) +{ + // cppcheck-suppress unreadVariable + wxDCBrushChanger a(dc, brush); +} + +void unreadVariable_wxWrapSizer(const int x) +{ + // cppcheck-suppress unreadVariable + wxWrapSizer a(x, x); +} + +void unreadVariable_wxGridBagSizer(const int x) +{ + // cppcheck-suppress unreadVariable + wxGridBagSizer a(x, x); +} + +void unreadVariable_wxSizerItem(const int x) +{ + // cppcheck-suppress unreadVariable + wxSizerItem a(x, x); +} + +void unreadVariable_wxFlexGridSizer(const int x) +{ + // cppcheck-suppress unreadVariable + wxFlexGridSizer a(x, x, x); +} + +void unreadVariable_wxBoxSizer(const int orient) +{ + // cppcheck-suppress unreadVariable + wxBoxSizer a(orient); +} + +void unreadVariable_wxGridSizer(int x) +{ + // cppcheck-suppress unreadVariable + wxGridSizer a(x, x, x); +} + +void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindow *parent, const wxString &label) +{ + // cppcheck-suppress unreadVariable + wxStaticBoxSizer a(box, orient); + // cppcheck-suppress unreadVariable + wxStaticBoxSizer b(orient, parent); + // cppcheck-suppress unreadVariable + wxStaticBoxSizer c(orient, parent, label); +} + +void unusedVariable_wxStdDialogButtonSizer() +{ + // cppcheck-suppress unusedVariable + wxStdDialogButtonSizer a; +} + +void unusedVariable_wxColourDatabase() +{ + // cppcheck-suppress unusedVariable + wxColourDatabase a; +} + +void unusedVariable_wxFontEnumerator() +{ + // cppcheck-suppress unusedVariable + wxFontEnumerator a; +} + void unusedVariable_wxCursor() { // cppcheck-suppress unusedVariable @@ -93,6 +205,18 @@ void unusedVariable_wxBitmapHandler() wxBitmapHandler a; } +void unusedVariable_wxNativeFontInfo() +{ + // cppcheck-suppress unusedVariable + wxNativeFontInfo a; +} + +void unreadVariable_wxDCClipper(wxDC &dc, const wxRegion ®ion) +{ + // cppcheck-suppress unreadVariable + wxDCClipper a(dc, region); +} + void unreadVariable_wxMask(const wxBitmap &bmp, int x, const wxColour & colour) { // cppcheck-suppress unusedVariable