// generated by Fast Light User Interface Designer (fluid) version 1.0008 #include "partipanel.H" #include "partiview.H" Fl_Window *Mainwin=(Fl_Window *)0; Fl_Menu_Item menu_ppui[] = { {"item", 0, 0, 0, 0, 0, 0, 14, 3}, {0} }; static void cb_ppui(Fl_Light_Button* o, struct stuff **) { specks_commandfmt( &ppui.st, "points %d", o->value()); } static void cb_ppui1(Fl_Light_Button* o, struct stuff **) { specks_commandfmt( &ppui.st, "polygons %d", o->value() ); } static void cb_ppui2(Fl_Light_Button* o, struct stuff **) { specks_commandfmt(&ppui.st, "label %d", o->value()); } static void cb_ppui3(Fl_Light_Button* o, struct stuff **) { specks_commandfmt( &ppui.st, "texture %d",o->value()); } static void cb_ppui4(Fl_Light_Button* o, struct stuff **) { specks_commandfmt( &ppui.st, "boxes %d", Fl::event_state(FL_CTRL)?2: o->value()); } static void cb_Boxes(Fl_Menu_Button* o, void*) { specks_commandfmt(&ppui.st, "%s", o->text()); } Fl_Menu_Button *playmenu=(Fl_Menu_Button *)0; static void cb_playmenu(Fl_Menu_Button* o, void*) { specks_commandfmt(&ppui.st,"%s",o->text()); } Fl_Window* make_window() { Fl_Window* w; { Fl_Window* o = Mainwin = new Fl_Window(385, 445); w = o; o->box(FL_DOWN_BOX); o->color(96); { Fl_Pack* o = new Fl_Pack(0, 0, 385, 445); { Fl_Group* o = ppui.toprow = new Fl_Group(0, 0, 385, 35); { Fl_Menu_Button* o = ppui.more = new Fl_Menu_Button(0, 0, 30, 20, "More"); o->color(35); o->labelsize(12); o->labelcolor(3); o->align(FL_ALIGN_BOTTOM); o->menu(menu_ppui); } { Fl_Group* o = new Fl_Group(30, 0, 30, 35); o->box(FL_FLAT_BOX); o->color(96); { Fl_Menu_Button* o = ppui.obj = new Fl_Menu_Button(35, 0, 25, 20, "[gN]"); o->color(35); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)pp_obj_cb); o->align(FL_ALIGN_BOTTOM); } o->end(); } { Fl_Group* o = new Fl_Group(60, 0, 40, 35); o->box(FL_FLAT_BOX); o->color(96); { Fl_Menu_Button* o = ppui.nav = new Fl_Menu_Button(65, 0, 32, 20, "Navi "); o->color(35); o->labelsize(12); o->labelcolor(3); o->textsize(12); o->callback((Fl_Callback*)pp_nav_cb, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM); } o->end(); } { Fl_Group* o = ppui.objgroup = new Fl_Group(100, 0, 285, 35); { Fl_Light_Button* o = ppui.point = new Fl_Light_Button(108, 0, 20, 20, "point "); o->color(35); o->selection_color(2); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)cb_ppui, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM); o->when(FL_WHEN_CHANGED); } { Fl_Light_Button* o = ppui.poly = new Fl_Light_Button(135, 0, 20, 20, "poly"); o->color(35); o->selection_color(2); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)cb_ppui1, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM_LEFT); o->when(FL_WHEN_CHANGED); } { Fl_Light_Button* o = ppui.label = new Fl_Light_Button(163, 0, 20, 20, "lbl"); o->color(35); o->selection_color(2); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)cb_ppui2, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM); o->when(FL_WHEN_CHANGED); } { Fl_Light_Button* o = ppui.texture = new Fl_Light_Button(190, 0, 20, 20, "tex"); o->color(35); o->selection_color(2); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)cb_ppui3, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM_LEFT); o->when(FL_WHEN_CHANGED); } { Fl_Light_Button* o = ppui.box = new Fl_Light_Button(218, 0, 20, 20, "box"); o->color(35); o->selection_color(2); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)cb_ppui4, (void*)(&ppui.st)); o->align(FL_ALIGN_BOTTOM_LEFT); o->when(FL_WHEN_CHANGED); } { Fl_Menu_Button* o = new Fl_Menu_Button(218, 0, 20, 20, "Boxes"); o->type(4); o->callback((Fl_Callback*)cb_Boxes); o->add("boxes off|boxes on|boxes ONLY"); } { Fl_Group* o = new Fl_Group(240, 0, 145, 35); o->box(FL_FLAT_BOX); o->color(96); o->end(); Fl_Group::current()->resizable(o); } { Fl_Value_Slider* o = ppui.slum = new Fl_Value_Slider(240, 0, 145, 20, "log slum"); o->type(5); o->color(35); o->selection_color(4); o->labelsize(12); o->labelcolor(3); o->minimum(-3); o->maximum(4.5); o->step(0.025); o->textcolor(3); o->callback((Fl_Callback*)pp_slum_cb, (void*)(&ppui.st)); } o->end(); Fl_Group::current()->resizable(o); } o->end(); } { Fl_Group* o = new Fl_Group(0, 35, 385, 25); o->box(FL_FLAT_BOX); o->color(96); o->hide(); { Fl_Pack* o = ppui.objtogs = new Fl_Pack(5, 37, 375, 18); o->type(1); o->color(96); { Fl_Button* o = new Fl_Button(10, 37, 30, 18, "g0"); o->type(1); o->color(38); o->selection_color(0); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)pp_objtog_cb); } o->spacing(2); o->end(); } o->end(); } { Fl_Group* o = ppui.animrow = new Fl_Group(0, 60, 385, 20); { Fl_Button* o = ppui.rdata = new Fl_Button(0, 60, 55, 20, "Load..."); o->color(32); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)pp_rdata_cb, (void*)(&ppui.st)); } { Fl_Button* o = ppui.play = new Fl_Button(60, 60, 40, 20, "Play"); o->type(1); o->color(32); o->selection_color(58); o->labelsize(12); o->labelcolor(3); o->callback((Fl_Callback*)pp_play_cb, (void*)(&ppui.st)); } { Fl_Menu_Button* o = playmenu = new Fl_Menu_Button(60, 60, 40, 20, "Play Speed (Nf = every Nth frame)"); o->type(4); o->callback((Fl_Callback*)cb_playmenu); o->add("play 1|play .5|play .25|play 2|play 5|play 1f|play 2f|play 5f|play 10f"); } { Fl_Counter* o = ppui.playframe = new Fl_Counter(105, 60, 80, 20); o->color(32); o->selection_color(1); o->labelcolor(3); o->minimum(0); o->maximum(3000); o->step(1); o->textsize(11); o->callback((Fl_Callback*)pp_playframe_cb, (void*)(&ppui.st)); o->when(FL_WHEN_RELEASE); } { Fl_Value_Slider* o = ppui.playtime = new Fl_Value_Slider(190, 60, 195, 20); o->type(5); o->color(32); o->selection_color(4); o->labelcolor(3); o->maximum(100); o->step(0); o->textcolor(3); o->callback((Fl_Callback*)pp_playtime_cb, (void*)(&ppui.st)); Fl_Group::current()->resizable(o); } o->end(); } { Fl_Tile* o = ppui.maintile = new Fl_Tile(0, 80, 385, 365); o->color(139); { Hist* o = ppui.cmdhist = new Hist(0, 80, 385, 75); o->box(FL_DOWN_BOX); o->color(96); { HistBrowser* o = new HistBrowser(0, 80, 385, 50); o->type(3); o->color(0); o->selection_color(9); o->labelsize(12); o->textsize(12); o->textcolor(3); Fl_Group::current()->resizable(o); o->scrollbar.align( FL_ALIGN_LEFT ); o->scrollbar_width( 8 ); o->hist(ppui.cmdhist); } { Fl_Group* o = new Fl_Group(0, 130, 385, 25); { Fl_Box* o = new Fl_Box(0, 130, 30, 25, "Cmd:"); o->labelsize(12); o->labelcolor(3); } { HistInput* o = new HistInput(30, 130, 355, 25); o->color(38); o->selection_color(9); o->labelfont(1); o->labelsize(10); o->labelcolor(3); o->textcolor(55); o->callback((Fl_Callback*)pp_cmd_cb); o->when(FL_WHEN_ENTER_KEY_ALWAYS); Fl_Group::current()->resizable(o); o->cursor_color( o->textcolor() ); o->hist( ppui.cmdhist ); } o->end(); } o->end(); } { Fl_Box* o = new Fl_Box(0, 140, 385, 270, "tilelimiter"); o->hide(); Fl_Group::current()->resizable(o); } { Fl_Group* o = new Fl_Group(0, 155, 385, 290); o->box(FL_DOWN_BOX); ppui.view = new Fl_Gview(0, 155, 385, 290); o->end(); } o->end(); Fl_Group::current()->resizable(o); } o->spacing(0); o->end(); Fl_Group::current()->resizable(o); } o->end(); } return w; }