Commit Graph

134 Commits (a9871b39aabe025b26b673a35e568c83c29897f9)

Author SHA1 Message Date
John Benediktsson f879a012c5 ui.backend.cocoa.views: fix macOS mojave opengl issue with new windows. 2018-12-11 15:40:41 -08:00
John Benediktsson ade70ab813 ui.backend.cocoa.views: prepareOpenGL can use ?-> syntax. 2018-03-13 11:09:55 -07:00
John Benediktsson 4883242292 ui.backend.cocoa.views: cleanup some method signatures. 2018-03-13 11:05:18 -07:00
Björn Lindqvist dd36f6ad57 ui: the with-ui-running combinator can be removed
It was only used within the (with-ui) words which in turn were only
called by with-ui.
2018-01-29 07:18:39 +01:00
John Benediktsson cccdc09a71 ui: rename ui-windows to worlds. 2018-01-22 13:17:23 -08:00
John Benediktsson dcb06f3cbd ui.backend.cocoa.views: use world get-global in touchbar-commands. 2018-01-19 15:39:52 -08:00
John Benediktsson f33bf70ad6 ui.backend.cocoa.views: use queued-gesture for touchbar commands. 2018-01-18 22:20:27 -08:00
Björn Lindqvist 9f1935c7f1 ui.*: lets rename ui-running to with-ui-running
Because it is really annoying with global variables having the same name
as words.
2018-01-18 16:48:35 +01:00
John Benediktsson d2162da88e ui.backend.cocoa.views: allow up to 8 touchbar buttons. 2018-01-01 16:00:19 -08:00
John Benediktsson d2f3977768 ui.backend.cocoa.views: remove listener touchbar support (temporarily).
... it breaks deploys of other UI apps that aren't the listener.
2017-10-29 15:38:20 -07:00
Doug Coleman ed62640f83 Revert "ui.backend.cocoa.views: call super.prepareOpenGL()."
This reverts commit 864912f446.

This patch breaks the UI on 10.13
2017-08-08 15:29:59 -05:00
Doug Coleman c469bfaf0c ui.backend.cocoa.tools: install-app-delegate is a confusing word name to
reuse.
2017-08-06 17:48:03 -05:00
Doug Coleman 7d47def4c9 cocoa: CLASS: ; -> <CLASS: ;CLASS>
<CLASS: is a container like <PRIVATE and <FUNCTOR:
2017-08-05 20:54:02 -05:00
Doug Coleman 0ca1b4656f ui.backend.cocoa.views: Use ?-> to avoid objc lookup errors if backingScaleFactor selector does not exist. 2017-06-01 16:53:10 -05:00
Doug Coleman a632337ba2 cocoa: Add basic support for TouchBar. 2017-05-30 15:33:48 -05:00
John Benediktsson 96a0c30baf ui.backend: adding ui-stop-after-last-window?.
This defaults to true, except for the "ui.tools".  Also, this only
works on macOS right now.  Linux and Windows always stop after the
last window closes.
2017-03-05 14:51:33 -08:00
Björn Lindqvist 39811fc7e7 ui.*: using pixel-format-attributes>int-array in even more places
So now we don't need the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax anymore.
2017-01-30 06:17:37 +01:00
Björn Lindqvist 1b1842f62d ui.pixel-formats,ui.backend.*: removing the (pixel-format-attribute) generic
It appears to be unused code.
2017-01-30 05:07:28 +01:00
Björn Lindqvist ddc5ece757 alien.*: frontend varargs support! #1677
alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g

: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;
2016-08-10 21:34:37 +02:00
John Benediktsson 63410f62c8 ui.theme: updates to color scheme.
Fixes circularity and adds theme switching to Mac menu.
Could use some simplification and reduction in color theme hooks.
2016-05-09 21:40:56 -07:00
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07:00
John Benediktsson 1b71efb748 ui: change active? back to a boolean. 2016-03-30 07:31:13 -07:00
John Benediktsson 864912f446 ui.backend.cocoa.views: call super.prepareOpenGL(). 2016-03-28 21:51:16 -07:00
John Benediktsson 20883fb21a ui.backend.cocoa.views: add constants for modifier flags. 2016-03-19 12:48:42 -07:00
Björn Lindqvist d4a127211d ui.backend.cocoa: fix for the silly error I made in 7bc1009973 2015-10-29 04:41:36 +01:00
Björn Lindqvist 7bc1009973 ui.*: make active? an integer 0-100
A UI backend can delay setting active? to 100 until the windows actually
is visible. That way, some redundant redraws that happen when the window
isn't visible is supressed. It makes the Windows and GTK UI startup a
little faster.
2015-10-27 19:00:28 +01:00
Björn Lindqvist 73893693d3 ui.backend.*: the offscreen buffer hooks appear unused - let's delete! 2015-10-27 16:58:01 +01:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
Doug Coleman 3649dd2764 ui.backend.cocoa.views: Don't throw an error on weird mouse buttons. Fixes #1453. 2015-08-18 23:22:55 -07:00
Doug Coleman 9f0a1ed730 cocoa: Syntax is funky, so regularize it by parsing CLASS: ; and METHOD: ; and COCOA-PROTOCOL: token. 2015-08-12 19:44:07 -05:00
John Benediktsson 5eec781b40 use ``if*`` instead of ``dup [ ] [ drop ] if``. 2015-07-20 22:24:30 -07:00
Doug Coleman fbbd09f3c5 factor: system:image -> image-path, like vm-path. image is all over the place png, jpg etc 2015-07-20 00:17:09 -07:00
Doug Coleman 0176591527 factor: actual patch to remove ; from all c/fortran functions 2015-07-19 16:25:30 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Doug Coleman fb8d601c20 cocoa: windows -> ui-windows 2015-06-10 16:05:11 -07:00
John Benediktsson 3f3c11c446 ui.backend.cocoa: fix reset of thread-timer. 2015-01-17 15:58:57 -08:00
John Benediktsson 7d0039babe cocoa: fix requirement that mac deploys have high reflection. 2014-10-31 11:34:08 -07:00
John Benediktsson 8033741135 io/ui: slim down the USE: list 2014-10-24 17:33:27 -07:00
Doug Coleman 68446b047b ui: Rename floating-window to dialog-window as per @bjourne's suggestion. Related to #1026. 2014-08-05 10:03:17 -07:00
Doug Coleman fdcc33acee ui: Fix floating-window implementation for Windows/Mac. We need floating-window defined in the hashtables, as well as adding it /in addition to/ the existing flags. 2014-07-16 14:38:50 -05:00
John Benediktsson 1fdc965b34 ui.backend.cocoa.views: clear cache to remove possibly non-retina stuff. 2014-04-28 13:00:20 -07:00
John Benediktsson fb7f53485a ui.backend.cocoa.views: set gl-scale-factor to f if 1.0. 2013-04-21 19:43:12 -07:00
John Benediktsson 5512294075 ui.backend.cocoa.views: handle windowDidChangeBackingProperties event. 2013-04-21 19:40:57 -07:00
John Benediktsson bf83eaccfc cocoa: maybe this is cleaner... 2013-03-30 13:44:11 -07:00
John Benediktsson a99f66f505 cocoa: add ?-> to remember messages being used at runtime. 2013-03-30 13:14:51 -07:00
John Benediktsson d1ae334046 ui.backend.cocoa.views: more robust respondsToSelector: (thanks @jckarter). 2013-03-29 20:34:24 -07:00