gltestui_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: gltestui_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 20:53:23 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.3
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: gltestui_.cpp,v 1000.1 2004/06/01 20:53:23 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CGlTestUI::cb_Save_i(Fl_Menu_*, void*) {
- x_OnSave();
- }
- void CGlTestUI::cb_Save(Fl_Menu_* o, void* v) {
- ((CGlTestUI*)(o->parent()->user_data()))->cb_Save_i(o,v);
- }
- inline void CGlTestUI::cb_E_i(Fl_Menu_*, void*) {
- x_OnExit();
- }
- void CGlTestUI::cb_E(Fl_Menu_* o, void* v) {
- ((CGlTestUI*)(o->parent()->user_data()))->cb_E_i(o,v);
- }
- Fl_Menu_Item CGlTestUI::menu_[] = {
- {"&File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"&Save", 0, (Fl_Callback*)CGlTestUI::cb_Save, 0, 0, 0, 0, 14, 56},
- {"E&xit", 0, (Fl_Callback*)CGlTestUI::cb_E, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- CGlTestUI::CGlTestUI() {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(550, 365, "OpenGL Subsystem Description");
- w = o;
- o->user_data((void*)(this));
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 550, 25);
- o->menu(menu_);
- }
- { Fl_Group* o = new Fl_Group(5, 30, 540, 330);
- o->box(FL_ENGRAVED_FRAME);
- { Fl_Group* o = new Fl_Group(15, 40, 515, 40);
- { Fl_Box* o = new Fl_Box(15, 40, 145, 40, "GL_VERSION");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GlVersion = new Fl_Box(165, 40, 365, 40);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 85, 515, 40);
- { Fl_Box* o = new Fl_Box(15, 85, 145, 40, "GL_RENDERER");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GlRenderer = new Fl_Box(165, 85, 365, 40);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 130, 515, 40);
- { Fl_Box* o = new Fl_Box(15, 130, 145, 40, "GL_VENDOR");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GlVendor = new Fl_Box(165, 130, 365, 40);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 175, 515, 85);
- { Fl_Box* o = new Fl_Box(15, 175, 145, 85, "GL_EXTENSIONS");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GlExtensions = new Fl_Box(165, 175, 365, 85);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 265, 515, 40);
- { Fl_Box* o = new Fl_Box(15, 265, 145, 40, "GLU_VERSION");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GluVersion = new Fl_Box(165, 265, 365, 40);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 310, 515, 40);
- { Fl_Box* o = new Fl_Box(15, 310, 145, 40, "GLU_EXTENSIONS");
- o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
- }
- { Fl_Box* o = m_GluExtensions = new Fl_Box(165, 310, 365, 40);
- o->box(FL_DOWN_FRAME);
- o->align(132|FL_ALIGN_INSIDE);
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- { Fl_Gl_Window* o = m_GlWindow = new Fl_Gl_Window(5, 30, 0, 0);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- }
- o->end();
- }
- m_Window.reset(w);
- x_PostConstruction();
- }