Warning: session_start(): open(/var/lib/php/sessions/sess_65krs7o9h3hil2bdvpgaelf1to, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
concept Equivalent {
S a, b;
}
module Equivalents > DynCRUD {
*() { super(Equivalent); }
afterVisualize {
replaceComponent(crud.tableSearcher.tfInput, func(JComponent c) -> JComponent {
centerAndEastWithMargin(c, jbutton("Define...", rThread {
define(searchTerm())
}))
});
onEnter(crud.tableSearcher.tfInput, rThread { define(searchTerm()) });
}
void define(fS term) enter {
final JTextField tfWord = jtextfield(or2(term, dm_topInput())), tfDefinition = jtextfield();
showFormTitled("Add Definition",
"Word/phrase:", tfWord,
"Equivalent word/phrase:", tfDefinition,
rThread {
S a = gtt(tfWord), b = gtt(tfDefinition);
uniq_sync(Definition, +a, +b);
});
focus(nempty(term) ? tfDefinition : tfWord);
}
}