David Elliott
f7ef06022c
Fix wxExecute for ports other than wxMac and wxCocoa on Darwin
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 07:36:16 +00:00
Vadim Zeitlin
78a9e10da1
updated version to 2.5.3.1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 14:56:35 +00:00
Vadim Zeitlin
37c2aa46d0
fixed VC++ size_t -> int conversion warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 13:55:20 +00:00
Vadim Zeitlin
6ce8c562b2
don't use _() as default parameter for wxPrintDialogBase title
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 13:10:00 +00:00
Kevin Hock
34621cc5d6
Documentation patch from Olly Betts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 19:11:07 +00:00
Kevin Hock
1399de550a
Removed , from end of enumerated list wxPrintBin
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 17:13:35 +00:00
David Elliott
4092a27504
Change friendship so that the base implementation class is the friend.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 15:42:16 +00:00
Stefan Neis
21708c7331
Added stubs for OS/2 to new printing system.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-21 21:32:57 +00:00
David Webster
b5f10b014c
Get rid of the class naming conflict with the base header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-21 17:36:01 +00:00
Vadim Zeitlin
fdd99f154a
added wxTextInputStream::operator>>(wchar_t) for compilers which support this
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 22:50:03 +00:00
Vadim Zeitlin
4e689ecdb5
update g_isPainting in wxPaintEvent copy ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 22:10:35 +00:00
David Elliott
85c9f98b50
Rewrote wxSound:
...
* Get rid of #if wxUSE_SOUND from header. wx/sound.h checks this already.
* Get rid of pragma interface/implementation. Apple GCC dislikes them anyway.
* Allow source file to use precompiled headers (wx/wxprec.h)
* Include only needed AppKit/Foundation headers, not AppKit/AppKit.h.
* Implement simple constructors inline in header.
* Get rid of m_sndname and m_waveLength instance variables. They aren't used.
* Add copy constructor (why not).
* Move implementation of byte-array constructor into LoadWAV for consistency
with UNIX wxSound.
* LoadWAV (what was in the constructor) now properly allocs, inits, and
releases NSData. The old code for this was not valid.
* Rename lastSound to s_currentSound.
* Rename isLastSoundLooping to s_loopCurrentSound.
* Ignore the sound:didFinishPlaying: delegate message if it is received
for an NSSound other than s_currentSound.
* Create should not Stop the current sound.
* Don't use NSBundle to get a resource sound but use [NSSound soundNamed:]
which will include system sounds.
* Playing a sound synchronously uses wxEventLoop::Dispatch which will
really block (not spin the CPU like Yield). The sound is considered
finished playing when s_currentSound is set to something else. In order
to make sure we don't get stuck in this event loop the delegate
calls wxApp::WakeUpIdle if it releases s_currentSound.
* Have IsPlaying() check to make sure s_currentSound is not nil since
only messages returning another object or void are allowed to be
sent to nil objects.
Changes involving retain/release
* Get rid of comment about tricky API, it's not.
* Get rid of isLastSoundInScope. Cocoa has proper reference counting.
* Add SetNSSound which, like the rest of wxCocoa, retains/releases
appropriately, sets the delegate, and logs when WXTRACE=COCOA_RetainRelease.
* Destructor does SetNSSound(nil) which will always release the NSSound.
Create and LoadWAV use SetNSSound method like the rest of wxCocoa.
* Make the delegate always release s_currentSound if not (or if done) looping.
DoPlay sets s_currentSound to m_cocoaNSSound after retaining it so that
the delegate can always safely release it.
* Stop, like everything else, does not need check of isLastSoundInScope
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 21:04:52 +00:00
David Elliott
1e85b547a5
Added CocoaSetKeyEquivalent() that sets the accelerators. Only implemented
...
for letters, numbers, and ascii control characters. TODO: up/down/etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 19:18:46 +00:00
Vadim Zeitlin
c87beb79f2
include colour.h (fixes wxX11 compilation under Unix)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 17:29:21 +00:00
Vadim Zeitlin
8d8e24dfd7
removed duplicate #include
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 17:21:37 +00:00
Vadim Zeitlin
b67c2b8794
use slashes instead of backslashes and quotes instead of angle brackets in all #includes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 15:14:46 +00:00
Vadim Zeitlin
871cc651b7
only VC++ >= 7.0 has __COUNTER__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 10:47:28 +00:00
Włodzimierz Skiba
1c6f24145e
Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 01:20:58 +00:00
Vadim Zeitlin
c320b3e32d
initial Unix implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 00:35:26 +00:00
Vadim Zeitlin
edad629344
don't use wxCOMPILE_TIME_ASSERT2, wxCOMPILE_TIME_ASSERT works for VC++ too now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 00:34:40 +00:00
Vadim Zeitlin
ce336c6d76
moved AppendAppName() from MSW to common code; modified it to not double the trailing slash, if any
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 00:34:32 +00:00
Vadim Zeitlin
a39490aee6
removed special definition of wxCOMPILE_TIME_ASSERT2, keep it only for compatibility
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 00:33:31 +00:00
Vadim Zeitlin
c0fbf9294e
define wxMAKE_UNIQUE_NAME so that it works even in VC++ with /ZI (edit and continue) option: use __COU*NTER__ instead of __LINE__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 00:31:58 +00:00
Vadim Zeitlin
9b5d7dfcaf
removed unneeded junk copied from MSW port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 23:19:31 +00:00
Vadim Zeitlin
771be77f9a
fixed status bar source file name; removed wxUSE_NATIVE_STATUS_BAR; removed generic status bar file from makefile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 23:17:30 +00:00
Włodzimierz Skiba
ceb3b0d8e2
Warning fix to avoid typecasting with OW elsewhere.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 21:10:42 +00:00
Włodzimierz Skiba
7da60d7c18
OW warning fix. Our compile time asserts warns when used within function and dedicated #pragma seems not influence it so they are moved from functions into global space as near as possible.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 21:00:17 +00:00
Vadim Zeitlin
8a613d31a3
declaration (only, so far) for Unix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 18:51:17 +00:00
Vadim Zeitlin
40e8ee374f
initial implementation for MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 18:50:06 +00:00
Vadim Zeitlin
6cb5e50b0d
switched to using a real class instead of a namespace because of Mac base/GUI problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 18:49:02 +00:00
Vadim Zeitlin
6bb0970672
extracted LPITEMIDLIST wrappers in a separate header (also [will be] used by wxStdnardPaths)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 16:43:53 +00:00
Václav Slavík
ae688b6468
always use wxStaticCast in XRCCTRL (asserts in case of bad use in debug build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 15:13:11 +00:00
Julian Smart
e0f040b4bb
Removed accidentally committed file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:42:38 +00:00
Julian Smart
ffecfa5aeb
Committed William Osborne's wxPalmOS port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:40:30 +00:00
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