David Elliott
3869473778
Limit wxListBox best size to 100x100. Particularly important on trunk where
...
the best size is not cached and will thus keep telling the sizers that the
best size is the full size of the content (i.e. such that you wouldn't need
to scroll it).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-18 21:51:29 +00:00
David Elliott
ee528046a4
Ensure that the NSTableColumn width is that of its largest item to enable
...
horizontal scrolling in wxListBox.
Copyright 2008 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-18 21:13:58 +00:00
David Elliott
23c7aef4b7
Add a new macro to the Objective-C uniquifying support that allows a
...
uniquified class to be a subclasses of another uniquified class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-18 20:36:16 +00:00
David Elliott
f033c4562a
Move wxWindowCocoaScrollView class into its own header.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-14 20:40:16 +00:00
David Elliott
caea5ecdc0
Fix tracking rectangles in 64-bit build by remembering the tag as the 64-bit integer that it is in that mode.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 09:12:04 +00:00
David Elliott
1be61dfe2d
Reword the comment again. I forgot to save before committing.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 08:06:26 +00:00
David Elliott
7f6224c05e
Change the __NEXT_RUNTIME__ test to __OBJC_GC__ which is what I really meant
...
but I had to look up which preprocessor define was emitted by -fobjc-gc.
Also improve the comments a bit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 08:04:46 +00:00
David Elliott
ff544956a5
Avoid warnings in the Objective-C uniquifying code when running in GC mode.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-08 04:24:35 +00:00
David Elliott
f42fc2c1a7
Instead of using wxCFRetain/wxCFRelease directly for Objective-C objects add
...
new wxGCSafeRetain/wxGCSafeRelease functions which are specific to Objective-C
objects and can be compile-time switched to standard retain/release without
breaking wxCFRetain/wxCFRelease for CF objects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 23:37:30 +00:00
David Elliott
78b65191d6
Fix most of the Objective-C GC problems by using the stronger CFRetain/CFRelease in wxObjcAutoRef.
...
Actually use wxObjcAutoRef for the wxNSViewNotificationObserver singleton to keep it from being finalized.
Copyright 2008 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 20:10:07 +00:00
David Elliott
75027d2856
Implement text update events so the spin control works better.
...
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 05:08:21 +00:00
David Elliott
b060a142a6
Add RCS-ID and normalize whitespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:56:31 +00:00
David Elliott
0cfe8dc0fa
Reconcile 2.8/trunk wxMessageDialog differences.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:48:59 +00:00
David Elliott
a2fa59b890
Merge new wxCocoaMessageDialog from trunk.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 18:32:38 +00:00
David Elliott
0d220868d4
Merge 49213/49214 from trunk. Working wxFont implementation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-18 08:23:05 +00:00
David Elliott
605d362b4f
Move wxCocoa's wxFontRefData from the header to the implementation file.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-13 07:18:04 +00:00
David Elliott
7748a0b287
Merged 47941 from trunk:
...
Implement wxRadioButton Get/SetLabel methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-03 18:16:03 +00:00
David Elliott
aadb49f665
Implement wxButton::SetDefault to call SetDefaultItem on the top-level window.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-03 17:17:35 +00:00
David Elliott
7f3f8ee6ac
Merged 48150 and 48169 from trunk:
...
Improve the tracing of the tracking rect manager and mouse movement synthesizer.
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/branches/WX_2_8_BRANCH@48170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-19 03:37:08 +00:00
David Elliott
acc7223944
Merged 48131 from trunk:
...
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/branches/WX_2_8_BRANCH@48133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-16 17:58:41 +00:00
David Elliott
d50b18a354
Use the new wxUSE_ABI_INCOMPATIBLE_FEATURES to enable enhancements for wxCocoa builds.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 17:58:46 +00:00
David Elliott
83b3034b24
Merged 48106 from trunk:
...
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/branches/WX_2_8_BRANCH@48107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 16:12:45 +00:00
David Elliott
1346171e5f
Merge in the recent wxSlider work from svn trunk (various commits). This patch keeps ABI compatibility but won't yet
...
generate events caused by mouse movement (next commit will do that ABI compatibly).
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 04:42:44 +00:00
David Elliott
e62c4f3047
Merged 48068 from trunk:
...
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/branches/WX_2_8_BRANCH@48069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-14 20:56:47 +00:00
Julian Smart
fb9c1ff9cb
Binary compatible API fixes for menu label retrieval with and without
...
mnemonics/accelerators.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-13 17:07:01 +00:00
David Elliott
bd0a55df29
Merge 48007 from trunk:
...
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/branches/WX_2_8_BRANCH@48008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 18:44:58 +00:00
David Elliott
3ea8f7f2af
Merged 47994 from trunk. WARNING: changes runtime behavior:
...
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/branches/WX_2_8_BRANCH@47995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-10 04:47:49 +00:00
David Elliott
94d815b39e
Merged 47990 and 47991 from trunk:
...
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/branches/WX_2_8_BRANCH@47992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 19:08:30 +00:00
David Elliott
3a26d6e324
Merged 47988 from trunk:
...
Add Objective-C uniquifying to WXNSWindow and WXNSPanel
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 18:17:18 +00:00
David Elliott
b41c7b7ed7
Merged modified 47984 from trunk:
...
Implement wxStaticBitmap.
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 17:01:14 +00:00
David Elliott
3a1a045929
Merged 44792 (NOTE: CVS) from trunk:
...
implemented GetLabel() (part of patch 1679337)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 14:55:00 +00:00
David Elliott
9330455ae2
Merged 47902 from trunk:
...
Consolidate cocoa view/control/cell label setting into wxControl::CocoaSetLabelForObject.
Also implements wxStaticBox Get/SetLabel which wasn't in the 2.8 branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-06 14:19:41 +00:00
David Elliott
19d3db8dec
Merged trunk 46229 (NOTE: CVS) inside #if 0 pending research into how to do it in an ABI-compatible way:
...
Implement mouse entered, exited, and synthesize move events while the mouse is inside.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 19:06:06 +00:00
David Elliott
d6c69e0dec
Merged trunk 47757:
...
* 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/branches/WX_2_8_BRANCH@47759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 21:45:12 +00:00
David Elliott
a8634fc361
wxCocoa: Implement wxControl::GetLabel/SetLabel by stowing the label in the
...
wxNonControlNSControl instance used when the wxControl is a non-native
subclass (e.g. a generic control).
Not needed in trunk since there is now m_labelOrig.
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 22:11:16 +00:00
David Elliott
d4364d403b
Merged trunk 47600:
...
wxCocoa: Implement wxTopLevelWindow::SetDefaultItem
Copyright 2007, Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 20:41:05 +00:00
David Elliott
729535acbe
Merged trunk 47598:
...
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/branches/WX_2_8_BRANCH@47599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 19:47:02 +00:00
David Elliott
eb6e94c125
Merged trunk 47585:
...
Implement wxWindow::SetCursor to invalidate Cocoa's cursor rects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 05:47:19 +00:00
David Elliott
5c40864f51
Merged trunk 47523, 47567, 47569 (full wxRadioBox implementation):
...
* Partially implement wxRadioBox for wxCocoa.
* Implement most of wxRadioBox's methods.
* Implement wxCocoa wxRadioBox event.
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 19:48:55 +00:00
David Elliott
a735b922c9
Merged trunk 47568:
...
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/branches/WX_2_8_BRANCH@47572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 19:44:59 +00:00
David Elliott
f4bf53c757
Merged 46227 from trunk (Note:CVS):
...
Allow many Objective-C classes to be uniquified at runtime.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 21:49:41 +00:00
David Elliott
f9f9b40c64
Merged 46116 from trunk (NOTE: CVS):
...
* Add public wxApp::sm_isEmbedded flag like on wxMac. Default initialization
to true but a plugin can set it to false to cause wxCocoa to not initialize
things like the application delegate or the menubar manager.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 21:30:31 +00:00
David Elliott
428424f525
Merged modified 46013 from svn trunk (NOTE: CVS).
...
Rework idle handling so that NSApplication does not need to be subclassed or posed as.
Copyright Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 21:14:45 +00:00
David Elliott
65f7483bd6
Merged 47182 from svn trunk:
...
Make wxCocoa compile in 64-bit mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 03:06:22 +00:00
David Elliott
4084e91fe6
Merged 46226 from svn trunk (Note: CVS):
...
Add implementation of Objective-C class name uniquifying.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 02:49:34 +00:00
David Elliott
8933152887
Merged (slightly modified to maintain ABI compatibility) r45554 from trunk (Note: CVS):
...
Remove Objective-C class posing for everything except for NSApplication.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-12 21:17:27 +00:00
David Elliott
a73e1b2d97
Merged r45553 from trunk (note: CVS):
...
Move Objective-C interfaces into separate header files in preparation for being able
to use them from other source files.
No new or changed code. Work on behalf of Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-12 20:46:00 +00:00
Vadim Zeitlin
73b30256a0
default name of wxStaticLine should be wxStaticLineNameStr, not wxStaticTextNameStr
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-09 14:52:59 +00:00
Vadim Zeitlin
067c050c8e
blind compilation fix: include wx/window.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-03 19:22:38 +00:00
Vadim Zeitlin
fea35690f1
Added wxMemoryDC::SelectObjectAsSource() and make SelectObject() unshare
...
the bitmap to ensure that no other bitmaps are modified; also remove some code
duplication by introducing wxMemoryDCBase (patch 1580745)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 19:41:46 +00:00