X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab7ce33c563651f790f99d64ee56727706047ae3..a19918eb353f1f266f92891eee07834d7cf09cd7:/contrib/include/wx/gizmos/ledctrl.h diff --git a/contrib/include/wx/gizmos/ledctrl.h b/contrib/include/wx/gizmos/ledctrl.h index 15f58af947..486274ffd8 100644 --- a/contrib/include/wx/gizmos/ledctrl.h +++ b/contrib/include/wx/gizmos/ledctrl.h @@ -1,16 +1,7 @@ #ifndef _WX_LEDNUMBERCTRL_H_ #define _WX_LEDNUMBERCTRL_H_ -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "wxLEDNumberCtrl.h" -#endif - -#ifdef GIZMOISDLL -#define GIZMODLLEXPORT WXDLLEXPORT -#else -#define GIZMODLLEXPORT -#endif - +#include "wx/gizmos/gizmos.h" #include #include @@ -38,18 +29,18 @@ enum wxLEDValueAlign // wxLEDNumberCtrl // ---------------------------------------------------------------------------- -class GIZMODLLEXPORT wxLEDNumberCtrl : public wxControl +class WXDLLIMPEXP_GIZMOS wxLEDNumberCtrl : public wxControl { public: // Constructors. wxLEDNumberCtrl(); - wxLEDNumberCtrl(wxWindow *parent, wxWindowID id = -1, + wxLEDNumberCtrl(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLED_ALIGN_LEFT | wxLED_DRAW_FADED); // Create functions. - bool Create(wxWindow *parent, wxWindowID id = -1, + bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); @@ -58,9 +49,9 @@ public: bool GetDrawFaded() const { return m_DrawFaded; } const wxString &GetValue() const { return m_Value; } - void SetAlignment(wxLEDValueAlign Alignment, bool Redraw = TRUE); - void SetDrawFaded(bool DrawFaded, bool Redraw = TRUE); - void SetValue(const wxString &Value, bool Redraw = TRUE); + void SetAlignment(wxLEDValueAlign Alignment, bool Redraw = true); + void SetDrawFaded(bool DrawFaded, bool Redraw = true); + void SetValue(const wxString &Value, bool Redraw = true); private: // Members.