2003-04-03 08:28:15 +04:00
|
|
|
// generated by Fast Light User Interface Designer (fluid) version 1.0104
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 18:09:22 +03:00
|
|
|
#include "function_panel.h"
|
2002-10-31 21:49:05 +03:00
|
|
|
#include <FL/Fl_Pixmap.H>
|
|
|
|
#include "Fl_Type.h"
|
|
|
|
extern class Fl_Pixmap *pixmap[];
|
|
|
|
extern class Fl_Type *Fl_Type_make(const char*);
|
|
|
|
extern void select_only(Fl_Type*);
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *function_panel=(Fl_Window *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Light_Button *f_public_button=(Fl_Light_Button *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-08-05 13:01:25 +04:00
|
|
|
Fl_Light_Button *f_c_button=(Fl_Light_Button *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *f_name_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *f_return_type_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *f_panel_ok=(Fl_Return_Button *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *f_panel_cancel=(Fl_Button *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
|
|
|
Fl_Window* make_function_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Window* o = function_panel = new Fl_Window(285, 170, "function/method");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Light_Button* o = f_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Make the function or method publicly accessible.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(10);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Light_Button* o = f_c_button = new Fl_Light_Button(80, 10, 90, 25, "C declaration");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Declare with a C interface instead of C++.");
|
1999-08-05 13:01:25 +04:00
|
|
|
o->labelsize(10);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = f_name_input = new Fl_Input(10, 55, 265, 25, "Name(args): (blank for main())");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The name of the function or method.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = f_return_type_input = new Fl_Input(10, 100, 265, 25, "Return Type: (blank to return outermost widget)");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The return type of the function or method.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Return_Button* o = f_panel_ok = new Fl_Return_Button(110, 135, 80, 25, "OK");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Apply the changes.");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Button* o = f_panel_cancel = new Fl_Button(195, 135, 80, 25, "Cancel");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Cancel the changes.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *code_panel=(Fl_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2002-11-03 03:01:21 +03:00
|
|
|
Fl_Text_Editor *code_input=(Fl_Text_Editor *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *code_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *code_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_code_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2002-04-28 14:12:41 +04:00
|
|
|
{ Fl_Window* o = code_panel = new Fl_Window(548, 175, "code");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2002-11-03 03:01:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 525, 120);
|
|
|
|
o->box(FL_DOWN_FRAME);
|
|
|
|
{ Fl_Text_Editor* o = code_input = new Fl_Text_Editor(12, 12, 521, 116);
|
|
|
|
o->box(FL_NO_BOX);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
o->buffer(new Fl_Text_Buffer);
|
2002-11-03 07:50:54 +03:00
|
|
|
o->textfont(FL_COURIER);
|
2002-12-26 04:15:32 +03:00
|
|
|
o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);
|
2002-11-03 03:01:21 +03:00
|
|
|
}
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
2002-04-28 14:12:41 +04:00
|
|
|
{ Fl_Return_Button* o = code_panel_ok = new Fl_Return_Button(370, 140, 80, 25, "OK");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2002-04-28 14:12:41 +04:00
|
|
|
{ Fl_Button* o = code_panel_cancel = new Fl_Button(455, 140, 80, 25, "Cancel");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *codeblock_panel=(Fl_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *code_before_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *code_after_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *codeblock_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *codeblock_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_codeblock_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Window* o = codeblock_panel = new Fl_Window(295, 130, "codeblock");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = code_before_input = new Fl_Input(10, 10, 275, 25);
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("#ifdef or similar conditional code block.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 35, 270, 25, "\"{...child code...}\" is inserted here");
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = code_after_input = new Fl_Input(10, 60, 275, 25);
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("#endif or similar conditional code block.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Return_Button* o = codeblock_panel_ok = new Fl_Return_Button(120, 95, 80, 25, "OK");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Button* o = codeblock_panel_cancel = new Fl_Button(205, 95, 80, 25, "Cancel");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *declblock_panel=(Fl_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_before_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_after_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *declblock_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_declblock_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Window* o = declblock_panel = new Fl_Window(295, 130, "declaration block");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = decl_before_input = new Fl_Input(10, 10, 275, 25);
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("#ifdef or similar conditional declaration block.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 35, 275, 25, "\"\\n...child code...\\n\" is inserted here");
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = decl_after_input = new Fl_Input(10, 60, 275, 25);
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("#endif or similar declaration code block.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Return_Button* o = declblock_panel_ok = new Fl_Return_Button(120, 95, 80, 25, "OK");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Button* o = declblock_panel_cancel = new Fl_Button(205, 95, 80, 25, "Cancel");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *decl_panel=(Fl_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Light_Button *decl_public_button=(Fl_Light_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *decl_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *decl_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_decl_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Window* o = decl_panel = new Fl_Window(290, 180, "declaration");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Light_Button* o = decl_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Make the declaration publicly accessible.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(10);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2002-04-28 15:40:26 +04:00
|
|
|
{ Fl_Input* o = decl_input = new Fl_Input(10, 40, 270, 25, "Can be any declaration, like \"int x;\", an external symbol like \"extern int\
|
|
|
|
foo();\", a #directive like \"#include <foo.h>\", a comment like \"//foo\" or\
|
|
|
|
\"/*foo*/\", or typedef like \"typedef char byte;\" or \"using std::list;\".");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Declaration text.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
2002-04-28 15:40:26 +04:00
|
|
|
o->align(134);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
{ Fl_Return_Button* o = decl_panel_ok = new Fl_Return_Button(115, 145, 80, 25, "OK");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Button* o = decl_panel_cancel = new Fl_Button(200, 145, 80, 25, "Cancel");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *class_panel=(Fl_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Light_Button *c_public_button=(Fl_Light_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *c_name_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *c_subclass_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *c_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *c_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_class_panel() {
|
1998-10-22 02:00:10 +04:00
|
|
|
Fl_Window* w;
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Window* o = class_panel = new Fl_Window(285, 170, "class");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
1998-10-22 02:00:10 +04:00
|
|
|
{ Fl_Light_Button* o = c_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Make the class publicly accessible.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(10);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = c_name_input = new Fl_Input(10, 55, 265, 25, "Name:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Name of class.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Input* o = c_subclass_input = new Fl_Input(10, 100, 265, 25, "Subclass of (text between : and {)");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Name of subclass.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(12);
|
2000-03-15 21:57:07 +03:00
|
|
|
o->textfont(4);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
o->when(FL_WHEN_NEVER);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
{ Fl_Return_Button* o = c_panel_ok = new Fl_Return_Button(110, 135, 80, 25, "OK");
|
1998-10-06 22:21:25 +04:00
|
|
|
w->hotspot(o);
|
|
|
|
}
|
2000-03-15 21:57:07 +03:00
|
|
|
{ Fl_Button* o = c_panel_cancel = new Fl_Button(195, 135, 80, 25, "Cancel");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->shortcut(0xff1b);
|
|
|
|
}
|
1998-10-22 02:00:10 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
|
|
|
|
void type_make_cb(Fl_Widget*w,void*d) {
|
|
|
|
Fl_Type *t = Fl_Type_make((char*)d);
|
|
|
|
if (t) {select_only(t); modflag = 1; t->open();}
|
|
|
|
}
|
|
|
|
|
|
|
|
Fl_Double_Window *widgetbin_panel=(Fl_Double_Window *)0;
|
|
|
|
|
|
|
|
Fl_Double_Window* make_widgetbin() {
|
|
|
|
Fl_Double_Window* w;
|
|
|
|
{ Fl_Double_Window* o = widgetbin_panel = new Fl_Double_Window(443, 100, "Bin");
|
|
|
|
w = o;
|
|
|
|
{ Fl_Group* o = new Fl_Group(3, 3, 50, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(4, 4, 24, 24);
|
|
|
|
o->tooltip("Function");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Function"));
|
|
|
|
o->image(pixmap[7]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(28, 4, 24, 24);
|
|
|
|
o->tooltip("Class");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Class"));
|
|
|
|
o->image(pixmap[12]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(4, 28, 24, 24);
|
|
|
|
o->tooltip("Code");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Code"));
|
|
|
|
o->image(pixmap[8]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(28, 28, 24, 24);
|
|
|
|
o->tooltip("Code Block");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("CodeBlock"));
|
|
|
|
o->image(pixmap[9]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(4, 52, 24, 24);
|
|
|
|
o->tooltip("Declaration");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("decl"));
|
|
|
|
o->image(pixmap[10]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(28, 52, 24, 24);
|
|
|
|
o->tooltip("Declaration Block");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("declblock"));
|
|
|
|
o->image(pixmap[11]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(55, 3, 74, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(56, 4, 24, 24);
|
|
|
|
o->tooltip("Window");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Window"));
|
|
|
|
o->image(pixmap[1]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(80, 4, 24, 24);
|
|
|
|
o->tooltip("Group");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Group"));
|
|
|
|
o->image(pixmap[6]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(104, 4, 24, 24);
|
|
|
|
o->tooltip("Pack");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Pack"));
|
|
|
|
o->image(pixmap[22]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(56, 28, 24, 24);
|
|
|
|
o->tooltip("Tabs");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tabs"));
|
|
|
|
o->image(pixmap[13]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(80, 28, 24, 24);
|
|
|
|
o->tooltip("Scroll");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scroll"));
|
|
|
|
o->image(pixmap[19]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(56, 52, 24, 24);
|
|
|
|
o->tooltip("Tile");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tile"));
|
|
|
|
o->image(pixmap[20]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(80, 52, 24, 24);
|
|
|
|
o->tooltip("Wizard");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Wizard"));
|
|
|
|
o->image(pixmap[21]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(131, 3, 50, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(132, 4, 24, 24);
|
|
|
|
o->tooltip("Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Button"));
|
|
|
|
o->image(pixmap[2]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(156, 4, 24, 24);
|
|
|
|
o->tooltip("Return Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Return_Button"));
|
|
|
|
o->image(pixmap[23]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(132, 28, 24, 24);
|
|
|
|
o->tooltip("Light Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Light_Button"));
|
|
|
|
o->image(pixmap[24]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(156, 28, 24, 24);
|
|
|
|
o->tooltip("Repeat Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Repeat_Button"));
|
|
|
|
o->image(pixmap[25]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(132, 52, 24, 24);
|
|
|
|
o->tooltip("Check Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Button"));
|
|
|
|
o->image(pixmap[3]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(156, 52, 24, 24);
|
|
|
|
o->tooltip("Round Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Round_Button"));
|
|
|
|
o->image(pixmap[4]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(183, 3, 74, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(184, 4, 24, 24);
|
|
|
|
o->tooltip("Slider");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Slider"));
|
|
|
|
o->image(pixmap[37]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(208, 4, 24, 24);
|
|
|
|
o->tooltip("Scroll Bar");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scrollbar"));
|
|
|
|
o->image(pixmap[38]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(232, 4, 24, 24);
|
|
|
|
o->tooltip("Value Slider");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Slider"));
|
|
|
|
o->image(pixmap[39]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(184, 28, 24, 24);
|
|
|
|
o->tooltip("Adjuster");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Adjuster"));
|
|
|
|
o->image(pixmap[40]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(208, 28, 24, 24);
|
|
|
|
o->tooltip("Counter");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Counter"));
|
|
|
|
o->image(pixmap[41]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(232, 28, 24, 24);
|
|
|
|
o->tooltip("Dial");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Dial"));
|
|
|
|
o->image(pixmap[42]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(184, 52, 24, 24);
|
|
|
|
o->tooltip("Roller");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Roller"));
|
|
|
|
o->image(pixmap[43]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(208, 52, 24, 24);
|
|
|
|
o->tooltip("Value Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Input"));
|
|
|
|
o->image(pixmap[44]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(232, 52, 24, 24);
|
|
|
|
o->tooltip("Value Output");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Output"));
|
|
|
|
o->image(pixmap[45]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(259, 3, 50, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(260, 4, 24, 24);
|
|
|
|
o->tooltip("Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Input"));
|
|
|
|
o->image(pixmap[14]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(284, 4, 24, 24);
|
|
|
|
o->tooltip("Output");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Output"));
|
|
|
|
o->image(pixmap[27]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(260, 28, 24, 24);
|
|
|
|
o->tooltip("Text Edit");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Editor"));
|
|
|
|
o->image(pixmap[29]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(284, 28, 24, 24);
|
|
|
|
o->tooltip("Text Display");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Display"));
|
|
|
|
o->image(pixmap[28]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(260, 52, 24, 24);
|
|
|
|
o->tooltip("File Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Input"));
|
|
|
|
o->image(pixmap[30]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(311, 3, 50, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(312, 4, 24, 24);
|
|
|
|
o->tooltip("Menu Bar");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Bar"));
|
|
|
|
o->image(pixmap[17]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(336, 4, 24, 24);
|
|
|
|
o->tooltip("Menu Item");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("menuitem"));
|
|
|
|
o->image(pixmap[16]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(312, 28, 24, 24);
|
|
|
|
o->tooltip("Menu Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Button"));
|
|
|
|
o->image(pixmap[26]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(336, 28, 24, 24);
|
|
|
|
o->tooltip("Sub Menu");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("submenu"));
|
|
|
|
o->image(pixmap[18]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(312, 52, 24, 24);
|
|
|
|
o->tooltip("Choice");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Choice"));
|
|
|
|
o->image(pixmap[15]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(363, 3, 26, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(364, 4, 24, 24);
|
|
|
|
o->tooltip("Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Browser"));
|
|
|
|
o->image(pixmap[31]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(364, 28, 24, 24);
|
|
|
|
o->tooltip("Check Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Browser"));
|
|
|
|
o->image(pixmap[32]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(364, 52, 24, 24);
|
|
|
|
o->tooltip("File Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Browser"));
|
|
|
|
o->image(pixmap[33]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(391, 3, 50, 74);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
{ Fl_Button* o = new Fl_Button(392, 4, 24, 24);
|
|
|
|
o->tooltip("Box");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Box"));
|
|
|
|
o->image(pixmap[5]);
|
|
|
|
}
|
2003-04-03 08:28:15 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(416, 4, 24, 24);
|
|
|
|
o->tooltip("Clock");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Clock"));
|
|
|
|
o->image(pixmap[34]);
|
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(392, 28, 24, 24);
|
|
|
|
o->tooltip("Help Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Help_View"));
|
|
|
|
o->image(pixmap[35]);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(392, 52, 24, 24);
|
|
|
|
o->tooltip("Progress");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Progress"));
|
|
|
|
o->image(pixmap[36]);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
o->size(o->w(),80);
|
|
|
|
o->set_non_modal();
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|