54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# data file for the Fltk User Interface Designer (fluid)
|
|
version 1.0300
|
|
header_name {.H}
|
|
code_name {.C}
|
|
decl {\#include <string.h>} {private local
|
|
}
|
|
|
|
widget_class Fl_Text_Edit_Window {open
|
|
xywh {377 295 355 410} type Double resizable
|
|
code0 {this->size_range( 0, 0, 400, 400 );}
|
|
class Fl_Double_Window modal visible
|
|
} {
|
|
Fl_Box title_box {
|
|
label {<title>}
|
|
xywh {5 7 345 28}
|
|
}
|
|
Fl_Text_Editor text_editor {selected
|
|
xywh {5 37 345 341} resizable
|
|
code0 {o->buffer( new Fl_Text_Buffer );}
|
|
}
|
|
Fl_Group {} {open
|
|
xywh {5 383 345 27}
|
|
} {
|
|
Fl_Return_Button return_button {
|
|
label {<return>}
|
|
callback {hide();}
|
|
xywh {250 383 100 25}
|
|
}
|
|
Fl_Box {} {
|
|
label {<empty>}
|
|
xywh {5 386 240 19} resizable
|
|
code0 {o->labeltype( FL_NO_LABEL );}
|
|
}
|
|
}
|
|
}
|
|
|
|
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 *}
|
|
} {
|
|
code {Fl_Text_Edit_Window tew( 355, 410, title );
|
|
|
|
tew.size( W, H );
|
|
tew.return_button->label( button_text );
|
|
tew.title_box->label( title );
|
|
if ( initial_text )
|
|
tew.text_editor->buffer()->text( initial_text );
|
|
|
|
tew.show();
|
|
|
|
while ( tew.shown() )
|
|
Fl::wait();
|
|
|
|
return strdup( tew.text_editor->buffer()->text() );} {}
|
|
}
|