summaryrefslogtreecommitdiff
path: root/lib/wx
Commit message (Collapse)AuthorAgeFilesLines
* Prepare releaseErlang/OTP2020-05-112-1/+28
|
* Merge branch 'sverker/win-compile-warnings/OTP-15800'Sverker Eriksson2020-05-031-2/+4
|\ | | | | | | | | | | | | | | | | | | | | * sverker/win-compile-warnings/OTP-15800: odbc: Fix windows compiler warnings wx: Fix windows compiler warnings os_mon: Fix windows compiler warnings erl_interface: Fix windows compiler warnings erts: Fix int_drv use of type SOCKLEN_T erts: Use ERTS_SYS_FD_INVALID instead of -1 erts: Fix misc Windows C compiler warnings
| * wx: Fix windows compiler warningsSverker Eriksson2020-05-031-2/+4
| |
* | Revert "Prepare release"Henrik Nord2020-04-222-16/+1
| | | | | | | | This reverts commit eee1f3aba92b5a741eabfa1cb6eca0632562777a.
* | Prepare releaseErlang/OTP2020-04-222-1/+16
| |
* | Revert "Prepare release"Henrik Nord2020-03-252-16/+1
| | | | | | | | This reverts commit 63638d668efbeb4539ba301328cabbc2636fb154.
* | Prepare releaseErlang/OTP2020-03-242-1/+16
| |
* | Revert "Prepare release"Henrik Nord2020-02-272-16/+1
| | | | | | | | This reverts commit 50e614e7d5fee9e3bfe8a58e7f390c6ea6caf271.
* | Prepare releaseErlang/OTP2020-02-262-1/+16
| |
* | Generate hidden chunk files for any internal modulesLukas Larsson2020-02-241-1/+1
| |
* | otp: Refactor doc make system and introduce EEP-48Lukas Larsson2020-02-241-84/+11
| |
* | Update code-gen to gen correct deprecated functionsDan Gudmundsson2020-02-173-7/+12
| | | | | | | | The generated code and not the generator was updated in a previous commit.
* | otp: Add descriptions to all deprecation attributesJohn Högberg2020-02-1211-11/+18
| |
* | Merge branch 'dgud/build-WSL'Dan Gudmundsson2020-01-081-12/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * dgud/build-WSL: Add missing files to gitignore Make build installer work from WSL Fix deps generation on Windows Support ssl-1.1.1 on windows when building crypto Setup VC env in otp_build Add wsl config as an environment to otp build tools
| * | Add wsl config as an environment to otp build toolsDan Gudmundsson2019-11-121-12/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows "cross" building with native windows from WSL linux. Currently we only support building on the windows disk, old WSL installations can not access WSL disk at all and on the newer ones it is still problematic. Thus, create the erlang src/git on /mnt/c/<dir>/otp/ and don't create links from wsl to windows, that will cause problems for the scripts and will not work. Use: cd /mnt/c/<dir>/otp eval `./otp_build env_win32 ARCH` ./otp_build To build with emu_cc (32 and 64) it needs mingw-gcc On wsl ubuntu use: 'sudo apt-get install gcc-mingw-w64' to install everything for both build targets. Additional commit comments: - Let configure (crypto/wx) search in '/mnt/c/DocumentedPaths' - Use -Z7 for debug info Add debug info into .o files instead of vc120.pdb which makes parallel compilation more stable. - Use mingw-gcc as emu_cc Packages available in ubuntu. - Use $ERL_TOP/tmp for temporary directories Linux /tmp is not accessable in older wsl (arrived in Win 10 19.03). - Quoting is problematic It seems to be impossible to handle 'spaces' in paths correct, the autotools are just not prepared to handle that and we depend on them. Currently NOT supported but have been prepared for: -Using wsl as disk -- Ensure directory exists If linux file server is overloaded it may take a while until the directory is visible for windows programs. -- Use absolute paths Windows tools needs absolute (the network path) to access files on the wsl drive. Also we can not use mixed mode (forward slashes) for network paths, windows programs don't recognize //wsl$/<install>/
* | | Merge branch 'dgud/stdlib/gen-async-call'Dan Gudmundsson2020-01-082-1/+42
|\ \ \ | | | | | | | | | | | | | | | | | | | | * dgud/stdlib/gen-async-call: Add tag to response message stdlib: Add 'send_request' and 'wait_response' to generic behaviors
| * | | Add tag to response messageDan Gudmundsson2019-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since users may now inspect the message queue between, 'send_req' and 'wait_response' which may contain the reply message which is a bit non-descriptive, a tag is added to explain it. This doesn't mean that the message interface is set in stone or documented, it can still be changed.
| * | | stdlib: Add 'send_request' and 'wait_response' to generic behaviorsDan Gudmundsson2019-12-042-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify and encourage users to do more async work. The usage pattern is already available in the 'rpc' module and similar usages are available in other languages and standards. Currently async calls can be implemented via cast or regular messages, but the user needs to implement it in both client and server. In the implementation in this commit the server does not need to know that the client are making async calls. `wait_response(Promise)` returns `{reply, Reply} | {error, Reason}`. `wait_response(Promise, Timeout)` returns `{reply, Reply}` | {error, Reason} or `timeout` if there is a client-side timeout. The reason for the `reply` tuple is that `Reply` may be positive or negative answer. That is, `{reply, {ok, Value}}` and `{reply, {error, Reason}}` looks better than `{ok, {error, Reason}}` or `{ok, {ok, Value}}`. We also need to encapsulate the return value to differentiate between client timeouts and the server response that may be the atom `timeout`. We don't want do `exit(timeout)` since in that case is is not possible to do non-blocking wait_response without catching the call to `wait_response(Promise, 0)`. `check_response(Message, ReqId)` returns `{reply, Reply}` if the `Message` is a reply from the server associated with the handle `ReqId`. Otherwise it returns `no_reply`. `check_response/2` is introduced to be able to handle concurrent async_calls in a receive loop or in a handle_info callback in another gen_server. ``` Promise = gen:send_request(..), . . . dispatch(State) -> receive Msg -> case gen:check_response(Msg, Promise) of {reply, Reply} -> {Reply, State}; no_reply -> State0 = handle_msg(Msg, State0), dispatch(State0) end end. ``` Both wait_response and check_response leaves the monitor until a proper response is received or the moniter fires. To be able to poll for response. The functions in rpc are named async_call and yield but OTB decided to use the names 'send_request', 'wait_response' and 'check_response' here instead. Returns error tuples in case of server (or network) errors in 'check_response' and 'wait_response'. For some cases, for example named process not existing, the 'send_request' part in 'gen:call' exited, this is now catched and a 'DOWN' message is faked so that all error handling can be done when handling the response. This enables to extend the functionality with check_response_m(Msg, MapWithRequestIds)
* | | | Merge branch 'maint'Henrik Nord2019-12-102-1/+20
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * | Prepare releaseErlang/OTP2019-12-062-1/+20
| | |
* | | Merge branch 'maint'Dan Gudmundsson2019-12-0383-11299/+11851
|\ \ \ | |/ / | | | | | | | | | * maint: wx: Add To/FromDIP functionality
| * | wx: Add To/FromDIP functionalityDan Gudmundsson2019-12-0283-11299/+11851
| | | | | | | | | | | | Add the possibility to handle high resolution screens.
* | | Merge branch 'maint'Dan Gudmundsson2019-11-2812-2509/+2690
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * maint: Fix awk warning about missing file Fix deprecated warning Add wxMouseEvent:getWheelAxis function Fix enum that have changed values Fix bad compiler test
| * | Fix deprecated warningDan Gudmundsson2019-11-271-22/+32
| | | | | | | | | | | | Modernize usage, i.e. copy from current gen_server.
| * | Add wxMouseEvent:getWheelAxis functionDan Gudmundsson2019-11-219-2476/+2560
| | | | | | | | | | | | | | | | | | Allows users see if the events was from the horizontal mouse wheel. Have not changed the wxMouse record, would be incompatible, but this allows the user to check for it in an event callback.
| * | Fix enum that have changed valuesDan Gudmundsson2019-11-213-9/+96
| | | | | | | | | | | | | | | Some more enums have been added/changed definitions and can no longer be constants in wx.hrl
| * | Fix bad compiler testDan Gudmundsson2019-11-202-2/+2
| | | | | | | | | | | | | | | Turned the tests the wrong way and compilation failed with wxWidget-3.0 and wxMac.
* | | Merge branch 'maint'Dan Gudmundsson2019-11-1983-10793/+11073
|\ \ \ | |/ / | | | | | | | | | | | | * maint: Add Mac specific menubar functions Add wxWindow:isShownOnScreen/1
| * | Add Mac specific menubar functionsDan Gudmundsson2019-10-297-7902/+7967
| | | | | | | | | | | | Needed on the Mac for some programs.
| * | Add wxWindow:isShownOnScreen/1Dan Gudmundsson2019-10-2982-10787/+11002
| | | | | | | | | | | | | | | | | | | | | Many functions on gtk relies on that the window is actually shown on screen, i.e. realized. Create window/frame is an async request and it may take some time before it is actually shown on screen, so add this to allow user to test it.
* | | Merge branch 'dgud/cleanup-windows-build'Dan Gudmundsson2019-11-141-14/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | * dgud/cleanup-windows-build: Refactor otp_build env_win32 Speedup depend.mk creation Refactor win32 configure handling
| * | Refactor win32 configure handlingDan Gudmundsson2019-11-121-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a lot of MIXED_* options and adding a another mode for WSL will make things worse, thus a cleanup is done first. This commit consolidates the handling for the Makefiles, src and scripts and moves the funcionality into similar named wrapper-scripts instead. Path conversion is done with a script 'w32_path.sh' and registry lookups with 'reg_query.sh'. Path to the wrapper scripts is setup with: otp_build env_win32 <arch>.
* | | Merge branch 'maint'Henrik Nord2019-09-172-1/+17
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * Prepare releaseErlang/OTP2019-09-172-1/+17
| |
* | Merge branch 'maint'Dan Gudmundsson2019-06-262-101/+72
|\ \ | |/ | | | | | | | | | | * maint: Speed up compilation Cleanup configure Fail if no C++ compiler is avaiable
| * Merge branch 'dgud/wx-configure-fixes' into maintDan Gudmundsson2019-06-262-101/+72
| |\ | | | | | | | | | | | | | | | | | | * dgud/wx-configure-fixes: Speed up compilation Cleanup configure Fail if no C++ compiler is avaiable
| | * Speed up compilationDan Gudmundsson2019-05-292-8/+26
| | | | | | | | | | | | Decreases compilation time without reducing performance.
| | * Cleanup configureDan Gudmundsson2019-05-281-86/+25
| | | | | | | | | | | | | | | Remove possibility to compile wx as a standalone package, outside of OTP src tree.
| | * Fail if no C++ compiler is avaiableDan Gudmundsson2019-05-271-10/+24
| | |
* | | Add "make test" command for root and application directoriesKjell Winblad2019-06-261-0/+2
|/ / | | | | | | The added make target is described in HOWTO/TESTING.md.
* | Fix wxe_driver improper realloc callMichael Swan2019-05-271-1/+1
|/
* Prepare releaseErlang/OTP2019-05-102-1/+18
|
* Revert "Prepare release"Rickard Green2019-04-242-18/+1
| | | | This reverts commit 425889ba69b69a9b6fb14bfbef121d51b78e853a.
* Prepare releaseErlang/OTP2019-04-232-1/+18
|
* Merge pull request #2197 from lbolla/spelling-mistakes-fixBjörn Gustavsson2019-04-101-1/+1
|\ | | | | Fix various spelling mistakes
| * Fix various spelling mistakesLorenzo Bolla2019-03-311-1/+1
| | | | | | | | Fix ERL-541 and various other unreported spelling mistakes.
* | Revert "Prepare release"Henrik Nord2019-03-262-18/+1
| | | | | | | | This reverts commit 0118046f9bda8dcf3594184fa439b79267db8017.
* | Prepare releaseErlang/OTP2019-03-252-1/+18
| |
* | wx: Remove ERL_FLAGS from Makefile erlc commandLukas Larsson2019-03-251-2/+2
| |
* | Merge branch 'maint'Henrik Nord2019-03-122-1/+20
|\ \ | |/ | | | | | | | | * maint: Updated OTP version Prepare release