David Elliott
4858097646
Use wxLogTrace instead of wxLogDebug for trace messages
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 07:07:04 +00:00
David Elliott
079cc3b670
* GetValue() now returns true if the state is undetermined
...
* Commented out some assertions that are handled in the base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-02 23:09:40 +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
d23193b224
Use wxBitmap::GetNSImage(false) instead of duplicating code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-29 06:34:26 +00:00
David Elliott
f8c10ed8b3
ConvertToImage: Check !Ok() (we may not have any ref data at all) and if
...
the bitmap is not okay return wxNullImage (instead of a dummy 5x5 image)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-29 06:26:10 +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
cbcf084b05
minimal changes needed to allow linking wxCocoa as shared lib
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 13:35:08 +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
e9cece45b9
suppress warnings about implicit float -> int conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:55:03 +00:00
Vadim Zeitlin
c041438d3f
warning about returning something from a void function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:53:29 +00:00
Vadim Zeitlin
2108cc974f
suppress warnings about implicit double -> int conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 11:52:34 +00:00
David Elliott
b0c0a393c4
Unicode build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 07:29:54 +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
1d17f92389
Removed this file since it was only stubs and we now have the common
...
Mac OS X implementation in src/mac/gsockosx.c(pp)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 21:57:52 +00:00
David Elliott
990ef031fd
Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-17 21:49:47 +00:00
Julian Smart
6463b9f539
Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 13:49:22 +00:00
David Elliott
6edf960cf5
IsInAssert is only available (and only makes sense) in a debug build so
...
don't try to call it in a release build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-14 04:44:37 +00:00
David Elliott
096a56242d
Added empty base class constructors. This will still be broken for anything
...
other than MSW, Mac, and Univ.
Julian: Fix this the right way.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-14 03:52:50 +00:00
Julian Smart
1169a91932
Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
(Watcom compiler doesn't like ctor implementation in headers)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:33:01 +00:00
David Elliott
e1f4ff6ddc
Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 19:30:41 +00:00
David Elliott
7c5fbe2a79
1. Initialize m_mouseDownTool = NULL. Fixes crash when clicking a non-tool part of the toolbar before clicking a tool.
...
2. Added wxAutoNSAutoreleasePool to CreateButtonCell() and Realize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 19:28:21 +00:00
David Elliott
6613dc3fd6
In UpdateFrameNSView size the toolbar to its best size.
...
When creating or setting a frame's toolbar, SetOwningFrame on it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-16 17:26:37 +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
a00daa65ec
Use wxBitmap::GetNSImage() in wxDC::DrawBitmap. Mask support now works.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 21:07:44 +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
f9c135f5ec
Strip menu codes from label
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 16:49:46 +00:00
David Elliott
bed6fe0c16
Wrap some functions with wxAutoNSAutoreleasePool
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-15 16:23:29 +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
David Elliott
ea3d4caf99
Add support for wxMask creation from RGBx data (x=unused)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-09 03:21:38 +00:00
David Elliott
ce20d822b0
Compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-08 15:07:25 +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
9f13cca8f6
Very lame fix for windows with -1 for a component of position or size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 14:33:30 +00:00
David Elliott
46cdffaf79
Fix file header and remove unused include "wx/cocoa/mbarman.h"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 14:28:53 +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
a381cfaa2d
Don't pass notifications to wxMenuBarManager. It will be getting its own.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 20:04:24 +00:00
David Elliott
96c36a9310
Don't call wxMenuBarManager::CocoaInternalIdle(). It is about to be removed.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 20:02:32 +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
7424a6375b
Changed Command to ProcessCommand
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 18:14:39 +00:00
David Elliott
372208c2e6
Use a lowercase 'q' for the Quit menu item's keyEquivalent.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-04 20:00:37 +00:00
David Elliott
6e09ff550a
Removed call to InitBase() from wxWindowCocoa::Init()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-04 19:45:59 +00:00