Non reinvents the DAW. Powerful enough to form a complete studio, fast and light enough to run on low-end hardware like the eeePC or Raspberry Pi, and so reliable that it can be used live https://non.tuxfamily.org/
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.

Fl_Text_Edit_Window.fl 1.3KB

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