new window window
window settitle Integrate

new vbox vbox
window add vbox

new grid grid
grid setsize 3 2
vbox add grid

new label_func label
grid add label_func
label_func settext -
Function: -

new func lineedit
grid add func true true

new label_x_min label
grid add label_x_min
label_x_min settext -
x min: -

new x_min lineedit
grid add x_min true true

new label_x_max label
grid add label_x_max
label_x_max settext -
x max: -

new x_max lineedit
grid add x_max true true

new buttons_box hbox
vbox add buttons_box

new ok button
buttons_box add ok
ok settext -
Ok-

new copy button
buttons_box add copy
copy settext -
Copy to clipboard-

new cancel button
buttons_box add cancel
cancel settext -
Cancel-

new help textedit
vbox add help true true
help seteditable false
help settext -
Integrate function:
Integrates function using Octave quad command.-

vbox show
window show
listen ok clicked
listen cancel clicked
listen copy clicked
listen window close
