Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
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.

51 lines
1.2KB

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.0108
  3. header_name {.H}
  4. code_name {.C}
  5. decl {\#include <string.h>} {}
  6. widget_class Fl_Text_Edit_Window {open selected
  7. xywh {375 272 355 410} type Double resizable
  8. code0 {this->size_range( 0, 0, 400, 400 );}
  9. class Fl_Window modal visible
  10. } {
  11. Fl_Box title_box {
  12. label {<title>}
  13. xywh {5 7 345 45}
  14. }
  15. Fl_Text_Editor text_editor {
  16. xywh {5 58 345 320} resizable
  17. code0 {o->buffer( new Fl_Text_Buffer );}
  18. }
  19. Fl_Group {} {open
  20. xywh {5 383 345 27}
  21. } {
  22. Fl_Return_Button return_button {
  23. label {<return>}
  24. callback {hide();}
  25. xywh {250 383 100 25}
  26. }
  27. Fl_Box {} {
  28. label {<empty>}
  29. xywh {5 386 240 19} resizable
  30. code0 {o->labeltype( FL_NO_LABEL );}
  31. }
  32. }
  33. }
  34. Function {fl_text_edit( const char *title, const char *button_text, const char *initial_text )} {open C return_type {char *}
  35. } {
  36. code {Fl_Text_Edit_Window tew( 355, 410, title );
  37. tew.return_button->label( button_text );
  38. tew.title_box->label( title );
  39. tew.text_editor->buffer()->text( initial_text );
  40. tew.show();
  41. while ( tew.shown() )
  42. Fl::wait();
  43. return strdup( tew.text_editor->buffer()->text() );} {}
  44. }