Warning: session_start(): open(/var/lib/php/sessions/sess_orsuq7f0rr3hma3sn2nkmbsno6, 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 Line {
S text;
S type; // 'user, 'suggested, 'bot, 'metaComment
}
concept Interaction {
new L lines;
bool current;
}
module TrainInteraction {
transient S imageID = #1101205;
transient JTextArea taInteraction;
transient JTextField tfInput, tfToSay;
transient JLabel lblOutput;
transient Interaction current;
start {
db();
current = uniq_sync(Interaction, current := true);
}
visualize {
tfInput = jTextField();
tfToSay = jTextField();
taInteraction = jTextArea();
ret withBottomMargin(20,
centerAndSouthWithMargins(
westAndCenterWithMargin(jimage(imageID), taInteraction),
northAndCenterWithMargin(
fontSize(20, lblOutput = jCenteredBoldLabel(" ")),
makeForm3(
"Your input:", focusOnShow(fontSize(16, tfInput)),
"Make me say:", focusOnShow(fontSize(16, tfToSay)))
)));
}
}