X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0147a7c1409829913d5cdfc29d3d1588f29c64cb..bf354396f61a2e1bd5544b67ecde341b6ff9bf35:/demos/dbbrowse/tabpgwin.h diff --git a/demos/dbbrowse/tabpgwin.h b/demos/dbbrowse/tabpgwin.h index c9928ebf85..51ec6dd651 100644 --- a/demos/dbbrowse/tabpgwin.h +++ b/demos/dbbrowse/tabpgwin.h @@ -8,9 +8,9 @@ // - restruction of Variable declaration // - to prevent Warnings under MingGW32 // Modified by: 19990909 : mj -// - mNoVertScroll TRUE = no / FALSE = Original Code +// - mNoVertScroll true = no / false = Original Code // the Original Code Paints a Vertical Scroll in wxPagedWindow -// which is not needed in this Version. Use TRUE for this. +// which is not needed in this Version. Use true for this. // Created: 07/09/98 // RCS-ID: $Id$ // Copyright: (c) Aleksandras Gluchovas @@ -68,7 +68,7 @@ public: public: - // public properties (invoke ReclaclLayout(TRUE) to apply changes) + // public properties (invoke ReclaclLayout(true) to apply changes) int mVertGap; // default: 3 int mHorizGap; // default: 5 @@ -83,13 +83,13 @@ public: wxPen mDarkPen; // default: RGB(128,128,128) wxPen mBlackPen; // default: RGB( 0, 0, 0) - int mActiveTab; + size_t mActiveTab; int mTitleHeight; int mLayoutType; // notifications (can be handled by derivatives) - virtual void OnTabAdded( twTabInfo* pInfo ) {} + virtual void OnTabAdded( twTabInfo* WXUNUSED(pInfo) ) {} virtual void SizeTabs(int x,int y, int width, int height, bool repant); @@ -102,7 +102,7 @@ public: virtual void AddTab( wxWindow* pContent, // contained window wxString tabText, // tab label - wxString imageFileName = "", // if "", only text label is displayed + wxString imageFileName = _T(""), // if "", only text label is displayed wxBitmapType imageType = wxBITMAP_TYPE_BMP ); // NOTE:: if this AddTab(..) overload is called, the @@ -112,7 +112,7 @@ public: virtual void AddTab( wxWindow* pContent, wxString tabText, - wxBitmap* pImage = NULL ); + wxBitmap* pImage ); virtual void RemoveTab( int tabNo ); @@ -135,7 +135,7 @@ public: // should be invoked to redisplay window with changed properties - virtual void RecalcLayout( bool andRepaint = TRUE ); + virtual void RecalcLayout( bool andRepaint = true ); // event handlers @@ -180,7 +180,7 @@ public: int mTitleRowStart; int mResizeNailGap; int mTitleRowLen; // actual title row length - int mNoVertScroll; // No Vertical Scroll TRUE/FALSE + int mNoVertScroll; // No Vertical Scroll true/false void DrawPaperBar( twTabInfo& tab, int x, int y, wxBrush& brush, wxPen& pen, wxDC& dc ); @@ -200,7 +200,7 @@ public: public: wxPagedWindow(); - ~wxPagedWindow(); + ~wxPagedWindow(){}; // NOTE:: use public methods of the base class // to add "pages" to this window @@ -222,7 +222,7 @@ public: virtual int HitTest( const wxPoint& pos ); - virtual void RecalcLayout( bool andRepaint = TRUE ); + virtual void RecalcLayout( bool andRepaint = true ); // event handlers @@ -243,7 +243,7 @@ class twTabInfo : public wxObject DECLARE_DYNAMIC_CLASS( twTabInfo ) public: twTabInfo(); - ~twTabInfo(); + ~twTabInfo(){}; int ImgWidth(); int ImgHeight();