You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.5KB

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.0300
  3. header_name {.h}
  4. code_name {.cxx}
  5. decl {\#include "mandelbrot.h"} {public local
  6. }
  7. decl {\#include <stdlib.h>} {private local
  8. }
  9. class Drawing_Window {open
  10. } {
  11. Function {make_window()} {open return_type void
  12. } {
  13. Fl_Window window {open
  14. xywh {178 479 450 520} type Single resizable
  15. code0 {o->size_range(220,220);} visible
  16. } {
  17. Fl_Box d {
  18. user_data this user_data_type {void*}
  19. xywh {20 80 410 430} box DOWN_BOX color 0 selection_color 47 resizable
  20. class Drawing_Area
  21. }
  22. Fl_Input x_input {
  23. label {x:}
  24. callback {d->X = atof(o->value());;
  25. d->new_display();}
  26. xywh {30 15 125 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  27. code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  28. }
  29. Fl_Input y_input {
  30. label {y:}
  31. callback {d->Y = atof(o->value());
  32. d->new_display();}
  33. xywh {175 15 125 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  34. code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  35. }
  36. Fl_Input w_input {
  37. label {w:}
  38. callback {d->scale = atof(o->value());
  39. d->new_display();}
  40. xywh {325 15 105 30} type Float box THIN_DOWN_BOX color 48 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  41. code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  42. }
  43. Fl_Slider {} {
  44. label {brightness:}
  45. callback {d->brightness = int(o->value());
  46. d->new_display();}
  47. xywh {80 50 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
  48. code0 {o->bounds(0,d->MAX_BRIGHTNESS);}
  49. code2 {o->value(d->DEFAULT_BRIGHTNESS);}
  50. code3 {o->slider(FL_UP_BOX);}
  51. }
  52. Fl_Box {} {
  53. label {left: click = zoom out, drag = zoom in
  54. right click: Julia set, ctrl-P: Print} selected
  55. xywh {240 50 190 30} labelsize 10 align 24 deactivate
  56. }
  57. Fl_Slider {} {
  58. label {iterations:}
  59. callback {d->iterations = 1<<int(o->value());
  60. d->new_display();}
  61. xywh {80 65 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
  62. code0 {o->bounds(1,d->MAX_ITERATIONS);}
  63. code2 {o->value(d->DEFAULT_ITERATIONS);}
  64. code3 {o->slider(FL_UP_BOX);}
  65. }
  66. }
  67. }
  68. decl {void update_label();} {public local
  69. }
  70. }