From 13199c3dcbb708f859aeae6b480459b7b9bb9a9d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 24 May 2006 05:03:00 +0000 Subject: [PATCH] correct access for virtuals, other minor corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/univ/tglbtn.h | 12 ++++++------ src/univ/tglbtn.cpp | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/wx/univ/tglbtn.h b/include/wx/univ/tglbtn.h index 1fcdd76c7c..31dabca606 100644 --- a/include/wx/univ/tglbtn.h +++ b/include/wx/univ/tglbtn.h @@ -12,10 +12,9 @@ #ifndef _WX_UNIV_TGLBTN_H_ #define _WX_UNIV_TGLBTN_H_ -class WXDLLEXPORT wxInputHandler; - #include "wx/bitmap.h" -#include "wx/checkbox.h" + +extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[]; // ---------------------------------------------------------------------------- // the actions supported by this control @@ -106,17 +105,18 @@ public: // returns the default button size for this platform static wxSize GetDefaultSize(); -protected: virtual bool PerformAction(const wxControlAction& action, long numArg = -1, const wxString& strArg = wxEmptyString); + + virtual bool CanBeHighlighted() const { return true; } + +protected: virtual wxSize DoGetBestClientSize() const; virtual bool DoDrawBackground(wxDC& dc); virtual void DoDraw(wxControlRenderer *renderer); - virtual bool CanBeHighlighted() const { return true; } - // common part of all ctors void Init(); diff --git a/src/univ/tglbtn.cpp b/src/univ/tglbtn.cpp index 6a13b3ff72..3a0b9b803a 100644 --- a/src/univ/tglbtn.cpp +++ b/src/univ/tglbtn.cpp @@ -25,6 +25,8 @@ #if wxUSE_TOGGLEBTN +#include "wx/tglbtn.h" + #ifndef WX_PRECOMP #include "wx/dcclient.h" #include "wx/dcscreen.h" @@ -38,7 +40,6 @@ #include "wx/univ/theme.h" #include "wx/univ/colschem.h" #include "wx/stockitem.h" -#include "wx/tglbtn.h" // ---------------------------------------------------------------------------- // constants -- 2.45.2