Commit Graph

152 Commits

Author SHA1 Message Date
dmitry
c9d2229b7b Merged revision(s) 61059-61060 #59587a0452-#59587a0452, 61107 #9c59e031fc, 61135 #2b46c6d5e0, 61536 #9bf589f433, 61739 #f13e53bf2f, 61767 #159d5cc8cc, 62188 #7ec219a05b from trunk:
opengl: adding support for Cocoa mouseMove events for Right and Middle mouse buttons. Based on the patch by Chris Rorden. bug #34938
........
opengl: forcing painting even with NSgraphicContext currentContext assigned. Seems to be Mojave specific behaviour not to provide context. bug #34983
........
opengl: update cocoa compilation for the latest update with keyhandling
........
opengl: prevent double mouse-down events for cocoa. bug #35480
........
opengl: fix cocoa compilation
........
opengl: cocoa: removing Dummy type declarations as they are not in the code. Yet the type declarations changed in trunk FPC version (3.2.0). bug #35974
........
opengl: getting rid of cocoa GetNSObjectView
........
opengl: remove gl unit used from glcocoanscontext unit
........

git-svn-id: branches/fixes_2_0@62469 -
2019-12-30 06:46:56 +00:00
mattias
62a9029415 openglcontrol: fixed double free, issue #35335, from Denis Golovan
git-svn-id: branches/fixes_2_0@60867 -
2019-04-07 17:43:22 +00:00
maxim
be1accd93f Merged revision(s) 59037 #d313b710e5 from trunk:
cocoa-opengl: removing lclIsHandle method override, as no longer used by cocoa ws
........

git-svn-id: branches/fixes_2_0@60794 -
2019-03-29 22:23:58 +00:00
maxim
21fb0ba3d9 Merged revision(s) 59014-59015 #121f09456b-#121f09456b, 59017 #4590a4f178, 59019-59029 #c002ba7df4-#c002ba7df4, 59033-59036 #7a0195312f-#7a0195312f, 59039 #b3b559273c, 59057-59058 #f000038a2b-#f000038a2b, 59060-59063 #23619be5e4-#23619be5e4, 59065 #4d1d0ac454, 59086-59088 #6da9bb3520-#6da9bb3520, 59102-59107 #55d94ff91b-#55d94ff91b, 59129-59132 #b6534f43ef-#b6534f43ef, 59134-59135 #c086c56cde-#c086c56cde, 59140-59141 #fdfa68c0e2-#fdfa68c0e2, 59163-59164 #61657c490e-#61657c490e, 59178-59179 #aa5acf09a9-#aa5acf09a9, 59183 #ed5c165da1, 59185 #a4503bccc0, 59187-59189 #9c1f561955-#9c1f561955, 59195-59196 #bbd07791c8-#bbd07791c8, 59205-59206 #5bb6685e21-#5bb6685e21, 59231-59238 #9b98baa793-#9b98baa793, 59247 #a9e858cf2a, 59249-59252 #003ad96f6d-#003ad96f6d, 59273 #18dbe2687b, 59329-59331 #a341d94c64-#a341d94c64, 59362-59363 #62db4e537d-#62db4e537d, 59380 #b5d3a2e2ab, 59397 #b135ccf3ac, 59492 #f8e9e6474b, 59620 #ed79e7c140, 59627-59628 #7382f53434-#7382f53434, 59645-59646 #f3a0a55e46-#f3a0a55e46, 59674 #477db40534, 59725-59726 #c7ae0282b6-#c7ae0282b6, 59746-59756 #d0e6eb11b6-#d0e6eb11b6 from trunk:
cocoa: rename frame view to handleview. HandleView would be used as HWND for any composed control
........
cocoa: remove lclIsHandle method completetly. Handle use is defined on WS level and stored with the callback object
........
cocoa: prevent MainMenu from being set on a designed form
........
cocoa: switch paintstruct back from dynamic (originally changed back in 2012) to static. Saving on heap change call
........
cocoa: remove the direct reference between TCocoaWindow and LCLForm
........
cocoa: initial support for enabling/disabling menus on ShowModal
........
cocoa: fix compilation issue made by the prev commit
........
cocoa: restore filtering of ampersands in menu titles
........
cocoa: support of BorderStyle property for the common rectangular controls
........
cocoa: adding support for borderstyle of a customchecklist box
........
cocoa: adding cocoawschecklst.pas to the list of units in lcl.lpk file
........
cocoa: extend support of CGContextRef (for macOS 10.10 and later). Adding init of context for custom drawn dropdownlist
........
cocoa: resolve mem leak in listbox custom draw
........
cocoa: update mainmenu implementaiton. Added support for Hide Others and Show All menu items
........
cocoa: preventing NSTabView to appear in chain of responders. That should prevent key event loss. (a very odd cocoa feature)
........
cocoa: update combobox (NSComboBox) to retain the selection after reopenning the popup window
........
cocoa: added code, but not enforcing it for change in border style of TComboBox
........
cocoa: fix in TListBox.setItemIndex to replace the selection, rather than extend it. #34290
........
cocoa: reduce the amount of focus (responders) related code. Process the focus handling in NSWindow only (rather than each control individually). Update tab switch notification to report tab change prior to focus switch
........
cocoa: replacing default keyDown handling routine, with a cusomized one. The reason: unable to fully predict the event processing within Cocoa, causing some keys to be lost
........
cocoa: removing tabControl workaround
........
cocoa: working around macOS problem with transactions during making a keyWindow
........
cocoa: simplify and more robust mac to LCL virtual key codes conversion
........
cocoa: update keyDown handling for custom controls
........
cocoa: remove debugging output
........
cocoa: reverting an attemtped workaround (r59060) to fix the problem with a modality during windows activate
........
cocoa: fix the compiler warning
........
cocoa: an attempt to resolve the issue during crashes, if a (cocoa) modal window is called during Activation of a window
........
cocoa: support for Services menu
........
cocoa: restore radio-menues functionality. #34310
........
cooca: allow autosized columns to be user sized as well. #34311. Patch by David Jenkins
........
cocoa: proper selection of an image index for a sub-item in listview. #34313. Patch by David Jenkins
........
cocoa: adding the support for TDisplayCode to determine a rectangle in ListView. Based on patch by David Jenkins. #34312
........
cocoa: update attachmenu process, so NSMenu can be added into NSMenuItem as a subitem. #34293
........
cocoa: making sure that window with popup_parent would stay above when attaching to the parent (and remain a keywindow). #34301
........
cocoa: update modality using modalitySessions (to keep event processing in place)
........
cocoa: removed the previously added hack for modal window on activation. Doesn't work on every macOS, as well as causing some issues
........
cocoa: improve tracking of menu changes when modal dialogs are switching. Merged menu routines from coocaojbect.inc into cocoaint.pas
........
cocoa: update menus switch in modal. The proper menu history save for modal windows without a menu
........
cocoa: restoring keyboard processing events for NSWindow. #34301
........
cocoa: adding support for focus rect of TMemo
........
cocoa: minimze table view invalidation on add / delete items. #34319. Patch by David Jenkins
........
cocoa: restore key processing, to let hot keys to triggers... odd
........
cocoa: propagating LM_CONTEXTMENU to parents
........
cocoa: the first oddity of modal sessions. Context Menu would not call an action to indicate the menu item selected #34325
........
cocoa: using a single place to process keyDown event related to LCL callbacks
........
cocoa: update key event handling. Not all characters from macOS are suitable for LCL KeyPress
........
cocoa: adding exception for processing key equivalents and return key, if a first responder is capable of processing the return key. #34354
........
cocoa: additional control over cocoa window levels
........
cocoa: implementing owner drawn for status bar panels. #34338
........
cocoa: removed redundant key emulation events (introduced with #32829). With the latest changes in key handling events those are no longer needed
........
cocoa: updating drawing of ownerdrawn statusbar
........
cocoa: update key processing, adding more exception for non-printable keys
........
cocoa: adding a check for TCocoaTextLayout.Draw procedure. Do nothing if string is empty or invalid. Prevents SynEdit crashes for unicode characters
........
cocoa: fix the conversion between WS to LCL tab index #34361
........
cocoa: update insertion and removal of rows in cocoa table (fix implementation from #34319)
........
cocoa: memory management - removing unneeded autorelease pools. There's one global and one per each event
........
cocoa: memory management - removing unneeded autorelease pools. There's one global and one per each event
........
cocoa: fix for a memory leak in overlay (designer) form
........
cocoa: memory management - removing unneeded autorelease pools. There's one global and one per each event
........
cocoa: fix controls leaking spinedit
........
cocoa: improve mouse handling of spinedit
........
cocoa: dereferncing tracked control earlier
........
cocoa: fix drawing overlays - resing overlay designer view to the form
........
cocoa: fix the combobox itemindex when the new text is not the list
........
cocoa: update deallocation of read-only combobox
........
cocoa: fix compiler warning
........
cocoa: preventing too high values on measuring text with soft-line breaks. #34382
........
cocoa: fix combobox onchange which fixes also lazreport designer on second opening and also fixes issue #33800
........
cocoa: prevent listview premature handle allocation. Fixes the issue of IDE not being able to add list view onto a designer form
........
cocoa: workaround for a problem with 64-bit boolean parameter passing (see fpc issue #34411 for details)
........
cocoa: additional methods for handling fpc issue #34411
........
cocoa: additional methods (nsview, nscontrol, nsbuttons, nstextfield) for handling fpc issue #34411
........
cocoa: using Device colorspace, instead of Calibrated colorspace for GDI objects. #34427
........
cocoa: update the behaviour of GetFocus function to use HandleView stored with callback object. #34450
........
cocoa: preventing spinedit value from being change while destroying the handle. #34468
........
cocoa: patch by David Jenkins - forcefully invalidate the content document for manual scroll. Should help with redrawing customcontrols for 10.14. #34478
........
Printers: Support for Cocoa printing, updated examples.
........
cocoa: restoring the code to identify VK code based on the character (support for Dvorak keyboards). Any national characters would still be determined based on keyCode. Suggested by Zoë Peterson
........
cocoa: Fixes TTabControl, it previously was placing controls inside it with Left=0 as if they had Left=-20, because NSTabView is not meant to receive views inside it like that, we need a different handle for TTabControl and TPageControl
........
cocoa: reporting extended UTF8 character as a question mark for ansi char
........
cocoa: using additional storage for keeping checked state of a checklist items. #34590
........
cocoa: any font can utf8 (unicode)... even if it doesn't. #34594
........
cocoa: fix the issue with using enclosing scrollView for mouse position check. #34516
........
cocoa: updating LCL overrides to recognize different boolean types used in FPC headers. #34609
........
cocoa: update OpenGL component to use LCLObjCBoolean type (rel #34609)
........
cocoa: move NSResponderHotKeys to cocoawindows.pas unit. #34609
........
cocoa: cleanup in calendar (datepicker) component. #34609
........
cocoa: cleanup in calendar (datepicker) component - removing unused units. #34609
........
cocoa: registering cocoadatepicker unit with lcl.lpk
........
cocoa: update type cocoawsmenu type switching from boolean to LCLObjCBoolean. #34609
........
cocoa: update printing component to use LCLObjCBoolean type
........
cocoa: update removal of menuItems. Removing an item from parent menu rather than from parentItem's menu. #34602
........
cocoa: update menus to be able to remove separator items
........
cocoa: menus - fix cocoa app mem leak for allocated TcocoaMenuItems
........
cocoa: additional code to handle unassigning of trayicon menu
........
cocoa: making sure that TEdit and TComboBox (editable) are trully single line
........

git-svn-id: branches/fixes_2_0@59765 -
2018-12-09 22:24:53 +00:00
maxim
fc5edd8410 Merged revision(s) 59253 #fdf9177fb1, 59285-59286 #8e4a89db86-#8e4a89db86, 59288 #8a6bcba75f, 59293 #83a10f8e11 from trunk:
Qt5: make opengl compileable under qt5 widgetset
........
Qt,Qt5: make opengl useable on modern OpenGL implementations.Patch by Chris Rorden, modified by me. issue #34401
........
Qt5: glqtcontext - make opengl useable under Qt5. issue #32498
........
Qt5: must return to lcl event loop for X11 targets.issue #34369
........
Qt,Qt5: added GLX_SAMPLE_BUFFERS and GLX_SAMPLES to glxContext attributes if multisampling > 0. issue  #34401
........

git-svn-id: branches/fixes_2_0@59311 -
2018-10-16 22:52:03 +00:00
maxim
30c3eb15e6 Merged revision(s) 59111 #2ee72166e4, 59190-59191 #6febd8c78e-#6febd8c78e from trunk:
LCL-GTK2: Prevent flickering in TOpenGLControl. Turn DoubleBuffered off. Issue #33864, patch from accorp.
........
LCL-GTK3: Add typecasts for Color types. The code may still be wrong but can be tested with Range checks on.
........
LCL-GTK3: Fix menu radio group. Issue #34350, patch from Anton Kavalenka.
........

git-svn-id: branches/fixes_2_0@59200 -
2018-09-30 22:41:14 +00:00
mattias
0b8e57a289 openglcontext: less hints
git-svn-id: trunk@58126 -
2018-06-04 17:21:46 +00:00
ondrej
7a929f1561 OpenGL: fix DoubleBuffered compilation
git-svn-id: trunk@58113 -
2018-06-04 08:44:15 +00:00
dmitry
5d5d3e5e62 opengl: cocoa, fix the typo of hanlding mouse wheel event
git-svn-id: trunk@57218 -
2018-02-02 04:20:21 +00:00
dmitry
1d82a118e9 opengl: cocoa - do not perform the default mouse events for NSOpenGLView, to prevent duplicated event handling. #33067
git-svn-id: trunk@57172 -
2018-01-28 04:18:40 +00:00
wp
c0cfae4fce IDE: New Hi-Dpi palette icons for OpenGLControl and TParadox (by Roland Hahn)
git-svn-id: trunk@56992 -
2018-01-06 16:53:23 +00:00
wp
88c07ee45a OpenGL: Add new HiRes component palette icon by Roland Hahn
git-svn-id: trunk@56786 -
2017-12-18 21:04:05 +00:00
juha
712e063538 OpenGLContext: Make TOpenGLControl renderable by a thread. Issue #32116, patch from Pascal Riekenberg.
git-svn-id: trunk@55559 -
2017-07-22 07:22:30 +00:00
sekelsenmat
85a49e41f2 opengl: Patch from bug #32026, add possibility to render at design time
git-svn-id: trunk@55392 -
2017-06-26 05:25:43 +00:00
sekelsenmat
5dfbda640a opengl: Adds support to Option ocoMacRetinaMode, to support higher quality in retina displays
git-svn-id: trunk@55354 -
2017-06-15 21:01:28 +00:00
mattias
d030686434 openglcontrol: enabled gtk2 for freebsd
git-svn-id: trunk@54168 -
2017-02-16 13:05:38 +00:00
sekelsenmat
febc687143 carbon: Fixes crash in IDE with OpenGL, see bug #30440
git-svn-id: trunk@52779 -
2016-08-03 05:54:02 +00:00
juha
567e0bf562 TOpenGLControl: Improve reliability, raise exceptions telling what went wrong. Issue #30099, patch from Denis Golovan.
git-svn-id: trunk@52285 -
2016-05-07 14:11:38 +00:00
mattias
45a79882b5 components: less hints
git-svn-id: trunk@51783 -
2016-03-01 15:25:24 +00:00
mattias
27fd1f34d4 openglcontrol: cocoa: support core opngl from Chris Rorden
git-svn-id: trunk@50430 -
2015-11-20 07:29:44 +00:00
mattias
83ae0c9b59 opengl: debug extension for win32, patch #28736 from Denis Golovan
git-svn-id: trunk@49876 -
2015-09-27 14:11:28 +00:00
mattias
a0b6593d68 opengl: added DebugContext, patch #28671
git-svn-id: trunk@49828 -
2015-09-15 12:47:22 +00:00
mattias
ff1747c1eb opengl: cocoa: init with attributes
git-svn-id: trunk@49816 -
2015-09-11 15:52:12 +00:00
sekelsenmat
0da4587e23 cocoa: OpenGL control events were blocked because it thought the control was disabled
git-svn-id: trunk@49792 -
2015-09-09 07:33:08 +00:00
mattias
8b765384f1 opengl: fixed compilation
git-svn-id: trunk@49683 -
2015-08-16 20:42:05 +00:00
mattias
c878fabaf2 opengl: cocoa: comments
git-svn-id: trunk@49682 -
2015-08-16 14:54:00 +00:00
mattias
925e68088e opengl: cocoa: started using NSOpenGLView
git-svn-id: trunk@49681 -
2015-08-16 13:44:25 +00:00
mattias
e5f6bc622c opengl: started cocoa cgl
git-svn-id: trunk@49640 -
2015-08-11 09:45:24 +00:00
mattias
806a858149 opengl: comments
git-svn-id: trunk@49639 -
2015-08-11 09:45:03 +00:00
mattias
b9f9f1e3a1 opengl: started cocoa
git-svn-id: trunk@49614 -
2015-08-08 08:26:18 +00:00
mattias
285ae1d692 openglcontrol: qt: invalidate works, patch #27066
git-svn-id: trunk@46940 -
2014-11-21 23:11:01 +00:00
mattias
662330fe6f openglcontrol: allow using in QT Lazarus IDE
git-svn-id: trunk@46933 -
2014-11-21 12:07:25 +00:00
juha
c30eb3edd3 Clean outdated DEFINEs from the code, like old compiler versions and FPC_HAS_CONSTREF.
git-svn-id: trunk@43628 -
2014-01-02 18:16:19 +00:00
paul
9adc15ef1d opengl: use FPC resources for component images
git-svn-id: trunk@43093 -
2013-10-05 04:16:12 +00:00
juha
0709051eff OpenGLControl: Implement release context method. Issue #24925, patch from Anton Kavalenka
git-svn-id: trunk@42582 -
2013-09-04 00:22:36 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
mattias
56cdd910fe openglcontrol: added properties to select the opengl version
git-svn-id: trunk@40536 -
2013-03-12 10:10:51 +00:00
mattias
3a367d8a55 openglcontrol: carbon: auxbuffers, multisampling
git-svn-id: trunk@40444 -
2013-02-27 23:54:23 +00:00
mattias
e6f710c62d openglcontrol: imgui position screen center
git-svn-id: trunk@40443 -
2013-02-27 23:54:01 +00:00
mattias
cd7f987b4b openglcontrol: fixes for gtk1
git-svn-id: trunk@40440 -
2013-02-27 22:19:17 +00:00
mattias
45d9589aad openglcontrol: clean up
git-svn-id: trunk@40439 -
2013-02-27 20:35:36 +00:00
mattias
82ea2c6724 openglcontrol: gtk2: using colormap needed for multisampling
git-svn-id: trunk@40438 -
2013-02-27 20:33:55 +00:00
mattias
f3fc3a03ef openglcontrol: verbosity
git-svn-id: trunk@40414 -
2013-02-26 12:08:12 +00:00
mattias
53fdf82396 openglcontrol: vrbosity
git-svn-id: trunk@40413 -
2013-02-26 09:43:50 +00:00
mattias
0a400b7349 openglcontrol: verbosity for multisampling
git-svn-id: trunk@40411 -
2013-02-25 23:17:28 +00:00
mattias
ee92fdee19 openglcontrol: red,green,blue bits for windows
git-svn-id: trunk@40252 -
2013-02-10 14:32:30 +00:00
mattias
aaca1d064d openglcontrol: red,green,bluebits for carbon
git-svn-id: trunk@40231 -
2013-02-09 21:31:10 +00:00
mattias
8df919c874 openglcontrol: changed default DepthBits to 24
git-svn-id: trunk@40230 -
2013-02-09 20:54:42 +00:00
mattias
14423ccd1a openglcontrol: added Red,Green,Blue bits for target gtk
git-svn-id: trunk@40229 -
2013-02-09 20:54:14 +00:00
mattias
a94f375f03 openglcontrol: gtk: added bit depths, issue #22868
git-svn-id: trunk@38678 -
2012-09-16 08:09:33 +00:00