Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-05Replace Ghost integrals with stdint fixed width integers.Nicholas Rishel
Also replace integer with bool in Ghost API when only used as boolean, and uint8* with char* in Ghost API when variable is a string. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11617 Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
2021-07-05macOS: support Chinese and Korean input for text buttonsYuki Hashimoto
This patch extends D11695 to provide full support for Chinese and Korean input on macOS. Chinese input notes: You can input symbolic characters (such as '! , '$') during Chinese input. The difference from Japanese input is that multiple `insertText` may be called with a single key down (`keyDown` method). This happens when you input a symbolic character (such as '! , '$') during conversion. The conversion is confirmed (`insertText`) and the symbolic character is entered (`insertText`). To solve this problem, I have `result_text` to concatenate the strings and store them in `result`. Korean input notes: Korean does not display a conversion suggestion window. Like Chinese, Korean input may call multiple `insertText` methods. Also, in Korean, the previous confirmation (`setMarkedText` and `insertText`) and the next conversion is processed (`setMarkedText`) may be called simultaneously with a single key down (`keyDown` method). For example: 1. press g ㅎ (`setMarkedText`) 2. press k 하 (`setMarkedText`) 3. press t 앗 (`setMarkedText`) 4. press k 하세 (`setMarkedText`, `insertText`, `setMarkedText`) Fixed so that the `insertText` and the last `setMarkedText` are processed. Also, if a control character (such as Arrow, Enter) is input during Korean input, the conversion will be confirmed (`setMarkedText`, `insertText`) and the original control character will be processed. In other words, if you press the left arrow key while typing in Korean, the cursor will move to the left after the character is confirmed. Therefore, I modified the `keyDown` method so that the `handleKeyEvent` is called again after the `insertText` is processed in the `interpretKeyEvents` method. Differential Revision: https://developer.blender.org/D11699
2021-07-05macOS: support Japanese input for text buttonsYuki Hashimoto
Blender did not support to input East Asian characters (Chinese, Japanese, Korean) on macOS. This patch adds support for Japanese input, by implementing the appropriate processing for the NSTextInputClient protocol. Technical notes: * The conversion candidate window is drawn by the input method program calling `firstRectForCharacterRange`. * The string before confirmation (called `composite` in blender) is handled in the `setMarkedText` method called by the input method program. * The string after confirmation (called `result` in the blender) is processed in the `insertText` method called by the input method program. Ref T51283 Differential Revision: https://developer.blender.org/D11695
2021-07-05Cleanup: replace NSTextInput with NSTextInputClientYuki Hashimoto
This revision replaces the deprecated protocol NSTextInput with NSTextInputClient in Cocoa Text View. No functional changes. For more information of the methods, please see: https://developer.apple.com/documentation/appkit/nstextinputclient Differential Revision: https://developer.blender.org/D11407
2021-07-05Cleanup: use arrayWithObject to reduce the codeYuki Hashimoto
Similar code is found in Apple's code samples. Differential Revision: https://developer.blender.org/D11434
2021-07-05Cleanup: remove temporary headerCampbell Barton
2021-07-05Cleanup: spelling in commentsCampbell Barton
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-07-02Cleanup: spelling in commentsCampbell Barton
2021-07-02Fix T88909: Win32 getTitle() UTF8 SupportHarley Acheson
In the Win32 platform our setTitle() can properly assign a Unicode utf-8 window title. Unfortunately our getTitle() will only read regular 8-bit character strings. This means that we can never compare what we set to what we get. This patch updates getTitle() to use Unicode-aware GetWindowTextLengthW and GetWindowTextW. see T88909 for an example of this affecting user experience. Differential Revision: https://developer.blender.org/D11782 Reviewed by Ray Molenkamp
2021-07-01Cleanup: spellingCampbell Barton
2021-06-30Cleanup: use const for datatoc declarationsCampbell Barton
2021-06-29Win32: Window Placement DPI and Scale AdjustmentHarley Acheson
When using multiple monitors that differ in scale and/or dpi, the varying sizes of the window titles and borders can cause the placement of those windows to be out by a small amount. This patch adjusts for those differences on Windows 10 and newer. see D10863 for details and examples. Differential Revision: https://developer.blender.org/D10863 Reviewed by Ray Molenkamp
2021-06-29Cleanup: Win32 Window CreationHarley Acheson
This is just some cleanup of the Win32 window creation code. After CreateWindowExW() this patch uses some early exits to replace some potentially confusing if blocks. No functional changes. Differential Revision: https://developer.blender.org/D11446 Reviewed by Ray Molenkamp
2021-06-29Fix T89465: Loss of mouse movement when window left with pen.Nicholas Rishel
When a window is left with a WinPointer pen, the inrange check prevents resetting pen info.
2021-06-28Cleanup: repeated terms in code comments & error messagesCampbell Barton
2021-06-26Cleanup: spellingCampbell Barton
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-24GHOST/XR: support Wayland via XrGraphicsBindingOpenGLWaylandKHRChristian Rauch
2021-06-24GHOST: remove unused EGL context includes in Win32 and CocoaChristian Rauch
2021-06-24GHOST/EGL: store pointer to GHOST_System for downcast testsChristian Rauch
2021-06-24GHOST/Wayland: auto-select highest supported OpenGL versionChristian Rauch
2021-06-24Cleanup: compiler warnings with clangBrecht Van Lommel
* Mark either all or no class methods with override * Don't use zero sized array since it has a different size in C and C++. Using a little more memory here is not significant. * Don't use deprecated mechanism to mark private GSet members in clang just like we don't for MSVC, it warns even for simple zero initialization.
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-24Cleanup: use '#if 0' for commented code-blockCampbell Barton
2021-06-24Cleanup: clang-format, spellingCampbell Barton
2021-06-23Remove window iteration in WM_DISPLAYCHANGE.Nicholas Rishel
Iteration was incorrectly calling the same object. Had it called every window it would still be unnecessary as WM_DISPLAYCHANGE is sent to all broadcast receiving windows.
2021-06-23Cleanup: reformat trailing comments that caused line wrappingCampbell Barton
2021-06-23GHOST/XR: fix code formatChristian Rauch
2021-06-22GHOST/XR: enable X11-EGL context for OpenXRChristian Rauch
2021-06-22GHOST/EGL: add GHOST_XrGraphicsBindingOpenGL as friendChristian Rauch
2021-06-22GHOST/EGL: getters for display, config and contextChristian Rauch
2021-06-22GHOST/EGL: ignore unused variablesChristian Rauch
2021-06-22Cleanup: Spelling MistakesLeon Zandman
This patch fixes many minor spelling mistakes, all in comments or console output. Mostly contractions like can't, won't, don't, its/it's, etc. Differential Revision: https://developer.blender.org/D11663 Reviewed by Harley Acheson
2021-06-22Cleanup: spellingCampbell Barton
2021-06-22Cleanup: comment use C comment-blocks for GHOST_Types.hCampbell Barton
Also use full sentences, and correct typos.
2021-06-22Refactor of Wintab to use Wintab supplied mouse movement once verified ↵Nicholas Rishel
against system input. Reviewed By: brecht, LazyDodo Maniphest Tasks: T88852 Differential Revision: https://developer.blender.org/D11508
2021-06-15Win8 cleanup, remove dead function pointer and macro.Nicholas Rishel
2021-06-08Remove noop code from WM_MOUSEWHEEL processing.Nicholas Rishel
ChildWindowFromPoint retrieves the child of the provided window at a point. In this case it always returns 0 because HWND_DESKTOP is flag defined as 0, which is never a valid window handle and is not intended for use in place of a window handle. Forwarding of mousewheel events was added in adb08def613d, and later modified to the current unworking state in e9645806f563. Sending mouse wheel events to the window under the cursor is a system preference and therefore should not be overridden by Blender, therefore the noop code has been removed.
2021-06-05Cleanup: spelling in commentsCampbell Barton
Also remove reference to function that never existed for adding `bNode`.
2021-06-03GHOST/wayland: fix restoring hidden cursorChristian Rauch
2021-06-03GHOST/wayland: fix non-moving normal cursorChristian Rauch
2021-06-03GHOST/wayland: add 'xdg-decoration' supportChristian Rauch
2021-06-03GHOST/wayland: adapt window and cursor surface scale to support HiDPI screensChristian Rauch
2021-06-03GHOST/wayland: handle return values for data sourcesChristian Rauch
2021-06-03GHOST/wayland: set parent relation only for dialogs to mimic X11 behaviourChristian Rauch
2021-06-03GHOST/wayland: handle missing relative-pointer and pointer-constraints supportChristian Rauch
2021-06-03GHOST/wayland: get cursor settings via D-BusChristian Rauch
2021-06-03GHOST/wayland: inhibit warningChristian Rauch
2021-06-03GHOST/wayland: set swap interval to 0Christian Rauch
The Wayland server will not update hidden surfaces. This will block the main event loop and thus also block updates to visible windows in a multi- window setup.