diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
commit | 1f457376b478257b88d4a857f5ec1b6155442dd7 (patch) | |
tree | 2a06a60551dea362cf8cb0cb0ba66c78608717c4 /support/dktools/DkWxBufferedControl.cpt | |
parent | ac690ca29ad5bf8a5203a65fd6252f7b564f4727 (diff) |
CTAN sync 202009200303
Diffstat (limited to 'support/dktools/DkWxBufferedControl.cpt')
-rw-r--r-- | support/dktools/DkWxBufferedControl.cpt | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/support/dktools/DkWxBufferedControl.cpt b/support/dktools/DkWxBufferedControl.cpt index 3b78151c5b..ca85dc8d35 100644 --- a/support/dktools/DkWxBufferedControl.cpt +++ b/support/dktools/DkWxBufferedControl.cpt @@ -2,7 +2,7 @@ copyright owner = Dirk Krause copyright year = 2013-xxxx -license = bsd +SPDX-License-Identifier: BSD-3-Clause %% header @@ -32,8 +32,8 @@ license = bsd the constructors. From Create() call DkWxBufferedControl::Create(). - You should also use DECLARE_DYNAMIC_CLASS() and - IMPLEMENT_DYNAMIC_CLASS(). + You should also use wxDECLARE_DYNAMIC_CLASS() and; + wxIMPLEMENT_DYNAMIC_CLASS(). */ class DkWxBufferedControl : public wxControl { @@ -61,11 +61,19 @@ class DkWxBufferedControl : public wxControl /** For RTTI. */ +#if wxCHECK_VERSION(3,0,0) + wxDECLARE_DYNAMIC_CLASS(DkWxBufferedControl); +#else DECLARE_DYNAMIC_CLASS(DkWxBufferedControl) +#endif /** Event table. */ +#if wxCHECK_VERSION(3,0,0) + wxDECLARE_EVENT_TABLE(); +#else DECLARE_EVENT_TABLE() +#endif protected: @@ -187,7 +195,7 @@ class DkWxBufferedControl : public wxControl %% module - +#include "dk3conf.h" #include "DkWxBufferedControl.h" @@ -200,12 +208,26 @@ wxChar const DkWxBufferedControl::DkWxBufferedControlName[] = { }; +#if wxCHECK_VERSION(3,0,0) +wxIMPLEMENT_DYNAMIC_CLASS(DkWxBufferedControl, wxControl); +#else IMPLEMENT_DYNAMIC_CLASS(DkWxBufferedControl, wxControl) +#endif + + +#if wxCHECK_VERSION(3,0,0) +wxBEGIN_EVENT_TABLE(DkWxBufferedControl,wxControl) +#else BEGIN_EVENT_TABLE(DkWxBufferedControl,wxControl) +#endif EVT_ERASE_BACKGROUND(DkWxBufferedControl::OnErase) EVT_PAINT(DkWxBufferedControl::OnPaint) +#if wxCHECK_VERSION(3,0,0) +wxEND_EVENT_TABLE() +#else END_EVENT_TABLE() +#endif @@ -296,7 +318,7 @@ DkWxBufferedControl::~DkWxBufferedControl() void -DkWxBufferedControl::OnErase(wxEraseEvent & event) +DkWxBufferedControl::OnErase(wxEraseEvent & WXUNUSED(event)) { $? "+ DkWxBufferedControl::OnErase" /* Do nothing here. */ @@ -360,11 +382,11 @@ DkWxBufferedControl::OnPaint(wxPaintEvent & event) void DkWxBufferedControl::PaintOperation( - wxDC & pdc, - wxPaintEvent & event, - bool buffered, - int clWidth, - int clHeight + wxDC & WXUNUSED(pdc), + wxPaintEvent & WXUNUSED(event), + bool WXUNUSED(buffered), + int WXUNUSED(clWidth), + int WXUNUSED(clHeight) ) { /* The default implementation intentionally does nothing. */ |