📄 tabctrl.cpp
字号:
/////////////////////////////////////////////////////////////////////////////// Name: src/mac/classic/tabctrl.cpp// Purpose: wxTabCtrl// Author: Stefan Csomor// Modified by:// Created: 1998-01-01// RCS-ID: $Id: tabctrl.cpp,v 1.9 2006/05/26 10:15:37 ABX Exp $// Copyright: (c) Stefan Csomor// Licence: wxWindows licence/////////////////////////////////////////////////////////////////////////////#include "wx/wxprec.h"#ifdef __BORLANDC__ #pragma hdrstop#endif#if wxUSE_TAB_DIALOG#include "wx/tabctrl.h"#ifndef WX_PRECOMP #include "wx/control.h"#endif#include "wx/mac/uma.h"IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)END_EVENT_TABLE()wxTabCtrl::wxTabCtrl(){ m_imageList = NULL;}bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name){ if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) return false; 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, kControlTabSmallProc , (long) this ) ; MacPostControlCreate() ; return true ;}wxTabCtrl::~wxTabCtrl(){}void wxTabCtrl::Command(wxCommandEvent& event){}// Delete all itemsbool wxTabCtrl::DeleteAllItems(){ // TODO return false;}// Delete an itembool wxTabCtrl::DeleteItem(int item){ // TODO return false;}// Get the selectionint wxTabCtrl::GetSelection() const{ // TODO return 0;}// Get the tab with the current keyboard focusint wxTabCtrl::GetCurFocus() const{ // TODO return 0;}// Get the associated image listwxImageList* wxTabCtrl::GetImageList() const{ return m_imageList;}// Get the number of itemsint wxTabCtrl::GetItemCount() const{ // TODO return 0;}// Get the rect corresponding to the tabbool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const{ // TODO return false;}// Get the number of rowsint wxTabCtrl::GetRowCount() const{ // TODO return 0;}// Get the item textwxString wxTabCtrl::GetItemText(int item) const{ // TODO return wxEmptyString;}// Get the item imageint wxTabCtrl::GetItemImage(int item) const{ // TODO return 0;}// Get the item datavoid* wxTabCtrl::GetItemData(int item) const{ // TODO return NULL;}// Hit testint wxTabCtrl::HitTest(const wxPoint& pt, long& flags){ // TODO return 0;}// Insert an itembool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data){ // TODO return false;}// Set the selectionint wxTabCtrl::SetSelection(int item){ // TODO return 0;}// Set the image listvoid wxTabCtrl::SetImageList(wxImageList* imageList){ // TODO}// Set the text for an itembool wxTabCtrl::SetItemText(int item, const wxString& text){ // TODO return false;}// Set the image for an itembool wxTabCtrl::SetItemImage(int item, int image){ // TODO return false;}// Set the data for an itembool wxTabCtrl::SetItemData(int item, void* data){ // TODO return false;}// Set the size for a fixed-width tab controlvoid wxTabCtrl::SetItemSize(const wxSize& size){ // TODO}// Set the padding between tabsvoid wxTabCtrl::SetPadding(const wxSize& padding){ // TODO}// Tab eventIMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxCommandEvent)wxTabEvent::wxTabEvent(wxEventType commandType, int id): wxCommandEvent(commandType, id){}#endif // wxUSE_TAB_DIALOG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -