Commit Graph

342 Commits

Author SHA1 Message Date
David Elliott
fa8114de44 Added wxObjcAutoRef* classes for automatic retain/release of Objective-C objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 17:43:59 +00:00
David Elliott
cd70b968e7 Removed extraneous m_items (the real one is in wxMenuBase)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 04:35:52 +00:00
David Elliott
7ce8248bc6 Make wxCocoa work with wxUSE_STL==1:
Use compatibility_iterator instead of Node and Erase instead of DeleteNode


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-26 03:11:51 +00:00
David Elliott
593b256f33 Construct wxCocoaNSWindow with a pointer to this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-03 03:45:38 +00:00
David Elliott
0092ef0d53 s/wxTopLevelWindow/wxTopLevelWindowCocoa/
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-03 03:44:20 +00:00
David Elliott
7a8691eec8 Constructor now takes a wxTopLevelWindow * = NULL so that the new
GetWxTopLevelWindow() method can be used.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-03 03:35:06 +00:00
David Elliott
205fef01e0 Implement wxMenuItemAction and validateMenuItem delegate virtuals
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-02 13:58:54 +00:00
David Elliott
7dd8b1ea10 Make wxMenuItemAction: and validateMenuItem: delegate messages take an
NSWindow* parameter instead of an id.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-27 06:07:47 +00:00
David Elliott
86adc75813 Implement wxMenuItemAction: and validateMenuItem: delegate messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-20 02:55:28 +00:00
David Elliott
c6f73d05cc Use one wxNSWindowDelegate instance per wxCocoaNSWindow instance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-19 06:32:34 +00:00
David Elliott
a619fa3f90 Add wxCocoa-specific trace masks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 07:04:09 +00:00
David Elliott
7f7b69e220 Applied modified 3-state checkbox patch from Mathew Cucuzella
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-02 04:58:16 +00:00
Mattia Barbon
584ad2a32f Added some missing STL-like wxArray/wxArrayString constructors.
Added helper class wxCArrayString, better replacement for
wxArrayString::GetStringArray.
  Added overloaded constructors and Create() methods taking
a wxArrayString for wxCheckListBox, wxChoice, wxComboBox,
wxListBox, wxRadioBox, wxSingleChoiceDialog, wxMultipleChoiceDialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 18:21:45 +00:00
David Elliott
b5df4fc722 wxCocoa: Better icon support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-27 06:01:34 +00:00
David Elliott
7b466aee08 Moved @interface wxNSApplicationDelegate to new header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-27 00:50:57 +00:00
Robin Dunn
fe4a107dda wxMenu::Append (and similar) now return a pointer to the wxMenuItem
that was added.  Checked on MSW, GTK, and Mac, other port authors
please double check changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 21:02:06 +00:00
Vadim Zeitlin
211436b6f4 use wxColourDatabase::Find(), not obsolete FindColour(), in wxColour::InitFromName()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 12:16:04 +00:00
Vadim Zeitlin
2ac400737a linking fix for wxCocoa apps using clipboard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:28:44 +00:00
David Elliott
9e888492a6 * Add Unicode support for wxNSStringWithWxString and wxInitNSStringWithWxString
* Add wxStringWithNSString which works for both WC and MB builds


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 06:18:06 +00:00
David Elliott
2b030203c5 Applied patch #881258: Add wxT() to debug messages and a few others
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 06:13:51 +00:00
David Elliott
f910a887bb Applied correct filename case for header imports from patch #881258
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 04:41:34 +00:00
David Elliott
7dafb55fde Very basic wxToolBar implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 15:36:56 +00:00
David Elliott
2cda55c5db Make UpdateFrameNSView public for new native wxToolBar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 15:25:12 +00:00
David Elliott
9c54e4ae1f Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
with or without the bitmap mask applied.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 19:30:54 +00:00
David Elliott
eb537cfb1c Improved idle event processing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 15:57:42 +00:00
Julian Smart
aad6765cbd Applied patch [ 828303 ] Slight wxColour cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 10:10:40 +00:00
David Elliott
016b064360 Implement wxMask given a wxBitmap and a mask wxColour.
TODO: Masks from other sources.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-08 15:01:39 +00:00
David Elliott
b60c6e9776 Added simple implementation of (Get|Unget)RawData.
Premultipied alpha is not handled at this point.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-06 23:27:08 +00:00
David Elliott
f99422e9e9 Added implementation of MDI using top level windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 16:03:08 +00:00
David Elliott
3905012063 Added a mechanism allowing a toplevel window to delay its deactivation
event.  This will come in handy for MDI among other things.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 15:13:55 +00:00
David Elliott
243f5c2d91 Renamed UpdateWindowMenuBar to UpdateMenuBar and removed unused parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 14:23:07 +00:00
David Elliott
8ded703ddc Add wxCocoaNSWindow* parameter to GetAppMenuBar so implementations can
return an alternate menubar based on the window which needs it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 20:37:16 +00:00
David Elliott
f1d04a42d5 * Removed CocoaInternalIdle()
* Removed methods that were called by wxTopLevelWindow notification handlers
* Removed now useless m_needMenuBar
* Added an Objective-C notification observer class
* Added methods to receive the notifications
* InstallMenuBarForWindow now takes a wxCocoaNSWindow
* Do not keep track of key/main window
* Keep track of window for which menu bar was installed (m_windowCurrent)
* SetMenuBar() will now install the main menu immediately


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 20:12:11 +00:00
David Elliott
360be3c012 Add virtual wxMenuBar* GetAppMenuBar();
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 19:53:31 +00:00
David Elliott
3e84f98ffa wxMenuBarManager::InstallMenuBarForWindow no longer looks for a menubar
attached to the parent of a window without one.  Instead, it is now up to
the GetAppMenuBar() function to do so.  The new implementation in
wxTopLevelWindow does just that.  The wxFrame implementation now calls
the base class version if it does not have a menubar.  Also, it is now
invalid to call the function with a NULL window (it is internal anyway).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 19:25:06 +00:00
David Elliott
9692f42bc6 Use NSWindow delegate notification windowWillClose instead of overriding close
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-06 19:17:11 +00:00
David Elliott
c1f12896c2 * Add bool parameter to WindowDidResignKey indicating whether the menu bar
should be changed to the common menubar or remain installed.
* Add back some assertions to ensure the code is working as intended.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-06 18:54:59 +00:00
David Elliott
0187ddb4a8 Use an application delegate object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-06 15:36:11 +00:00
David Elliott
518e56a71b Removed MainLoop, ExitMainLoop, Pending, and Dispatch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-03 13:15:56 +00:00
Vadim Zeitlin
dd435a79ed removed wxApp::Initialized() (replaced with a dummy version in wxApp itself); wxApp in wxGTK now uses wxEvtLoop too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 13:47:46 +00:00
Vadim Zeitlin
3bf5a59b5e pointer returned by GetNativeFontInfo() is now const and must not be deleted (replaces patch 810192)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 01:23:37 +00:00
Vadim Zeitlin
3a9fa0d6b5 added wxTextCtrl::MarkDirty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 00:09:18 +00:00
Vadim Zeitlin
1bf77ee556 use wxEventLoop in wxApp under wxMSW; factored out common code from wxX11/wxMotif/wxMGL to wxAppBase; changed wxApp::Dispatch() return type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 19:48:16 +00:00
David Elliott
cdd0a08f32 Clean up comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 15:22:45 +00:00
David Elliott
11573ad882 Implement wxSpinButton (except up/down events)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-08 19:03:31 +00:00
David Elliott
e0c691d13c Provide target/action mechanism for subclasses to use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-08 19:00:45 +00:00
David Elliott
b66e98539f Implement (sort-of) non-client wxWindowDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-08 15:42:40 +00:00
David Elliott
514e7b7bf8 Added virtual GetNonClientNSView()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-08 15:37:58 +00:00
David Elliott
080c7d56e0 * Added NSWindowStyleForWxStyle static method
* Create(): Handle window styles and initial frame size


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-08 14:51:38 +00:00
David Elliott
1f4e686615 Override CocoaSetEnabled because it's not an NSControl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-06 19:10:22 +00:00
David Elliott
f154ff6018 Implement wxChoice including sorting and client data
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-06 00:33:02 +00:00
David Elliott
363f7de02b Implement wxGauge
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 18:40:00 +00:00
David Elliott
faad188707 Override CocoaSetEnabled. NSProgressIndicator is not an NSControl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 18:19:11 +00:00
David Elliott
1981118d4b Works a little better when you remember to say "virtual"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 15:29:17 +00:00
David Elliott
af27ce842e Changed CocoaNotification parameter names to notification from userInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 14:59:51 +00:00
David Elliott
bcf0148786 Added ability to observe NSMenu notifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 14:50:31 +00:00
David Elliott
605c7e7ed8 * Move m_cocoaNSMenu out of wxCocoaNSMenu and into wxMenu and wxMenuBar
* Comment out wxPoserNSMenu (it's not needed for now, may never be)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 14:00:53 +00:00
David Elliott
456fef85bb Implement Cocoa_canBecomeMainWindow to say YES to Cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 01:40:52 +00:00
David Elliott
24c7767fc8 * Added GetAppMenuBar
* Removed Show
* Labeled (Attach|Detach)MenuBar as virtual
* Added SetMenuBar
* Implement (Attach|Detach)MenuBar using the wxMenuBarManager


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-05 01:39:55 +00:00
David Elliott
33faea0a0d * Added virtual GetAppMenuBar() which returns the app-wide menubar which
would be appropriate for this window, or NULL if the manager should decide
* Added Become/Resign Main handlers
* For all Become/Resign Main/Key handlers, notify the menubar manager


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 21:16:41 +00:00
David Elliott
8fc821cccf * Added delegate notifications for Become/Resign Main
* Added canBecomeMainWindow


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 20:59:30 +00:00
David Elliott
268bec5aee Added wxMenuBarManager
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 19:19:03 +00:00
David Elliott
aa992c594e Rename some of the Cocoa methods to reflect that they are implemented
by the NSWindow delegate.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-29 14:59:04 +00:00
David Elliott
78c67cb642 Use a delegate instead of manually adding notifications. Not only is this
less code, but a delegate will be required for future functionality.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-29 14:10:23 +00:00
David Elliott
2fc2d511d0 Send all menu item actions to a dedicated target. This is to ensure
the actions always make it to the proper wxFrame.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 17:49:51 +00:00
David Elliott
1d2412f77b CreateToolBar/SetToolBar wrapped in #if wxUSE_TOOLBAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-28 16:34:26 +00:00
David Elliott
5aa417d57c Send activate/deactivate events for become/resign key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 19:30:10 +00:00
David Elliott
720e01c312 Added a notification observer for NSWindow. Observe the become key and
resign key notifications. (window activation in wxWindows parlance)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-26 19:28:35 +00:00
David Elliott
c5172ed1bf Override CocoaSetEnabled() to call -[NSControl setEnabled:]
Do NOT forget to override this in subclasses which use a Cocoa view
not derived from NSControl.  Crashes will result.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 14:49:28 +00:00
David Elliott
761bdfaaa9 Override CocoaSetEnabled() to do nothing. Although static lines are
controls in the wxWindows sense, they are not in the Cocoa sense.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 14:47:24 +00:00
David Elliott
adb4816c3e Added machinery to Enable/Disable windows. When a window is disabled, it
disables all of its children.  Every window maintains a bool indicating
whether it should be enabled (i.e. Enable() was called on it directly).
When a window is reenabled, it reenables children, but only if they are
actually supposed to be enabled. Override CocoaSetEnabled() in subclasses
to actually enable/disable a Cocoa control.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 14:45:54 +00:00
David Elliott
d0a5e34a08 * Implement GetValue() and SetValue().
* Send event when clicked.
* Implement radio button grouping.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-18 18:27:48 +00:00
David Elliott
bcaadf7eae some more wxListBox support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-18 02:14:53 +00:00
David Elliott
2e024d8690 Added NSTableView support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-18 02:12:42 +00:00
David Elliott
e08efb8dd9 Handle setting of client size for all types of windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-17 23:23:26 +00:00
Václav Slavík
a3bf7524f3 removed WXWIN_COMPATIBILITY and WXWIN_COMPATIBILITY_2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-17 12:50:53 +00:00
David Elliott
cf774b6767 Stub for wxRegion::Offset
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 20:56:21 +00:00
David Elliott
448cbf1d4e Implemented toolbar/statusbar positioning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 20:34:07 +00:00
David Elliott
816c52cf7c Implemented window scrolling using wxWindowCocoaScroller
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 19:47:28 +00:00
David Elliott
d139c3a84b Added helper functions for setting initial window size:
* inline MakeDefaultNSRect makes an NSRect with position (10.0,10.0) and
  size based on the size passed to Create run through (Width|Height)Default
  This NSRect is to be used with the initWithFrame: initializer.
* SetInitialFrameRect is called after the window has been added to its parent
  and (if applicable) sized to fit.  If -1 is specified for a dimension then
  the fit/default size is kept.  If not, the window is sized to the specified
  size. It will be positioned in wxWindows coordinates (0,0==TL).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 19:37:45 +00:00
David Elliott
b93d8cc460 Don't send idle events while an assertion dialog is showing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 15:25:34 +00:00
Vadim Zeitlin
5da0803c15 renamed wxWindow::Clear() to ClearBackground() (fixes bug 783576)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-13 14:09:45 +00:00
David Elliott
a82b814137 Laid groundwork for scrolling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-12 02:58:04 +00:00
David Elliott
2d6c4e485c Added default implementation for drawRect and mouse events that returns
false so normal processing will take place.  Some users of wxCocoaNSView
may not wish to implement every event.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-11 13:47:50 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
David Elliott
ab13160e71 * When cloning the ref data, copy the NSBitmapImageRep instead of retaining it
* Added SetNSBitmapImageRep so that wxMemoryDC can update the contents by
  replacing the entire NSBitmapImageRep.
* Added ability to create bitmaps from width/height


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-08 14:49:53 +00:00
David Elliott
14fc7eb426 Don't install idle event handler in secondary threads.
I've not seen this happen yet, but it can, and I'm taking this precaution.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 03:42:25 +00:00
David Elliott
1f631557e0 Added dash support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 06:16:15 +00:00
David Elliott
8e51701313 wxPen implementation (no dash support yet)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-04 03:10:23 +00:00
David Elliott
b9505233a5 Keep track of the captured mouse window so the base GUI code thinks the window
is captured.  Doesn't capture it, but at least satisfies the assertions.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-29 02:20:51 +00:00
David Elliott
977ea6b6bf Added wxClipboard and wxDataObject (and friends) declarations and stubs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 19:07:26 +00:00
David Elliott
2c23fe91e3 wxCocoa: Added preliminary Blit support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 17:40:52 +00:00
Vadim Zeitlin
cfbef359d6 added default parameters to wxBrush/wxPen ctors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 23:13:15 +00:00
David Elliott
28f3fe51bd wxCocoa: Preliminary wxMemoryDC implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 20:55:50 +00:00
David Elliott
fe8f794343 Implemented wxDC stack with focus locking and unlocking
Implemented wxClientDC


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 17:06:02 +00:00
David Elliott
d135b1a5f7 wxCocoa: Added preliminary wxBitmap support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 00:27:32 +00:00
David Elliott
a4d592ff8d wxCursorRefData inherits from wxObjectRefData instead of wxBitmapRefData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 00:07:58 +00:00
David Elliott
ce319b6d1b Implement GetLabel and SetLabel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 14:54:59 +00:00
David Elliott
e92ea62916 SetStringSelection: wxString& should be const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 15:10:24 +00:00
David Elliott
24e97652b0 wxCocoa: Added wxGauge
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-15 14:04:22 +00:00
David Elliott
768d9ec8ca wxCocoa: Added wxSpinButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 17:33:36 +00:00
David Elliott
421a84317f wxCocoa: Added basic (i.e. not working) implementation of wxComboBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 15:58:33 +00:00
David Elliott
49e5528add Added default argument (true) to Show()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 14:43:34 +00:00
David Elliott
15d521a109 Added (Start|End)DrawingOnTop stubs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 13:59:20 +00:00
David Elliott
140e7468ab Place wxAutoNSAutoreleasePool in this header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 13:03:18 +00:00
Julian Smart
955a919785 Rationalised OnIdle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 08:41:08 +00:00
David Elliott
9977626de4 Put OnIdle() back. Without deleting pending objects, frames that have
been Destroy()ed (e.g. by the default close implementation) never actually
get deleted and thus the program never terminates because the
wxTopLevelWindowBase destructor is never called to do ExitMainLoop()
FIXME: Why isn't this OnIdle stuff simply in wxAppBase?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 03:48:20 +00:00
Vadim Zeitlin
5b72b34401 removed OnIdle() which didn't compile any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-14 00:50:57 +00:00
David Elliott
bac6f2348d Associate/Disassociate now check for non-NULL pointer instead of requiring
the caller to do so.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 17:47:57 +00:00
David Elliott
ed88188933 Implement SetBackgroundMode()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 20:59:27 +00:00
David Elliott
9d180f3ad0 Implement wxWindowDC::Clear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 18:38:44 +00:00
David Elliott
fcc9de5478 Store a pointer to the wxWindow in the wxWindowDC class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 14:56:56 +00:00
David Elliott
55c5be5e47 Avoid paint event recursion when the run loop is restarted inside the paint
event.  Usually for the purpose of showing an assertion dialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 14:24:47 +00:00
Julian Smart
e39af974ef - Moved wxApp::SendIdleEvents and wxApp::ProcessIdle into common code.
- wxWindow::OnInternalIdle is now used in all ports, and ensures that
  user OnIdle events do not interfere with crucial internal processing.
- wxWindow::UpdateWindowUI is now a documented function that
  sends wxUpdateUIEvents, and can be overridden. It has a helper function
  DoUpdateWindowUI for taking appropriate wxUpdateUIEvent action.
- Added functions to wxUpdateUIEvent: Set/GetMode, Set/GetUpdateInterval,
  CanUpdate, to assist with optimising update event frequency.
- Added functions to wxIdleEvent: Set/GetMode, CanSend, to
  determine whether a window should receive idle events.
- Added wxWS_EX_PROCESS_IDLE, wxWS_EX_PROCESS_UI_UPDATES window
  styles for use with conservative idle and update event modes.
- wxMSW and wxGTK now send menu update events only when a menu is
  about to be used.
- Added WM_INITMENU processing instead of WM_ENTERMENULOOP, or
  accelerators don't always get called since menu items may still
  be disabled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 10:15:21 +00:00
David Elliott
a58a661464 Position the status bar properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 15:09:15 +00:00
David Elliott
f162a33801 First hack at wxBrush for wxCocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 18:53:00 +00:00
David Elliott
7796b3d660 Added GetNSColor() accessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 17:59:52 +00:00
David Elliott
d318df4bbb Provide empty stubs for constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 17:51:08 +00:00
David Elliott
47f1ad6a71 Provide NSAutoreleasePool instances during initialization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 15:36:09 +00:00
David Elliott
87d77923a6 Removed conflicting wxEntry prototype
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 20:48:29 +00:00
David Elliott
462bc04863 It was not acceptable to call the class method from the static initializer
because it caused the load and initialize methods to be called.  Some of the
load and initialize methods used autorelease which would lead to warnings
about memory leaks (true, though very benign).
This version delays all Objective-C calls until InitializePosers().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 20:46:34 +00:00
Vadim Zeitlin
05e2b077c6 more work on fixing wxEntry() and ANSI/Unicode cmd line args mess
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 20:02:05 +00:00
Vadim Zeitlin
9482617091 extracted common initialization/cleanup functions in common/init.cpp; standardized wxEntry()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 18:43:09 +00:00
David Elliott
bf25264013 Changed bool WakeUpIdle() to void to match base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-25 02:10:36 +00:00
Vadim Zeitlin
e2478fde62 wxBase/GUI separation: 1st step, wxMSW should build, all the rest is broken
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 00:56:19 +00:00
Vadim Zeitlin
aaf7ab431b added wxIconLocation; minor fixes to wxIcon on some platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-21 13:39:40 +00:00
David Elliott
bfddb9239f Missed a few substitutions the first time around
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 22:16:22 +00:00
David Elliott
2ec55dc0be Added wxSlider stub
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 22:09:27 +00:00
David Elliott
683b185d01 First stab at wxColour using NSColor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-19 21:24:10 +00:00
David Elliott
724ebdde8a Added wxString to NSString conversion functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 21:09:21 +00:00
David Elliott
be65775665 Added stub for the new pure virtual DoInsert method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 01:38:13 +00:00
David Elliott
e668651137 Separated the Objective-C to C++ association code into the new header
ObjcAssociate.h.  That leaves ObjcPose.h for its original purpose and
avoids including it from any header files.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-19 17:51:50 +00:00
David Elliott
69dbb7098b Added InitMouseEvent helper method (like wxMSW)
Implemented the following mouse handlers:
mouseDown, mouseDragged, mouseUp, mouseMoved
Added stubs for the following mouse handlers:
mouseEntered, mouseExited, rightMouseDown, rightMouseDragged, rightMouseUp,
otherMouseDown, otherMouseDragged, otherMouseUp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-14 03:54:32 +00:00
David Elliott
fe802fc2ed Catch and forward the following mouse related events:
mouseMoved, mouseEntered, mouseExited
mouseDown, mouseDragged, mouseUp
rightMouseDown, rightMouseDragged, rightMouseUp
otherMouseDown, otherMouseDragged, oterMouseUp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-14 03:51:59 +00:00
David Elliott
6c342f3ff1 Whoops! Might want the headers too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-07 01:44:11 +00:00
David Elliott
2ace5cf632 Added GetBordersForSizer(int *bordertop, int *borderOther)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-05 23:26:30 +00:00
David Elliott
8ea5271ee7 Implemented wxWindowCocoa::Cocoa_drawRect
Implemented drawRect override in wxPoserNSView
Declared pure virtual wxCocoaNSView::Cocoa_drawRect
Made wxWindowCocoa::Cocoa_FrameChanged protected (unrelated)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-01 17:59:54 +00:00
Robin Dunn
1542ea396a Added wxTLW::SetShape and implementations for wxGTK, wxMSW and an
empty stub for wxMac.
Added some generic helpers and a new ctor to wxRegion.
Added samples/shaped.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-28 23:05:05 +00:00
David Elliott
acbf95340f - Remove wxTopLevelWindowCocoa from the wxRTTI class hierarchy
- DECLARE_NO_COPY_CLASS(wxTopLevelWindowCocoa);


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-24 17:06:28 +00:00
David Elliott
a24aff654f FIXME: Complete stubs or other cruft necessary to make wxCocoa build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-22 02:56:04 +00:00
David Elliott
da0634c140 Added more original works and stubs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-21 20:25:09 +00:00
David Elliott
fb896a322a Added original works and stubs to CVS repository
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-21 19:51:47 +00:00