Commit Graph

1147 Commits (f2741b34a4b82600f7965cfa0f6eae6d4f4ffe24)

Author SHA1 Message Date
John Benediktsson f2741b34a4 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
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