Björn Lindqvist
43f2592d1b
ui.gestures: fix gesture docs, #1509
2015-12-01 11:01:34 +01: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
Björn Lindqvist
0795d21e46
ui.backend.gtk: on-key-press and on-key-release can be merged into one
...
on-key-press/release handler
2015-10-22 18:02:35 +02:00
Björn Lindqvist
f9e5d4f22c
ui.backend.gtk: tune the order of the setup tasks in (open-window)
...
The fix for #1307 made bug #776 come back. Apparently gtk is kind of
britle so the widget setup must be done in a very specific order.
2015-10-14 00:22:26 +02:00
John Benediktsson
2dea9bab74
ui.backend.gtk: small typo fix.
2015-09-28 14:48:20 -07:00
Björn Lindqvist
94f863f33e
ui.backend.gtk: make it so configure-im is called after realize ( #1307 )
...
gtk_im_context_set_client_window must be called with a realized window
otherwise IM won't work,
http://lists.maemo.org/pipermail//maemo-developers/2006-January/002337.html
2015-09-28 15:33:36 +02: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
Doug Coleman
e0d1b14e5c
factor: don't need FROM: namespaces => set or namespaces:set anymore
2015-08-12 11:25:57 -05:00
Doug Coleman
330c7ba156
factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
...
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -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
Björn Lindqvist
ba8caa72fb
io.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io.crlf to reduce some code duplication
2015-05-12 09:32:05 -07:00
John Benediktsson
3f3c11c446
ui.backend.cocoa: fix reset of thread-timer.
2015-01-17 15:58:57 -08:00
Benjamin Pollack
2c3dd8c3c8
Remove executable bit from tons of files that aren't
2014-11-05 20:40:42 -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
John Benediktsson
e5ac9c9c0f
ui.backend.gtk: fix yield delay on gtk backend.
2014-08-05 11:24:23 -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
Doug Coleman
57cdc841c3
ui: Add a floating-window window-contol for opening floating windows in a tiling window manager on gtk. Use this style on the help browser, inspector, and deploy windows. Please report any other windows that need this flag since I don't regularly use a tiling window manager. Tested on Ubuntu 14.04 64bit with i3 window manager. Fixes #1026 .
2014-07-16 02:26:52 -07:00
John Benediktsson
1fdc965b34
ui.backend.cocoa.views: clear cache to remove possibly non-retina stuff.
2014-04-28 13:00:20 -07:00
Björn Lindqvist
3bbdd067be
ui.backend.gtk: connect ui signals before realizing the widget
...
gtk_widget_add_events() needs to be called before gtk_widget_realize()
otherwise oxygen-gtk will steal all lmb clicks
2014-03-02 19:11:55 -08:00
Björn Lindqvist
1456e14a09
ui.backend.windows: correct wndproc signature so that factor works with vs2012
2014-02-21 17:40:43 -08: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
John Benediktsson
39dc58a5a8
ui.backend.cocoa.views: spacing.
2013-03-29 14:47:53 -07:00
John Benediktsson
fe1bfe173b
ui.backend.cocoa.views: simplify and add os version check.
2013-03-29 14:29:41 -07:00
John Benediktsson
1209d5287d
ui.backend.cocoa.views: maybe this works on 10.6.
2013-03-29 14:18:57 -07:00
John Benediktsson
295c87b8b1
ui.backend.cocoa.views: add platforms.txt.
2013-01-16 14:28:32 -08:00
John Benediktsson
3f987b2ffb
ui.backend.cocoa.views: fix build error on older OSX versions.
2013-01-16 10:46:39 -08:00
Jon Harper
8587b90930
X11, give same input as gtk when pressing shift, tab, alt..
2013-01-11 11:58:37 -08:00
Jon Harper
6afe04bfc1
X11 XK_ISO_Left_Tab is shift tab
2013-01-11 11:58:21 -08:00
John Benediktsson
5fd5ab6711
Revert "ui.backend.cocoa.views: make compatible with 10.6."
...
This reverts commit 7f6f742fc3
.
2012-11-29 18:43:39 -08:00
John Benediktsson
5b5ee71a6a
ui.backend.cocoa.views: make compatible with 10.6.
2012-11-26 14:48:42 -08:00
Jon Harper
f5f767e0dc
winapi window resize
2012-11-26 14:39:55 -08:00
Jon Harper
26beb27680
OSX window resize
2012-11-26 14:39:55 -08:00
Jon Harper
8948e8a455
X11 window resize
2012-11-26 14:39:54 -08:00
Jon Harper
b023ebf7a5
Add resize-window and relayout-window
2012-11-26 14:39:54 -08:00
John Benediktsson
43d91bcf08
ui.backend.cocoa.views: only set gl-scale-factor if > 1.0.
2012-11-01 16:59:45 -07:00
John Benediktsson
fcce5a2af9
core-text: retina displays should use "2x" fonts.
2012-11-01 16:28:33 -07:00
John Benediktsson
44b7bbc76d
opengl: adding support for a gl-scale-factor.
2012-11-01 14:48:12 -07:00
John Benediktsson
4efa984637
ui.backend.cocoa.views: [self setWantsBestResolutionOpenGLSurface:YES];
2012-11-01 14:29:03 -07:00
Doug Coleman
1a5f2ad961
ui.backend.gtk: Save the clipboard to the global clipboard so that it doesn't get deleted when Factor exits. Fixes #548 . Add paste-selection, but commented out for now.
2012-10-29 10:56:34 -07:00
Doug Coleman
2921829b79
windows: Attempt to fix circularity.
2012-10-24 19:03:25 -07:00
Doug Coleman
0ae18456fd
windows.shell32: Add a way to find out the kind of executable of a file on
...
windows. Inline a word.
2012-10-24 16:16:35 -07:00
Jon Harper
b3ff75cec2
ui.backend.gtk: better gesture for shift tab
...
gdk emits ISO_Left_Tab for shift + tab. Not sure if factor should silently
transform that in tab..
With this patch, shift tabs emits the following gesture:
T{ key-down { mods { S+ } } { sym "TAB" } }
2012-09-29 15:54:15 +02:00
John Benediktsson
be85b3bee3
ui: hand-loc and hand-click-loc should be global.
2012-09-21 18:32:43 -07:00
John Benediktsson
f1c62deb03
ui: use "windows get-global".
2012-09-21 15:39:49 -07:00
John Benediktsson
a056a81307
ui.backend.gtk.io.unix: switch to "mx get-global".
2012-08-01 16:22:23 -07:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
Doug Coleman
755e702536
pixel-format-attribute was just (pixel-format-attribute)
...
Rename the GENERIC: (pixel-format-attribute) to pixel-format-attribute ?
2012-06-21 12:12:57 -07:00
Doug Coleman
eccf5a82ae
io.files.info.windows: Fix file-systems word in two ways. First, don't
...
allocate 32k on the local alloc stack (which causes a 'double fault.')
Second, if the volume doesnt look up to a real path, don't make a dummy
object for that. volume
Use alien>native-string and native-string>alien wherever possible instead of
utf16n for Windows.
2012-06-21 08:32:53 -07:00
Philipp Brüschweiler
b667e4ff7e
ui.backend.gtk: don't die if the icon doesn't exist, partially fixes #369
2011-12-06 09:05:05 +01:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
29bf4d7214
ui.backend.cocoa.views: clickthrough is bullshit
...
I don't care what Slava thinks
2011-11-23 11:29:03 -08:00
John Benediktsson
4f42c72012
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff
2bd6de9a02
slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global
2011-09-19 10:03:43 -07:00
Joe Groff
9bd84e73f4
ui.backend: refactor the UI `main-vocab-hook` to use a backend-specific `ui-backend-available?` word, so that loading other backends doesn't change the `main-vocab-hook` out of sync with the backend; fixes #131
2011-09-15 13:14:01 -07:00
Slava Pestov
b3a051d385
ui.backend.gtk: don't enable gtk UI backend by default on Mac OS X. Fixes #40
2011-09-11 23:41:43 -07:00
Slava Pestov
7c14b6d839
ui.backend.gtk: remove unused vocabs from USING: list
2011-09-01 22:31:45 -07:00
Slava Pestov
101adf453f
ui.backend.gtk: remove unneeded vocabs from USING:, add platforms.txt
2011-09-01 20:15:23 -07:00
Slava Pestov
1f4da36b4b
Fixes #32 - double clicks were not handled properly in ui.backend.gtk
2011-08-27 17:06:53 -07:00
Joe Groff
9040ee37e0
Merge remote-tracking branch 'Blei/gtk-image-loader'
...
Conflicts:
basis/alien/enums/enums-tests.factor
basis/alien/enums/enums.factor
basis/alien/parser/parser.factor
basis/gdk/pixbuf/ffi/ffi.factor
basis/glib/ffi/ffi.factor
basis/tools/deploy/shaker/shaker.factor
basis/ui/backend/gtk/gtk.factor
basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
Erik Charlebois
b9e18184c6
Convert side mouse buttons to backward/forward
2011-05-23 23:36:14 -04:00
Slava Pestov
d1666854e8
ui.backend.cocoa: simplify system-alert implementation now that callbacks bug has been fixed
2011-04-16 19:12:08 -07:00
Slava Pestov
7e1b7f70a5
ui.backend.gtk.io.unix: add platforms.txt so that we don't load it on Windows
2011-04-06 17:54:22 -04:00
Slava Pestov
2cbd31d34d
Merge commit 'otoburb/master' into merge-otoburb
...
Conflicts:
basis/ui/backend/gtk/gtk.factor
2011-04-06 17:54:00 -04:00
otoburb
5744764f07
gtk.factor: Changed init behaviour so if $DISPLAY is not set, runs tty listener, otherwise UI listener.
2011-04-06 00:02:15 +00:00
Anton Gorenko
090254d671
ui.backend.gtk: fix a bug with endless error messages in a console after closing of UI;
...
io.thread: start-io-thread always starts io-thread even if it was stopped, fix line endings;
2011-04-01 22:06:07 +06:00
Anton Gorenko
640b05d457
ui.backend.gtk: split off input methods support for ui.editors into .input-methods.editors (no more ui.editors with its dependencies in a deployed
...
image for hello-ui);
2011-01-26 21:37:26 +06:00
Anton Gorenko
e9515c1a9c
ui.backend.gtk: split off unix io support into ui.backend.gtk.io.unix;
2011-01-26 21:00:35 +06:00
Anton Gorenko
005f48986e
ui.backend.gtk: update for alien.data changes ('<int>' -> 'int <ref>', etc.);
2011-01-16 14:50:18 +06:00
Anton Gorenko
8f297055d6
Merge branch 'master' of git://github.com/slavapestov/factor
2011-01-16 13:38:04 +06:00
Slava Pestov
13d6c6a698
Update code for alien.data changes
2010-12-26 02:08:57 -06:00
Slava Pestov
75560699ea
Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object>
2010-12-25 16:55:36 -08:00
Anton Gorenko
8baa7d3578
ui.backend.gtk: fix bugs;
2010-11-15 21:48:58 +06:00
Doug Coleman
69487d1fd3
Fix a few tests that got broken in the <uint> *uint patches
2010-10-25 19:14:21 -05:00
Doug Coleman
1f57dc326e
Remove many uses of <int> and *int etc
2010-10-25 12:49:12 -05:00
Anton Gorenko
913362a3a2
gobject-introspection: rewrite gir files loading and code generation totally
...
generate girs from fresh sources
ui.backend.gtk, ui.text.pango: update a little bit
(this commit is unstable, because new GObject-introspection release (> 0.9) is much different from 0.6 and it needs more detailed annotations
(e.g. to parse out/inout parameters), which are mostly missing now)
2010-09-29 15:08:31 +06:00
Anton Gorenko
d5a7f99bea
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
basis/cairo/ffi/ffi.factor
basis/pango/cairo/cairo.factor
basis/pango/layouts/layouts.factor
2010-09-26 23:24:30 +06:00
Doug Coleman
f791c8c5d2
Squashed commit of the following:
...
commit 197dbe9a6733775ac0ea19b3da4bd4dc3c85418c
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sat Sep 18 19:01:38 2010 -0500
Fix bootstrap, move privileges to windows.privileges
commit 521c622f8afb15bf42d263c738cb990560dc29cb
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sat Sep 18 18:26:30 2010 -0500
Hopefully fix bootstrap
commit eb3f22928b59758b9505430034044b5b94705da2
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sat Sep 18 18:19:05 2010 -0500
Remove wince from factor codebase
commit 619d6c99415f46208a7ede6a04b0ccda46b15360
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sat Sep 18 16:07:46 2010 -0500
Remove Windows CE from vm/
2010-09-19 19:13:25 -05:00
Anton Gorenko
534402469c
ui.backend.gtk: clean up and rearrange the code
2010-09-12 17:28:24 +06:00
Anton Gorenko
8812052ba9
ui.backend.gtk: set 'wmclass' hint to 'Factor' for new windows
2010-09-12 13:43:20 +06:00
Anton Gorenko
6ef16684e5
ui.backend.gtk: remove "Input method" menu, because it's for testing only
2010-09-04 23:15:00 +06:00
Slava Pestov
a2927eb255
ui.backend.windows: fix compile error in ui-wndproc
2010-07-29 17:22:34 -04:00
Philipp Brüschweiler
8c61b874b7
ui.backend.gtk: load icon data directly into factor.image when deploying, no io is needed
2010-07-26 21:11:53 +02:00