Slava Pestov
b9b72a6efa
ui.backend.cocoa: factor out stop-io-thread word for use by upcoming Gtk UI backend
2010-05-29 04:27:54 -04:00
Anton Gorenko
553f6d516a
change directories structure (add */ffi/ffi.factor files)
2010-05-27 00:17:14 +06:00
Slava Pestov
ceba2e1c6f
ui.backend.x11: don't pass GLX_USE_GL since its a no-op and Mesa doesn't like it
2010-05-24 19:23:55 -04:00
Anton Gorenko
c3acab8215
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
basis/opengl/gl/extensions/extensions.factor
basis/pango/cairo/cairo.factor
2010-05-24 19:43:05 +06:00
Anton Gorenko
7cd0637d0d
add window-controls implementation (without 'textured-background')
2010-05-24 16:08:26 +06:00
Slava Pestov
a3e5e64eab
ui.backend.x11: fix load error
2010-05-23 22:08:24 -04:00
Anton Gorenko
ad8cda97a5
fix Alt-combos bug
2010-05-23 21:26:11 +06:00
Anton Gorenko
a7bd678c1b
Gtk-based ui backend
2010-05-23 16:09:26 +06:00
Slava Pestov
f04ae609c8
Fixes for out parameter changes
2010-05-23 03:27:40 -05:00
Slava Pestov
5d9993d46f
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
40f58f27d6
specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length
2010-05-18 23:09:34 -04:00
Slava Pestov
bf03b42745
ui.backend.windows: faster wheel mouse scroll rate
2010-05-07 18:26:16 -04:00
Slava Pestov
d2d466de29
Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO)
2010-05-06 17:21:02 -04:00
unknown
be69c02803
Fix enter-fullscreen on windows
2010-04-30 08:06:06 -05:00
Slava Pestov
c5fef60396
ui.backend.x11: fix load error
2010-04-29 03:59:31 -04:00
Slava Pestov
fb8d418f13
ui.backend.windows: fix compile error
2010-04-29 02:20:17 -05:00
Slava Pestov
54260643c3
ui: use scroll delta information for smoother mouse scrolling on Windows and Mac OS X
2010-04-29 02:52:32 -04:00
Joe Groff
c434fbf47c
ui.backend.x11: search path for xmessage rather than hardcoding path
2010-04-25 12:18:45 -07:00
Slava Pestov
3b92172115
Replace 'untested' tag with 'not loaded' and 'not tested' tags
2010-04-13 18:43:01 -07:00
Slava Pestov
6fd9c27971
ui.backend.windows: fix icon name
2010-04-11 15:03:38 -05:00
Joe Groff
ca9614e746
Merge branch 'master' into abi-symbols
2010-04-01 15:28:36 -07:00
Doug Coleman
636f2ed2e5
Use flags{ instead of flags all over the place
2010-04-01 14:44:03 -05:00
Joe Groff
1d06be5021
"stdcall" -> stdcall
2010-03-31 19:29:04 -07:00
Daniel Ehrenberg
85d698ab9c
Fixing vocab ambiguities in linux and windows-specific vocabs
2010-03-17 00:22:48 -04:00
Joe Groff
e1a15af319
ui.backend.cocoa.views: change drawRect: method so it does "draw-world" directly instead of relayout-1 yield
2010-03-15 12:57:09 -07:00
Slava Pestov
2dde82ffff
Slices over specialized arrays can now be passed to C functions, written to binary output streams, and given to malloc-byte-array
2010-02-25 04:50:31 +13:00
Joe Groff
b613dffa1f
tidy up load errors in ui.backend.x11
2010-02-24 00:51:02 -08:00
Joe Groff
eb93f68302
ui.backend.cocoa: invalidate run loop timers before raising an NSAlert and add them back when runModal returns to avoid run loop callbacks reentering Factor
2010-02-23 23:52:03 -08:00
Joe Groff
9186c3c682
ui: add a "system-alert" hook that can raise a system modal dialog without involving any potentially stripped gadget, io, or debugger code
2010-02-23 19:28:57 -08:00
Joe Groff
47b4b10d03
scrub memory>struct calls made redundant
2010-02-22 12:22:29 -08:00
Slava Pestov
0aad3e6e12
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Erik Charlebois
1c7060c313
Implement input grabbing for x11; add do-nothing game.input backend for linux. The game and gpu demos now run correctly.
2010-02-18 12:52:33 -08:00
Slava Pestov
dca4463240
ui.backend.cocoa.tools: use interactive-vocabs for 'evaluate selection' service
2010-02-10 11:47:06 +13:00
erikc
3c396c3533
Don't FEP on unhandled case for WM_APPCOMMAND
2010-02-05 23:50:58 -08:00
erikc
6933dd6a1d
Map WM_APPCOMMAND browser backward and forward messages to action-left and action-right.
2010-01-19 18:28:53 -08:00
Slava Pestov
08b6ebc7fa
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Doug Coleman
3323072613
Merge branch 'master' into startup
...
Conflicts:
core/bootstrap/primitives.factor
vm/run.hpp
2009-11-15 02:52:50 -06:00
Doug Coleman
b5fd809209
memq? -> member-eq?, sorted-memq? -> sorted-member-eq?
2009-10-28 15:02:00 -05:00
Slava Pestov
45bc6e3c3e
delete -> remove!
2009-10-27 23:25:35 -05:00
Joe Groff
cee5862b69
update a bunch of alien-callbacks and alien-indirects to use c-type words
2009-10-21 21:10:11 -05:00
Joe Groff
dbd2f1b7f2
update cocoa bridge to use c-type words
2009-10-21 18:17:29 -05:00
Doug Coleman
6fa23d7ea4
change add-init-hook to add-startup-hook, new add-shutdown-hook word
2009-10-19 22:17:02 -04:00
Doug Coleman
bd31538cd4
fix using
2009-10-05 13:18:45 -05:00
Doug Coleman
1f0f72b4c0
use 1&& in a few places, clean up some more ui code
2009-10-04 17:50:34 -05:00
Joe Groff
74d60f94be
fix windows
2009-09-25 10:00:23 -05:00
Joe Groff
6d47f2abe7
clean up textured window code
2009-09-25 09:42:09 -05:00
Joe Groff
484b9131eb
fix cocoa bootstrap
2009-09-24 20:25:41 -05:00
Joe Groff
61e683643d
reset frame inset when windows dwm is toggled off and on, and use the system dialog background for textured windows when dwm is disabled
2009-09-24 16:08:58 -05:00
Joe Groff
6bbb22725c
tweak textured windows on windows
2009-09-24 13:26:15 -05:00
Joe Groff
6ebb13dd2e
support textured windows on os x and windows 6.x
2009-09-24 13:05:27 -05:00
Joe Groff
72978b63e9
update windows.types structs
2009-09-18 19:12:31 -05:00
Joe Groff
4a1422e7fe
move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab
2009-09-17 22:36:05 -05:00
Slava Pestov
527db8995a
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov
5bec850410
ui.backend.x11: fix set-fullscreen
2009-09-04 12:35:45 -04:00
Joe Groff
b06626ee46
fix some things that broke in the windows UI/game-input backends
2009-08-31 12:45:39 -05:00
Slava Pestov
87e1703821
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-31 00:24:46 -04:00
Slava Pestov
d4b78a83e2
x11.events, ui.backend.x11: actually make it work
2009-08-31 00:24:25 -04:00
Slava Pestov
adcd269a99
x11 and ui.backend.x11: update to use new structs
2009-08-30 22:55:19 -05:00
Doug Coleman
5fd8f1f762
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-29 23:39:20 -05:00
Doug Coleman
b70b6ae7da
more struct changes
2009-08-27 21:43:29 -05:00
Doug Coleman
76ee24f482
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 21:40:11 -05:00
Joe Groff
3859579c72
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 21:17:17 -05:00
Joe Groff
a74a0151c3
return YES from cocoa app delegate's applicationShouldHandleReopen: method. this allows app-icon-minimized windows on snow leopard to automatically restore when the dock icon is clicked
2009-08-27 21:16:41 -05:00
Doug Coleman
482c632fe5
update RECT for new structs
2009-08-27 21:16:28 -05:00
Doug Coleman
a51c8d27f4
update WNDCLASSEX
2009-08-27 20:43:42 -05:00
Doug Coleman
abb34b5ea4
TRACKMOUSEVENT uses <struct> now
2009-08-27 20:39:37 -05:00
Doug Coleman
850475c2ab
newstructify PIXELFORMAT
2009-08-27 20:35:37 -05:00
Joe Groff
8e85b5ef96
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 19:23:20 -05:00
Joe Groff
ee8c48bbb8
ui.backend.cocoa.views: yield in drawRect: impl so that windows will redraw while being resized on snow leopard
2009-08-27 19:21:38 -05:00
Doug Coleman
49af91cfd0
spacing
2009-08-27 11:43:19 -05:00
Slava Pestov
6380e5be4d
Use utf8 instead of ascii encoding in a couple of places to avoid pulling in ascii into deployed apps
2009-08-23 19:07:21 -05:00
Doug Coleman
d1ce837569
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring
2009-08-13 19:21:44 -05:00
Joe Groff
823616ddc6
put a slot on worlds for window-resources which get disposed when window is closed
2009-07-01 13:54:42 -05:00
Joe Groff
936a72db60
validate cocoa menu items with handles-gesture?
2009-06-22 20:16:52 -05:00
Joe Groff
fbafdea47e
bind file management action gestures to standard cocoa menu items
2009-06-21 20:53:11 -05:00
Slava Pestov
28d7b8d5f5
Fix hang when loading ui.backend.windows
2009-06-18 19:30:17 -05:00
Joe Groff
ff09c17fcd
make windows without titlebars on win32 actually not have titlebars
2009-06-18 15:09:03 -05:00
Joe Groff
62ed8d1404
win32 support for window-controls
2009-06-18 11:41:34 -05:00
Joe Groff
6e334026bc
fix cocoa close-window to work on windows without close buttons
2009-06-17 23:00:30 -05:00
Joe Groff
7d1b67b098
interface for controlling window controls (close, minimize, resize, titlebar, etc.). cocoa backend
2009-06-17 22:47:51 -05:00
Doug Coleman
8da9d0f203
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Joe Groff
3a8fb29d70
disable WGL_ARB_pixel_format code path in windows UI backend 'cause ATI drivers are shit
2009-05-23 08:39:01 -05:00
Slava Pestov
52ea03a311
Fix windows bootstrap
2009-05-16 11:20:08 -05:00
Joe Groff
698eccd5ab
don't unfocus the world if cocoa view has gone fullscreen; the original window isn't really associated with the view while fullscreen
2009-05-14 17:37:14 -05:00
Joe Groff
fc59ee2e4a
set first responder on cocoa view back when returning from fullscreen mode. un-fullscreen the view if window is closed while view is fullscreen
2009-05-14 17:29:25 -05:00
Joe Groff
681d5253c4
spin on GetCurrentButtonState before warping cursor when grabbing cocoa input. this keeps the window from jumping if you click on its titlebar to focus
2009-05-14 15:36:18 -05:00
Joe Groff
a229ec788a
flip cursor warp point for cocoa mouse grab into y-goes-down space
2009-05-14 15:01:21 -05:00
Slava Pestov
2f4215a499
ui.backend.windows: create-window can now be called even when the UI is not running. Fixes game-input deploy test
2009-05-13 22:41:42 -05:00
Doug Coleman
73f4b0d781
fullscreen* -> (fullscreen?), set-fullscreen* -> (set-fullscreen), fix jamshred screen toggling
2009-05-13 22:28:33 -05:00
Doug Coleman
cc35bb1311
rename set-fullscreen? to set-fullscreen, add a toggle-fullscreen word, fix windows backend for fullscreen*
2009-05-13 20:05:22 -05:00
Slava Pestov
0011fb644d
Fix stack underflow in Windows UI backend
2009-05-11 16:19:41 -05:00
U-C4\Administrator
ca9a29ea85
use change-global in a couple of places, formatting
2009-05-10 14:24:13 -05:00
Joe Groff
977cd6c147
clip to window client area when grabbing on windows
2009-05-08 15:49:29 -05:00
Joe Groff
3a2a1a6a62
input grabbing support
2009-05-08 15:07:15 -05:00
Joe Groff
cd7e2aecd2
typo in cocoa pixel format stuff
2009-05-07 19:47:26 -05:00
Slava Pestov
a776dffeb6
Split up tools.vocabs. Note that load-everything is now named load-all
2009-05-04 06:44:17 -05:00
Joe Groff
087e0ca745
yield during mouse-moved events in cocoa so gadgets have a chance to redraw
2009-05-03 20:33:03 -05:00
Joe Groff
4a302d6a09
fix x11 backend bugs
2009-05-02 21:55:19 -05:00
U-FROGGER\erg
7d53445aad
fix windows ui
2009-05-02 20:36:31 -05:00
Joe Groff
a6861ecc87
ui.backend.windows code cleanup
2009-05-02 19:44:08 -05:00
Joe Groff
b4deae664f
oops, forgot backing-store support on windows. also "robust" is useless
2009-05-02 17:54:45 -05:00
Joe Groff
dc5cd04a41
X11 backend for pixel formats
2009-05-02 16:39:31 -05:00
Joe Groff
2f59f39376
windows pixel-format backend
2009-05-02 13:42:10 -05:00
Joe Groff
ce9611a390
need to pass world as arg to pixel-format hooks
2009-05-02 12:31:33 -05:00
Joe Groff
9c043282dc
adjust pixel format syntax. override offscreen-world pixel-format-attributes instead of special-casing
2009-05-01 20:07:14 -05:00
Joe Groff
7adf836542
shove cocoa pixel format attribute conversion into a functor so we can reuse it
2009-05-01 16:33:49 -05:00
Joe Groff
b45ea14d39
compilation fixes
2009-05-01 12:56:52 -05:00
Joe Groff
ba8abd6cad
cocoa backend support for ui.pixel-formats; world-pixel-format-attributes generic
2009-05-01 09:09:38 -05:00
Doug Coleman
4a5009048f
support fullscreen mode in windows ui
2009-04-30 15:22:32 -05:00
Doug Coleman
8ab4d39036
move windows error handling to windows.errors and update usages.
2009-04-30 09:36:25 -05:00
Slava Pestov
5579842d7a
Fix USING:
2009-04-18 02:52:29 -05:00
Slava Pestov
4f74810c15
Split off x11 vocab from x11.xlib, and add x11.unix for event loop integration
2009-04-18 01:56:29 -05:00
Slava Pestov
65b27354ad
Merge branch 'master' into smarter_error_list
2009-04-14 15:07:22 -05:00
Slava Pestov
bfe0787454
Merge branch 'master' into smarter_error_list
2009-04-13 15:23:27 -05:00
Slava Pestov
6aa3b7cd3d
Merge branch 'emacs' of http://git.hacks-galore.org/jao/factor
2009-04-13 19:50:23 -05:00
Slava Pestov
3b1f3c08a4
Fix window positioning on OS X
2009-04-13 03:16:57 -05:00
Jose A. Ortega Ruiz
b6a8e023a5
Fix: setting WM_CLASS in X11 backend using UTF8 string
2009-04-13 01:17:04 +02:00
Slava Pestov
5aab0078a0
Make more code infer
2009-04-12 16:08:54 -05:00
slava
509869ca70
X11 UI: Fix resize flicker, exception when closing window, unsuccessful attempt at fixing raise-window
2009-04-10 13:29:07 -04:00
Slava Pestov
370e90f57b
Fix odd race condition in ui.backend.cocoa
2009-04-10 06:19:46 -05:00
Slava Pestov
87e4598581
opengl.textures: use GL_ARB_texture_non_power_of_two if available
2009-04-07 21:32:45 -05:00
Slava Pestov
1a4f2724e4
Don't call glFlush, it's useless
2009-04-04 20:03:44 -05:00
U-SLAVA-DFB8FF805\Slava
9c3054c84a
More progress on Uniscribe
2009-04-02 13:05:26 -05:00
Slava Pestov
a58ce33bb3
Split off some code from ui.backend.windows into windows.offscreen
2009-03-28 22:27:18 -05:00
U-SLAVA-DFB8FF805\Slava
5d3c2c874a
Get game-input to load on Windows
2009-03-24 03:58:11 -05:00
Slava Pestov
be4fb1e7d9
Move call( and execute( to core
2009-03-16 20:11:36 -05:00
Slava Pestov
36d03dfa08
Use call( so that with-ui infers
2009-03-16 03:01:47 -05:00
Slava Pestov
ebb5adfdb7
Clicking on dock icon with no windows visible opens new listener
2009-03-05 16:32:43 -06:00
Slava Pestov
2fee574b4f
Working on X11 backend
2009-03-02 02:55:54 -06:00
U-SLAVA-DFB8FF805\Slava
95de45725e
Fix Pango and ui.event-loop for Windows
2009-03-02 01:12:06 -06:00
Slava Pestov
ce1bc1d6ed
Fixing conflicts from stack checker changes
2009-02-24 01:21:10 -06:00
Slava Pestov
58e55d4f45
Working on documentation
2009-02-19 16:54:27 -06:00
Slava Pestov
4c7405f353
Don't center all windows on Cocoa
2009-02-17 19:26:32 -06:00
Slava Pestov
39a4969faa
Listener doesn't print a garbage quotation when commands are invoked
2009-02-12 09:48:05 -06:00
Slava Pestov
ab386d01aa
Merge branch 'master' into new_ui
2009-02-10 16:23:14 -06:00
Slava Pestov
88b401b383
Rename math.geometry.rect to math.rectangles
...
Remove math.geometry.points
Remove rect-loc and rect-dim words
2009-02-05 03:28:41 -06:00
Slava Pestov
0835eb374b
UI cleanup: make some ui.gadgets words private, give labels a virtual slot instead of label-string/set-label-string words
2009-02-01 20:31:42 -06:00
Slava Pestov
0a0431e6ab
Fix conflict
2009-01-30 02:24:34 -06:00
Slava Pestov
af744e4511
Use singletons instead of empty tuples, add undo/redo to editor gadgets
2009-01-28 00:30:57 -06:00
Slava Pestov
9bf2675fa3
Remove two rot usages from UI
2009-01-26 16:30:17 -06:00
Slava Pestov
4f5a927afb
Move UI text backends to ui.text.*, move UI backends to ui.backend.*, add font datatype
2009-01-26 00:36:37 -06:00
Slava Pestov
723626a9d2
Add slot editing to UI inspector, remove slot editing from TTY inspector
2009-01-08 17:02:54 -06:00
Slava Pestov
053c15e476
This is where all the recent I/O and core foundation work comes together: use core-foundation.run-loop to receive events on Mac OS X instead of weak-ass Squeak-style polling every 10ms
2008-12-12 23:58:28 -06:00
Doug Coleman
3629b9e5bd
win32 offscreen refinements
2008-12-10 08:49:50 -06:00
Joe Groff
98c0daae2a
Move offscreen-world widget and support words into ui.offscreen vocab
2008-12-09 10:07:57 -08:00
Joe Groff
0b42f11683
cocoa backend for offscreen world rendering
2008-12-08 19:30:10 -08:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Eduardo Cavazos
7402cd2ab7
Move 'ui' to basis
2008-08-07 21:12:50 -05:00