Commit Graph

307 Commits (81c6196dc488d73c9c47e5ccf94e6e8c94e75ad4)

Author SHA1 Message Date
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
Philipp Brüschweiler ab29ed3892 Merge branch 'gtk' into gtk-image-loader 2010-07-26 19:29:17 +02:00
Philipp Brüschweiler fde0321f44 ui.backend.gtk: don't initialize io event source when deploying with io level 1 and 2 2010-07-26 19:27:27 +02:00
Philipp Brüschweiler 926d1540c5 Merge branch 'gtk' into gtk-image-loader
Conflicts:
	basis/glib/ffi/ffi.factor
	basis/ui/backend/gtk/gtk.factor
2010-07-22 23:51:17 +02:00
Philipp Brüschweiler 832b55fe89 ui.backend.gtk: only set up event sources when we are deploying with io level 3 2010-07-22 23:45:08 +02:00
Philipp Brüschweiler 39d475e996 ui.backend.gtk: use png instead of ico to represent icons 2010-07-22 22:48:18 +02:00
Philipp Brüschweiler 035ba3bc93 ui.backend.gtk, tools.deploy.unix: support for icons 2010-07-22 12:39:16 +02:00
Anton Gorenko c9613cc7ce add summary.txt and tags.txt for various vocabularies 2010-07-17 15:31:53 +06:00
Anton Gorenko 32952a6071 ui.backend.gtk: update to new with-out-parameters combinator 2010-07-17 14:25:59 +06:00
Anton Gorenko 65362a67e8 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/pango/cairo/cairo.factor
2010-07-17 14:11:06 +06:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Slava Pestov 425c572fa8 cocoa.subclassing: cleaner CLASS: syntax; ui.backend.cocoa: ignore events delivered after window closed to fix FEP (reported by Doug Coleman) 2010-07-06 19:02:52 -04:00
Slava Pestov bb4dae64f3 cocoa.subclassing: new METHOD: syntax cleans up class definitions 2010-07-06 17:59:35 -04:00
Slava Pestov 0fa1a46d35 Merge branch 'master' of git://github.com/erg/factor into erg 2010-06-22 01:05:13 -04:00
Slava Pestov a74de80bb0 ui.backend.cocoa.views: unregister window from notification instead of in -dealloc, fixing flakiness of show-listener/show-browser words 2010-06-19 18:12:56 -04:00
Anton Gorenko f39f1b22a0 gir.ffi, ui.backend.gtk, gir.samples: change enum and bitfield generation from ENUM: to TYPEDEF: + CONSTANT:s 2010-06-18 23:33:06 +06:00
Anton Gorenko 0073f184fa ui.backend.gtk: working on input methods... 2010-06-16 19:25:32 +06:00
Anton Gorenko 375ebd40ef ui.backend.gtk: change authors list 2010-06-13 16:53:24 +06:00
Anton Gorenko c8143dca73 Merge branch 'gtk' of git://github.com/Blei/factor 2010-06-13 16:20:32 +06:00
Anton Gorenko a11d2b06c6 ui.backend.gtk: add destructor in clipboard-contents 2010-06-13 16:18:51 +06:00
Philipp Brüschweiler 5b8543b352 Merge remote branch 'ex-rzr/master' into gtk
Conflicts:
	basis/ui/backend/gtk/gtk.factor
2010-06-12 16:02:22 +02:00
Philipp Brüschweiler 4ce4b2c257 ui.backend.gtk: add surrounding signal handler for input methods
untested, as i don't think my IM is using this feature
2010-06-11 19:33:28 +02:00
Anton Gorenko b9a5b0c16e ui.backend.gtk: add simple input method support (GtkIMContextSimple) 2010-06-11 19:43:11 +06:00
Doug Coleman 2e867e49a5 Add a remove-wm-handler word to windows ui backend 2010-06-10 16:06:38 -05:00
Philipp Brüschweiler 5f9929c97f ui.backend.gtk: notify input methods of cursor locations 2010-06-10 22:35:08 +02:00
Philipp Brüschweiler 17d0874360 ui.backend.gtk: preliminary input methods support 2010-06-10 00:16:31 +02:00
Anton Gorenko 59857ad2c1 ui.backend.gtk: add auto-position for worlds with { 0 0 } in window-loc 2010-06-08 17:41:10 +06:00
Anton Gorenko 66f5c2695f ui.backend.gtk: fix (grab-input) and (ungrab-input) 2010-06-08 13:21:45 +06:00
Anton Gorenko e174b7a070 Merge branch 'master' of git://factorcode.org/git/factor 2010-06-07 23:12:23 +06:00
Anton Gorenko 33996ca1d6 ui.backend.gtk: fix incorrect resizing of windows 2010-06-07 22:46:10 +06:00
Anton Gorenko e5b07f5f29 ui.backend.gtk: add more advanced timer for event loop 2010-06-06 14:19:46 +06:00
Joe Groff 8644e12bb6 ui.backend.windows: make small-title-bar windows WS_EX_TOPMOST so they behave like os x small-title-bar windows 2010-06-03 23:03:53 -07:00
Anton Gorenko 400289699d ui.backend.gtk: add pixel-format support 2010-06-02 13:30:05 +06:00
Slava Pestov 063c9783fb ui.backend.x11: fix typo 2010-06-02 03:13:57 -04:00
Slava Pestov 83e78c353e ui.backend.windows: remove a usage of rot 2010-06-02 02:59:58 -04:00
Slava Pestov 9f49bfc3b3 ui.backend.x11: fixing raise-window* 2010-06-02 02:59:57 -04:00
Anton Gorenko 0b7be5142b ui.backend.gtk: add rough implementation of non-blocking IO 2010-05-31 00:18:08 +06:00
Slava Pestov 8fd6a24edb 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 17192dee7c change directories structure (add */ffi/ffi.factor files) 2010-05-27 00:17:14 +06:00
Slava Pestov 07e92b50ce 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 ab9e851bed 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 67df0a783f add window-controls implementation (without 'textured-background') 2010-05-24 16:08:26 +06:00
Slava Pestov cd5c1ab499 ui.backend.x11: fix load error 2010-05-23 22:08:24 -04:00
Anton Gorenko 79e4297245 fix Alt-combos bug 2010-05-23 21:26:11 +06:00
Anton Gorenko d94cb7543d Gtk-based ui backend 2010-05-23 16:09:26 +06:00
Slava Pestov 66fcab3721 Fixes for out parameter changes 2010-05-23 03:27:40 -05:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov a8098e3182 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 fa99cc8f0e ui.backend.windows: faster wheel mouse scroll rate 2010-05-07 18:26:16 -04:00
Slava Pestov 627295f094 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 c02bb4bd17 Fix enter-fullscreen on windows 2010-04-30 08:06:06 -05:00
Slava Pestov aec2570cd3 ui.backend.x11: fix load error 2010-04-29 03:59:31 -04:00
Slava Pestov e82bbc5412 ui.backend.windows: fix compile error 2010-04-29 02:20:17 -05:00
Slava Pestov 1672c34f9f 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 859ec88bcd ui.backend.x11: search path for xmessage rather than hardcoding path 2010-04-25 12:18:45 -07:00
Slava Pestov da6bcbedfc Replace 'untested' tag with 'not loaded' and 'not tested' tags 2010-04-13 18:43:01 -07:00
Slava Pestov 1881476892 ui.backend.windows: fix icon name 2010-04-11 15:03:38 -05:00
Joe Groff ef884ef7f2 Merge branch 'master' into abi-symbols 2010-04-01 15:28:36 -07:00
Doug Coleman 026499e64f Use flags{ instead of flags all over the place 2010-04-01 14:44:03 -05:00
Joe Groff f3dd625de6 "stdcall" -> stdcall 2010-03-31 19:29:04 -07:00
Daniel Ehrenberg 39df2c373f Fixing vocab ambiguities in linux and windows-specific vocabs 2010-03-17 00:22:48 -04:00
Joe Groff 08f29d9fcd 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 17b095a524 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 3bf5eeddf9 tidy up load errors in ui.backend.x11 2010-02-24 00:51:02 -08:00
Joe Groff 2aa1a3dbd7 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 f6183703b2 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 6d4724a095 scrub memory>struct calls made redundant 2010-02-22 12:22:29 -08:00
Slava Pestov 95bfc8a240 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 d3d7392fa9 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 646a88fbf2 ui.backend.cocoa.tools: use interactive-vocabs for 'evaluate selection' service 2010-02-10 11:47:06 +13:00
erikc 1af9b68495 Don't FEP on unhandled case for WM_APPCOMMAND 2010-02-05 23:50:58 -08:00
erikc 57111b09c3 Map WM_APPCOMMAND browser backward and forward messages to action-left and action-right. 2010-01-19 18:28:53 -08:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Doug Coleman bd13e018dd memq? -> member-eq?, sorted-memq? -> sorted-member-eq? 2009-10-28 15:02:00 -05:00
Slava Pestov f5a0a8b6e1 delete -> remove! 2009-10-27 23:25:35 -05:00
Joe Groff c3b8847936 update a bunch of alien-callbacks and alien-indirects to use c-type words 2009-10-21 21:10:11 -05:00
Joe Groff cc5f9ff98a update cocoa bridge to use c-type words 2009-10-21 18:17:29 -05:00
Doug Coleman 6b6e56a179 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04:00
Doug Coleman 317c3f82d5 fix using 2009-10-05 13:18:45 -05:00
Doug Coleman 474e02020c use 1&& in a few places, clean up some more ui code 2009-10-04 17:50:34 -05:00
Joe Groff bcd5e72989 fix windows 2009-09-25 10:00:23 -05:00
Joe Groff 9798564536 clean up textured window code 2009-09-25 09:42:09 -05:00
Joe Groff 28d78c9954 fix cocoa bootstrap 2009-09-24 20:25:41 -05:00
Joe Groff 2af6104d99 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 c4d4f1b337 tweak textured windows on windows 2009-09-24 13:26:15 -05:00
Joe Groff e0157c55d1 support textured windows on os x and windows 6.x 2009-09-24 13:05:27 -05:00
Joe Groff c86bef70c9 update windows.types structs 2009-09-18 19:12:31 -05:00
Joe Groff 076ab42dc3 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 7f2e2b1777 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 0238fce941 ui.backend.x11: fix set-fullscreen 2009-09-04 12:35:45 -04:00
Joe Groff 9bd7471696 fix some things that broke in the windows UI/game-input backends 2009-08-31 12:45:39 -05:00
Slava Pestov 6ed46177e9 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-31 00:24:46 -04:00
Slava Pestov 861a3f563b x11.events, ui.backend.x11: actually make it work 2009-08-31 00:24:25 -04:00
Slava Pestov e36029b376 x11 and ui.backend.x11: update to use new structs 2009-08-30 22:55:19 -05:00
Doug Coleman d88cdffa47 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 23:39:20 -05:00
Doug Coleman 111c0f6b89 more struct changes 2009-08-27 21:43:29 -05:00
Doug Coleman ae001ce75c Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:40:11 -05:00
Joe Groff c3002ed0f0 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 21:17:17 -05:00
Joe Groff eb4081c696 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 c926854790 update RECT for new structs 2009-08-27 21:16:28 -05:00
Doug Coleman 7df875c7fe update WNDCLASSEX 2009-08-27 20:43:42 -05:00
Doug Coleman 065db08680 TRACKMOUSEVENT uses <struct> now 2009-08-27 20:39:37 -05:00
Doug Coleman 469e7e8d67 newstructify PIXELFORMAT 2009-08-27 20:35:37 -05:00
Joe Groff 367f024a1b Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 19:23:20 -05:00
Joe Groff 7771c55cb5 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 d4497c81ef spacing 2009-08-27 11:43:19 -05:00
Slava Pestov 449be040f8 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 3f3d57032b 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 77104b7256 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 85acbf4abc validate cocoa menu items with handles-gesture? 2009-06-22 20:16:52 -05:00
Joe Groff 16c977491b bind file management action gestures to standard cocoa menu items 2009-06-21 20:53:11 -05:00
Slava Pestov a99f8f5741 Fix hang when loading ui.backend.windows 2009-06-18 19:30:17 -05:00
Joe Groff 10ab07224f make windows without titlebars on win32 actually not have titlebars 2009-06-18 15:09:03 -05:00
Joe Groff 76b3e5fea2 win32 support for window-controls 2009-06-18 11:41:34 -05:00
Joe Groff b75999aac6 fix cocoa close-window to work on windows without close buttons 2009-06-17 23:00:30 -05:00
Joe Groff 3231fcd052 interface for controlling window controls (close, minimize, resize, titlebar, etc.). cocoa backend 2009-06-17 22:47:51 -05:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Joe Groff 3061cea61f 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 a9c339e583 Fix windows bootstrap 2009-05-16 11:20:08 -05:00
Joe Groff b3039786c2 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 7fdd018aec 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 606ed8aaa1 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 92e508356e flip cursor warp point for cocoa mouse grab into y-goes-down space 2009-05-14 15:01:21 -05:00
Slava Pestov 06efcd1502 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 0d8115a940 fullscreen* -> (fullscreen?), set-fullscreen* -> (set-fullscreen), fix jamshred screen toggling 2009-05-13 22:28:33 -05:00
Doug Coleman 31e3fe5a2f 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 0a6c9e08a9 Fix stack underflow in Windows UI backend 2009-05-11 16:19:41 -05:00