1998-10-21 20:35:18 +04:00
|
|
|
# data file for the Fltk User Interface Designer (fluid)
|
2016-01-30 03:56:42 +03:00
|
|
|
version 1.0400
|
2015-07-09 05:09:33 +03:00
|
|
|
header_name {.h}
|
2007-01-18 18:37:25 +03:00
|
|
|
code_name {.cxx}
|
2011-01-02 06:50:54 +03:00
|
|
|
decl {\#include "mandelbrot.h"} {public local
|
2015-07-09 05:09:33 +03:00
|
|
|
}
|
1998-10-21 20:35:18 +04:00
|
|
|
|
2011-01-02 06:50:54 +03:00
|
|
|
decl {\#include <stdlib.h>} {private local
|
2015-07-09 05:09:33 +03:00
|
|
|
}
|
1998-10-21 20:35:18 +04:00
|
|
|
|
|
|
|
class Drawing_Window {open
|
1998-10-06 22:21:25 +04:00
|
|
|
} {
|
1998-10-21 20:35:18 +04:00
|
|
|
Function {make_window()} {open return_type void
|
1998-10-06 22:21:25 +04:00
|
|
|
} {
|
2011-01-02 06:50:54 +03:00
|
|
|
Fl_Window window {open
|
2015-03-10 04:41:55 +03:00
|
|
|
xywh {515 343 450 520} type Single hide resizable
|
|
|
|
code0 {o->size_range(220,220);}
|
1998-10-21 20:35:18 +04:00
|
|
|
} {
|
|
|
|
Fl_Box d {
|
2007-01-18 18:37:25 +03:00
|
|
|
user_data this user_data_type {void*}
|
1998-10-21 20:35:18 +04:00
|
|
|
xywh {20 80 410 430} box DOWN_BOX color 0 selection_color 47 resizable
|
|
|
|
class Drawing_Area
|
|
|
|
}
|
|
|
|
Fl_Input x_input {
|
|
|
|
label {x:}
|
|
|
|
callback {d->X = atof(o->value());;
|
|
|
|
d->new_display();}
|
2014-06-05 09:05:19 +04:00
|
|
|
xywh {30 15 125 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 16 textfont 11 textsize 12
|
1998-10-21 20:35:18 +04:00
|
|
|
code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
|
|
|
|
}
|
|
|
|
Fl_Input y_input {
|
|
|
|
label {y:}
|
|
|
|
callback {d->Y = atof(o->value());
|
|
|
|
d->new_display();}
|
2014-06-05 09:05:19 +04:00
|
|
|
xywh {175 15 125 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 16 textfont 11 textsize 12
|
1998-10-21 20:35:18 +04:00
|
|
|
code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
|
|
|
|
}
|
|
|
|
Fl_Input w_input {
|
|
|
|
label {w:}
|
|
|
|
callback {d->scale = atof(o->value());
|
|
|
|
d->new_display();}
|
2014-06-05 09:05:19 +04:00
|
|
|
xywh {325 15 105 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 16 textfont 11 textsize 12
|
1998-10-21 20:35:18 +04:00
|
|
|
code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
|
|
|
|
}
|
|
|
|
Fl_Slider {} {
|
|
|
|
label {brightness:}
|
|
|
|
callback {d->brightness = int(o->value());
|
|
|
|
d->new_display();}
|
|
|
|
xywh {80 50 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
|
|
|
|
code0 {o->bounds(0,d->MAX_BRIGHTNESS);}
|
|
|
|
code2 {o->value(d->DEFAULT_BRIGHTNESS);}
|
|
|
|
code3 {o->slider(FL_UP_BOX);}
|
|
|
|
}
|
|
|
|
Fl_Box {} {
|
|
|
|
label {left: click = zoom out, drag = zoom in
|
2011-01-02 06:50:54 +03:00
|
|
|
right click: Julia set, ctrl-P: Print} selected
|
2014-06-05 09:05:19 +04:00
|
|
|
xywh {240 50 190 30} labelsize 8 align 24 deactivate
|
1998-10-21 20:35:18 +04:00
|
|
|
}
|
|
|
|
Fl_Slider {} {
|
|
|
|
label {iterations:}
|
|
|
|
callback {d->iterations = 1<<int(o->value());
|
|
|
|
d->new_display();}
|
|
|
|
xywh {80 65 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
|
|
|
|
code0 {o->bounds(1,d->MAX_ITERATIONS);}
|
|
|
|
code2 {o->value(d->DEFAULT_ITERATIONS);}
|
|
|
|
code3 {o->slider(FL_UP_BOX);}
|
|
|
|
}
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
}
|
2011-01-02 06:50:54 +03:00
|
|
|
decl {void update_label();} {public local
|
1998-10-21 20:35:18 +04:00
|
|
|
}
|
2015-07-09 05:09:33 +03:00
|
|
|
}
|