function_panel.cxx
来自「SRI international 发布的OAA框架软件」· CXX 代码 · 共 597 行 · 第 1/2 页
CXX
597 行
// generated by Fast Light User Interface Designer (fluid) version 1.0103
#include "function_panel.h"
#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*);
Fl_Window *function_panel=(Fl_Window *)0;
Fl_Light_Button *f_public_button=(Fl_Light_Button *)0;
Fl_Light_Button *f_c_button=(Fl_Light_Button *)0;
Fl_Input *f_name_input=(Fl_Input *)0;
Fl_Input *f_return_type_input=(Fl_Input *)0;
Fl_Return_Button *f_panel_ok=(Fl_Return_Button *)0;
Fl_Button *f_panel_cancel=(Fl_Button *)0;
Fl_Window* make_function_panel() {
Fl_Window* w;
{ Fl_Window* o = function_panel = new Fl_Window(285, 170, "function/method");
w = o;
{ Fl_Light_Button* o = f_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
o->tooltip("Make the function or method publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ Fl_Light_Button* o = f_c_button = new Fl_Light_Button(80, 10, 90, 25, "C declaration");
o->tooltip("Declare with a C interface instead of C++.");
o->labelsize(10);
}
{ Fl_Input* o = f_name_input = new Fl_Input(10, 55, 265, 25, "Name(args): (blank for main())");
o->tooltip("The name of the function or method.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
Fl_Group::current()->resizable(o);
}
{ Fl_Input* o = f_return_type_input = new Fl_Input(10, 100, 265, 25, "Return Type: (blank to return outermost widget)");
o->tooltip("The return type of the function or method.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
}
{ Fl_Return_Button* o = f_panel_ok = new Fl_Return_Button(110, 135, 80, 25, "OK");
o->tooltip("Apply the changes.");
w->hotspot(o);
}
{ Fl_Button* o = f_panel_cancel = new Fl_Button(195, 135, 80, 25, "Cancel");
o->tooltip("Cancel the changes.");
o->shortcut(0xff1b);
}
o->set_modal();
o->end();
}
return w;
}
Fl_Window *code_panel=(Fl_Window *)0;
Fl_Text_Editor *code_input=(Fl_Text_Editor *)0;
Fl_Return_Button *code_panel_ok=(Fl_Return_Button *)0;
Fl_Button *code_panel_cancel=(Fl_Button *)0;
Fl_Window* make_code_panel() {
Fl_Window* w;
{ Fl_Window* o = code_panel = new Fl_Window(548, 175, "code");
w = o;
{ 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);
o->textfont(FL_COURIER);
o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);
}
o->end();
Fl_Group::current()->resizable(o);
}
{ Fl_Return_Button* o = code_panel_ok = new Fl_Return_Button(370, 140, 80, 25, "OK");
w->hotspot(o);
}
{ Fl_Button* o = code_panel_cancel = new Fl_Button(455, 140, 80, 25, "Cancel");
o->shortcut(0xff1b);
}
o->set_modal();
o->end();
}
return w;
}
Fl_Window *codeblock_panel=(Fl_Window *)0;
Fl_Input *code_before_input=(Fl_Input *)0;
Fl_Input *code_after_input=(Fl_Input *)0;
Fl_Return_Button *codeblock_panel_ok=(Fl_Return_Button *)0;
Fl_Button *codeblock_panel_cancel=(Fl_Button *)0;
Fl_Window* make_codeblock_panel() {
Fl_Window* w;
{ Fl_Window* o = codeblock_panel = new Fl_Window(295, 130, "codeblock");
w = o;
{ Fl_Input* o = code_before_input = new Fl_Input(10, 10, 275, 25);
o->tooltip("#ifdef or similar conditional code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
Fl_Group::current()->resizable(o);
}
{ Fl_Box* o = new Fl_Box(10, 35, 270, 25, "\"{...child code...}\" is inserted here");
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = code_after_input = new Fl_Input(10, 60, 275, 25);
o->tooltip("#endif or similar conditional code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
}
{ Fl_Return_Button* o = codeblock_panel_ok = new Fl_Return_Button(120, 95, 80, 25, "OK");
w->hotspot(o);
}
{ Fl_Button* o = codeblock_panel_cancel = new Fl_Button(205, 95, 80, 25, "Cancel");
o->shortcut(0xff1b);
}
o->set_modal();
o->end();
}
return w;
}
Fl_Window *declblock_panel=(Fl_Window *)0;
Fl_Input *decl_before_input=(Fl_Input *)0;
Fl_Input *decl_after_input=(Fl_Input *)0;
Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0;
Fl_Button *declblock_panel_cancel=(Fl_Button *)0;
Fl_Window* make_declblock_panel() {
Fl_Window* w;
{ Fl_Window* o = declblock_panel = new Fl_Window(295, 130, "declaration block");
w = o;
{ Fl_Input* o = decl_before_input = new Fl_Input(10, 10, 275, 25);
o->tooltip("#ifdef or similar conditional declaration block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
Fl_Group::current()->resizable(o);
}
{ Fl_Box* o = new Fl_Box(10, 35, 275, 25, "\"\\n...child code...\\n\" is inserted here");
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = decl_after_input = new Fl_Input(10, 60, 275, 25);
o->tooltip("#endif or similar declaration code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
}
{ Fl_Return_Button* o = declblock_panel_ok = new Fl_Return_Button(120, 95, 80, 25, "OK");
w->hotspot(o);
}
{ Fl_Button* o = declblock_panel_cancel = new Fl_Button(205, 95, 80, 25, "Cancel");
o->shortcut(0xff1b);
}
o->set_modal();
o->end();
}
return w;
}
Fl_Window *decl_panel=(Fl_Window *)0;
Fl_Light_Button *decl_public_button=(Fl_Light_Button *)0;
Fl_Input *decl_input=(Fl_Input *)0;
Fl_Return_Button *decl_panel_ok=(Fl_Return_Button *)0;
Fl_Button *decl_panel_cancel=(Fl_Button *)0;
Fl_Window* make_decl_panel() {
Fl_Window* w;
{ Fl_Window* o = decl_panel = new Fl_Window(290, 180, "declaration");
w = o;
{ Fl_Light_Button* o = decl_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
o->tooltip("Make the declaration publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ 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;\".");
o->tooltip("Declaration text.");
o->labelsize(12);
o->textfont(4);
o->align(134);
o->when(FL_WHEN_NEVER);
Fl_Group::current()->resizable(o);
}
{ Fl_Return_Button* o = decl_panel_ok = new Fl_Return_Button(115, 145, 80, 25, "OK");
w->hotspot(o);
}
{ Fl_Button* o = decl_panel_cancel = new Fl_Button(200, 145, 80, 25, "Cancel");
o->shortcut(0xff1b);
}
o->end();
}
return w;
}
Fl_Window *class_panel=(Fl_Window *)0;
Fl_Light_Button *c_public_button=(Fl_Light_Button *)0;
Fl_Input *c_name_input=(Fl_Input *)0;
Fl_Input *c_subclass_input=(Fl_Input *)0;
Fl_Return_Button *c_panel_ok=(Fl_Return_Button *)0;
Fl_Button *c_panel_cancel=(Fl_Button *)0;
Fl_Window* make_class_panel() {
Fl_Window* w;
{ Fl_Window* o = class_panel = new Fl_Window(285, 170, "class");
w = o;
{ Fl_Light_Button* o = c_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
o->tooltip("Make the class publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ Fl_Input* o = c_name_input = new Fl_Input(10, 55, 265, 25, "Name:");
o->tooltip("Name of class.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
Fl_Group::current()->resizable(o);
}
{ Fl_Input* o = c_subclass_input = new Fl_Input(10, 100, 265, 25, "Subclass of (text between : and {)");
o->tooltip("Name of subclass.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
}
{ Fl_Return_Button* o = c_panel_ok = new Fl_Return_Button(110, 135, 80, 25, "OK");
w->hotspot(o);
}
{ Fl_Button* o = c_panel_cancel = new Fl_Button(195, 135, 80, 25, "Cancel");
o->shortcut(0xff1b);
}
o->set_modal();
o->end();
}
return w;
}
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);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?