X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62f864c32c53356b7228591c85b14abc491c46f0..55ccdb93e4ae4b606a4068cb37492c1ec3ed77a6:/src/mac/classic/tabctrl.cpp?ds=sidebyside diff --git a/src/mac/classic/tabctrl.cpp b/src/mac/classic/tabctrl.cpp index 692507ef0c..067d6e820b 100644 --- a/src/mac/classic/tabctrl.cpp +++ b/src/mac/classic/tabctrl.cpp @@ -1,22 +1,28 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tabctrl.cpp +// Name: src/mac/classic/tabctrl.cpp // Purpose: wxTabCtrl // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "tabctrl.h" +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop #endif -#include "wx/defs.h" +#if wxUSE_TAB_DIALOG -#include "wx/control.h" #include "wx/tabctrl.h" + +#ifndef WX_PRECOMP + #include "wx/control.h" +#endif + #include "wx/mac/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl) @@ -38,16 +44,16 @@ bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons Rect bounds ; Str255 title ; - + m_imageList = NULL; - + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ; - - m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1, + + m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1, kControlTabSmallProc , (long) this ) ; - + MacPostControlCreate() ; - return TRUE ; + return true ; } wxTabCtrl::~wxTabCtrl() @@ -62,14 +68,14 @@ void wxTabCtrl::Command(wxCommandEvent& event) bool wxTabCtrl::DeleteAllItems() { // TODO - return FALSE; + return false; } // Delete an item bool wxTabCtrl::DeleteItem(int item) { // TODO - return FALSE; + return false; } // Get the selection @@ -103,7 +109,7 @@ int wxTabCtrl::GetItemCount() const bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const { // TODO - return FALSE; + return false; } // Get the number of rows @@ -145,7 +151,7 @@ int wxTabCtrl::HitTest(const wxPoint& pt, long& flags) bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data) { // TODO - return FALSE; + return false; } // Set the selection @@ -165,21 +171,21 @@ void wxTabCtrl::SetImageList(wxImageList* imageList) bool wxTabCtrl::SetItemText(int item, const wxString& text) { // TODO - return FALSE; + return false; } // Set the image for an item bool wxTabCtrl::SetItemImage(int item, int image) { // TODO - return FALSE; + return false; } // Set the data for an item bool wxTabCtrl::SetItemData(int item, void* data) { // TODO - return FALSE; + return false; } // Set the size for a fixed-width tab control @@ -202,3 +208,4 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id): { } +#endif // wxUSE_TAB_DIALOG