X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/118cc185eb27b933439f3fb136b2b6ece5fe1bea..ba597ca8315df299a603990df4e0f334e3f21f6a:/contrib/include/wx/gizmos/multicell.h diff --git a/contrib/include/wx/gizmos/multicell.h b/contrib/include/wx/gizmos/multicell.h index 790c975c22..a22b9871ca 100644 --- a/contrib/include/wx/gizmos/multicell.h +++ b/contrib/include/wx/gizmos/multicell.h @@ -19,13 +19,7 @@ #pragma interface "multicell.h" #endif - -#ifdef GIZMOISDLL -#define GIZMODLLEXPORT WXDLLEXPORT -#else -#define GIZMODLLEXPORT -#endif - +#include "wx/gizmos/gizmos.h" // ---------------------------------------------------------------------------- // headers @@ -53,7 +47,7 @@ enum wxResizable // wxMultiCellItemHandle //--------------------------------------------------------------------------- -class GIZMODLLEXPORT wxMultiCellItemHandle: public wxObject +class WXDLLIMPEXP_GIZMOS wxMultiCellItemHandle: public wxObject { DECLARE_CLASS(wxMultiCellItemHandle); protected: @@ -89,7 +83,7 @@ private: // wxMultiCellSizer //--------------------------------------------------------------------------- -class GIZMODLLEXPORT wxMultiCellSizer : virtual public wxSizer +class WXDLLIMPEXP_GIZMOS wxMultiCellSizer : virtual public wxSizer { DECLARE_CLASS(wxMultiCellSizer); @@ -139,7 +133,7 @@ class wxCell; // wxMultiCellCanvas //--------------------------------------------------------------------------- -class GIZMODLLEXPORT wxMultiCellCanvas : public wxFlexGridSizer +class WXDLLIMPEXP_GIZMOS wxMultiCellCanvas : public wxFlexGridSizer { public: wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2); @@ -160,6 +154,16 @@ public: m_minCellSize = size; }; + /* These are to hide Add() method of parents and to avoid Borland warning about hiding virtual functions */ + void Add( wxWindow *window, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL ) + { wxFlexGridSizer::Add( window, proportion, flag, border, userData); } + void Add( wxSizer *sizer, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL ) + { wxFlexGridSizer::Add( sizer, proportion, flag, border, userData); } + void Add( int width, int height, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL ) + { wxFlexGridSizer::Add( width, height, proportion, flag, border, userData); } + void Add( wxSizerItem *item ) + { wxFlexGridSizer::Add( item); } + private: wxWindow *m_parent; unsigned int m_maxRows, m_maxCols;