Commit Graph

338 Commits

Author SHA1 Message Date
Vadim Zeitlin
2d80da5f25 fix unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 13:52:58 +00:00
Vadim Zeitlin
163b3ad72c replace wrong WXDLLEXPORT declarations with correct WXDLLIMPEXP_BASE/ADV/GL (patch from Tim Stahlhut)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-12 01:35:53 +00:00
David Elliott
938156b255 Make wxCocoa compile with new pImpl wxDC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-04 04:22:16 +00:00
David Elliott
b3b0629c92 Remove wxDialogNameStr definition which should have been removed in r49873.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-19 19:06:21 +00:00
David Elliott
9a6ffa74e5 Resynch with 2.8 changes (realized I don't need __WX_COMPILING_COCOA_MSGDLG_MM__)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 19:02:06 +00:00
David Elliott
e5633f9a1f Add RCS-ID and normalize whitespace.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:58:47 +00:00
David Elliott
c4f2b985d7 Make new wxCocoaMessageDialog suitable for backport to 2.8.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:26:21 +00:00
David Elliott
e9871aaf86 Applied slightly-modified patch 1826540 from Gareth Simpson.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:11:17 +00:00
David Elliott
8e33de15b5 Add WXUNUSED to unused parameters in several inline-implemented methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 16:18:59 +00:00
David Elliott
500659a897 Added fontfactory.h that should have been part of 49213.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:01:37 +00:00
David Elliott
51146826fc Halfway reasonable implementation of wxFont for wxCocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 07:54:43 +00:00
David Elliott
99d21c0e1f Move wxCocoa's wxFontRefData from the header to the implementation file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 07:18:04 +00:00
David Elliott
e960ba596b Duplicate wxTextCtrl code to wxComboBox because we can no longer derive wxComboBox from wxTextCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-05 20:12:02 +00:00
Václav Slavík
fbbdc7bf85 use wxString's UTF8 methods in wxCocoa, it's slightly more efficient in UTF8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-21 09:40:36 +00:00
David Elliott
ea29564c40 Fix a number of problems with tracking rectangles by avoiding rebuilding them when unnecessary.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-19 03:25:17 +00:00
David Elliott
8ea3a63ea9 Use one run-loop observer for all synthesis of mouse moved events instead of a separate observer for each view.
Actually check the last mouse position and don't send synthesized events if the mouse hasn't moved.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-16 17:44:11 +00:00
David Elliott
e7e1ad7d93 Add support for uniquifying to all wxCocoa Objective-C classes.
Patch from Mark Taylor.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 16:10:19 +00:00
Václav Slavík
8da116cf66 wxCocoa compilation fixes for visibility (missing DLL export macros)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 13:05:35 +00:00
Vadim Zeitlin
becac1ef57 added wxToolTip::SetAutoPop() and SetReshow() (patch 1768804)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 12:57:36 +00:00
David Elliott
4f46c20bc4 Further simplificiation of the NSSlider/wxSlider interface such that the
various responder methods don't change the controls action but instead send
all actions through the normal wxCocoaNSControl action handling mechanism.
To determine what caused the action we save the message selector in a global
variable (safe since Cocoa does single-threaded event handling).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 04:12:44 +00:00
David Elliott
6c67fde0b8 Install wx/cocoa/objc/objc_uniquifying.h for wxCocoa and add a usage note
to the header.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-14 20:39:50 +00:00
Julian Smart
52af3158e9 Menu label consistency changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-11 17:54:59 +00:00
David Elliott
90f6792f53 Fix up NSSlider code to not use class posing and instantiate the proper type (now WXNSSlider) from slider.mm.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 20:12:06 +00:00
David Elliott
8d18e3653e Attempt to fix RCS-ID tags so svn will fill them in.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 19:26:10 +00:00
David Elliott
ddac39da93 Major wxCocoa wxSlider overhaul from Mark Oxenham.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 19:25:08 +00:00
David Elliott
715b3df02f Tell NSTextField to send us its action message and respond to it so we can generate wxEVT_COMMAND_TEXT_ENTER.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 18:40:56 +00:00
David Elliott
15f3714795 Implement transformation between the wxDisplay coordinate system and the Cocoa screen coordinate system.
Use this to fix TLW initial positioning/sizing (including wxTopLevelWindow, wxFrame, and wxDialog)
Use this to implement wxWindow::DoScreenToClient and DoClientToScreen
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 04:40:33 +00:00
David Elliott
e82b00a76d Remove virtual from the newly added Create methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 19:07:07 +00:00
David Elliott
d381b7dfdd Add wxBitmap constructors and Create methods to allow creating a wxBitmap from an NSBitmapImageRep or NSImage instance.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 19:05:51 +00:00
David Elliott
dc834029a3 Add Objective-C uniquifying to WXNSWindow and WXNSPanel
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 18:15:50 +00:00
David Elliott
9cce71a0f9 Implement wxStaticBitmap.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 16:53:32 +00:00
David Elliott
3c0f8ed250 Implement wxRadioButton Get/SetLabel methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:26:08 +00:00
David Elliott
525007cf12 Consolidate cocoa view/control/cell label setting into wxControl::CocoaSetLabelForObject.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 13:47:09 +00:00
David Elliott
eedf7bedb4 Remove bogus DoDelete from 44730. It's appears that it's supposed to be
DoDeleteItems which was added in a different place.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 21:00:55 +00:00
David Elliott
319fe1034c * Implement the wxMask copy constructor to retain the source object's
m_cocoaNSBitmapImageRep (fixes multiple release bug).
* Add some debug messages for unimplemented wxMask::Create overloads.
* Implement mask creation w/ key color from 8-bpp grayscale bitmap.
  This makes the mask image in the drawing sample's mask page work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 20:57:50 +00:00
David Elliott
05ef417f46 Add a Clear() method simply calling the wxComboBoxBase::Clear() to
disambiguate it with wxTextCtrl::Clear() since wxCocoa's wxComboBox derives
from wxTextCtrl for some reason.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-26 18:40:44 +00:00
Vadim Zeitlin
a236aa2058 many wxItemContainer-related changes:
1. the main function for item insertion is now DoInsertItems() which allows
   for much more efficient addition of many new items at once
2. the items client data management is done entirely in wxItemContainer
   itself, the derived classes don't have to distinguish between void and
   object client data
3. many fixes for sorted controls, in particular implemented wxCB_SORT support
   in wxGTK combobox


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-26 13:54:14 +00:00
David Elliott
e875c17db7 wxCocoa: Implement wxTopLevelWindow::SetDefaultItem
Copyright 2007, Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 20:35:57 +00:00
David Elliott
e7e97a594d wxCocoa: Basic support for font underlining:
* Make wxWindow::SetFont call wxWindowBase::SetFont.
* Make wxDC::SetFont store the font in existing m_font.
* Make wxFont::GetUnderlined return the m_underlined flag.
* Implement underlining in wxDC::DoDrawText
Copyright 2007, Software 2000 Ltd.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 19:05:56 +00:00
David Elliott
a8780ad5bb Implement wxWindow::SetCursor to invalidate Cocoa's cursor rects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 05:40:54 +00:00
David Elliott
259502c61d Implement wxCocoa wxRadioBox event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 18:52:12 +00:00
David Elliott
18359b1945 Make wxRadioButton::SetValue(true) deselect all other wxRadioButton in its group if it is part of a group.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 18:00:32 +00:00
David Elliott
4c1a4c4180 Implement most of wxRadioBox's methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 17:58:38 +00:00
David Elliott
9ed9755237 Partially implement wxRadioBox for wxCocoa.
Copyright 2007 Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-17 05:41:35 +00:00
Václav Slavík
650c0aa918 cleanup of raw access to bitmaps:
1. remove UseAlpha() on platforms that don't need it and call it automatically from ~wxPixelData instead of requiring explicit call; deprecate wxPixelData::UseAlpha()
2. don't call UngetRawData() if GetRawData() failed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-10 13:32:25 +00:00
Václav Slavík
b5dbe15d0b added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Paul Cornett
0728199b91 process pending wx events before sending idle events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-08 05:31:32 +00:00
David Elliott
4799f3baab Make wxCocoa compile in 64-bit mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-06 00:18:28 +00:00
David Elliott
d23bf09c7f Implement wxColour constructors to match other ports by adding char const * and wchar_t const * constructors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-05 22:20:40 +00:00
Václav Slavík
a1eb65c246 use wxString, not wxChar*, in wxDataFormat ctor and SetId() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-30 22:02:19 +00:00