ui.gadgets.slots: move to ui.tools.inspector.slots.
parent
b90f37b13e
commit
c22e55ce48
|
@ -1,4 +0,0 @@
|
||||||
IN: ui.gadgets.slots.tests
|
|
||||||
USING: assocs ui.gadgets.slots tools.test refs ;
|
|
||||||
|
|
||||||
{ t } [ [ ] [ ] { { 1 1 } { 2 2 } { 3 3 } } 2 <value-ref> <slot-editor> slot-editor? ] unit-test
|
|
|
@ -1,5 +1,5 @@
|
||||||
USING: help.markup help.syntax ui.commands ui.gadgets.slots
|
USING: help.markup help.syntax ui.commands
|
||||||
ui.gadgets.panes ui.gadgets.editors kernel ;
|
ui.gadgets.panes ui.gadgets.editors ui.tools.inspector.slots kernel ;
|
||||||
IN: ui.tools.inspector
|
IN: ui.tools.inspector
|
||||||
|
|
||||||
ARTICLE: "ui-inspector-edit" "Editing slot values in the inspector"
|
ARTICLE: "ui-inspector-edit" "Editing slot values in the inspector"
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays assocs classes combinators fonts fry
|
USING: accessors arrays assocs classes combinators fonts fry
|
||||||
hashtables inspector io io.styles kernel math.vectors mirrors
|
hashtables inspector io io.styles kernel math.vectors mirrors
|
||||||
models models.arrow namespaces prettyprint refs sequences
|
models models.arrow namespaces prettyprint sequences sorting ui
|
||||||
sorting ui ui.commands ui.gadgets ui.gadgets.labeled
|
ui.commands ui.gadgets ui.gadgets.labeled ui.gadgets.panes
|
||||||
ui.gadgets.panes ui.gadgets.scrollers ui.gadgets.slots
|
ui.gadgets.scrollers ui.gadgets.status-bar ui.gadgets.tables
|
||||||
ui.gadgets.status-bar ui.gadgets.tables
|
|
||||||
ui.gadgets.tables.private ui.gadgets.toolbar ui.gadgets.tracks
|
ui.gadgets.tables.private ui.gadgets.toolbar ui.gadgets.tracks
|
||||||
ui.gadgets.worlds ui.gestures ui.operations ui.theme
|
ui.gestures ui.operations ui.theme ui.tools.browser
|
||||||
ui.tools.browser ui.tools.common ;
|
ui.tools.common ui.tools.inspector.slots ;
|
||||||
|
|
||||||
IN: ui.tools.inspector
|
IN: ui.tools.inspector
|
||||||
|
|
||||||
TUPLE: inspector-gadget < tool table ;
|
TUPLE: inspector-gadget < tool table ;
|
||||||
|
@ -116,15 +116,6 @@ M: inspector-gadget focusable-child*
|
||||||
|
|
||||||
\ com-push H{ { +listener+ t } } define-command
|
\ com-push H{ { +listener+ t } } define-command
|
||||||
|
|
||||||
: slot-editor-window ( close-hook update-hook assoc key key-string -- )
|
|
||||||
[ <value-ref> <slot-editor> ]
|
|
||||||
[
|
|
||||||
<world-attributes>
|
|
||||||
swap "Slot editor: " prepend >>title
|
|
||||||
[ { dialog-window } append ] change-window-controls
|
|
||||||
] bi*
|
|
||||||
open-status-window ;
|
|
||||||
|
|
||||||
: com-edit-slot ( inspector -- )
|
: com-edit-slot ( inspector -- )
|
||||||
[ close-window ] swap
|
[ close-window ] swap
|
||||||
[ '[ _ com-refresh ] ]
|
[ '[ _ com-refresh ] ]
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
USING: assocs tools.test ui.tools.inspector.slots refs ;
|
||||||
|
|
||||||
|
{ t } [
|
||||||
|
[ ] [ ] { { 1 1 } { 2 2 } { 3 3 } } 2 <value-ref>
|
||||||
|
<slot-editor> slot-editor?
|
||||||
|
] unit-test
|
|
@ -2,9 +2,10 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors eval kernel math.vectors parser prettyprint
|
USING: accessors eval kernel math.vectors parser prettyprint
|
||||||
refs sequences ui.commands ui.gadgets ui.gadgets.editors
|
refs sequences ui.commands ui.gadgets ui.gadgets.editors
|
||||||
ui.gadgets.scrollers ui.gadgets.toolbar ui.gadgets.tracks
|
ui.gadgets.scrollers ui.gadgets.status-bar ui.gadgets.toolbar
|
||||||
ui.gestures ui.tools.common ;
|
ui.gadgets.tracks ui.gadgets.worlds ui.gestures ui.tools.common
|
||||||
IN: ui.gadgets.slots
|
;
|
||||||
|
IN: ui.tools.inspector.slots
|
||||||
|
|
||||||
TUPLE: slot-editor < track ref close-hook update-hook text ;
|
TUPLE: slot-editor < track ref close-hook update-hook text ;
|
||||||
|
|
||||||
|
@ -75,3 +76,12 @@ slot-editor "toolbar" f {
|
||||||
{ f delete }
|
{ f delete }
|
||||||
{ T{ key-down f f "ESC" } close }
|
{ T{ key-down f f "ESC" } close }
|
||||||
} define-command-map
|
} define-command-map
|
||||||
|
|
||||||
|
: slot-editor-window ( close-hook update-hook assoc key key-string -- )
|
||||||
|
[ <value-ref> <slot-editor> ]
|
||||||
|
[
|
||||||
|
<world-attributes>
|
||||||
|
swap "Slot editor: " prepend >>title
|
||||||
|
[ { dialog-window } append ] change-window-controls
|
||||||
|
] bi*
|
||||||
|
open-status-window ;
|
Loading…
Reference in New Issue