X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bc3b8e9680e8aa3d50ae4bb41dad22c6dd3ce1b..2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5:/src/mac/classic/tabctrl.cpp?ds=sidebyside diff --git a/src/mac/classic/tabctrl.cpp b/src/mac/classic/tabctrl.cpp index 4cec805ec2..067d6e820b 100644 --- a/src/mac/classic/tabctrl.cpp +++ b/src/mac/classic/tabctrl.cpp @@ -1,30 +1,34 @@ ///////////////////////////////////////////////////////////////////////////// -// 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" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl) BEGIN_EVENT_TABLE(wxTabCtrl, wxControl) END_EVENT_TABLE() -#endif wxTabCtrl::wxTabCtrl() { @@ -40,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() @@ -64,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 @@ -105,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 @@ -147,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 @@ -167,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 @@ -204,3 +208,4 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id): { } +#endif // wxUSE_TAB_DIALOG