From: David Elliott Date: Sat, 22 Mar 2003 02:38:01 +0000 (+0000) Subject: Added more files containing original code and empty stubs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/812edc25309a5f2e7fda349d9b135b512b6f03c5 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 --- diff --git a/src/cocoa/dcmemory.cpp b/src/cocoa/dcmemory.cpp new file mode 100644 index 0000000000..af89b673c5 --- /dev/null +++ b/src/cocoa/dcmemory.cpp @@ -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 +{ +} + diff --git a/src/cocoa/dcscreen.cpp b/src/cocoa/dcscreen.cpp new file mode 100644 index 0000000000..ade3a4c0d8 --- /dev/null +++ b/src/cocoa/dcscreen.cpp @@ -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) +{ +} + diff --git a/src/cocoa/listbox.mm b/src/cocoa/listbox.mm new file mode 100644 index 0000000000..41bd84681b --- /dev/null +++ b/src/cocoa/listbox.mm @@ -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; +} +