Added more files containing original code and empty stubs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2003-03-22 02:38:01 +00:00
parent 94c3ff9091
commit 812edc2530
3 changed files with 206 additions and 0 deletions

41
src/cocoa/dcmemory.cpp Normal file
View File

@ -0,0 +1,41 @@
/////////////////////////////////////////////////////////////////////////////
// Name: src/cocoa/dcmemory.cpp
// Purpose: wxMemoryDC class
// Author: David Elliott
// Modified by:
// Created: 2003/03/16
// RCS-ID: $Id:
// Copyright: (c) 2002 David Elliott
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include "wx/dcmemory.h"
//-----------------------------------------------------------------------------
// wxMemoryDC
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxDC)
wxMemoryDC::wxMemoryDC(void)
{
m_ok = false;
};
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
{
m_ok = false;
};
wxMemoryDC::~wxMemoryDC(void)
{
}
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
{
}
void wxMemoryDC::DoGetSize( int *width, int *height ) const
{
}

33
src/cocoa/dcscreen.cpp Normal file
View File

@ -0,0 +1,33 @@
/////////////////////////////////////////////////////////////////////////////
// Name: src/cocoa/dcscreen.cpp
// Purpose: wxScreenDC class
// Author: David Elliott
// Modified by:
// Created: 2003/03/16
// RCS-ID: $Id:
// Copyright: (c) 2002 David Elliott
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include "wx/dcscreen.h"
//-----------------------------------------------------------------------------
// wxMemoryDC
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxDC)
wxScreenDC::wxScreenDC(void)
{
m_ok = false;
};
wxScreenDC::wxScreenDC( wxDC *WXUNUSED(dc) )
{
m_ok = false;
};
wxScreenDC::~wxScreenDC(void)
{
}

132
src/cocoa/listbox.mm Normal file
View File

@ -0,0 +1,132 @@
/////////////////////////////////////////////////////////////////////////////
// Name: cocoa/listbox.mm
// Purpose: wxListBox
// Author: David Elliott
// Modified by:
// Created: 2003/03/18
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include "wx/app.h"
#include "wx/listbox.h"
#include "wx/log.h"
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
END_EVENT_TABLE()
// WX_IMPLEMENT_COCOA_OWNER(wxListBox,NSButton,NSControl,NSView)
bool wxListBox::Create(wxWindow *parent, wxWindowID winid,
const wxPoint& pos,
const wxSize& size,
int n, const wxString choices[],
long style,
const wxValidator& validator,
const wxString& name)
{
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
if(m_parent)
m_parent->CocoaAddChild(this);
return true;
}
wxListBox::~wxListBox()
{
CocoaRemoveFromParent();
}
// pure virtuals from wxListBoxBase
bool wxListBox::IsSelected(int n) const
{
return false;
}
void wxListBox::SetSelection(int n, bool select)
{
}
int wxListBox::GetSelections(wxArrayInt& aSelections) const
{
return 0;
}
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
{
}
void wxListBox::DoSetItems(const wxArrayString& items, void **clientData)
{
}
void wxListBox::DoSetFirstItem(int n)
{
}
// pure virtuals from wxItemContainer
// deleting items
void wxListBox::Clear()
{
}
void wxListBox::Delete(int n)
{
}
// accessing strings
int wxListBox::GetCount() const
{
return 0;
}
wxString wxListBox::GetString(int n) const
{
return wxEmptyString;
}
void wxListBox::SetString(int n, const wxString& s)
{
}
int wxListBox::FindString(const wxString& s) const
{
return 0;
}
// selection
void wxListBox::Select(int n)
{
}
int wxListBox::GetSelection() const
{
return 0;
}
int wxListBox::DoAppend(const wxString& item)
{
return 0;
}
void wxListBox::DoSetItemClientData(int n, void* clientData)
{
}
void* wxListBox::DoGetItemClientData(int n) const
{
return NULL;
}
void wxListBox::DoSetItemClientObject(int n, wxClientData* clientData)
{
}
wxClientData* wxListBox::DoGetItemClientObject(int n) const
{
return NULL;
}