Commit Graph

1196 Commits (080e44aac642f2b13d23d400ceaa015b8c142c05)

Author SHA1 Message Date
John Benediktsson 6a096a1e71 ui.gadgets.editors: implement Ctrl-A/E/K to be more compatible. 2011-10-18 11:38:08 -07:00
Joe Groff 44b49d54a0 ui.tools.listener: remove redundant method 2011-10-17 21:23:37 -07:00
Joe Groff 0303d4d1de ui.tools.listener: fix stream-read-unsafe
It was returning the number of requested bytes even if eof was encountered.
2011-10-17 21:23:05 -07:00
Joe Groff 1e37b525a3 kill noncopying-reader mixin, stream-read generic
Now that all streams have been updated to implement the stream-read-unsafe protocol, take out the noncopying-reader shim. Turn stream-read and stream-read-partial into plain functions over the -unsafe generics.
2011-10-17 21:23:05 -07:00
Joe Groff a0d49d9ff3 ui.tools.listener: read-unsafe for interactor†
†there's a failing test with this patch that needs investigation:

===
resource:basis/ui/tools/listener/listener-tests.factor: 90

Unit Test: { [ t ] [ "promise" get 2 seconds ?promise-timeout text = ] }

wait-timeout
===
2011-10-17 21:23:04 -07:00
John Benediktsson 7494418bf8 More lint cleanups. 2011-10-16 19:33:16 -07:00
John Benediktsson 902cb51806 ui.tools.listener: call insert-newline directly. 2011-10-16 13:39:15 -07:00
John Benediktsson fd853f9958 Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson f419934d6a Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
John Benediktsson 54b9b3bf14 namespaces: adding a "with-global" word to replace "global [ ] bind". 2011-10-13 17:21:59 -07:00
Slava Pestov 72e9550ea6 Display a system-alert for callback errors in the UI; also for thread errors in deployed apps; fixes #92, fixes #95 2011-10-03 00:24:37 -07:00
John Benediktsson 6ff014b6f7 Revert "ui.clipboards: adding a gadget-copy-all."
This reverts commit bee1c0c61e.
2011-09-29 13:10:21 -07:00
John Benediktsson bee1c0c61e ui.clipboards: adding a gadget-copy-all. 2011-09-29 13:02:23 -07:00
Doug Coleman 300138eb4d Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson 0e3d598e69 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
John Benediktsson e91c48dc13 ui.gadgets.editors: simplify private word. 2011-09-25 11:43:53 -07:00
John Benediktsson ac8b589f9a Adding stack effects. 2011-09-23 17:46:40 -07:00
Joe Groff 571ef865e6 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
Doug Coleman 17e0fbe501 Remove Windows CE from core/ basis/ and build-support/
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.
2011-09-18 23:19:06 -05:00
John Benediktsson f05346fcd3 ui.tools.listener.completion: when completing history, only show unique completions. 2011-09-17 09:53:59 -07:00
John Benediktsson d7340eab8e ui.tools.listener.completion: delay history-list to allow live searching. 2011-09-17 09:06:10 -07:00
John Benediktsson 0ef0c1674d ui.tools.listener.completion: allow substring search in history. Fixes #133. 2011-09-17 09:04:36 -07:00
John Benediktsson 82233274ad ui.tools.profiler: fix link to help. 2011-09-17 08:14:13 -07:00
Joe Groff 5e4c8cd260 ui.tools.deploy: change "Deploy as Windows console application" to read "Deploy as console application on Windows"; makes it a bit clearer that the switch only affects Windows deployment 2011-09-15 15:05:17 -07:00
Joe Groff 219af3c664 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
John Benediktsson b7026ef44f ui.tools.listener.history: only add a history entry if it does not match the most recent entry. 2011-09-15 07:57:51 -07:00
Slava Pestov dd49aa39ad 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 92cbdb2670 ui.gadgets.tables: don't try to render multi-line strings, since all table rows must have the same height. Fixes #65 2011-09-01 22:41:12 -07:00
Slava Pestov e80b7d758c ui.backend.gtk: remove unused vocabs from USING: list 2011-09-01 22:31:45 -07:00
Slava Pestov 14fdc5f522 ui.backend.gtk: remove unneeded vocabs from USING:, add platforms.txt 2011-09-01 20:15:23 -07:00
John Benediktsson 692dc38f3d core-text: lazy text render (inspired by klazuka). 2011-08-27 17:33:21 -07:00
John Benediktsson e2ac602eb6 Merge remote-tracking branch 'factorcode/master' 2011-08-27 17:26:11 -07:00
Hugo Schmitt 5ed90a47cb Swapping call order of 'hook' and 'action' row actions 2011-08-27 17:25:45 -07:00
Slava Pestov 6bbf5c67af Fixes #33 - ui.gadgets.glass had a scoping issue, so text selection would stop working after opening a popup 2011-08-27 17:14:56 -07:00
Slava Pestov b36f7442b4 Fixes #32 - double clicks were not handled properly in ui.backend.gtk 2011-08-27 17:06:53 -07:00
Joe Groff 3757210244 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
Joe Groff 7e6d5dc761 ui.tools.deploy: adjust wording of deploy-help? option ui 2011-08-04 15:49:33 -07:00
Joe Groff 5ea8b4f640 tools.deploy: add deploy-help? option to include documentation in deployed image 2011-08-04 14:27:29 -07:00
Erik Charlebois c517071969 Convert side mouse buttons to backward/forward 2011-05-23 23:36:14 -04:00
Erik Charlebois fe4805e955 Only do mouse selections for button 1 2011-05-23 23:36:14 -04:00
John Benediktsson 952cead32f Merge branch 'master' into sorting 2011-05-03 20:51:53 -07:00
Slava Pestov 577a82380c ui.backend.cocoa: simplify system-alert implementation now that callbacks bug has been fixed 2011-04-16 19:12:08 -07:00
John Benediktsson 8928fe2e17 Update code that did ">alist sort-" to just "sort-". 2011-04-07 09:01:21 -07:00
Slava Pestov 39d029e8a5 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 cc7b280046 Merge commit 'otoburb/master' into merge-otoburb
Conflicts:

	basis/ui/backend/gtk/gtk.factor
2011-04-06 17:54:00 -04:00
Slava Pestov 6d947e0a52 Merge branch 'master' of git://github.com/ex-rzr/factor 2011-04-06 17:26:41 -04:00
otoburb ef79f32ec9 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 40fa61ec89 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
John Benediktsson 8b72d67a6c ui.tools: adding Ctrl-Shift-F for "toggle fullscreen". 2011-03-07 15:08:26 -08:00
Slava Pestov eb55fbcbcb Fix conflict 2011-02-27 20:01:45 -06:00
Keita Haga 63d961608f ui.tools.listener: highlighting F1 key in tips 2011-02-20 16:04:48 +09:00
Anton Gorenko d86a056f90 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 f168803a54 ui.backend.gtk: split off unix io support into ui.backend.gtk.io.unix; 2011-01-26 21:00:35 +06:00
Keita Haga 6335e3dd3c ui.gadgets.status-bar: fix typo in docs 2011-01-16 21:46:01 +09:00
Anton Gorenko af877bad30 ui.backend.gtk: update for alien.data changes ('<int>' -> 'int <ref>', etc.); 2011-01-16 14:50:18 +06:00
Anton Gorenko 9000f60bff Merge branch 'master' of git://github.com/slavapestov/factor 2011-01-16 13:38:04 +06:00
Keita Haga b44e871da4 ui.operations: fix typo in docs 2011-01-14 19:39:39 +09:00
Keita Haga 6bbfdef28b ui: add missing right parenthesis in with-ui word notes 2011-01-08 22:57:06 +09:00
Slava Pestov 1b24dceea9 Update code for alien.data changes 2010-12-26 02:08:57 -06:00
Slava Pestov 55fd15c45a Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Keita Haga 7103b8e624 ui.pixel-formats: fix using list in example 2010-12-23 03:10:54 +09:00
Anton Gorenko b67651b7ba ui.backend.gtk: fix bugs; 2010-11-15 21:48:58 +06:00
Doug Coleman 28cbcf7dd9 Fix a few tests that got broken in the <uint> *uint patches 2010-10-25 19:14:21 -05:00
Doug Coleman 40bdadcac4 Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Anton Gorenko c10b435da4 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 4faef1a08c 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 43624e037c 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 f20c671848 ui.backend.gtk: clean up and rearrange the code 2010-09-12 17:28:24 +06:00
Anton Gorenko 8b81e38de5 ui.backend.gtk: set 'wmclass' hint to 'Factor' for new windows 2010-09-12 13:43:20 +06:00
Anton Gorenko 5f1e3ddc22 ui.backend.gtk: remove "Input method" menu, because it's for testing only 2010-09-04 23:15:00 +06:00
Slava Pestov 030009c029 ui.backend.windows: fix compile error in ui-wndproc 2010-07-29 17:22:34 -04:00
Philipp Brüschweiler 3551d1a404 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 b326f77b2e Merge branch 'gtk' into gtk-image-loader 2010-07-26 19:29:17 +02:00
Philipp Brüschweiler 78559a7e29 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 54b52fe566 Merge remote branch 'ex-rzr/master' into gtk 2010-07-26 18:54:46 +02:00
Anton Gorenko c24c7b011d Merge branch 'master' of git://factorcode.org/git/factor 2010-07-25 17:58:56 +06:00
Philipp Brüschweiler d7962d312b 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 fc89ea9d78 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 23f6201e65 ui.backend.gtk: use png instead of ico to represent icons 2010-07-22 22:48:18 +02:00
Philipp Brüschweiler 5ea5881ccd ui.backend.gtk, tools.deploy.unix: support for icons 2010-07-22 12:39:16 +02:00
Slava Pestov 8baa24df3b ui.gadgets.labels: fix stack effects for label-on-left and label-on-right 2010-07-18 17:38:51 -04:00
Philipp Brüschweiler b00a0315f8 Merge remote branch 'origin/master' into gtk-image-loader 2010-07-18 18:22:41 +02:00
Slava Pestov dbf63db811 ui: cleanup 2010-07-17 16:09:25 -04:00
Slava Pestov b05818c8a4 ui.gadgets.worlds: dispose of the handle after ungrabbing input 2010-07-17 16:08:36 -04:00
Anton Gorenko e2a970dc0f add summary.txt and tags.txt for various vocabularies 2010-07-17 15:31:53 +06:00
Philipp Brüschweiler 6855bc3042 images.gtk: use GdkPixbuf to load images 2010-07-17 11:28:24 +02:00
Philipp Brüschweiler d328935498 Merge remote branch 'origin/native-image-loader' into gtk-image-loader 2010-07-17 11:26:45 +02:00
Anton Gorenko a35466820d ui.backend.gtk: update to new with-out-parameters combinator 2010-07-17 14:25:59 +06:00
Anton Gorenko d67da79385 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 cf6b910c9f 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
Joe Groff 25bff1e66a Revert "ui.images, images.loader: move platform-specific image loader setup into images.loader"
This reverts commit 2bbf752cbe.
2010-07-16 11:36:20 -07:00
Joe Groff 2bbf752cbe ui.images, images.loader: move platform-specific image loader setup into images.loader 2010-07-11 08:44:27 -07:00
Joe Groff 6422a85faa Merge branch 'master' of http://factorcode.org/git/factor into native-image-loader 2010-07-07 13:09:41 -07:00
Joe Groff aed800b909 Merge branch 'master' into native-image-loader 2010-07-07 13:06:37 -07:00
Joe Groff 5180e12c6b ui.images: load images.gdiplus as default image handler on windows 2010-07-07 09:07:26 -07:00
Slava Pestov b0cfc34b3a 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 736530766e cocoa.subclassing: new METHOD: syntax cleans up class definitions 2010-07-06 17:59:35 -04:00
Slava Pestov 724c633bf0 ui.tools.traceback: make it a tool window so that its size is saved, and workspace shortcuts work 2010-06-28 17:10:15 -04:00
Joe Groff 0e7c1e11be ui.images: load images.cocoa backend by default instead of images.png/images.tiff on macosx 2010-06-27 13:55:45 -07:00
Slava Pestov ff9790aaa9 Merge branch 'master' of git://github.com/erg/factor 2010-06-22 04:13:39 -04:00