Commit Graph

122 Commits (875357c1bf16981fb85e7bfadeac74de09dd1b51)

Author SHA1 Message Date
Slava Pestov fa79803856 Fix text rendering for fonts where the image bounds exceed the metric bounds, such as Zapfino and Arabic fonts 2009-02-20 20:53:51 -06:00
Slava Pestov 58e55d4f45 Working on documentation 2009-02-19 16:54:27 -06:00
Slava Pestov 204777ec3f ui.gadgets.menus now supports separators 2009-02-18 21:00:53 -06:00
Slava Pestov c7dc4f1080 Split off baseline alignment code into ui.baseline-alignment, and add cap-height generic word 2009-02-17 06:10:02 -06:00
Slava Pestov 6b672a11fa ui.gadgets.editors: rename min-width and max-width slots of field to min-cols and max-cols, re-use line-support code, more accurate dimension calculation that takes field border size into account 2009-02-16 04:25:58 -06:00
Slava Pestov 298ea392f7 ui.gadgets.editors: Add page up/down 2009-02-16 01:03:50 -06:00
Slava Pestov f8ab4be9da Line gadgets now support min/max rows/cols; this obsoletes limited-scroller 2009-02-15 04:01:57 -06:00
Slava Pestov 4c86bd0951 Various UI cosmetic fixes 2009-02-14 20:46:35 -06:00
Slava Pestov 9ebc487f44 Kill ui.gadgets.theme 2009-02-14 19:50:22 -06:00
Slava Pestov faf0c94c6f ui.gadgets.editors: render empty selections visibly 2009-02-14 00:44:10 -06:00
Slava Pestov 36f9793c92 Add font-metrics hook 2009-02-13 20:19:57 -06:00
Slava Pestov 54a58cc196 Split off ui.pens from ui.render 2009-02-12 03:58:42 -06:00
Slava Pestov d1a5bf2073 Working on ui.images; change draw-gadget to translate to origin for you 2009-02-10 18:47:34 -06:00
Slava Pestov 9f49139057 ui.gadgets.editors and ui.gadgets.tables: factor out common code into ui.gadgets.line-support, fix selection rendering
documents: don't use dynamic variables inappropriately, clean up stack shuffling
2009-02-07 18:09:50 -06:00
Slava Pestov 148317846b Update various vocabularies for colors.constants 2009-02-05 22:17:15 -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 669548e62e Clean up some usages of tuck, and add Joe's curried cleave/spread/apply combinators to kernel vocabulary 2009-02-02 13:43:54 -06:00
Slava Pestov d31b902f96 Add horizontal and vertical orientation constants, working on baseline alignment 2009-02-02 00:02:55 -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 990c99a97e Add foreground and background color slots to font tuple 2009-01-30 03:36:39 -06:00
Slava Pestov 50ba37bdbe Update more documentation 2009-01-28 14:54:13 -06:00
Slava Pestov 0c22751674 Update editor docs 2009-01-28 14:50:15 -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 bb27511753 Fixing code for first-class fonts 2009-01-26 02:21:28 -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 b95a587ce1 Add join lines command, C+j 2009-01-25 22:56:35 -06:00
Slava Pestov ef223f26d5 Fix conflict 2009-01-24 23:56:33 -06:00
Slava Pestov f34c14a0f5 Remove some usages of tuck 2009-01-23 18:20:47 -06:00
Slava Pestov 2a7d353251 Debugging Core Text, get colored text working and fix memory management issue 2009-01-21 19:34:42 -06:00
Slava Pestov 25b0512fd6 Move fonts to basis/bitstream-vera
Use ui.cocoa.text instead of ui.freetype on Mac OS X
Update deploy tool to not copy fonts/ directory on Mac OS X
2009-01-20 14:31:09 -06:00
Slava Pestov ac898f94c5 Minor tweak to selection rendering 2009-01-16 14:58:59 -06:00
Slava Pestov d82a68a14c Clean up font API a little bit; users no longer have to call open-font arbitrarily 2009-01-16 00:43:51 -06:00
Slava Pestov c89b68d295 Overhaul UI listener history code; C-p, C-n cycles through history, C-r displays list 2009-01-15 21:34:41 -06:00
Slava Pestov 2bb6d7f6b1 Rename editor-caret* and editor-mark* without the * since we don't have the old accessors anymore 2009-01-15 15:50:48 -06:00
Slava Pestov d1c84783f1 Word operations now DTRT if the completion popup is visible 2009-01-15 01:33:35 -06:00
Slava Pestov ecd2f75808 Display completion popups in the right place 2009-01-15 00:52:05 -06:00
Slava Pestov 63c0e5470b Cleaner display of stack effect of word at caret, using models 2009-01-09 14:14:19 -06:00
Slava Pestov 632b21159d Mention multiline editor commands in editor docs 2009-01-08 18:56:20 -06:00
Slava Pestov bdaa5eac31 Minor UI documentation updates 2009-01-06 23:30:08 -06:00
Slava Pestov d2fd2d0a8c Only multiline editors need UP/DOWN arrow commandS 2009-01-06 13:45:57 -06:00
Slava Pestov 1f11b0d78b Use singleton classes instead of tuples for document elements 2008-12-24 22:38:02 -06:00
Slava Pestov bb22877ced Merge branch 'master' into new_ui 2008-12-18 21:28:05 -06:00
Slava Pestov 7836b2c6f4 / >fixnum should be /i 2008-12-18 21:02:46 -06:00
Slava Pestov da94d8afae Working on new UI 2008-12-11 16:47:38 -06:00
Slava Pestov 9de02d01c5 Fix selection rendering 2008-12-02 20:46:21 -06:00
U-SLAVA-DFB8FF805\Slava 77def0bc96 was using each-line from io by accident, dont' even need io in USING: list here 2008-12-01 17:53:17 -06:00
Slava Pestov 3e25d14e54 Code cleanup: refactoring usages of rot and -rot to use newer idioms instead 2008-11-30 17:47:29 -06:00
Slava Pestov 5fff1bdf05 Clean up ui.gadgets.menus, improve docs, ad add right-click menus to panes and editors with clipboard commands 2008-11-30 15:03:05 -06:00
Slava Pestov f0fc3190f3 Stop blinking before starting again 2008-11-30 13:50:09 -06:00
Slava Pestov f3cdd650e7 Clicking past the end of a document moves caret to the end 2008-11-25 23:04:57 -06:00
Slava Pestov c0c9855c26 Fix stack effects 2008-11-21 23:25:19 -06:00
Slava Pestov fb918ab756 The event loop thread now adds events to a queue slurped by the UI update thread instead of handling them directly. This fixes a race condition where a gadget could end up handling an event before it was grafted or laid out 2008-11-21 23:01:20 -06:00
Slava Pestov 5911ad913f Make blink interval configurable 2008-11-20 23:29:16 -06:00
Slava Pestov 53646a076b Set blink-alarm to f after we stop it 2008-11-20 22:15:07 -06:00
Slava Pestov decdcbe120 Stop blinking in ungraft just in case 2008-11-20 22:14:35 -06:00
Slava Pestov 17b2566017 Blinking cursor 2008-11-20 22:13:32 -06:00
Slava Pestov 375a9df29b Fix shift-click in editor nested inside a pane 2008-11-19 21:59:11 -06:00
Slava Pestov 344657b93b Improve scroll>rect and scroll>caret so that the caret is always visible 2008-11-19 17:13:39 -06:00
Slava Pestov d0e53db5fc Rendering tweaks 2008-11-18 14:15:38 -06:00
Slava Pestov 3f85a4e727 OpenGL rendering tweaks 2008-11-17 05:16:34 -06:00
Slava Pestov 9bf63b1613 New $quotation markup element 2008-11-16 09:03:30 -06:00
Slava Pestov d579628d61 More OpenGL rendering tweaks 2008-11-11 02:31:56 -06:00
Slava Pestov f0c61b9499 Rewrite OpenGL rendering code
- Don't use glPolygonMode to draw outline rectangles
- Use vertex arrays instead of glBegin/glVertex/glEnd
- Remove dead code from opengl vocabulary
- draw-interior and draw-boundary are now called with origin get [ ... ] with-translation
2008-11-11 00:28:37 -06:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov b7610e0bf7 Fix ridiculous indentation, over (>>foo), and other crap in UI 2008-09-27 14:36:04 -05:00
Slava Pestov 44f53de164 Move make to its own vocabulary, remove fry _ feature 2008-09-10 20:07:00 -05:00
Doug Coleman 731bd1c88a fix ui unit tests for new accessors 2008-09-02 01:52:22 -05:00
Doug Coleman ab83333b51 new accessors 2008-08-31 16:19:24 -05:00
Eduardo Cavazos 7a75d2e070 Update old accessors from 'ui.gadgets.editors' 2008-08-30 20:06:45 -05:00
Eduardo Cavazos b33be738f9 Use new accessors in place of old accessors from 'ui.gadgets' 2008-08-30 16:31:42 -05:00
Eduardo Cavazos 04f8eaf220 ui.*: Use new accessors 2008-08-29 18:44:19 -05:00
Eduardo Cavazos 7402cd2ab7 Move 'ui' to basis 2008-08-07 21:12:50 -05:00