Commit Graph

180 Commits

Author SHA1 Message Date
Vadim Zeitlin
c1baf4b58b update for wxSHUTDOWN_LOGOFF/FORCE, should have been part of r54949
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-03 10:59:30 +00:00
Stefan Csomor
052e5ec5f3 osx regrouping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 20:15:25 +00:00
Vadim Zeitlin
fae7120624 use wxCmdLineParser::ConverStringToArgs() instead of (incorrectly) duplicating it here (#9743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:53:11 +00:00
Jouk Jansen
9b4fd94a4a Updates for VMS : new Makefiles, proper type casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-11 08:35:14 +00:00
Vadim Zeitlin
d7ef641d4e fix wxExecute() compilation in ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-24 23:13:12 +00:00
Vadim Zeitlin
05718a98f9 avoid needless Unicode<->MB conversions in Unix wxExecute(); simplify the code; provide both versions taking char** and wchar_t** for compatibility; also use wxMacExecute() (renamed to wxMacLaunch() to avoid confusion) from all wxExecute() overloads but don't use it if wxEXEC_SYNC was requested as it doesn't support it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 02:27:23 +00:00
Vadim Zeitlin
e528a71bf1 don't use negative PID hack in GUI neither, add a separate flag to wxEndProcessData for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 15:37:16 +00:00
Vadim Zeitlin
dbd1c638fe no real changes, just small cleanup after last few revisions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:55:46 +00:00
Vadim Zeitlin
b827d64707 refactored common code from XXX_EndProcessDetect in wxGTK[12] and wxMac/wxCocoa into wxHandleProcessTermination itself; also removed code dealing with negative pids as we don't use them any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:50:44 +00:00
Vadim Zeitlin
3bbd09c34c get rid of traits functions unnecessary now that wxExecute() works in both base and GUI ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:15:28 +00:00
Vadim Zeitlin
33343395da fixed IO redirection to work in wxExecute() in console applications (including the case when the child process outputs more than pipe buffer size) by using wxSelectDispatcher for multiplexing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:10:54 +00:00
Vadim Zeitlin
4d425deeb2 return bool from wxStreamTempInputBuffer::Update() indicating if anything was done; don't sleep in wxExecute() if IO is coming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:50:35 +00:00
Vadim Zeitlin
9d3845e884 extracted GUI-specific part of utilsunx.cpp to a new unix/apptraits.cpp file and don't include utilsunx.cpp in both base and GUI libraries now so that we can get rid of BASE_AND_GUI_UNIX_SRC in files.bkl entirely
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:46:04 +00:00
Vadim Zeitlin
2ecd1756e4 added wxWindowDisabler ctor for conditionally disabling all windows and use it in WaitForChild()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:06:57 +00:00
Vadim Zeitlin
1d043598b7 replace wxAddProcessCallback() with wxAppTraits::AddProcessCallback() to fix linking problems in Unix ports; also reduce code duplication between GUI and base versions making src/unix/baseunix.cpp unnecessary any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 00:07:13 +00:00
Vadim Zeitlin
9243700fb2 add support for asynchronous execution in wxBase (patch 1906889)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 16:46:38 +00:00
Václav Slavík
df405da528 fixed wxHAS_GENERIC_PROCESS_CALLBACK check to use #ifdef, not #if
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 19:34:58 +00:00
Václav Slavík
46c7e1a120 implemented wxExecute() for wxDFB; share the implementation with wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 18:52:55 +00:00
Václav Slavík
f8eb27bfc5 corrected WaitForChild comment about who sets endProcData->pid to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 12:19:22 +00:00
Vadim Zeitlin
76c39b5df1 test for __DARWIN__ with ifdef, not if
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 18:19:29 +00:00
David Elliott
a3261ffb75 Fix wxExecute process end detect behavior for wxCocoa and wxMac. I have no
idea why the current code used for Intel Macs doesn't work but it's not
working for me at all.  This should probably be backported to 2.8.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 08:51:45 +00:00
David Elliott
1a6d6b1071 Combine the check for wxMac and then the other check for wxMac/wxCocoa into
one define called USE_OLD_DARWIN_END_PROCESS_DETECT because it's wrong
to created pipeEndProcDetect on wxCocoa when it's not going to use it!
The next commit will show why it's now "Old".


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 08:37:11 +00:00
Vadim Zeitlin
14d6351382 always return wxString from wxGetUserHome() instead of char */wxWCharBuffer depending on the build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-06 12:38:15 +00:00
David Elliott
022a8d0284 Return true in wxSetEnv for unsetenv case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 01:37:06 +00:00
Vadim Zeitlin
65fd2fc261 correction to last commit: don't test unsetenv() return value, it's void under Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:39:29 +00:00
Vadim Zeitlin
a1353ea496 use unsetenv() instead of setenv(var, NULL) which is invalid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 22:29:07 +00:00
Vadim Zeitlin
c0472c7c9e added code to free memory allocated in wxSetEnv() when it uses putenv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-19 22:58:47 +00:00
Vadim Zeitlin
2f6aa043a6 simplify test for 64 bit architectures: just check if the string '64' occurs in the arch string, this also covers more cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-04 22:31:56 +00:00
Václav Slavík
90a77e6484 make wxSetEnv compatible with ANSI and Unicode, deprecate passing NULL to it in favour of wxUnsetEnv()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-19 20:02:49 +00:00
Václav Slavík
8650108199 don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Václav Slavík
0cb7e05cd1 PCH-less compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 15:50:07 +00:00
Vadim Zeitlin
bc855d0932 added wxEXEC_BLOCK flag (patch 1620430)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 00:18:09 +00:00
Vadim Zeitlin
e1379e29e2 don't return junk from wxGetOsVersion() if we failed to execute 'uname -r' (thanks coverity)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 13:22:18 +00:00
Vadim Zeitlin
69c928ef47 added wxSafeConvertMB2WX/WX2MB() and use them when interfacing with C functions which crash if we pass them NULL pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 23:38:42 +00:00
Vadim Zeitlin
40f00746d2 fixed overflow when using sysconf() to retrieve free memory (bug 1524157)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 01:20:59 +00:00
Vadim Zeitlin
ba2eff22a4 replaced wxLogDebug with wxLogTrace in wxExecute() to suppress annoying messages each time it is called
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:32:12 +00:00
Robin Dunn
1870f50ba9 fix for unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 20:01:55 +00:00
Vadim Zeitlin
1a5e269be8 (blind) fix for Tru64 compilation (bug 769360)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 13:23:20 +00:00
Vadim Zeitlin
7c28d921d7 fix wxGetFreeMemory() for Linux 2.6 (part of patch 1549176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-16 00:43:13 +00:00
Alex Bligh
648af63a53 Fix unicode build on UNIX operating systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-14 21:58:38 +00:00
Vadim Zeitlin
c655557fa6 wxGetOsVersion() compilation andl inking fixes for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 22:43:30 +00:00
Vadim Zeitlin
8bb6b2c057 wxPlatformInfo (patch 1532064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 21:00:32 +00:00
Michael Wetherell
bc023abbbb Detect and use sys/select.h required by POSIX for select
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-09 11:18:24 +00:00
Václav Slavík
1f3b2af0fe wxPipeInputStream depends on wxFile, use wxUSE_FILE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-08 13:11:52 +00:00
Vadim Zeitlin
355debca06 added wxPowerEvent; moved power functions stubs to common/powercmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-27 14:09:40 +00:00
Włodzimierz Skiba
670f993563 Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Włodzimierz Skiba
e4db172a3b Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
88a7a4e10e Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Włodzimierz Skiba
7520f3da33 wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 09:56:17 +00:00
Vadim Zeitlin
7ba7c4e62f use wxDiskspaceSize_t which is long and not wxLongLong if wxUSE_LONGLONG==0 (part of patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:21:14 +00:00