Vadim Zeitlin
d80fc6df55
define __WXOSX__ for wxMac/Cocoa; document it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 09:02:10 +00:00
Vadim Zeitlin
0b75a1e039
fixed include guard after renaming the file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 23:28:41 +00:00
Vadim Zeitlin
48713afd53
- added and documented Get/SetInstallPath() under Unix
...
- corrected returns values of several functions for Mac OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 23:27:37 +00:00
Vadim Zeitlin
96e2aec50a
renamed wxFileLocator to wxStandardPaths
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 22:35:51 +00:00
Vadim Zeitlin
94009d33c1
unsigned off_t doesn't exist
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 22:17:07 +00:00
David Elliott
a2c1097b8a
Renamed m_hSnd to m_cocoaNSSound (match rest of wxCocoa).
...
Create delegate as a static member shared by all instances.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 22:12:57 +00:00
David Elliott
4fca6ee1a6
Removed some extraneous whitespace.
...
Changed YES/NO to true/false; do not confuse BOOL (Objective-C) with bool (C++).
Changed some of the indentation to match that the rest of wxCocoa.
There was an if (isLastSoundInScope = NO) which I think was wrong not only
because it used NO rather than false but also because it's an assignment
rather than a test. Changed it to if (!isLastSoundInScope).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 21:41:34 +00:00
David Elliott
f31424dbe9
wxCocoa: Add native file dialog from Ryan Norton. Modified patch #1039368
...
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1039368&group_id=9863
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 19:15:42 +00:00
Václav Slavík
e0aeebed0a
fixed previous revision: call wxControl's, not wxButton's DoGetBestSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 13:13:39 +00:00
Václav Slavík
b2b4469be1
wxBitmapButton doesn't need own DoGetBestSize, wxControl's one works (fixes sizing bug)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 12:38:21 +00:00
Włodzimierz Skiba
1b941f2d31
Warning fixes for OpenWatcom.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 05:56:07 +00:00
Vadim Zeitlin
a018a119bd
added wxDynamicLibrary::HasSymbol()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 23:20:51 +00:00
Robert Roebling
fd64de596c
Renamed wxPrintNativeData methods to better match
...
those of the preexisting wxMac class. This should
make transition of the wxMac classes to the new
wxPrintNativeData classes easier.
Renamed wxWindowsPrintNativeData to a proper name
that is less confusing (GetNativeData -> GetDevMode).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 23:00:41 +00:00
Vadim Zeitlin
1ee445c75b
added interface for wxFileLocator class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 21:43:08 +00:00
Robert Roebling
8850cbd3c3
First step at moving the print (dialog) native
...
data into native dirs and cleaning up the code.
The native part of wxPrintData is now created
via the wxPrintFactory. I moved the code for
PostScript to /src/generic/prntdlgg. and for
MSW to its the respective dir. I only made
wxMac compile, but it already has a native
print data class, which should be easy to
merge.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 17:25:40 +00:00
Stefan Csomor
684e0b31ef
__WXMAC_OSBUILDTYPE__ selections are now only defined if they are TRUE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 10:45:21 +00:00
Stefan Csomor
ca80fdee5e
__WXMAC_OSBUILDTYPE__ selections are now only defined if they are TRUE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 10:36:33 +00:00
Robin Dunn
6636ac1ea9
Use Scintilla's functions for Unicode/UTF8 conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 02:27:22 +00:00
Vadim Zeitlin
d4cace1ccd
use common code to determine best notebook size instaed of Mac-specific which mistakenly used current pages sizes and not the best ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 01:00:31 +00:00
Robert Roebling
c061373dc5
Began work on print dialogs. Now wxPrintDialog
...
is a pimpl implementation of the native
dialog classes, which are created in wxPrintFactory.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 22:11:48 +00:00
Václav Slavík
9a8d8c5a51
don't use m_instanceAsWindow to convert dialog units, it's not fully constructed yet and can't provide the information
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 21:52:54 +00:00
Vadim Zeitlin
3db7220e05
unused params warnings (patch 1048431)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 19:41:18 +00:00
Vadim Zeitlin
7561181f03
suppress VC++ warning about long -> void * conversion too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 13:39:45 +00:00
Vadim Zeitlin
7a295dfa5c
fixed enhanced metafiles loading from files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 13:31:27 +00:00
Vadim Zeitlin
8fc2f387cd
added missing WXDLLEXPORT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 00:45:07 +00:00
Vadim Zeitlin
b4cfe261db
implemented SetWildcard()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 22:55:13 +00:00
David Elliott
f1d9e1ec6b
wxCocoa: Added wxTaskBarIcon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 22:52:28 +00:00
Vadim Zeitlin
2782282522
use wxPtrToUInt/UIntToPtr instead of (removed) ULong versions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 21:10:45 +00:00
Vadim Zeitlin
dffd27ec31
removed pragma interface which resulted in link errors when inline functions from this file were used; remove wxULongToPtr/wxPtrToULong which could truncate the pointer; added wxUIntToPtr in addition to existing wxPtrToUInt (which now takes const pointer) to replace them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 20:58:23 +00:00
Vadim Zeitlin
f12885449a
use wxPtrToUInt instead of (lossy) wxPtrToULong
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 20:35:39 +00:00
Włodzimierz Skiba
409ded0fc5
Unnecessary wxString(wxString).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 19:50:37 +00:00
Włodzimierz Skiba
9f13661f8b
Parts of wxSizer::Show() extracted into wxSizer::GetItem() (together with documentation).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 18:58:52 +00:00
Włodzimierz Skiba
414dfb5804
DMC fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 15:05:52 +00:00
Vadim Zeitlin
1a14587d59
VC++ warning fixes for /Wp64
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 13:09:00 +00:00
David Elliott
950432e407
Allow the wxMenu to be owned by the NSMenu so that it can be returned
...
from methods which Cocoa calls when a menu is to be popped up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 03:06:50 +00:00
David Elliott
3312496dcc
Allow the dealloc message to be caught
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 02:55:15 +00:00
David Elliott
d04995b3a6
Use wxObjcAutoRefFromAlloc for sm_cocoaTarget.
...
Move some processing code from wxMenuItemAction to CocoaItemSelected.
Add Cocoa_validateMenuItem and use it instead of calling IsEnabled directly.
Do not set the target or action for wxMenuItem that open submenus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 01:39:35 +00:00
Vadim Zeitlin
bd3cea7d2c
fixed wxFileSize_t definition under Unix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:23:32 +00:00
Vadim Zeitlin
02aef13c07
made Tell/Seek/Length() return wxFileSize_t as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:22:27 +00:00
Vadim Zeitlin
93e0db9a80
added wxFileSize_t, changed types of wxFile methods/parameters once again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:01:00 +00:00
Ryan Norton
af17760d08
Reverted and fixed really broken overcommit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 14:07:27 +00:00
Julian Smart
608754c4a3
Added SetScrollLinesX, SetScrollLinesY so apps can work around scrollbar
...
appearance problems by setting the scroll increment to e.g. 1
(Scrollbar problems caused by rounding errors - see comments in grid.cpp).
Also removed obsolete functions from reference, rearranged alphabetically
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 10:28:20 +00:00
David Elliott
ccdc365485
Removed empty wxCocoa wxFileDialog implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 03:39:47 +00:00
David Elliott
5de1602ce1
Reverted broken test to determine wxHAS_TASK_BAR_ICON
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 03:05:41 +00:00
David Elliott
ec7c50a5ed
Removed empty wxCocoa taskbar files and broken files.bkl commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 03:01:44 +00:00
Włodzimierz Skiba
5e233068dc
Darwin fixes (OW,BCC,MinGW,DMC tested).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 14:09:48 +00:00
Włodzimierz Skiba
6fb99eb3b7
Semicolon fixes according to Vadim's note about being danger (OW,BCC,MinGW,DMC tested).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 14:04:19 +00:00
Robert Roebling
e81e3883b9
Added new wxPrintFactory code and made wxPrinter
...
and wxPrintPreview make use of it. BIG CHANGE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 21:07:42 +00:00
Włodzimierz Skiba
e4a4a50b90
Reverted due to Darwin and other conflicts.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 20:48:22 +00:00
Włodzimierz Skiba
05689a13cc
Reverted conflict with Darwin.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 20:14:23 +00:00